﻿/* Product Page Specific Styles */
        .product-page { padding-top: 60px; background: #f7f8fb; }

        .product-breadcrumbs {
            max-width: 1200px; margin: 0 auto;
            padding: 20px 24px;
        }

        .product-main {
            max-width: 1180px; margin: 0 auto;
            padding: 0 24px 48px;
            display: grid;
            grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.78fr);
            grid-template-areas:
                "visual visual"
                "config summary";
            gap: 20px; align-items: start;
        }

        /* Product Info Left */
        .product-visual {
            grid-area: visual;
            position: static;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
            gap: 16px;
            align-items: stretch;
        }
        .product-hero-card {
            background: #fff;
            border-radius: var(--radius-lg);
            padding: 28px;
            display: grid;
            grid-template-columns: 92px minmax(0, 1fr);
            column-gap: 20px;
            align-items: center; text-align: left;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
        }
        .product-hero-icon {
            width: 92px; height: 92px; border-radius: 22px;
            background: rgba(255,255,255,0.8);
            display: flex; align-items: center; justify-content: center;
            font-size: 46px; margin-bottom: 0;
            box-shadow: var(--shadow-md);
            grid-row: span 3;
        }
        .product-hero-name {
            font-size: 28px; font-weight: 800;
            letter-spacing: 0; margin-bottom: 6px;
        }
        .product-hero-desc {
            font-size: 15px; color: var(--text-secondary);
            margin-bottom: 14px; max-width: 620px;
        }
        .product-hero-badges {
            display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start;
        }
        .product-hero-badge {
            padding: 6px 14px; border-radius: 980px;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(8px);
            font-size: 12px; font-weight: 600; color: var(--text-secondary);
            display: flex; align-items: center; gap: 4px;
        }
        .product-trust-row {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 10px; margin-top: 0;
        }
        .product-trust-item {
            text-align: left; padding: 18px 16px;
            background: #fff; border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
        }
        .product-trust-item .trust-icon { font-size: 24px; margin-bottom: 6px; }
        .product-trust-item .trust-label { font-size: 12px; color: var(--text-tertiary); }
        .product-trust-item .trust-value { font-size: 14px; font-weight: 700; }

        /* Product Config Right */
        .product-config {
            grid-area: config;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow-md);
        }
        .checkout-panel {
            grid-area: summary;
            align-self: start;
            position: sticky;
            top: 84px;
        }
        .config-section {
            margin-bottom: 22px;
        }
        .config-section:last-of-type { margin-bottom: 0; }
        .config-section-title {
            font-size: 16px; font-weight: 800; margin-bottom: 10px;
            text-transform: none; letter-spacing: 0;
            color: var(--text-primary);
        }
        .config-section-title::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 16px;
            border-radius: 999px;
            background: var(--accent);
            margin-right: 8px;
            vertical-align: -2px;
        }
        .config-section-copy {
            margin: -4px 0 14px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.5;
        }

        /* Amount Selection */
        .amount-grid {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .amount-option {
            position: relative;
            min-height: 92px;
            padding: 16px; border-radius: var(--radius-md);
            border: 2px solid var(--border-light);
            background: #fff; cursor: pointer;
            transition: all 0.2s var(--ease);
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .amount-option:hover { border-color: var(--accent); transform: translateY(-1px); }
        .amount-option.selected {
            border-color: var(--accent);
            background: var(--accent-light);
            box-shadow: 0 10px 24px rgba(0,113,227,0.12);
        }
        .amount-option.popular::after {
            content: '推荐'; position: absolute; top: 10px; right: 10px;
            background: var(--danger); color: #fff;
            padding: 3px 8px; border-radius: 999px;
            font-size: 11px; font-weight: 700;
        }
        .amount-coins {
            font-size: 20px; font-weight: 800; margin-bottom: 4px;
        }
        .amount-usd {
            font-size: 17px; font-weight: 800; color: var(--accent);
        }
        .amount-cny {
            font-size: 12px; color: var(--text-secondary);
            margin-top: 2px;
        }

        /* Custom Amount */
        .custom-amount-row {
            display: flex; gap: 10px; margin-top: 10px;
        }
        .custom-amount-row .form-input { flex: 1; }
        .custom-amount-row .convert-result {
            display: flex; align-items: center;
            padding: 0 16px; background: var(--bg-subtle);
            border-radius: var(--radius-sm);
            font-size: 14px; font-weight: 600; color: var(--text-secondary);
            white-space: nowrap;
        }

        /* Account Input */
        .account-input-note {
            display: flex; align-items: flex-start; gap: 10px;
            padding: 14px 16px; background: #fff8e1;
            border-radius: var(--radius-sm); margin-top: 10px;
            font-size: 13px; color: #8b6914; line-height: 1.5;
        }
        .account-input-note .note-icon { flex-shrink: 0; font-size: 16px; }

        /* Payment Method */
        .payment-options {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
        }

        .form-input {
            width: 100%;
            min-height: 48px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 12px 14px;
            background: #fff;
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
        }
        .form-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(0,113,227,0.12);
        }
        .fulfillment-field {
            margin-bottom: 14px;
        }
        .fulfillment-field:last-child {
            margin-bottom: 0;
        }
        .fulfillment-label {
            display: block;
            margin-bottom: 7px;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 700;
        }
        .fulfillment-help {
            margin-top: 6px;
            color: var(--text-secondary);
            font-size: 12px;
        }
        .order-error {
            background: var(--danger-light);
            color: #b4233f;
            border: 1px solid rgba(255,55,95,0.18);
        }
        .payment-option {
            display: flex; align-items: center; gap: 10px;
            padding: 14px 16px; border-radius: var(--radius-sm);
            border: 2px solid var(--border-light); background: #fff;
            cursor: pointer; transition: all 0.2s var(--ease);
        }
        .payment-option:hover { border-color: var(--border); }
        .payment-option.selected { border-color: var(--accent); background: var(--accent-light); }
        .payment-icon { font-size: 20px; }
        .payment-name { font-size: 14px; font-weight: 600; }
        .payment-desc { font-size: 11px; color: var(--text-tertiary); }

        /* Order Summary */
        .order-summary {
            background: #fff; border-radius: var(--radius-lg);
            padding: 22px; margin-bottom: 18px;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-lg);
        }
        .summary-heading {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 16px;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--border-light);
        }
        .summary-heading strong {
            display: block;
            font-size: 18px;
            font-weight: 850;
            margin-bottom: 4px;
        }
        .summary-heading p {
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.45;
        }
        .summary-status {
            align-self: flex-start;
            white-space: nowrap;
            padding: 5px 9px;
            border-radius: 999px;
            color: #166534;
            background: #e8f7ee;
            font-size: 12px;
            font-weight: 700;
        }
        .order-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 8px 0; font-size: 14px;
        }
        .order-row .label { color: var(--text-secondary); }
        .order-row .value { font-weight: 600; }
        .order-row.discount .label {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .order-row.discount .label em,
        .coupon-applied span {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            padding: 0 8px;
            border-radius: 999px;
            background: #ecfdf5;
            color: #047857;
            font-size: 12px;
            font-style: normal;
            font-weight: 800;
            white-space: nowrap;
        }
        .order-row.discount .value {
            color: #047857;
        }
        .order-row.discount-hint .value {
            max-width: 190px;
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.4;
            text-align: right;
        }
        .order-row.total {
            border-top: 1px solid var(--border);
            margin-top: 8px; padding-top: 16px;
        }
        .order-row.total .value {
            font-size: 24px; font-weight: 800; color: var(--accent);
        }
        .summary-note-list {
            display: grid;
            gap: 8px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border-light);
        }
        .summary-note {
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.45;
        }
        .summary-note::before {
            content: "✓";
            color: var(--success);
            font-weight: 800;
            margin-right: 6px;
        }
        .coupon-applied {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            color: var(--text-primary);
            font-size: 13px;
        }
        .coupon-error {
            margin-top: 8px;
            color: #b91c1c;
            font-size: 13px;
        }

        /* Submit Button */
        .submit-btn {
            width: 100%; padding: 18px; border-radius: 980px;
            background: var(--text-primary); color: #fff;
            font-size: 16px; font-weight: 700;
            transition: all 0.3s var(--ease);
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(0,0,0,0.25);
        }
        .submit-secure {
            text-align: center; font-size: 12px; color: var(--text-tertiary);
            margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 4px;
        }

        /* Product Tabs */
        .product-tabs {
            max-width: 1200px; margin: 0 auto;
            padding: 0 24px 80px;
        }
        .tab-nav {
            display: flex; border-bottom: 1px solid var(--border-light);
            gap: 0; margin-bottom: 32px;
        }
        .tab-btn {
            padding: 14px 24px; font-size: 14px; font-weight: 600;
            color: var(--text-tertiary); border-bottom: 2px solid transparent;
            transition: all 0.2s; cursor: pointer;
        }
        .tab-btn:hover { color: var(--text-secondary); }
        .tab-btn.active { color: var(--text-primary); border-bottom-color: var(--accent); }
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        /* Description Tab */
        .product-description { max-width: 720px; }
        .product-description h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
        .product-description p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
        .product-description ul { padding-left: 20px; margin-bottom: 16px; }
        .product-description ul li {
            font-size: 15px; color: var(--text-secondary);
            line-height: 1.7; list-style: disc; margin-bottom: 6px;
        }
        .product-description table {
            width: 100%; border-collapse: collapse; margin: 20px 0;
        }
        .product-description table th,
        .product-description table td {
            padding: 12px 16px; text-align: left;
            border-bottom: 1px solid var(--border-light);
            font-size: 14px;
        }
        .product-description table th {
            background: var(--bg-subtle); font-weight: 700; font-size: 13px;
        }

        /* Reviews Tab */
        .product-reviews-summary {
            display: flex; gap: 40px; align-items: center;
            padding: 32px; background: var(--bg-subtle);
            border-radius: var(--radius-lg); margin-bottom: 32px;
        }
        .reviews-big-score {
            text-align: center;
        }
        .reviews-big-score .score {
            font-size: 52px; font-weight: 900; letter-spacing: -0.03em;
        }
        .reviews-big-score .stars {
            color: #ffb300; font-size: 18px; letter-spacing: 2px;
        }
        .reviews-big-score .count {
            font-size: 13px; color: var(--text-tertiary); margin-top: 4px;
        }
        .reviews-bars { flex: 1; }
        .bar-row {
            display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
        }
        .bar-label { font-size: 13px; font-weight: 600; width: 20px; text-align: right; }
        .bar-track {
            flex: 1; height: 8px; background: var(--border-light);
            border-radius: 4px; overflow: hidden;
        }
        .bar-fill { height: 100%; background: #ffb300; border-radius: 4px; }
        .bar-count { font-size: 12px; color: var(--text-tertiary); width: 40px; }

        .review-list { display: flex; flex-direction: column; gap: 16px; }
        .review-item {
            padding: 24px; background: #fff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
        }
        .review-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 12px;
        }
        .review-user { display: flex; align-items: center; gap: 10px; }
        .review-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 14px;
        }
        .review-name { font-size: 14px; font-weight: 600; }
        .review-date { font-size: 12px; color: var(--text-tertiary); }
        .review-stars { color: #ffb300; font-size: 13px; }
        .review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

        /* Related Products */
        .related-section {
            max-width: 1200px; margin: 0 auto;
            padding: 0 24px 80px;
        }

        .product-faq-section {
            max-width: 1180px;
            margin: 0 auto 44px;
            padding: 0 24px;
        }
        .product-faq-shell {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 28px;
            padding: 28px;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
        }
        .product-faq-heading span {
            display: block;
            color: var(--accent);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            margin-bottom: 8px;
        }
        .product-faq-heading h2 {
            margin: 0;
            color: var(--text-primary);
            font-size: 28px;
            line-height: 1.18;
            letter-spacing: 0;
        }
        .product-faq-heading p {
            margin-top: 10px;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.7;
        }
        .product-faq-list {
            display: grid;
            gap: 10px;
        }
        .product-faq-item {
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: #f8fafc;
            overflow: hidden;
        }
        .product-faq-item summary {
            cursor: pointer;
            padding: 16px 18px;
            color: var(--text-primary);
            font-weight: 800;
            line-height: 1.45;
        }
        .product-faq-item p {
            margin: 0;
            padding: 0 18px 18px;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.75;
        }

        .product-recommendations {
            max-width: 1180px;
            margin: 0 auto 48px;
            padding: 0 24px;
        }
        .product-recommendations-head {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 18px;
        }
        .product-recommendations-head span {
            display: block;
            color: var(--accent);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            margin-bottom: 6px;
        }
        .product-recommendations-head h2 {
            font-size: 28px;
            line-height: 1.15;
            letter-spacing: 0;
        }
        .product-recommendations-head p {
            max-width: 460px;
            color: var(--text-secondary);
            font-size: 14px;
            text-align: right;
        }
        .product-recommendations-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }
        .product-recommendation-card {
            display: grid;
            grid-template-columns: 74px minmax(0, 1fr);
            gap: 14px;
            position: relative;
            min-height: 148px;
            padding: 16px;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
        }
        .product-recommendation-card:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: var(--shadow-md);
        }
        .product-recommendation-media {
            width: 74px;
            height: 74px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 28px;
            font-weight: 900;
        }
        .product-recommendation-card small {
            display: block;
            color: var(--text-tertiary);
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .product-recommendation-card strong {
            display: block;
            color: var(--text-primary);
            font-size: 16px;
            line-height: 1.25;
            margin-bottom: 6px;
        }
        .product-recommendation-card p {
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.45;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .product-recommendation-price {
            grid-column: 2;
            align-self: end;
            width: fit-content;
            padding: 5px 9px;
            border-radius: 999px;
            background: var(--accent-light);
            color: var(--accent);
            font-size: 12px;
            font-weight: 800;
        }

        @media (max-width: 768px) {
            .product-page { padding-top: 52px; }
            .product-breadcrumbs { padding: 14px 16px; }
            .product-main {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "visual"
                    "config"
                    "summary";
                gap: 14px;
                padding: 0 14px 104px;
            }
            .product-visual {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .product-hero-card {
                grid-template-columns: 64px minmax(0, 1fr);
                padding: 18px;
                column-gap: 14px;
                border-radius: var(--radius-md);
            }
            .product-hero-icon {
                width: 64px;
                height: 64px;
                border-radius: 16px;
                font-size: 32px;
            }
            .product-hero-name { font-size: 20px; }
            .product-hero-desc { font-size: 13px; margin-bottom: 10px; }
            .product-hero-badges { gap: 6px; }
            .product-hero-badge { padding: 5px 9px; font-size: 11px; }
            .product-trust-row { grid-template-columns: repeat(3, 1fr); }
            .product-trust-item { padding: 12px 10px; text-align: center; }
            .product-config { padding: 16px; border-radius: var(--radius-md); }
            .config-section-title { font-size: 15px; }
            .amount-grid { grid-template-columns: 1fr; gap: 10px; }
            .amount-option { min-height: 78px; padding: 14px; }
            .payment-options { grid-template-columns: 1fr; }
            .checkout-panel {
                position: static;
            }
            .order-summary {
                margin-bottom: 12px;
                padding: 18px;
                border-radius: var(--radius-md);
            }
            .product-recommendations {
                padding: 0 14px;
                margin-bottom: 34px;
            }
            .product-faq-section {
                padding: 0 14px;
                margin-bottom: 34px;
            }
            .product-faq-shell {
                grid-template-columns: 1fr;
                gap: 18px;
                padding: 20px;
            }
            .product-faq-heading h2 {
                font-size: 24px;
            }
            .product-recommendations-head {
                display: block;
            }
            .product-recommendations-head h2 {
                font-size: 24px;
            }
            .product-recommendations-head p {
                text-align: left;
                margin-top: 8px;
            }
            .product-recommendations-grid {
                grid-template-columns: 1fr;
            }
            .product-reviews-summary { flex-direction: column; gap: 24px; }
        }
/* ===== Kardz product detail match ===== */
.kz-product-page {
    min-height: 100vh;
    background: #0d0d10;
    color: #ffffff;
}

.kz-product-shell {
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto;
}

.kz-product-hero {
    min-height: 144px;
    background:
        radial-gradient(circle at 64% 30%, rgba(145, 56, 244, 0.42), transparent 30%),
        linear-gradient(105deg, #181125 0%, #3b1764 42%, #1a1024 78%);
}

.kz-product-breadcrumb {
    display: flex;
    gap: 8px;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    font-weight: 700;
}

.kz-product-breadcrumb a,
.kz-product-breadcrumb strong {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.kz-product-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.kz-product-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.kz-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kz-product-title-row h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
}

.kz-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.kz-product-badges span:first-child {
    color: #fccc36;
}

.kz-product-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.kz-product-badges span::before {
    display: inline-flex;
    width: 18px;
    align-items: center;
    justify-content: center;
    color: #fccc36;
    font-size: 15px;
    line-height: 1;
}
.kz-product-badges span:nth-child(2)::before { content: "⏱"; color: #ffd36a; }
.kz-product-badges span:nth-child(3)::before { content: "◆"; color: #77df65; }
.kz-product-badges span:nth-child(4)::before { content: "◆"; color: #f2c178; }

.kz-product-tabbar {
    height: 44px;
    background: rgba(56, 29, 83, 0.55);
}

.kz-product-tabbar span {
    display: inline-flex;
    height: 44px;
    min-width: 132px;
    align-items: center;
    justify-content: center;
    background: rgba(252, 204, 54, 0.18);
    color: #fccc36;
    font-size: 13px;
    font-weight: 900;
}

.kz-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    padding: 26px 0 72px;
    align-items: start;
}

.kz-product-left {
    display: grid;
    gap: 18px;
}

.kz-buy-panel,
.kz-text-panel,
.kz-side-panel,
.seo-link-shell,
.product-recommendations {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    background: #1a1a22 !important;
    box-shadow: none !important;
}

.kz-buy-panel {
    padding: 18px;
}

.kz-buy-panel h2,
.kz-text-panel h2,
.kz-side-panel h2 {
    margin: 0 0 14px;
    padding-left: 9px;
    border-left: 4px solid #fccc36;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.kz-category-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.kz-category-options button {
    height: 64px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #23232d;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.kz-category-options button.active {
    border-color: #fccc36;
    box-shadow: inset 0 0 0 1px #fccc36;
}

.kz-variant-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.kz-variant-card {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    padding: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #23232d;
    color: #ffffff;
    text-align: left;
}

.kz-variant-card.active {
    border-color: #fccc36;
    box-shadow: inset 0 0 0 1px #fccc36;
}

.kz-variant-card.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 18px solid #fccc36;
    border-left: 18px solid transparent;
}

.kz-variant-img {
    display: grid;
    height: 100px;
    place-items: center;
    overflow: hidden;
    background: #20202a;
}

.kz-variant-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kz-variant-card strong,
.kz-variant-card em,
.kz-variant-card del {
    display: block;
    padding: 0 12px;
}

.kz-variant-card strong {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 900;
}

.kz-variant-coupon-label {
    display: block;
    margin: 7px 10px 0;
    color: #fccc36;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
}

.kz-variant-card em {
    margin-top: 8px;
    color: #fccc36;
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
}

.kz-variant-card del {
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
}

.kz-variant-card small {
    position: absolute;
    right: 10px;
    bottom: 12px;
    padding: 2px 7px;
    border-radius: 3px;
    background: #ff9800;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.kz-text-panel {
    padding: 20px;
    color: #a5adbb;
    font-size: 13px;
    line-height: 1.75;
}

.kz-text-panel h3 {
    margin: 22px 0 8px;
    color: #ffffff;
    font-size: 14px;
}

.kz-checkout-side {
    position: sticky;
    top: 132px;
    display: grid;
    gap: 16px;
}

.kz-side-panel {
    padding: 18px;
}

.kz-side-panel label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 900;
}

.kz-side-panel input,
.kz-side-panel select {
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: #101014;
    color: rgba(255, 255, 255, 0.72);
    padding: 0 10px;
    font-size: 12px;
}

.kz-upload-box {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 3px;
    background: #30303a;
    color: rgba(255, 255, 255, 0.48);
    font-size: 30px;
}

.kz-side-panel.qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kz-side-panel.qty div {
    display: flex;
    gap: 8px;
}

.kz-side-panel.qty button,
.kz-side-panel.qty span {
    display: grid;
    width: 36px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: #111116;
    color: #ffffff;
    font-weight: 900;
}

.kz-final {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.kz-final strong,
.kz-side-panel.price b {
    color: #fccc36;
}

.kz-side-panel.price p {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.kz-side-panel.price button {
    width: 100%;
    height: 42px;
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: #fccc36;
    color: #151515;
    font-weight: 900;
}

.kz-side-panel.price button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.kz-side-panel.price .kz-order-error {
    display: block;
    margin: 12px 0 0;
    color: #ff7777;
    line-height: 1.4;
}

.kz-side-panel.price small {
    display: block;
    margin-top: 18px;
    color: #00d292;
    text-align: center;
    font-weight: 900;
}

.kz-product-news-panel,
.product-recommendations {
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto 22px !important;
    padding: 0 !important;
}

.seo-link-shell {
    padding: 18px !important;
}

.seo-link-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px !important;
}

.seo-link-heading h2,
.product-recommendations h2 {
    margin: 0;
    padding-left: 9px;
    border-left: 4px solid #fccc36;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.seo-link-heading a {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    text-decoration: none;
}

.seo-link-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.seo-link-card {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.seo-link-card img {
    width: 100%;
    height: 74px;
    border-radius: 4px;
    object-fit: cover;
}

.seo-link-card strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
}

.product-recommendations {
    padding: 18px !important;
}

.product-recommendations-head span,
.product-recommendations-head p,
.product-recommendation-card p,
.product-recommendation-card small,
.product-recommendation-price {
    display: none !important;
}

.product-recommendations-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.product-recommendation-card {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.product-recommendation-media {
    width: 88px !important;
    height: 88px !important;
    border-radius: 6px !important;
    overflow: hidden;
}

.product-recommendation-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.25;
}

@media (max-width: 980px) {
    .kz-product-layout {
        grid-template-columns: 1fr;
    }

    .kz-variant-grid,
    .seo-link-grid,
    .product-recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .kz-checkout-side {
        position: static;
    }
}

/* ===== Product detail final Kardz alignment ===== */
.kz-product-page {
    background: #0d0d10;
}

.kz-product-shell {
    width: min(1138px, calc(100% - 48px));
}

.kz-product-hero {
    min-height: 168px;
    background:
        radial-gradient(circle at 63% 9%, rgba(139, 51, 225, 0.55), transparent 28%),
        linear-gradient(105deg, #151019 0%, #39175b 44%, #170f21 78%);
}

.kz-product-breadcrumb {
    padding-top: 17px;
    gap: 9px;
    font-size: 12px;
    line-height: 1;
}

.kz-product-title-row {
    gap: 18px;
    margin-top: 25px;
}

.kz-product-icon {
    width: 72px;
    height: 72px;
    border-radius: 7px;
}

.kz-product-title-row h1 {
    margin-bottom: 13px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0;
}

.kz-product-badges {
    gap: 42px;
    align-items: center;
    font-size: 12px;
    line-height: 1;
}

.kz-product-tabbar {
    height: 48px;
    background: rgba(49, 25, 72, 0.72);
}

.kz-product-tabbar span {
    height: 48px;
    min-width: 134px;
    background: linear-gradient(180deg, rgba(252, 204, 54, 0.24), rgba(252, 204, 54, 0.11));
    color: #fccc36;
    font-size: 13px;
    position: relative;
}

.kz-product-tabbar span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fccc36;
    border-left: 6px solid transparent;
}

.kz-product-layout {
    grid-template-columns: minmax(0, 820px) 336px;
    gap: 18px;
    width: min(1138px, calc(100% - 48px));
    padding-top: 26px;
    padding-bottom: 50px;
}

.kz-buy-panel,
.kz-text-panel,
.kz-side-panel,
.seo-link-shell,
.product-recommendations {
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 8px !important;
    background: #1a1a22 !important;
}

.kz-buy-panel {
    min-height: 0;
    padding: 18px 18px 22px;
}

.kz-buy-panel h2,
.kz-text-panel h2,
.kz-side-panel h2,
.seo-link-heading h2,
.product-recommendations h2 {
    padding-left: 10px;
    border-left: 4px solid #fccc36;
    font-size: 15px;
    line-height: 1.15;
}

.kz-category-options {
    gap: 12px;
    margin-bottom: 22px;
}

.kz-category-options button {
    height: 62px;
    border-radius: 5px;
    background: #24242e;
    font-size: 12px;
}

.kz-variant-grid {
    grid-template-columns: repeat(5, 116px);
    gap: 16px;
    align-items: start;
}

.kz-variant-card {
    width: 116px;
    min-height: 196px;
    border-radius: 5px;
    background: #23232d;
}

.kz-variant-img {
    height: 112px;
    background: #20202a;
}

.kz-variant-card strong {
    min-height: 30px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1.3;
}

.kz-variant-coupon {
    display: block;
    margin: 6px 10px 0;
    color: #fccc36;
    font-size: 10px;
    font-weight: 900;
}

.kz-variant-card em,
.kz-variant-card del {
    padding: 0 10px;
}

.kz-variant-card em {
    margin-top: 2px;
    font-size: 14px;
}

.kz-variant-card small {
    right: 8px;
    bottom: 9px;
    border-radius: 3px;
    background: #ff9800;
    font-size: 9px;
}

.kz-text-panel {
    padding: 20px 18px;
    font-size: 12px;
    line-height: 1.8;
}

.kz-text-panel.long {
    padding-bottom: 30px;
}

.kz-checkout-side {
    top: 128px;
    gap: 16px;
}

.kz-side-panel {
    padding: 18px;
}

.kz-side-panel input,
.kz-side-panel select {
    height: 34px;
    border-color: rgba(255, 255, 255, 0.1);
    background: #101014;
}

.kz-side-panel.qty {
    height: 72px;
}

.kz-side-panel.price {
    padding-top: 22px;
}

.kz-side-panel.price button {
    height: 42px;
    margin-top: 16px;
    border-radius: 999px;
}

.kz-product-news-panel,
.product-recommendations {
    width: min(1138px, calc(100% - 48px));
    margin-right: auto !important;
    margin-left: auto !important;
}

.kz-product-news-panel {
    margin-top: 4px !important;
    margin-bottom: 22px !important;
    border: 0 !important;
    background: transparent !important;
}

.seo-link-shell {
    width: 820px !important;
    margin: 0 !important;
    padding: 18px !important;
    overflow: hidden;
}

.seo-link-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
}

.seo-link-card img {
    height: 70px;
    border-radius: 4px;
}

.product-recommendations {
    width: min(820px, calc(100% - 48px));
    margin-right: auto !important;
    margin-left: max(24px, calc((100% - 1138px) / 2)) !important;
    margin-top: 0 !important;
    margin-bottom: 42px !important;
    padding: 18px !important;
}

.product-recommendations-head {
    display: flex !important;
    align-items: center;
    margin-bottom: 16px !important;
}

.product-recommendations-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 18px !important;
}

.product-recommendation-media {
    width: 86px !important;
    height: 86px !important;
    border-radius: 6px !important;
}

.product-recommendation-card strong {
    max-width: 102px;
    font-size: 12px;
}

@media (max-width: 980px) {
    .kz-product-layout,
    .kz-product-news-panel,
    .product-recommendations {
        width: min(100% - 28px, 680px);
    }

    .product-recommendations {
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .kz-product-layout {
        grid-template-columns: 1fr;
    }

    .kz-variant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kz-variant-card {
        width: auto;
    }

    .seo-link-shell {
        width: 100% !important;
    }
}

/* Product page continuation stays inside the left column of the purchase grid. */
@media (min-width: 981px) {
    .kz-product-hero .kz-product-shell,
    .kz-product-tabbar .kz-product-shell {
        width: min(1346px, calc(100% - 48px));
    }

    .kz-product-layout {
        grid-template-columns: minmax(0, calc(100% - 354px)) 336px;
        justify-content: start;
        width: min(1346px, calc(100% - 48px));
    }

    .kz-product-news-panel,
    .product-recommendations {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

.kz-product-news-panel {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.seo-link-shell,
.product-recommendations {
    box-sizing: border-box;
    min-height: 0;
    padding: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    background: #1a1a22 !important;
}

.seo-link-shell {
    width: 100% !important;
}

.seo-link-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: 26px !important;
    row-gap: 24px !important;
}

.seo-link-card img {
    height: 94px;
}

.seo-link-card strong {
    display: -webkit-box;
    min-height: 34px;
    margin-top: 9px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-recommendations {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.product-recommendations-head {
    margin-bottom: 16px !important;
}

.product-recommendations-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.product-recommendation-media {
    width: 96px !important;
    height: 132px !important;
    border-radius: 6px !important;
}

.product-recommendation-card strong {
    display: -webkit-box;
    max-width: 96px;
    min-height: 30px;
    margin-top: 8px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kz-equipment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 22px;
}

.kz-equipment-options button {
    min-height: 72px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 6px;
    background: #24242e;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.kz-equipment-options button.active {
    border: 2px solid #fccc36;
    background: linear-gradient(110deg, rgba(252, 204, 54, 0.08), #24242e 42%);
}

.kz-equipment-options.multiple button {
    min-height: 80px;
}

.kz-upload-field {
    display: grid;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.kz-upload-field .kz-upload-box {
    margin: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 30px;
    cursor: pointer;
}

.kz-variant-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.kz-variant-card {
    width: 100%;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.kz-variant-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.kz-variant-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kz-variant-card strong {
    min-height: 38px;
    margin-top: 12px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

.kz-variant-card em,
.kz-variant-card del {
    padding: 0 12px;
    text-align: left;
}

.kz-variant-card em {
    margin-top: 7px;
    font-size: 16px;
}

.kz-variant-card small {
    right: 10px;
    bottom: 12px;
}

.kz-variant-card.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 22px solid #fccc36;
    border-left: 22px solid transparent;
}

@media (max-width: 980px) {
    .kz-product-news-panel,
    .product-recommendations {
        width: 100% !important;
    }

    .seo-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .product-recommendations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .product-recommendation-media {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4;
    }

    .kz-equipment-options {
        grid-template-columns: 1fr;
    }

    .kz-variant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
