﻿:root {
    --primary: #2f8f46;
    --primary-light: #eef8ec;
    --primary-mid: #cfeac8;
    --primary-dark: #1f6d36;
    --accent: #d99a2b;
    --accent-light: #fff3d2;
    --danger: #dc2626;
    --bg: #f7fbf4;
    --surface: #ffffff;
    --surface2: #f2f8ef;
    --border: #dfe9d9;
    --text: #17251a;
    --text-muted: #647268;
    --text-light: #93a091;
    --sidebar-w: 200px;
    --header-h: 68px;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-bengali: 'Segoe UI', 'Nirmala UI', Helvetica, 'Droid Sans', Arial, 'lucida grande', Tahoma, Verdana, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(41,88,52,0.08);
    --shadow: 0 4px 12px rgba(41,88,52,0.10);
    --shadow-lg: 0 8px 30px rgba(41,88,52,0.14);
    --transition: 0.18s ease;
  }
  [data-theme="dark"] {
    --bg: #0f1410;
    --surface: #1a2118;
    --surface2: #1f2a1e;
    --border: #2d3d2b;
    --text: #e8f0e6;
    --text-muted: #8fa889;
    --text-light: #566e52;
    --primary-light: #1a2f1e;
    --primary-mid: #1e3824;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
  }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; border: none; background: none; font-family: inherit; }
  input { font-family: inherit; }
  img { display: block; max-width: 100%; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

  /* === TOP ANNOUNCEMENT BAR === */
  .announce-bar {
    background: var(--primary);
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 6px 16px;
    font-family: var(--font-bengali);
    letter-spacing: 0.01em;
  }

  /* === HEADER === */
  .header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
  }
  .header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .logo {
    display: flex;
    flex-direction: column;
    min-width: 150px;
  }
  .logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
  }
  .logo-tagline {
    font-family: var(--font-bengali);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
  }
  .search-wrap {
    flex: 1;
    position: relative;
    max-width: 600px;
  }
  .search-input {
    width: 100%;
    height: 40px;
    border: 2px solid var(--primary-mid);
    border-radius: 8px;
    padding: 0 40px 0 16px;
    font-size: 13.5px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  .search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47,143,70,0.14);
    background: var(--surface);
  }
  .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }
  .search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
  }
  .search-result-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background var(--transition);
  }
  .search-result-item:hover { background: var(--primary-light); }
  .search-result-img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .search-result-info { flex: 1; }
  .search-result-name { font-size: 12px; font-weight: 500; line-height: 1.25; }
  .search-result-meta {
    display: block;
    margin-top: 1px;
    font-size: 10.5px;
    color: var(--text-light);
    line-height: 1.2;
  }
  .search-result-price { font-size: 11.5px; color: var(--primary); font-weight: 700; }
  .search-result-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
  }
  .search-result-price-old {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .hdr-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
  }
  .hdr-btn:hover { background: var(--surface2); color: var(--primary); }
  .hdr-btn svg { width: 22px; height: 22px; }
  .hdr-btn-badge {
    position: relative;
  }
  .hdr-btn-badge .badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
  }
  .cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition), transform var(--transition);
    position: relative;
  }
  .cart-btn:hover { background: var(--primary-dark); }
  .rm-lang-switch {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 82px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface2);
    padding: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
  }
  .rm-lang-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: var(--primary);
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
  }
  .rm-lang-switch::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 20px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #56b86b;
    border: 2px solid var(--surface);
    box-shadow: 0 2px 8px rgba(16,185,129,0.45);
    transition: transform var(--transition);
  }
  html[data-lang="en"] .rm-lang-switch::before { transform: translateX(100%); }
  html[data-lang="en"] .rm-lang-switch::after { transform: translateX(40px); }
  .rm-lang-option {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 30px;
  }
  html[data-lang="bn"] .rm-lang-option-bn,
  html[data-lang="en"] .rm-lang-option-en { color: #fff; }
  html[data-lang="bn"] .rm-i18n-en,
  html[data-lang="en"] .rm-i18n-bn { display: none !important; }
  html[data-lang="bn"] body {
    font-family: var(--font-bengali);
    font-size: 15px;
    line-height: 1.62;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
  }
  html[data-lang="bn"] .rm-i18n-bn {
    font-family: var(--font-bengali);
    line-height: 1.55;
  }
  .cart-btn:active { transform: scale(0.97); }
  .cart-btn svg { width: 18px; height: 18px; }
  .cart-total { font-size: 12px; opacity: 0.9; }

  /* category nav bar removed — categories live in sidebar */

  /* === LAYOUT === */
  .app-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 68px);
    overflow: visible;
  }

  /* === SIDEBAR === */
  .sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 68px;
    height: calc(100vh - 118px);
    margin-bottom: 50px;
    padding-bottom: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 30;
  }
  .sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 10px 16px 4px;
  }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    min-height: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border-left: 2px solid transparent;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    font-family: inherit;
    width: 100%;
    text-align: left;
  }
  .sidebar-item:hover { background: var(--primary-light); color: var(--primary); }
  .sidebar-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
  .sidebar-item-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
  .sidebar-cat-group { position: static; }
  .sidebar-parent-row {
    display: flex;
    align-items: stretch;
    position: relative;
  }
  .sidebar-parent {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
  }
  .sidebar-subtoggle {
    width: 34px;
    flex: 0 0 34px;
    border: 0;
    border-left: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-size: 19px;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--transition), transform var(--transition), background var(--transition);
  }
  .sidebar-cat-group:hover .sidebar-subtoggle,
  .sidebar-subtoggle:hover { color: var(--primary); background: var(--primary-light); }
  .sidebar-cat-group.is-open .sidebar-subtoggle { transform: rotate(90deg); color: var(--primary); }
  .sidebar-submenu {
    position: fixed;
    top: var(--flyout-top, 92px);
    left: var(--flyout-left, var(--sidebar-w));
    z-index: 80;
    width: 230px;
    max-height: calc(100vh - var(--flyout-top, 92px) - 28px);
    overflow-y: auto;
    min-height: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .sidebar-cat-group:hover > .sidebar-submenu,
  .sidebar-cat-group.is-open > .sidebar-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
  .sidebar-subitem {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
  }
  .sidebar-subitem:hover,
  .sidebar-subitem.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
  .sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }

  @media (max-width: 1024px) {
    .mobile-drawer .sidebar-item {
      min-height: 46px;
      padding: 8px 14px;
      font-size: 17px;
    }
    .mobile-drawer .sidebar-item-icon {
      width: 28px;
      font-size: 20px;
    }
    .mobile-drawer .sidebar-cat-group {
      position: relative;
    }
    .mobile-drawer .sidebar-subtoggle {
      width: 40px;
      flex-basis: 40px;
      font-size: 26px;
    }
    .mobile-drawer .sidebar-cat-group.is-open .sidebar-subtoggle {
      transform: rotate(90deg);
    }
    .rm-drawer-links .sidebar-submenu {
      position: static;
      width: auto;
      min-width: 0;
      min-height: 0;
      margin: 0 10px 6px 46px;
      padding: 4px 0 6px 10px;
      box-shadow: none;
      border: 0;
      border-left: 1px solid var(--border);
      border-radius: 8px;
      opacity: 1;
      visibility: visible;
      transform: none;
      pointer-events: auto;
      display: none;
    }
    .rm-drawer-links .sidebar-cat-group:hover > .sidebar-submenu {
      display: none;
    }
    .rm-drawer-links .sidebar-cat-group.is-open > .sidebar-submenu {
      display: flex;
    }
    .rm-drawer-links .sidebar-parent-row {
      align-items: center;
    }
    .rm-drawer-links .sidebar-subtoggle {
      min-height: 38px;
    }
    .mobile-drawer .sidebar-subitem {
      padding: 8px 0;
      font-size: 15px;
      color: var(--text-muted);
    }
  }

  /* === MAIN CONTENT === */
  .main-content {
    flex: 1;
    padding: 16px;
    min-width: 0;
    overflow: hidden;
  }

  /* === SUBCATEGORY PILLS === */
  .subcat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin-bottom: 4px;
  }
  .subcat-pills::-webkit-scrollbar { display: none; }
  .subcat-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--surface);
    font-family: inherit;
    flex-shrink: 0;
  }
  .subcat-pill:hover { border-color: var(--primary); color: var(--primary); }
  .subcat-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

  /* === SECTION HEADER === */
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    margin-top: 4px;
  }
  .section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
  }
  .view-all-link {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .rm-catalog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
  }
  .rm-catalog-title {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
  }
  .rm-catalog-count {
    font-size: 12px;
    color: var(--text-light);
  }
  .rm-category-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 360px);
  }
  .rm-category-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
  }
  .rm-category-search button {
    height: 40px;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
  }
  .rm-cat-search-toggle {
    display: none;
  }
  .rm-catalog-empty {
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface);
  }
  .view-all-link:hover { text-decoration: underline; }

  /* === PRODUCT GRID === */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }

  /* === PRODUCT CARD === */
  .product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 10px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
    overflow: visible;
  }
  .product-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-mid);
    transform: translateY(-1px);
  }
  .rm-product-card-placeholder {
    visibility: hidden;
    pointer-events: none;
    min-height: 100%;
  }
  .product-img-wrap {
    aspect-ratio: 1;
    background: var(--surface2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: visible;
    position: relative;
  }
  .product-img-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
  }
  .product-img-inner {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--surface2);
    overflow: hidden;
  }
  .product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
  }
  .badge-sale { background: var(--danger); color: white; }
  .badge-new { background: var(--primary); color: white; }
  .badge-organic { background: #7aa342; color: white; }
  .product-wishlist {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
  }
  .product-card:hover .product-wishlist { opacity: 1; }
  .product-wishlist:hover { transform: scale(1.15); }
  .product-wishlist.wishlisted { opacity: 1; color: #ef4444; }
  .product-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 3px;
  }
  html[data-lang="bn"] .product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
  }
  .product-unit {
    font-size: 11px;
    color: var(--text-light);
  }
  html[data-lang="bn"] .product-unit-volume {
    display: none !important;
  }
  .product-price-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.55;
    min-height: 30px;
    padding: 3px 0 4px;
    overflow: visible;
  }
  .product-price-row .rm-i18n,
  .product-price-row bdi {
    line-height: 1.55;
  }
  .product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
  }
  .product-price-old {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
  }
  /* === CIRCULAR ADD / QTY BUTTON (overlaps image corner) === */
  .product-circle-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    font-weight: 400;
    display: grid !important;
    place-items: center;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    transition: background var(--transition), color var(--transition), transform var(--transition), width var(--transition), border-radius var(--transition);
    line-height: 1;
    font-family: inherit;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
  }
  .product-circle-btn { transform: none; }
  .product-circle-btn.is-hidden { display: none !important; }
  .product-circle-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
  }

  /* Expanded stepper that replaces the circle on hover when qty>0 */
  .product-circle-stepper {
    position: absolute;
    bottom: -14px;
    right: 6px;
    height: 34px;
    border-radius: 17px;
    border: 2px solid var(--primary);
    background: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    font-family: inherit;
    overflow: hidden;
    /* collapsed = just a circle showing count */
    width: 34px;
    opacity: 0;
    pointer-events: none;
    transition: width 0.22s cubic-bezier(0.34,1.56,0.64,1);
  }
  .product-circle-stepper.is-active {
    opacity: 1;
    pointer-events: auto;
  }
  .product-card:hover .product-circle-stepper {
    width: 90px;
  }
  .stepper-minus,
  .stepper-plus {
    width: 28px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    background: none;
    border: none;
    color: var(--primary);
    transition: background var(--transition);
    font-family: inherit;
    opacity: 0;
    transition: opacity 0.15s ease 0s;
  }
  .product-card:hover .stepper-minus,
  .product-card:hover .stepper-plus {
    opacity: 1;
    transition: opacity 0.15s ease 0.1s;
  }
  .stepper-minus:hover, .stepper-plus:hover { background: var(--primary-light); }
  .stepper-count {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
  }

  /* qty badge — collapsed state (no hover) */
  .product-circle-qty {
    position: absolute;
    bottom: -14px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: inherit;
    pointer-events: none;
  }

  /* === FLOATING CART === */
  .cart-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(360px, 100vw);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .cart-panel.open { transform: translateX(0); }
  .cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .cart-overlay.open { opacity: 1; pointer-events: all; }
  .cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
  }
  .cart-header-title { font-size: 17px; font-weight: 800; }
  .cart-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: background var(--transition);
    border: none;
    background: none;
  }
  .cart-close:hover { background: var(--surface2); color: var(--text); }
  .cart-panel-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .cart-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .cart-item-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
  .cart-item-info { flex: 1; min-width: 0; }
  .cart-item-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
  .cart-item-price { font-size: 12.5px; font-weight: 800; color: var(--primary); margin-top: 3px; }
  .cart-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0;
  }
  .cart-remove:hover { color: var(--danger); border-color: var(--danger); }
  .cart-item-ctrl {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all var(--transition);
    font-family: inherit;
  }
  .cart-qty-btn:hover { border-color: var(--primary); color: var(--primary); }
  .cart-qty-num { font-size: 12px; font-weight: 700; min-width: 15px; text-align: center; }
  .cart-footer {
    padding: 14px 18px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
  }
  .cart-summary-row.total {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
  }
  .cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
  }
  .view-cart-link {
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
  }
  .checkout-btn {
    width: 100%;
    min-height: 42px;
    background: var(--primary);
    color: white;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition);
    display: grid;
    place-items: center;
  }
  .checkout-btn:hover { background: var(--primary-dark); }
  .empty-cart {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 40px 20px;
    text-align: center;
  }
  .empty-cart-icon { font-size: 48px; }
  .empty-cart-text { font-size: 14px; font-weight: 500; }
  .empty-cart-sub { font-size: 12px; color: var(--text-light); }

  /* === PRODUCT DETAIL MODAL === */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal-box {
    background: var(--surface);
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    transform: scale(0.95);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-overlay.open .modal-box { transform: scale(1); }
  .modal-sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
  }
  .modal-img-col {
    width: 400px;
    flex-shrink: 0;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    padding: 42px 34px;
    border-right: 1px solid var(--border);
  }
  .modal-img-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .modal-info-col { flex: 1; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-muted);
    z-index: 5;
    transition: background var(--transition);
  }
  .modal-close:hover { background: var(--surface2); }
  .modal-name { font-size: 20px; font-weight: 700; line-height: 1.3; }
  .modal-meta { font-size: 12px; color: var(--text-muted); }
  .modal-price { font-size: 26px; font-weight: 800; color: var(--primary); }
  .modal-price-old { font-size: 14px; color: var(--text-light); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
  .modal-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .modal-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    min-width: 180px;
  }
  .modal-qty-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    font-weight: 700;
    background: var(--surface2);
    border: none;
    font-family: inherit;
    color: var(--text);
    transition: background var(--transition);
  }
  .modal-qty-btn:hover { background: var(--primary-light); color: var(--primary); }
  .modal-qty-num {
    width: 56px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    background: var(--surface);
    border: none;
    outline: none;
    color: var(--text);
  }
  .modal-add-btn {
    flex: 1;
    height: 46px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition);
  }
  .modal-add-btn:hover { background: var(--primary-dark); }
  .rm-quick-view-target { width: min(94vw, 760px); }
  .rm-quick-loading {
    display: flex;
    min-height: 140px;
    align-items: center;
    justify-content: center;
    padding: 28px;
  }
  .rm-quick-view-box { position: relative; }
  .modal-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .modal-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 10px;
    padding-right: 54px;
  }
  .modal-subline {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .modal-price-wrap {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .modal-price-wrap .amount,
  .modal-price-wrap bdi {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
  }
  .modal-price-wrap del {
    color: var(--text-light);
    margin-right: 8px;
    opacity: 0.95;
  }
  .modal-price-wrap del .amount,
  .modal-price-wrap del bdi {
    color: var(--text-light) !important;
    font-size: 18px;
    font-weight: 600;
  }
  .modal-price-wrap ins .amount,
  .modal-price-wrap ins bdi {
    color: var(--primary);
  }
  .modal-price-wrap ins {
    text-decoration: none;
  }
  .modal-content {
    flex: 1;
    min-width: 0;
    padding: 32px 32px 28px;
  }
  .modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
  }
  .modal-divider { height: 1px; background: var(--border); margin: 14px 0; }
  .modal-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 0; }
  .rm-desc-formatted {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
  }
  .rm-desc-lead {
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
  }
  .rm-desc-formatted h3 {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--primary);
    line-height: 1.35;
  }
  .rm-desc-formatted p { margin: 0; }
  .rm-desc-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) 1fr;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
  }
  .rm-desc-row strong {
    color: var(--text);
    font-size: 12px;
  }
  .rm-desc-row span { min-width: 0; }
  .modal-qty-row-after {
    position: sticky;
    bottom: -28px;
    z-index: 4;
    margin: 16px -32px -28px;
    padding: 14px 32px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }
  .rm-single-cart-after-desc {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .modal-tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .modal-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
  }
  .modal-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .modal-wishlist span:first-child {
    font-size: 28px;
    line-height: 1;
  }

  /* === CATEGORY ICON GRID === */
  .cat-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }
  .cat-icon-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
  }
  .cat-icon-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .cat-icon-card .icon { font-size: 28px; }
  .cat-icon-card .name { font-size: 11.5px; font-weight: 500; color: var(--text-muted); line-height: 1.2; }
  .cat-icon-card:hover .name { color: var(--primary); }

  /* === POPULAR ARC GALLERY === */
  .popular-arc {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    margin: 0 0 24px;
    padding: 12px 0 18px;
    border-radius: var(--radius);
    background: #102616;
    color: #fff;
    isolation: isolate;
  }
  .popular-arc-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90,177,105,0.42) 0%, transparent 70%);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
  }
  .popular-arc-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    margin: 6px 16px 18px;
    background: linear-gradient(135deg, #fff 0%, #d7efcf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    user-select: none;
  }
  .popular-arc-scene {
    width: 100%;
    height: clamp(260px, 42vh, 420px);
    perspective: 900px;
    perspective-origin: 50% 45%;
    position: relative;
    cursor: default;
    touch-action: pan-y;
  }
  .popular-arc-scene.dragging { cursor: grabbing; }
  .popular-arc-gesture-zone {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 34%;
    z-index: 30;
    cursor: grab;
    touch-action: none;
  }
  .popular-arc-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
  }
  .popular-arc-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(124px, 18vw, 190px);
    height: clamp(160px, 24vw, 240px);
    margin-top: calc(clamp(160px, 24vw, 240px) / -2);
    margin-left: calc(clamp(124px, 18vw, 190px) / -2);
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    color: #fff;
    padding: 0;
    text-align: left;
  }
  .popular-arc-add {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid #b7e6a3;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 23px;
    line-height: 1;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    transform-style: preserve-3d;
    will-change: transform;
  }
  .popular-arc-add:hover {
    background: #b7e6a3;
    color: #17351f;
  }
  .popular-arc-card.is-front {
    box-shadow: 0 0 40px rgba(110,231,183,0.35), 0 20px 60px rgba(0,0,0,0.6);
  }
  .popular-arc-emoji {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(58px, 8vw, 96px);
    background:
      radial-gradient(circle at 50% 35%, rgba(255,255,255,0.18), transparent 46%),
      linear-gradient(145deg, rgba(74,151,70,0.88), rgba(19,53,30,0.94));
    pointer-events: none;
  }
  .popular-arc-no-img {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(42px, 7vw, 72px);
    background:
      radial-gradient(circle at 50% 35%, rgba(255,255,255,0.18), transparent 46%),
      linear-gradient(145deg, rgba(74,151,70,0.88), rgba(19,53,30,0.94));
    pointer-events: none;
  }
  .popular-arc-card-body {
    height: 30%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .popular-arc-name {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .popular-arc-price {
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    font-weight: 700;
    color: #b7e6a3;
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    line-height: 1.15;
  }
  .popular-arc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 16px;
    position: relative;
    z-index: 10;
  }
  .popular-arc-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .popular-arc-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.45); }
  .popular-arc-btn:active { transform: scale(0.9); }
  .popular-arc-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .popular-arc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    padding: 0;
  }
  .popular-arc-dot.active {
    background: #b7e6a3;
    transform: scale(1.4);
  }
  .popular-arc-hint {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
    user-select: none;
    text-align: center;
  }
  .popular-arc-pause {
    display: none;
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* === DEAL BANNER === */
  .deal-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    overflow: hidden;
    position: relative;
  }
  .deal-banner::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
  }
  .deal-banner::after {
    content: '';
    position: absolute;
    right: 40px;
    bottom: -40px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
  }
  .deal-banner-left { position: relative; z-index: 1; }
  .deal-banner-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
  }
  .deal-banner-title { font-size: 18px; font-weight: 800; }
  .deal-banner-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }
  .deal-banner-btn {
    background: white;
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    z-index: 1;
    transition: transform var(--transition);
    flex-shrink: 0;
  }
  .deal-banner-btn:hover { transform: scale(1.04); }

  /* === CHECKOUT / ACCOUNT PAGES === */
  .page-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
  }
  .form-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 16px;
  }
  .form-card-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-group { display: flex; flex-direction: column; gap: 5px; }
  .form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .form-input {
    height: 38px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
    background: var(--surface2);
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition);
  }
  .form-input:focus { border-color: var(--primary); background: var(--surface); }
  .form-full { grid-column: 1 / -1; }
  .submit-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition);
    margin-top: 8px;
  }
  .submit-btn:hover { background: var(--primary-dark); }

  /* Order summary in checkout */
  .order-summary {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
  }
  .order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
  }
  .order-summary-item:last-of-type { border-bottom: none; }
  .order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--border);
  }

  /* Account page */
  .account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 20px; }
  .account-sidebar {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 16px 0;
    height: fit-content;
  }
  .account-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
  }
  .account-name { font-size: 13px; font-weight: 600; }
  .account-email { font-size: 11px; color: var(--text-muted); }
  .account-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border-left: 2px solid transparent;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    font-family: inherit;
    width: 100%;
    text-align: left;
  }
  .account-nav-item:hover { background: var(--primary-light); color: var(--primary); }
  .account-nav-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
  .account-main { display: flex; flex-direction: column; gap: 16px; }
  .order-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 16px;
  }
  .order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .order-id { font-size: 13px; font-weight: 700; }
  .order-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
  .order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
  }
  .status-delivered { background: var(--primary-light); color: var(--primary); }
  .status-processing { background: var(--accent-light); color: #92400e; }
  .order-products { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  .order-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .order-total { font-size: 14px; font-weight: 700; }
  .reorder-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 7px;
    padding: 5px 14px;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
  }
  .reorder-btn:hover { background: var(--primary); color: white; }

  /* Wishlist */
  .wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
  }

  /* === TOAST === */
  .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text);
    color: var(--surface);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 500;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* === FILTER BAR === */
  .filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .filter-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
  .sort-select {
    height: 32px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12.5px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    margin-left: auto;
  }
  .sort-select:focus { border-color: var(--primary); }

  /* Load more sentinel */
  .load-sentinel {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    gap: 8px;
  }
  .load-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Back to top */
  .back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 18px;
    font-family: inherit;
  }
  .back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  .back-to-top.is-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
  }
  .back-to-top:hover { background: var(--primary-dark); }

  /* Delivery info strip */
  .info-strip {
    display: flex;
    gap: 0;
    background: var(--primary-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--primary-mid);
  }
  .info-strip-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-dark);
    border-right: 1px solid var(--primary-mid);
  }
  .info-strip-item:last-child { border-right: none; }
  .info-strip-icon { font-size: 18px; flex-shrink: 0; }

  /* Footer */
  .site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 20px 20px;
    margin-top: 40px;
  }
  .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
  }
  .footer-brand-name { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
  .footer-tagline { font-family: var(--font-bengali); font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
  .footer-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
  .footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 12px; }
  .footer-link {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 7px;
    cursor: pointer;
    transition: color var(--transition);
  }
  .footer-link:hover { color: var(--primary); }
  .footer-bottom {
    max-width: 1400px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Mobile note */
  /* === MOBILE DRAWER === */
  .mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 250;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .mobile-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--surface);
    z-index: 260;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
    padding: 0 0 24px;
  }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer-overlay.open { display: block; opacity: 1; pointer-events: all; }
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--surface);
    z-index: 1;
  }
  .drawer-logo { font-size: 16px; font-weight: 800; color: var(--primary); }
  .drawer-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    background: none; border: none; font-size: 20px;
    transition: background var(--transition);
  }
  .drawer-close:hover { background: var(--surface2); }
  .hamburger {
    display: none;
    width: 36px; height: 36px;
    border-radius: 8px;
    align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    background: none; border: none;
    transition: background var(--transition);
    flex-shrink: 0;
  }
  .hamburger:hover { background: var(--surface2); }
  .checkout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }

  /* ============================================================
     MOBILE — separate UI below 900px; desktop untouched above
  ============================================================ */
  .mobile-header { display: none; }
  .mobile-bottom-nav { display: none; }
  .mobile-search-overlay { display: none; }
  .m-search-overlay-bg { display: none; }
  .mobile-cat-masonry { display: none; }

  @media (max-width: 1024px) {
    .header { display: none; }
    .announce-bar { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: flex; }
    body { padding-top: 82px; padding-bottom: 70px; }
    .sidebar { display: none; }
    .app-layout { display: block; }
    .main-content { padding: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .rm-catalog-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 22px;
      gap: 8px;
      align-items: center;
      margin-bottom: 12px;
      overflow: visible;
    }
    .rm-catalog-head > div:first-child { min-width: 0; overflow: hidden; }
    .rm-catalog-title {
      font-size: 20px;
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 4px;
    }
    html[data-lang="bn"] .rm-catalog-title { font-size: 19px; }
    .rm-catalog-count {
      font-size: 11px;
      white-space: nowrap;
    }
    .rm-cat-search-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border: none;
      border-radius: 999px;
      background: transparent;
      color: var(--primary);
      padding: 0;
      justify-self: end;
    }
    .rm-cat-search-toggle svg {
      width: 16px;
      height: 16px;
      transition: transform var(--transition);
    }
    .rm-catalog-head.is-search-open .rm-cat-search-toggle svg {
      transform: rotate(180deg);
    }
    .rm-category-search {
      min-width: 0;
      width: 100%;
      gap: 6px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 52px;
      grid-column: 1 / -1;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transition: max-height 0.22s ease, opacity 0.18s ease, margin-top 0.22s ease;
    }
    .rm-catalog-head.is-search-open .rm-category-search {
      max-height: 42px;
      opacity: 1;
      pointer-events: auto;
      margin-top: 2px;
    }
    .rm-category-search input {
      height: 38px;
      padding: 0 10px;
      font-size: 12px;
      width: 100%;
    }
    .rm-category-search button {
      height: 38px;
      width: 52px;
      padding: 0;
      font-size: 11.5px;
      white-space: nowrap;
    }
    .product-card {
      padding: 8px 8px 16px;
      gap: 7px;
      min-height: 336px;
      height: auto;
      overflow: visible;
    }
    .product-img-wrap {
      aspect-ratio: 1 / 0.86;
      flex: 0 0 auto;
    }
    .product-info {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      min-height: 94px;
      padding-bottom: 8px;
      overflow: visible;
    }
    .product-name {
      display: block !important;
      -webkit-line-clamp: unset !important;
      -webkit-box-orient: initial !important;
      overflow: visible !important;
      max-height: none !important;
      height: auto !important;
      min-height: 0;
      padding-bottom: 2px;
      margin-bottom: 0;
      font-size: 12.5px;
      line-height: 1.5;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: normal;
    }
    html[data-lang="bn"] .product-name {
      font-size: 13px;
      line-height: 1.55;
    }
    .product-unit { display: none !important; }
    .product-price-row {
      min-height: 34px;
      line-height: 1.6;
      padding-top: 4px;
      padding-bottom: 6px;
      align-items: flex-start;
    }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .modal-box { flex-direction: column; }
    .modal-img-col { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid var(--border); font-size: 64px; padding: 20px; }
    .account-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .info-strip { display: none; }
    .info-strip-item { min-width: 45%; }
    .checkout-grid { grid-template-columns: 1fr !important; }
    .page-container { padding: 12px; }
    .cat-icon-grid { grid-template-columns: repeat(4, 1fr); }
    .deal-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
  }
  @media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .rm-catalog-head { grid-template-columns: minmax(0, 1fr) 22px; }
    .rm-catalog-title { font-size: 19px; }
    html[data-lang="bn"] .rm-catalog-title { font-size: 18px; }
    .rm-category-search { grid-template-columns: minmax(0, 1fr) 48px; }
    .rm-category-search input { font-size: 11px; }
    .rm-category-search button {
      width: 48px;
      font-size: 10.5px;
    }
    .product-card { min-height: 342px; }
    .product-info { min-height: 100px; padding-bottom: 10px; }
    .product-name { font-size: 12px; line-height: 1.5; }
    html[data-lang="bn"] .product-name { font-size: 12.75px; line-height: 1.55; }
    .footer-inner { grid-template-columns: 1fr; }
    .cat-icon-grid { grid-template-columns: repeat(3, 1fr); }
    .modal-box { max-height: 95vh; }
    .modal-content { padding: 20px 16px 18px; }
    .modal-qty-row { flex-direction: column; align-items: stretch; }
    .modal-qty-ctrl { width: 100%; min-width: 0; }
    .modal-add-btn { width: 100%; }
    .modal-title { font-size: 20px; padding-right: 44px; }
    .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 22px; }
  }

  /* === MOBILE HEADER === */
  .mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 38px;
    grid-template-rows: 38px 18px;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
  }
  .mobile-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
  }
  .mobile-logo {
    display: grid;
    grid-template-rows: 18px 18px;
    align-items: center;
    font-size: 19px; font-weight: 900;
    color: var(--primary); letter-spacing: 0;
    text-align: left; cursor: pointer;
    line-height: 1;
    text-transform: none;
  }
  .mobile-logo span:first-child {
    grid-row: 1;
  }
  .mobile-logo span:last-child {
    grid-row: 2;
  }
  .m-icon-btn {
    grid-column: 3;
    grid-row: 1;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    background: none; border: none;
    transition: background var(--transition), color var(--transition);
    position: relative; flex-shrink: 0;
  }
  .m-icon-btn:hover { background: var(--surface2); color: var(--primary); }
  .mobile-search-wrap {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: none;
    position: relative;
  }
  .mobile-slogan-box {
    grid-column: 2 / 4;
    grid-row: 2;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    transition: opacity var(--transition), max-height var(--transition), padding var(--transition), margin var(--transition), border-color var(--transition);
  }
  .mobile-slogan {
    min-width: 0;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-bengali);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    max-height: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-header:has(.mobile-search-wrap.is-searching) .mobile-slogan-box {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
  }
  .mobile-search-input {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--primary-mid);
    background: var(--surface2);
    color: var(--text);
    display: block;
    padding: 0 36px 0 12px;
    font-size: 11.25px;
    font-weight: 500;
  }
  .mobile-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47,143,70,0.10);
    background: var(--surface);
  }
  .mobile-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }
  .mobile-search-btn svg {
    color: var(--primary);
  }

  /* === MOBILE BOTTOM NAV === */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
    align-items: stretch;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  .m-nav-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; cursor: pointer;
    color: var(--text-light);
    border: none; background: none;
    font-family: inherit; padding: 8px 4px;
    transition: color var(--transition);
    text-decoration: none;
  }
  .m-nav-control { appearance: none; }
  .m-nav-account-slot {
    position: relative;
    padding: 4px 3px 6px;
  }
  .m-nav-account-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-width: 0;
  }
  .m-nav-account-lang {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 2;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1;
  }
  .m-nav-item.active { color: var(--primary); }
  .m-nav-item svg { width: 22px; height: 22px; }
  .m-nav-label { font-size: 10px; font-weight: 600; line-height: 1; }
  .m-nav-lang-pill {
    position: relative;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    font-size: 8px;
    font-weight: 800;
    color: var(--text-light);
    overflow: hidden;
  }
  .m-nav-lang-pill::before {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: 16px;
    border-radius: 999px;
    background: var(--primary);
    transition: transform var(--transition);
  }
  html[data-lang="en"] .m-nav-lang-pill::before { transform: translateX(16px); }
  .m-nav-lang-pill span {
    position: relative;
    z-index: 1;
    text-align: center;
  }
  html[data-lang="bn"] .m-nav-lang-pill span:first-child,
  html[data-lang="en"] .m-nav-lang-pill span:last-child { color: #fff; }
  .m-nav-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .m-nav-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }
  @media (max-width: 1024px) {
    .back-to-top {
      bottom: 94px;
      right: 16px;
    }
    .popular-arc {
      min-height: 306px;
      margin-bottom: 16px;
      padding: 8px 0 0;
      border-radius: 8px;
    }
    .popular-arc-title {
      font-size: 24px;
      margin: 8px 12px 18px;
    }
    .popular-arc-scene {
      height: 245px;
      perspective: 760px;
    }
    .popular-arc-gesture-zone {
      height: 80px;
    }
    .popular-arc-card {
      width: 158px;
      height: 218px;
      margin-top: -109px;
      margin-left: -79px;
      border-radius: 14px;
      transition: box-shadow 0.3s ease, filter 0.3s ease;
    }
    .popular-arc-card.is-thumbnail {
      border-radius: 12px;
      box-shadow: none;
    }
    .popular-arc-card.is-thumbnail .popular-arc-card-body {
      opacity: 0.58;
    }
    .popular-arc-card.is-front {
      filter: none !important;
    }
    .popular-arc-emoji {
      height: 68%;
      max-height: none;
      font-size: 54px;
    }
    .popular-arc-card-body {
      height: 32%;
      padding: 9px 10px;
      gap: 5px;
    }
    .popular-arc-name {
      font-size: 15px;
      line-height: 1.18;
      white-space: normal;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .popular-arc-price {
      font-size: 14px;
      line-height: 1.15;
      gap: 6px;
    }
    .popular-arc-controls { display: none; }
    .popular-arc-btn { display: none; }
    .popular-arc-add {
      width: 38px;
      height: 38px;
      font-size: 25px;
      border-width: 2px;
    }
    .popular-arc-dots {
      gap: 4px;
    }
    .popular-arc-dot {
      width: 5px;
      height: 5px;
    }
    .popular-arc-hint {
      display: none;
    }
    .popular-arc-pause {
      display: flex;
      bottom: 26px;
    }
    .popular-arc-glow {
      width: 240px;
      height: 240px;
    }
    .mobile-cat-masonry {
      display: none !important;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-auto-rows: 42px;
      gap: 7px;
      margin: 0 0 14px;
    }
    .mobile-cat-thumb {
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 2px;
      padding: 5px;
      min-width: 0;
      box-shadow: var(--shadow-sm);
      font-family: inherit;
    }
    .mobile-cat-thumb.active,
    .mobile-cat-thumb:hover {
      border-color: var(--primary);
      background: var(--primary-light);
      color: var(--primary);
    }
    .mobile-cat-thumb-0,
    .mobile-cat-thumb-3 {
      grid-row: span 2;
    }
    .mobile-cat-thumb-1,
    .mobile-cat-thumb-4 {
      grid-column: span 2;
    }
    .mobile-cat-thumb-icon {
      font-size: 20px;
      line-height: 1;
    }
    .mobile-cat-thumb-name {
      max-width: 100%;
      font-size: 9px;
      font-weight: 700;
      line-height: 1.05;
      text-align: center;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  }

  /* === MOBILE SEARCH OVERLAY (slides up from bottom nav) === */
  .m-search-overlay-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
  }
  .m-search-overlay-bg.open { display: block; }
  .mobile-search-overlay {
    position: fixed;
    bottom: 64px; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 200;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    max-height: 72vh;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  .mobile-search-overlay.open {
    display: flex;
    transform: translateY(0);
  }
  .m-search-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
    position: relative;
  }
  .m-search-bar::before {
    content: '';
    position: absolute;
    inset: 8px 58px 8px 44px;
    border-radius: 14px;
    pointer-events: none;
    box-shadow:
      0 0 0 1px rgba(47,143,70,0.16),
      0 0 18px rgba(47,143,70,0.16),
      inset 0 0 14px rgba(47,143,70,0.07);
  }
  .m-search-input {
    flex: 1; height: 42px;
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: 0 14px; font-size: 14px;
    background: rgba(249,250,251,0.72); color: var(--text);
    outline: none; font-family: inherit;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    position: relative;
    z-index: 1;
  }
  .m-search-input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(47,143,70,0.10);
  }
  .m-search-cancel {
    font-size: 13px; font-weight: 600; color: var(--primary);
    background: none; border: none; cursor: pointer;
    font-family: inherit; white-space: nowrap; padding: 4px;
  }
  .m-search-results { overflow-y: auto; flex: 1; }
  .m-search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background var(--transition);
  }
  .m-search-result-item:hover { background: var(--primary-light); }
  .m-search-result-emoji {
    font-size: 26px; width: 44px; height: 44px;
    background: var(--surface2); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .m-search-result-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
  .m-search-result-price { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 3px; }
  .m-search-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

  .rm-noscript,
  .rm-wp-content {
    max-width: 960px;
    margin: 48px auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }
  .rm-wp-article h1 {
    margin-bottom: 16px;
    font-size: 28px;
  }

  /* === DYNAMIC WOOCOMMERCE CATALOG === */
  .rm-product-card { min-height: 100%; }
  .rm-product-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
  }
  .rm-product-placeholder {
    position: relative;
    z-index: 1;
    font-size: 44px;
  }
  .product-price-row del {
    color: var(--text-light);
    font-size: 12px;
    margin-right: 4px;
    line-height: 1.55;
    padding-bottom: 2px;
  }
  .product-price-row ins {
    color: var(--primary);
    text-decoration: none;
    line-height: 1.55;
    padding-bottom: 2px;
  }
  .product-price-row .amount {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
    display: inline-block;
    padding: 1px 0 3px;
  }
  html[data-lang="bn"] .product-price-row .amount {
    font-size: 15.5px;
    line-height: 1.65;
  }
  .popular-arc-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    pointer-events: none;
  }
  .popular-arc-price del {
    color: rgba(255,255,255,0.48);
    font-size: 0.82em;
    text-decoration: line-through;
  }
  .popular-arc-price ins {
    color: #b7e6a3;
    text-decoration: none;
  }
  .search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }
  .search-dropdown .search-result-item,
  .m-search-results .search-result-item {
    color: var(--text);
  }
  .woocommerce .products,
  ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }
  .woocommerce ul.products li.product,
  .rm-product-li {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    list-style: none;
  }
  .woocommerce-result-count,
  .woocommerce-ordering {
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .woocommerce-ordering select {
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    padding: 0 10px;
  }
  .woocommerce-products-header__title,
  .page-title {
    font-size: 24px;
    margin: 4px 0 16px;
    font-weight: 800;
  }
  .rm-single-product {
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
  }
  .rm-single-gallery {
    background: var(--surface2);
    border-radius: var(--radius);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .rm-single-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
  }
  .rm-single-placeholder { font-size: 84px; }
  .rm-single-summary h1 {
    font-size: clamp(24px, 4vw, 34px);
    margin: 8px 0 12px;
    line-height: 1.15;
  }
  .rm-single-price {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .rm-single-price del {
    color: var(--text-light);
    font-size: 16px;
    margin-right: 8px;
  }
  .rm-single-price ins { text-decoration: none; }
  .rm-single-cart { margin: 18px 0; }
  .rm-single-cart .cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .rm-single-cart .qty {
    width: 70px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
  }
  .single_add_to_cart_button,
  .button,
  .woocommerce a.button,
  .woocommerce button.button {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    border: 0 !important;
    min-height: 40px;
    padding: 10px 18px !important;
    font-weight: 800 !important;
  }
  .rm-single-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 16px;
  }
  .rm-product-tabs,
  .related.products {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
  }
  .related.products ul.products {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 8px !important;
  }
  .related.products ul.products li.product,
  .related.products .rm-product-li {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }
  .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 16px !important;
  }
  .woocommerce-tabs ul.tabs li {
    border-radius: 7px !important;
    border: 1px solid var(--border) !important;
    background: var(--surface2) !important;
  }
  .woocommerce-cart-form,
  .cart_totals,
  .woocommerce-checkout-review-order,
  .woocommerce form.checkout,
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content,
  .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce-notices-wrapper .woocommerce-info,
  .woocommerce-notices-wrapper .woocommerce-error {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
  }
  .woocommerce table.shop_table {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    background: var(--surface);
  }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    border-color: var(--border) !important;
    padding: 12px !important;
  }
  .woocommerce-cart .product-remove {
    display: none;
  }
  .rm-cart-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .rm-cart-table-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
  }
  .rm-cart-table-remove:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(220,38,38,0.05);
  }
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select,
  .woocommerce .select2-container .select2-selection--single {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
    color: var(--text);
    padding: 9px 11px;
  }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout .woocommerce-billing-fields {
    background: transparent;
  }
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: start;
  }
  .woocommerce-checkout #customer_details {
    grid-column: 1;
    padding: 22px;
    width: 100%;
  }
  .woocommerce-checkout #order_review {
    grid-column: 2;
  }
  .woocommerce-checkout #order_review_heading { display: none; }
  .woocommerce-checkout #order_review {
    padding: 22px;
    position: sticky;
    top: 92px;
  }
  .woocommerce-checkout #order_review::before {
    content: 'Your order';
    display: block;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
  }
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2,
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
  }
  .woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 20px;
    margin: 0 0 16px;
    font-weight: 800;
  }
  .woocommerce-checkout .form-row {
    margin-bottom: 12px !important;
  }
  .woocommerce-checkout input[readonly] {
    color: var(--text-muted);
    cursor: not-allowed;
  }
  .woocommerce-checkout .woocommerce-additional-fields,
  .woocommerce-checkout .woocommerce-shipping-fields {
    display: none;
  }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(220px, 1fr);
    gap: 0 14px;
    max-width: 760px;
  }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
  }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last {
    width: 100%;
    float: none;
    clear: none;
  }
  .woocommerce-checkout .shop_table {
    margin-bottom: 14px !important;
  }
  .woocommerce-checkout-review-order-table {
    margin-top: 0 !important;
  }
  .woocommerce-checkout .place-order {
    margin-top: 12px;
  }
  .woocommerce-checkout .place-order .button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .rm-checkout-left-submit-wrap {
    margin-top: 18px;
  }
  .rm-checkout-left-submit {
    width: 100%;
    max-width: 760px;
    min-height: 46px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border: 0;
  }
  .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .woocommerce-MyAccount-navigation a {
    display: block;
    color: var(--text);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
  }
  .sale-load-sentinel {
    height: 1px;
    margin: 18px 0;
  }
  .sale-product-grid.loading::after {
    content: 'Loading more sale products...';
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 12px;
  }
  .rm-drawer-links { padding: 8px 0; }
  .rm-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 0 5px;
  }
  .rm-cart-count:not(.has-items) { display: none; }
  @media (max-width: 1024px) {
    .woocommerce .products,
    ul.products {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
    .rm-single-product {
      grid-template-columns: 1fr;
      padding: 12px;
      gap: 14px;
    }
    .rm-single-gallery { min-height: 240px; }
    .woocommerce-checkout form.checkout {
      grid-template-columns: 1fr;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
      grid-column: 1;
    }
    .woocommerce-checkout #order_review {
      position: static;
    }
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
      grid-template-columns: 1fr;
      max-width: none;
    }
  }

  /* === HEADER NAV (primary menu below header) === */
  .header-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0 20px;
  }
  .header-nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  .header-nav-list > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    white-space: nowrap;
  }
  .header-nav-list > li > a:hover,
  .header-nav-list > li.current-menu-item > a,
  .header-nav-list > li.current-menu-parent > a { color: var(--primary); }
  .header-nav-list > li { position: relative; }
  .header-nav-list > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 200;
    list-style: none;
    padding: 6px 0;
  }
  .header-nav-list > li:hover > .sub-menu { display: block; }
  .header-nav-list .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
  }
  .header-nav-list .sub-menu a:hover { color: var(--primary); background: var(--primary-light); }

  /* === FOOTER NAV (footer menu) === */
  .footer-nav {
    max-width: 1400px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .footer-nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
  }
  .footer-nav-list a {
    display: block;
    padding: 4px 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    transition: color var(--transition);
    border-radius: var(--radius-sm);
  }
  .footer-nav-list a:hover { color: var(--primary); }

  /* === BEFORE FOOTER WIDGET AREA === */
  .before-footer-widget-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 0;
  }

  /* === SIDEBAR WIDGET AREA === */
  .sidebar-widget-area {
    padding: 8px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .sidebar-widget-area .widget { padding: 8px 16px; font-size: 13px; color: var(--text-muted); }
  .sidebar-widget-area .widget-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 6px; }

  /* === ANNOUNCEMENT BAR === */
  .announce-bar {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 6px 16px;
    font-family: var(--font-bengali);
    letter-spacing: 0.01em;
  }

  /* === DRAWER NAV LIST (mobile primary menu) === */
  .drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
  }
  .drawer-nav-list > li > a {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
  }
  .drawer-nav-list > li > a:hover { color: var(--primary); }
  .drawer-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    background: var(--surface2);
  }
  .drawer-nav-list .sub-menu a {
    display: block;
    padding: 8px 28px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
  }
  .drawer-nav-list .sub-menu a:hover { color: var(--primary); }
