/* Collection pages — layout aligned with shop.html */
html { scroll-behavior: smooth; }

        :root {
            --dark-green: #031c12;
            --mid-green: #0B6E4F;
            --light-green: #50C787;
            --bg-color: #f4f3ed;
            --text-dark: #1a1a1a;
            --sidebar-w: min(21rem, 100%);
            --sidebar-nudge: 0.85rem;
            --toolbar-gap: 1rem;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
        body { background: var(--bg-color); color: var(--text-dark); overflow-x: hidden; }

        .visually-hidden {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
        }

        .shop-hero {
            background: linear-gradient(135deg, var(--dark-green) 0%, var(--mid-green) 100%);
            padding: 120px 20px 80px;
            text-align: center;
            color: #fff;
        }
        .shop-hero h1 { font-size: 3.2rem; font-weight: 900; margin-bottom: 14px; }
        .shop-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 760px; margin: 0 auto; }

        .collection-hero {
            background: linear-gradient(135deg, var(--dark-green) 0%, var(--mid-green) 100%);
            padding: 120px 20px 80px;
            text-align: center;
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .collection-hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
            opacity: 0.05;
            pointer-events: none;
        }
        .collection-hero h1 { font-size: 3.2rem; font-weight: 900; margin-bottom: 14px; position: relative; z-index: 2; }
        .collection-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }

        .breadcrumb { padding: 20px; max-width: 1400px; margin: 0 auto; }
        .breadcrumb-nav { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #666; }
        .breadcrumb-nav a { color: var(--mid-green); text-decoration: none; }

        .shop-container { max-width: 1400px; margin: 0 auto; padding: 32px 20px 60px; }
        .shop-header { text-align: center; margin-bottom: 28px; }
        .shop-header h2 { font-size: 2.3rem; color: var(--dark-green); font-weight: 900; margin-bottom: 10px; }
        .shop-header p { color: #666; max-width: 760px; margin: 0 auto; line-height: 1.6; }

        /* Main layout: sidebar + grid */
        .shop-layout {
            display: flex;
            flex-wrap: nowrap;
            gap: clamp(1.5rem, 4vw, 3rem);
            align-items: flex-start;
        }

        /* Sidebar overlay (mobile) */
        .sidebar-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 998;
            opacity: 0;
            transition: opacity 0.25s;
        }
        body.sidebar-open .sidebar-backdrop {
            display: block;
            opacity: 1;
        }

        .collection-sidebar-wrap {
            flex: 0 0 var(--sidebar-w);
            max-width: var(--sidebar-w);
        }
        /* Nudge sidebar toward the left (screen); RTL: sidebar sits on the right */
        @media (min-width: 1025px) {
            .collection-sidebar-wrap {
                transform: translateX(calc(-1 * var(--sidebar-nudge)));
            }
        }

        @media (max-width: 1024px) {
            .collection-sidebar-wrap {
                position: fixed;
                top: 0;
                bottom: 0;
                width: min(21rem, 88vw);
                max-width: none;
                flex: none;
                z-index: 999;
                transition: transform 0.3s ease;
                pointer-events: none;
                /* One scroll for whole drawer if content > viewport — not a nested filter scroll */
                overflow-y: auto;
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch;
            }
            /* RTL: drawer from the right */
            [dir="rtl"] .collection-sidebar-wrap {
                right: 0;
                left: auto;
                transform: translateX(100%);
            }
            [dir="rtl"].sidebar-open .collection-sidebar-wrap {
                transform: translateX(0);
                pointer-events: auto;
            }
            /* LTR: drawer from the left */
            [dir="ltr"] .collection-sidebar-wrap {
                left: 0;
                right: auto;
                transform: translateX(-100%);
            }
            [dir="ltr"].sidebar-open .collection-sidebar-wrap {
                transform: translateX(0);
                pointer-events: auto;
            }
        }

        /* Darker green glass */
        .collection-sidebar {
            background:
                linear-gradient(168deg,
                    rgba(5, 48, 34, 0.92) 0%,
                    rgba(3, 28, 18, 0.96) 42%,
                    rgba(1, 14, 9, 0.99) 78%,
                    rgba(0, 6, 4, 1) 100%);
            backdrop-filter: blur(40px) saturate(1.08);
            -webkit-backdrop-filter: blur(40px) saturate(1.08);
            border: 1px solid rgba(11, 110, 79, 0.55);
            border-radius: 14px;
            box-shadow:
                0 28px 72px rgba(0, 0, 0, 0.45),
                0 10px 28px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(80, 199, 135, 0.08),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35);
            overflow: visible;
            display: flex;
            flex-direction: column;
            height: auto;
            max-height: none;
            color: rgba(210, 235, 224, 0.96);
        }
        @media (min-width: 1025px) {
            .collection-sidebar {
                position: sticky;
                top: 100px;
                align-self: flex-start;
            }
        }
        @media (max-width: 1024px) {
            .collection-sidebar {
                border-radius: 0;
                min-height: 100vh;
                height: auto;
                max-height: none;
            }
        }

        .sidebar-header-mobile {
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(11, 110, 79, 0.4);
            background: linear-gradient(180deg, rgba(4, 36, 26, 0.95), rgba(1, 12, 8, 0.98));
            backdrop-filter: blur(20px) saturate(1.05);
            -webkit-backdrop-filter: blur(20px) saturate(1.05);
        }
        @media (max-width: 1024px) {
            .sidebar-header-mobile { display: flex; }
        }
        .sidebar-header-mobile h3 {
            font-size: 1.05rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: rgba(200, 235, 218, 0.98);
        }
        .btn-close-sidebar {
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            color: rgba(200, 235, 218, 0.95);
            border-radius: 8px;
        }
        .btn-close-sidebar:hover { background: rgba(80, 199, 135, 0.18); color: var(--light-green); }

        .filter-blocks {
            padding: 0 1.25rem 1rem;
            overflow: visible;
            flex: none;
        }

        .collection-sidebar .filter-block {
            border-bottom: 1px solid rgba(11, 110, 79, 0.35);
            padding: 0.85rem 0;
        }
        .collection-sidebar .filter-block:last-child { border-bottom: none; }

        .collection-sidebar .filter-block summary {
            list-style: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            letter-spacing: 0.02em;
            color: rgba(195, 225, 210, 0.95);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 0;
        }
        .filter-block summary::-webkit-details-marker { display: none; }
        .filter-block details[open] .chevron { transform: rotate(180deg); }
        .filter-block details[open].filter-accordion-closing .chevron { transform: rotate(0deg); }
        /* Chevron eases with the panel (smooth “speed graph” = cubic-bezier) */
        .collection-sidebar .chevron {
            transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
            font-size: 0.65rem;
            opacity: 0.65;
            color: rgba(90, 160, 125, 0.9);
        }

        /* Smooth expand/collapse: grid 0fr → 1fr (eased — fast out, soft landing) */
        .filter-accordion-panel {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.52s cubic-bezier(0.33, 1, 0.68, 1);
        }
        .filter-block details[open] .filter-accordion-panel {
            grid-template-rows: 1fr;
        }
        .filter-accordion-panel > .filter-inner {
            min-height: 0;
            overflow: hidden;
        }
        .filter-block .filter-inner { padding-top: 0.75rem; }

        @media (prefers-reduced-motion: reduce) {
            .filter-accordion-panel,
            .collection-sidebar .chevron {
                transition-duration: 0.01ms !important;
            }
        }
        /* Skip height/chevron transitions until after first paint (stops reload “flash”) */
        html:not(.filter-accordions-ready) .filter-accordion-panel {
            transition: none !important;
        }
        html:not(.filter-accordions-ready) .collection-sidebar .chevron {
            transition: none !important;
        }

        /* Size swatches */
        .swatch-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            list-style: none;
        }
        .size-swatch {
            cursor: pointer;
        }
        .size-swatch input { position: absolute; opacity: 0; pointer-events: none; }
        .size-swatch .pill {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 2.75rem;
            padding: 0.55rem 0.85rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: border-color 0.2s, background 0.2s, color 0.2s;
        }
        .collection-sidebar .size-swatch:hover .pill { border-color: var(--light-green); color: rgba(235, 252, 245, 1); }
        .collection-sidebar .size-swatch .pill {
            border-color: rgba(11, 110, 79, 0.65);
            background: rgba(0, 0, 0, 0.42);
            color: rgba(200, 235, 220, 0.98);
            border-radius: 6px;
        }
        .collection-sidebar .size-swatch input:checked + .pill {
            border-color: rgba(80, 199, 135, 0.55);
            background: rgba(11, 110, 79, 0.4);
            color: rgba(220, 245, 232, 1);
        }

        .collection-sidebar .filter-options-vertical label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            color: rgba(210, 235, 224, 0.9);
        }
        /* Custom checkboxes — Fardteen green (matches pills / buttons) */
        .collection-sidebar .filter-options-vertical input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 1.125rem;
            height: 1.125rem;
            min-width: 1.125rem;
            margin: 0;
            flex-shrink: 0;
            border: 2px solid rgba(80, 199, 135, 0.55);
            border-radius: 5px;
            background: rgba(0, 0, 0, 0.4);
            cursor: pointer;
            position: relative;
            vertical-align: middle;
            transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
        }
        .collection-sidebar .filter-options-vertical input[type="checkbox"]:hover {
            border-color: var(--light-green);
            box-shadow: 0 0 10px rgba(80, 199, 135, 0.25);
        }
        .collection-sidebar .filter-options-vertical input[type="checkbox"]:checked {
            background: var(--light-green);
            border-color: var(--light-green);
            box-shadow: 0 0 0 2px rgba(80, 199, 135, 0.22);
        }
        .collection-sidebar .filter-options-vertical input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 45%;
            width: 4px;
            height: 8px;
            border: solid var(--dark-green);
            border-width: 0 2px 2px 0;
            transform: translate(-50%, -50%) rotate(45deg);
        }
        .collection-sidebar .filter-options-vertical input[type="checkbox"]:focus-visible {
            outline: 2px solid rgba(80, 199, 135, 0.55);
            outline-offset: 3px;
        }

        .collection-sidebar .price-range { display: flex; align-items: center; gap: 8px; direction: ltr; }
        .collection-sidebar .price-range-input-wrap {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: stretch;
            border: 1px solid rgba(11, 110, 79, 0.65);
            border-radius: 8px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.45);
        }
        .collection-sidebar .price-range-input-wrap:focus-within {
            border-color: rgba(80, 199, 135, 0.45);
            box-shadow: 0 0 0 2px rgba(80, 199, 135, 0.12);
        }
        .collection-sidebar .price-range-input-wrap input[type="number"] {
            flex: 1;
            min-width: 0;
            padding: 9px 10px;
            border: none;
            border-radius: 0;
            background: transparent;
            color: rgba(210, 235, 224, 0.96);
            font-family: inherit;
            font-size: 0.95rem;
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .collection-sidebar .price-range-input-wrap input[type="number"]::-webkit-outer-spin-button,
        .collection-sidebar .price-range-input-wrap input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .collection-sidebar .price-range-input-wrap input[type="number"]:focus {
            outline: none;
        }
        .collection-sidebar .price-range-input-wrap input[type="number"]::placeholder {
            color: rgba(80, 199, 135, 0.45);
        }
        .collection-sidebar .price-spin-btns {
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            width: 30px;
            border-inline-start: 1px solid rgba(11, 110, 79, 0.55);
            background: rgba(3, 28, 18, 0.92);
        }
        .collection-sidebar .price-spin-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 20px;
            padding: 0;
            border: none;
            background: transparent;
            color: var(--light-green);
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .collection-sidebar .price-spin-btn:hover {
            background: rgba(11, 110, 79, 0.55);
            color: #fff;
        }
        .collection-sidebar .price-spin-btn:active {
            background: rgba(80, 199, 135, 0.25);
        }
        .collection-sidebar .price-spin-btn:focus {
            outline: none;
        }
        .collection-sidebar .price-spin-btn:focus-visible {
            outline: 2px solid rgba(80, 199, 135, 0.75);
            outline-offset: -2px;
            z-index: 1;
        }
        .collection-sidebar .price-spin-btn + .price-spin-btn {
            border-top: 1px solid rgba(11, 110, 79, 0.45);
        }
        .collection-sidebar .price-spin-btn svg {
            width: 10px;
            height: 10px;
            display: block;
            opacity: 0.92;
        }
        .collection-sidebar .price-range span { color: rgba(80, 199, 135, 0.55); }

        .sidebar-top-actions {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: 0.75rem 1.25rem 0;
            background: transparent;
            pointer-events: none;
            isolation: isolate;
        }
        .sidebar-top-actions .btn-link-clear {
            pointer-events: auto;
        }
        @media (max-width: 1024px) {
            .sidebar-top-actions { display: none; }
        }

        .sidebar-actions-mobile {
            display: none;
            padding: 1rem 1.25rem;
            border-top: 1px solid rgba(11, 110, 79, 0.55);
            background: linear-gradient(0deg, rgba(0, 6, 4, 1), rgba(1, 14, 9, 0.99));
            backdrop-filter: blur(24px) saturate(1.1);
            -webkit-backdrop-filter: blur(24px) saturate(1.1);
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            position: sticky;
            bottom: 0;
            pointer-events: none;
            isolation: isolate;
        }
        .sidebar-actions-mobile .btn-link-clear,
        .sidebar-actions-mobile .btn-apply {
            pointer-events: auto;
        }
        @media (max-width: 1024px) {
            .sidebar-actions-mobile { display: flex; }
        }
        .collection-sidebar .btn-link-clear {
            position: relative;
            z-index: 1;
            flex-shrink: 0;
            background: rgba(80, 199, 135, 0.08);
            border: 1px solid rgba(80, 199, 135, 0.4);
            border-radius: 8px;
            color: #5fd9a0;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            font-size: 0.88rem;
            letter-spacing: 0.04em;
            padding: 0.45rem 0.75rem;
            box-shadow:
                0 0 10px rgba(80, 199, 135, 0.42),
                0 0 22px rgba(80, 199, 135, 0.2),
                inset 0 0 16px rgba(80, 199, 135, 0.1);
            text-shadow:
                0 0 8px rgba(80, 199, 135, 0.9),
                0 0 16px rgba(80, 199, 135, 0.35);
            transition: color 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
        }
        .collection-sidebar .btn-link-clear:hover {
            color: #8cf5c4;
            background: rgba(80, 199, 135, 0.2);
            border-color: rgba(80, 199, 135, 0.65);
            box-shadow:
                0 0 14px rgba(80, 199, 135, 0.62),
                0 0 28px rgba(80, 199, 135, 0.32),
                inset 0 0 20px rgba(80, 199, 135, 0.16);
            text-shadow:
                0 0 10px rgba(80, 199, 135, 0.95),
                0 0 18px rgba(11, 110, 79, 0.55);
        }
        .collection-sidebar .btn-apply {
            background: linear-gradient(180deg, #2d8f5c 0%, #063d2a 100%);
            color: rgba(220, 245, 232, 0.98);
            border: 1px solid rgba(11, 110, 79, 0.8);
            font-weight: 700;
            padding: 0.8rem 1.6rem;
            border-radius: 8px;
            cursor: pointer;
            letter-spacing: 0.03em;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
        }
        .collection-sidebar .btn-apply:hover {
            background: linear-gradient(180deg, #3daa73 0%, #0a5c40 100%);
            color: rgba(235, 252, 245, 1);
            border-color: rgba(80, 199, 135, 0.45);
        }

        /* Main column */
        .shop-main-col { flex: 1; min-width: 0; }

        /* Toolbar */
        .toolbar-products {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: var(--toolbar-gap);
            margin-bottom: 1.25rem;
            padding-bottom: 0.5rem;
        }
        .toolbar-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }
        .btn-filter-mobile {
            display: none;
            align-items: center;
            gap: 8px;
            background: var(--mid-green);
            color: #fff;
            border: none;
            padding: 0.45rem 0.9rem;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            font-size: 0.9rem;
        }
        @media (max-width: 1024px) {
            .btn-filter-mobile { display: inline-flex; }
        }
        .toolbar-amount {
            font-size: 0.95rem;
            color: #555;
        }

        .toolbar-center {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        @media (min-width: 1025px) {
            .toolbar-center { display: flex; }
        }
        .grid-mode-btn {
            width: 36px;
            height: 36px;
            border: 1px solid #ddd;
            background: #fff;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #666;
            transition: 0.2s;
        }
        .grid-mode-btn:hover { border-color: var(--light-green); color: var(--mid-green); }
        .grid-mode-btn.active {
            border-color: var(--mid-green);
            background: rgba(80, 199, 135, 0.12);
            color: var(--mid-green);
        }
        .grid-mode-btn svg { width: 18px; height: 18px; }

        .toolbar-sorter {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-inline-start: auto;
        }
        .sort-label {
            font-size: 0.9rem;
            color: #555;
            white-space: nowrap;
        }
        .sort-select {
            padding: 0.5rem 2rem 0.5rem 0.75rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: #fff;
            font-weight: 600;
            color: var(--dark-green);
            cursor: pointer;
            max-width: 200px;
        }
        [dir="rtl"] .sort-select {
            padding: 0.5rem 0.75rem 0.5rem 2rem;
        }

        /* Product grid */
        .products-grid {
            display: grid;
            gap: 22px;
            margin-bottom: 30px;
        }
        .products-grid.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .products-grid.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .products-grid.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        .products-grid.view-list {
            grid-template-columns: 1fr;
        }
        .products-grid.view-list .product-card {
            display: flex;
            flex-direction: row;
            align-items: stretch;
            max-width: 100%;
        }
        .products-grid.view-list .product-image-area {
            width: 200px;
            min-width: 200px;
            height: 0;
            padding-bottom: 56.25%; /* 1080 ÷ 1920 */
            overflow: hidden;
        }
        .products-grid.view-list .product-info {
            flex: 1;
            text-align: start;
            justify-content: center;
        }
        @media (max-width: 1024px) {
            .products-grid:not(.view-list) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
        }
        @media (max-width: 600px) {
            .products-grid:not(.view-list) { gap: 14px; }
        }

        .product-card {
            background: #fff;
            border-radius: 18px;
            overflow: hidden;
            transition: all 0.35s ease;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            cursor: pointer;
            opacity: 0;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        .product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(80, 199, 135, 0.18); }
        .product-card.entrance-animate { opacity: 1; animation: itemIn 0.5s ease both; }
        @keyframes itemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

        .product-image-area {
            background: var(--bg-color);
            flex-shrink: 0;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 1080 ÷ 1920 — 1920×1080 frame */
            position: relative;
            overflow: hidden;
        }
        .product-image-area img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            filter: drop-shadow(0 12px 12px rgba(0,0,0,0.2));
            transition: transform 0.35s ease, opacity 0.35s ease;
        }
        .product-image-area.product-image-dual.has-secondary .product-img-primary { z-index: 1; }
        .product-image-area.product-image-dual { position: relative; }
        .product-image-area.product-image-dual.has-secondary .product-img-secondary {
            z-index: 2;
            filter: drop-shadow(0 12px 12px rgba(0,0,0,0.2));
            opacity: 0;
            pointer-events: none;
        }
        .product-card:hover .product-image-dual.has-secondary .product-img-secondary,
        .product-image-dual.has-secondary.is-touch-active .product-img-secondary { opacity: 1; }
        .product-info {
            padding: 14px 16px 16px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: 1 1 auto;
            min-height: 0;
        }
        .product-code { font-size: 0.82rem; color: #666; font-weight: 700; letter-spacing: 1px; }
        .product-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--dark-green);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }
        .product-price { font-size: 1.2rem; font-weight: 900; color: var(--light-green); }
        .product-category {
            display: inline-block;
            margin: 0 auto;
            padding: 3px 10px;
            border-radius: 999px;
            background: rgba(80,199,135,0.17);
            color: var(--mid-green);
            font-weight: 700;
            font-size: 0.82rem;
        }
        .products-grid.view-list .product-category { margin: 0; }
        .add-to-cart-btn {
            width: 100%;
            border: none;
            border-radius: 999px;
            background: var(--light-green);
            color: var(--dark-green);
            font-weight: 700;
            padding: 10px;
            cursor: pointer;
            transition: 0.25s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .add-to-cart-btn:hover { background: var(--mid-green); color: #fff; transform: translateY(-1px); }
        .add-to-cart-btn svg { width: 18px; height: 18px; }

        .no-results { display: none; text-align: center; padding: 50px 15px; color: #666; }
        .no-results .icon { font-size: 3rem; margin-bottom: 10px; opacity: 0.55; }

        /* Pagination — matches toolbar / grid controls */
        .shop-pagination {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 28px auto 8px;
            padding: 14px 16px;
            max-width: 100%;
        }
        .shop-pagination:empty { display: none; margin: 0; padding: 0; }
        .pagination-inner {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .pagination-page-of {
            width: 100%;
            text-align: center;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--mid-green);
            margin-bottom: 4px;
        }
        .pagination-btn {
            min-width: 42px;
            height: 42px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1.5px solid rgba(11, 110, 79, 0.35);
            background: #fff;
            color: var(--dark-green);
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
            box-shadow: 0 2px 8px rgba(3, 28, 18, 0.06);
        }
        .pagination-btn:hover:not(:disabled) {
            background: rgba(80, 199, 135, 0.2);
            border-color: var(--mid-green);
            color: var(--dark-green);
            transform: translateY(-1px);
        }
        .pagination-btn.active {
            background: var(--light-green);
            border-color: var(--mid-green);
            color: var(--dark-green);
            box-shadow: 0 4px 14px rgba(11, 110, 79, 0.22);
        }
        .pagination-btn:disabled {
            opacity: 0.38;
            cursor: not-allowed;
            transform: none;
        }
        .pagination-btn.nav-pill {
            min-width: auto;
            padding: 0 18px;
        }
        .pagination-ellipsis {
            padding: 0 4px;
            font-weight: 700;
            color: var(--mid-green);
            user-select: none;
        }

        .back-to-home {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: fit-content;
            margin: 0 auto;
            padding: 12px 24px;
            border-radius: 999px;
            text-decoration: none;
            background: var(--light-green);
            color: var(--dark-green);
            font-weight: 700;
        }

        @media (max-width: 768px) {
            .shop-hero h1, .collection-hero h1 { font-size: 2.4rem; }
            .shop-hero p, .collection-hero p { font-size: 1.05rem; }
            .product-info { padding: 11px; gap: 8px; }
            .product-title { font-size: 0.95rem; -webkit-line-clamp: 3; }
            .product-price { font-size: 1rem; }
            .add-to-cart-btn { padding: 8px; font-size: 0.86rem; }
            .products-grid.view-list .product-card { flex-direction: column; }
            .products-grid.view-list .product-image-area { width: 100%; min-width: 0; height: 0; padding-bottom: 56.25%; }
        }

        .transition-overlay {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: #050505;
            opacity: 0;
            z-index: 99999;
            pointer-events: none;
            transition: opacity 0.5s ease-in-out;
        }
        .transition-overlay.active { opacity: 1; pointer-events: all; }

        /* Default collection toast (bottom). Shop-style toast: body[data-cart-toast="shop"] — uses navigator.css only */
        body:not([data-cart-toast="shop"]) .cart-notification {
            position: fixed;
            bottom: 30px;
            right: 30px;
            left: auto;
            background: var(--dark-green);
            color: #fff;
            padding: 16px 22px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
            z-index: 10001;
            transform: translateY(120%);
            opacity: 0;
            transition: transform 0.35s ease, opacity 0.35s ease;
            max-width: min(90vw, 360px);
        }
        body:not([data-cart-toast="shop"]) [dir="rtl"] .cart-notification {
            right: auto;
            left: 30px;
        }
        body:not([data-cart-toast="shop"]) .cart-notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        body:not([data-cart-toast="shop"]) .cart-notification .notification-content {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
        }
        body:not([data-cart-toast="shop"]) .cart-notification svg {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            color: var(--light-green);
        }
