/* KidZonePK - Product details page */
        /* ═══════════════════════════════════════════
           PRODUCT DETAILS PAGE PREMIUM AESTHETICS
        ═══════════════════════════════════════════ */
        .details-wrapper {
            max-width: var(--container-width, 1200px);
            margin: 2rem auto;
            padding: 0 1.5rem;
        }

        /* Breadcrumbs */
        .breadcrumbs {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #7b87b5;
            margin-bottom: 1.5rem;
        }
        .breadcrumbs a {
            color: #7b87b5;
            text-decoration: none;
            transition: color 0.2s;
        }
        .breadcrumbs a:hover {
            color: var(--primary-color, #ff6b6b);
        }
        .breadcrumbs span.divider {
            color: #414d70;
        }
        .breadcrumbs span.current {
            color: var(--text-color, #2d3748);
            font-weight: 500;
        }

        /* Main Grid */
        .details-grid {
            display: grid;
            grid-template-columns: 1.1fr 1.2fr 0.8fr;
            gap: 2rem;
            align-items: start;
        }

        /* Left Column: Image */
        .details-image-card {
            background: #fff;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.03);
            position: sticky;
            top: 100px;
        }
        .details-image-container {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 12px;
            overflow: hidden;
            background: #f8f9fc;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #edf2f7;
        }
        .details-image-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .details-image-container:hover img {
            transform: scale(1.08);
        }

        /* Gallery Thumbnails */
        .details-gallery {
            display: flex;
            gap: 10px;
            margin-top: 1rem;
            overflow-x: auto;
            padding: 5px 2px;
        }
        .details-gallery-thumb {
            width: 70px;
            height: 70px;
            border-radius: 8px;
            border: 2px solid #edf2f7;
            cursor: pointer;
            overflow: hidden;
            background: #f8f9fc;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        .details-gallery-thumb img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .details-gallery-thumb:hover {
            border-color: var(--primary-color, #ff6b6b);
        }
        .details-gallery-thumb.active {
            border-color: var(--primary-color, #ff6b6b);
            box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
        }

        /* Variants Section */
        .details-variants-box {
            margin-bottom: 1.25rem;
            border-top: 1px solid #edf2f7;
            padding-top: 1.25rem;
        }
        .details-variants-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.75rem;
        }
        .details-variants-label span {
            font-weight: 500;
            color: #718096;
        }
        .details-variants-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .details-variant-pill {
            background: #fff;
            border: 2px solid #edf2f7;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #4a5568;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .details-variant-pill:hover {
            border-color: var(--primary-color, #ff6b6b);
            color: var(--primary-color, #ff6b6b);
        }
        .details-variant-pill.active {
            border-color: #2d3748;
            color: #2d3748;
            background: #f8f9fc;
        }

        /* Center Column: Details */
        .details-content {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        .details-category {
            align-self: flex-start;
            background: rgba(255, 107, 107, 0.1);
            color: var(--primary-color, #ff6b6b);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .details-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: #2d3748;
            line-height: 1.3;
        }

        /* Rating Row */
        .details-rating-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            color: #7b87b5;
        }
        .details-stars {
            display: flex;
            align-items: center;
            gap: 2px;
            color: #ffb800;
        }
        .details-stars svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        /* Pricing Box */
        .details-price-card {
            background: #f8f9fc;
            border-radius: 12px;
            padding: 1.25rem;
            border: 1px solid #edf2f7;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .details-price-row {
            display: flex;
            align-items: baseline;
            gap: 12px;
        }
        .details-current-price {
            font-size: 2.25rem;
            font-weight: 800;
            color: var(--primary-color, #ff6b6b);
        }
        .details-old-price {
            font-size: 1.15rem;
            color: #a0aec0;
            text-decoration: line-through;
        }
        .details-discount-pill {
            background: #22d3a0;
            color: #fff;
            font-size: 0.78rem;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 20px;
        }

        /* Description */
        .details-description-box {
            border-top: 1px solid #edf2f7;
            border-bottom: 1px solid #edf2f7;
            padding: 1.25rem 0;
        }
        .details-description-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }
        .details-description-text {
            font-size: 0.92rem;
            color: #4a5568;
            line-height: 1.6;
            white-space: pre-line;
        }
        .details-description-text.is-html { white-space: normal; }
        .details-description-text.is-html p { margin: 0 0 0.75rem; }
        .details-description-text.is-html h2 { font-size: 1rem; font-weight: 700; color: #2d3748; margin: 1.1rem 0 0.5rem; }
        .details-description-text.is-html h3 { font-size: 0.92rem; font-weight: 700; color: #2d3748; margin: 0.9rem 0 0.3rem; }
        .details-description-text.is-html ul,
        .details-description-text.is-html ol { padding-left: 1.25rem; margin: 0 0 0.75rem; }
        .details-description-text.is-html li { margin-bottom: 0.25rem; }

        /* Quantity Selector */
        .details-qty-row {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .details-qty-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: #2d3748;
        }
        .details-qty-selector {
            display: flex;
            align-items: center;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
        }
        .details-qty-btn {
            background: none;
            border: none;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #4a5568;
            font-weight: bold;
            transition: background 0.2s;
        }
        .details-qty-btn:hover {
            background: #f7fafc;
        }
        .details-qty-val {
            width: 44px;
            text-align: center;
            font-weight: 700;
            color: #2d3748;
            border-left: 1px solid #e2e8f0;
            border-right: 1px solid #e2e8f0;
            font-size: 0.95rem;
        }

        /* Action Buttons */
        .details-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 0.5rem;
        }
        .details-btn {
            padding: 14px;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .details-btn-buy {
            background: linear-gradient(135deg, #ff6b6b, #e05353);
            color: #fff;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
        }
        .details-btn-buy:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
        }
        .details-btn-cart {
            background: #fff;
            border: 2px solid var(--primary-color, #ff6b6b);
            color: var(--primary-color, #ff6b6b);
        }
        .details-btn-cart:hover {
            background: rgba(255, 107, 107, 0.05);
            transform: translateY(-1px);
        }
        .details-btn svg {
            width: 18px;
            height: 18px;
        }

        /* Right Column: Trust Sidebar */
        .details-trust-sidebar {
            background: #fff;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.03);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        .trust-section-title {
            font-size: 0.8rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #a0aec0;
            margin-bottom: 0.75rem;
            border-bottom: 1px solid #edf2f7;
            padding-bottom: 0.5rem;
        }
        .trust-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }
        .trust-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(34, 211, 160, 0.1);
            color: #16a37a;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .trust-icon svg {
            width: 18px;
            height: 18px;
        }
        .trust-icon.blue {
            background: rgba(56, 189, 248, 0.1);
            color: #0284c7;
        }
        .trust-info h5 {
            font-size: 0.88rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 2px;
        }
        .trust-info p {
            font-size: 0.78rem;
            color: #718096;
            line-height: 1.4;
        }

        /* Seller Panel */
        .seller-info-box {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .seller-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #ff6b6b, #ffa8a8);
            color: #fff;
            font-weight: 800;
            font-size: 1.1rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Loading / Error States */
        .details-loading, .details-error-state {
            text-align: center;
            padding: 5rem 2rem;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.03);
        }
        .details-error-state h2 {
            margin-bottom: 0.75rem;
            color: #2d3748;
        }
        .details-error-state p {
            color: #718096;
            margin-bottom: 1.5rem;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .details-grid {
                grid-template-columns: 1fr 1fr;
            }
            .details-trust-sidebar {
                grid-column: 1 / -1;
            }
        }
        @media (max-width: 680px) {
            .details-grid {
                grid-template-columns: 1fr;
            }
            .details-image-card {
                position: static;
            }
            .details-actions {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 480px) {
            .breadcrumbs {
                font-size: 0.78rem;
                flex-wrap: wrap;
                margin-bottom: 1rem;
            }
            .details-wrapper {
                margin: 1rem auto;
                padding: 0 1rem;
            }
            .details-title {
                font-size: 1.35rem;
            }
            .details-current-price {
                font-size: 1.85rem;
            }
            .details-old-price {
                font-size: 1rem;
            }
            .details-image-card {
                padding: 1rem;
                border-radius: 12px;
            }
            .details-trust-sidebar {
                padding: 1rem;
                border-radius: 12px;
            }
        }
    

/* ═══════════════════════════════════════════
   MOBILE: compact product page (image → title → price → options → Add to Cart)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .details-wrapper { margin: 0.75rem auto 1.5rem; padding: 0 12px; }

    .breadcrumbs { font-size: 0.75rem; margin-bottom: 0.6rem; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
    .breadcrumbs span.current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .breadcrumbs a, .breadcrumbs span.divider { white-space: nowrap; flex-shrink: 0; }

    /* minmax(0, 1fr): a long thumbnail row must scroll inside the gallery, not widen the page */
    .details-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

    /* Image: max 300px tall, centred, never cropped or stretched */
    .details-image-card { position: static; padding: 10px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04); }
    .details-image-container { aspect-ratio: auto; height: 280px; max-height: 40vh; min-height: 220px; }
    .details-image-container img { width: 100%; height: 100%; object-fit: contain; }
    .details-image-container:hover img { transform: none; }
    .details-gallery { margin-top: 8px; gap: 8px; padding: 2px; }
    .details-gallery-thumb { width: 54px; height: 54px; }

    /* Details: tighter spacing */
    .details-content { gap: 0.7rem; }
    .details-category { font-size: 0.68rem; padding: 3px 10px; }
    .details-title { font-size: 1.25rem; line-height: 1.3; }
    .details-sku-row { margin-top: -4px !important; }
    .details-price-card { padding: 0.75rem 1rem; gap: 0.25rem; }
    .details-current-price { font-size: 1.6rem; }
    .details-old-price { font-size: 0.95rem; }
    .details-variants-box { margin: 0; }

    /* Options and quantity come before the long description */
    .details-description-box { order: 10; padding: 1rem 0; border-bottom: none; }

    /* Sticky Add to Cart bar: pinned to the bottom of the screen while the product details (incl. the
       description) are on screen, then settles at the end of the details */
    .details-actions {
        order: 11;
        position: sticky;
        bottom: 0;
        z-index: 20;
        grid-template-columns: 1fr 0.6fr;
        gap: 8px;
        margin: 0 -12px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.08);
    }
    .details-btn { padding: 16px 10px; border-radius: 8px; font-size: 0.85rem; }
    .details-btn-cart {
        order: -1;
        background: #0b2f7a;
        border: none;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 800;
    }
    .details-btn-cart:hover { background: #0a2766; transform: none; }
    .details-btn-buy { box-shadow: none; }

    /* Keep the WhatsApp button clear of the sticky bar on product pages */
    body:has(.details-actions) .whatsapp-float { bottom: 92px; }
}

/* Grid columns may never be pushed wider than their track by their content (e.g. many thumbnails) */
.details-grid > * { min-width: 0; }
.details-gallery { max-width: 100%; }
