    :root {
      --yellow: #FFD93D; --orange: #FF6B35; --pink: #FF4D8D;
      --teal: #00C9A7; --purple: #7B5EA7; --sky: #4FC3F7;
      --white: #fff; --dark: #1A1A2E; --light-bg: #FFF9F0;
      --card-radius: 24px;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { font-family: 'Nunito', sans-serif; background: var(--light-bg); color: var(--dark); overflow-x: hidden; }

    /* ─── BREADCRUMB ─── */
    .breadcrumb {
      padding: 14px 40px;
      font-size: 13px; color: #999;
      display: flex; align-items: center; gap: 6px;
      background: var(--white);
      border-bottom: 1px solid #f5e6ff;
    }
    .breadcrumb a { color: var(--pink); text-decoration: none; font-weight: 700; }
    .breadcrumb span { color: #ccc; }

    /* ─── PAGE LAYOUT ─── */
    .shop-wrap {
      display: flex;
      gap: 28px;
      padding: 32px 40px 60px;
      max-width: 1400px;
      margin: 0 auto;

      /* KEY: make the row itself a flex container that doesn't stretch taller than viewport */
      align-items: flex-start;
    }

    /* ─── SIDEBAR — STICKY ─── */
    .sidebar {
      width: 270px;
      flex-shrink: 0;

      /* ✅ Sticky sidebar */
      position: sticky;
      top: 24px;                   /* gap from top of viewport */
      max-height: calc(100vh - 48px);  /* never taller than the visible window */
      overflow-y: auto;            /* scroll internally when filters overflow */
      scroll-behavior: smooth;

      /* hide scrollbar visually but keep it functional */
      scrollbar-width: thin;
      scrollbar-color: #f0e6ff transparent;
    }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-track { background: transparent; }
    .sidebar::-webkit-scrollbar-thumb { background: #f0e6ff; border-radius: 4px; }

    .filter-card {
      background: var(--white);
      border-radius: var(--card-radius);
      padding: 24px;
      box-shadow: 0 4px 16px rgba(0,0,0,.06);
      margin-bottom: 20px;
    }
    .filter-title {
      font-family: 'Baloo 2', cursive;
      font-size: 17px; font-weight: 800;
      color: var(--dark);
      margin-bottom: 16px;
      display: flex; align-items: center;
      justify-content: space-between;
    }
    .filter-title button {
      background: none; border: none;
      font-size: 12px; color: var(--pink);
      font-weight: 700; cursor: pointer;
    }
    .filter-options { display: flex; flex-direction: column; gap: 10px; }
    .filter-check {
      display: flex; align-items: center; gap: 10px;
      cursor: pointer; font-size: 14px; font-weight: 600;
    }
    .filter-check input[type="checkbox"] {
      width: 18px; height: 18px; accent-color: var(--pink); cursor: pointer;
    }
    .filter-check .count { margin-left: auto; color: #bbb; font-size: 12px; }

    /* Price range */
    .price-range { margin-top: 12px; }
    .price-range input[type="range"] { width: 100%; accent-color: var(--pink); }
    .price-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #888; margin-top: 6px; }

    /* Color swatches */
    .color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
    .swatch {
      width: 30px; height: 30px; border-radius: 50%;
      cursor: pointer; border: 3px solid transparent;
      transition: transform .2s, border-color .2s;
    }
    .swatch:hover, .swatch.active { transform: scale(1.15); border-color: var(--dark); }

    /* ─── MAIN CONTENT — scrolls normally ─── */
    .main-content {
      flex: 1;
      min-width: 0;
      /* No overflow/height set here — it just flows with the page */
    }

    .shop-header {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 24px; flex-wrap: wrap; gap: 14px;
    }
    .shop-header h1 {
      font-family: 'Baloo 2', cursive;
      font-size: 32px; font-weight: 800;
      background: linear-gradient(135deg, var(--pink), var(--orange));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .shop-header .result-count { font-size: 14px; color: #aaa; font-weight: 600; }

    .sort-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .sort-select {
      padding: 10px 18px; border-radius: 50px;
      border: 2px solid #f0e6ff;
      font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
      color: var(--dark); background: var(--white);
      cursor: pointer; outline: none;
    }
    .view-toggle { display: flex; gap: 4px; }
    .view-btn {
      width: 38px; height: 38px; border-radius: 10px;
      border: 2px solid #f0e6ff; background: var(--white);
      cursor: pointer; font-size: 16px;
      display: flex; align-items: center; justify-content: center;
      transition: all .2s;
    }
    .view-btn.active { background: linear-gradient(135deg, var(--pink), var(--orange)); border-color: var(--pink); color: #fff; }

    /* Active filters row */
    .active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
    .filter-tag {
      display: flex; align-items: center; gap: 6px;
      background: #fff0f5; color: var(--pink);
      font-size: 13px; font-weight: 700;
      padding: 5px 14px; border-radius: 50px;
    }
    .filter-tag button { background: none; border: none; cursor: pointer; color: var(--pink); font-size: 14px; line-height: 1; }

    /* ─── PRODUCT GRID ─── */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }
    .product-card {
      background: var(--white);
      border-radius: var(--card-radius);
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,.06);
      transition: transform .25s, box-shadow .25s;
      position: relative;
    }
    .product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
    .product-img { height: 240px; position: relative; overflow: hidden; }
    .product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
    .product-card:hover .product-img img { transform: scale(1.06); }
    .prod-badge {
      position: absolute; top: 12px; left: 12px;
      background: var(--pink); color: #fff;
      font-size: 11px; font-weight: 800;
      padding: 4px 10px; border-radius: 20px; z-index: 2;
    }
    .prod-badge.new { background: var(--teal); }
    .prod-wish {
      position: absolute; top: 12px; right: 12px;
      width: 34px; height: 34px; border-radius: 50%;
      background: #fff; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.1);
      transition: transform .2s; z-index: 2;
    }
    .prod-wish:hover { transform: scale(1.2); }
    .quick-view {
      position: absolute; bottom: -44px; left: 0; right: 0;
      background: rgba(26,26,46,.85);
      backdrop-filter: blur(6px);
      color: #fff; font-weight: 800; font-size: 13px;
      border: none; cursor: pointer; padding: 14px;
      transition: bottom .25s; z-index: 2;
      text-align: center; text-decoration: none; display: block;
    }
    .product-card:hover .quick-view { bottom: 0; }
    .prod-body { padding: 16px; }
    .prod-body h4 { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
    .prod-body .age { font-size: 12px; color: #aaa; margin-bottom: 8px; }
    .stars { color: var(--yellow); font-size: 13px; }
    .rating-count { font-size: 12px; color: #aaa; margin-left: 4px; }
    .price-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
    .price { font-family: 'Baloo 2', cursive; font-size: 22px; font-weight: 800; color: var(--pink); }
    .price-old { font-size: 14px; color: #bbb; text-decoration: line-through; }
    .price-save { font-size: 12px; color: var(--teal); font-weight: 800; }
    .add-cart {
      width: 100%; padding: 12px;
      background: linear-gradient(135deg, var(--pink), var(--orange));
      color: #fff; font-weight: 800; font-size: 14px;
      border: none; border-radius: 14px; cursor: pointer;
      margin-top: 12px; transition: opacity .2s;
    }
    .add-cart:hover { opacity: .85; }

    /* ─── PAGINATION ─── */
    .pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
    .page-btn {
      width: 42px; height: 42px; border-radius: 12px;
      border: 2px solid #f0e6ff; background: var(--white);
      font-weight: 800; font-size: 14px; cursor: pointer; transition: all .2s;
    }
    .page-btn:hover, .page-btn.active {
      background: linear-gradient(135deg, var(--pink), var(--orange));
      border-color: var(--pink); color: #fff;
    }
    .page-btn.dots { border: none; background: none; cursor: default; color: #bbb; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 900px) {
      .shop-wrap { flex-direction: column; padding: 20px 16px 40px; }
      /* On mobile, sidebar is no longer sticky — it collapses into a toggle */
      .sidebar {
        width: 100%;
        position: static;         /* ✅ reset sticky on mobile */
        max-height: none;
        overflow-y: visible;
      }
      .filter-card { display: none; }
      .filter-card.show { display: block; }
      .mobile-filter-btn {
        display: flex; align-items: center; gap: 8px;
        padding: 12px 20px;
        background: linear-gradient(135deg, var(--pink), var(--orange));
        color: #fff; font-weight: 800; font-size: 14px;
        border: none; border-radius: 50px; cursor: pointer;
        margin-bottom: 16px;
      }
    }
    @media (min-width: 901px) { .mobile-filter-btn { display: none; } }
    @media (max-width: 600px) {
      .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .product-img { height: 170px; }
      .breadcrumb { padding: 12px 16px; }
    }
