:root {
      --color-primary: #800000;
      --color-primary-contrast: #ffffff;
      --color-bg: #f3f4f6;
      --color-surface: #ffffff;
      --color-text: #111827;
      --color-muted: #6b7280;
      --font-heading: Roboto, Arial, sans-serif;
      --font-body: Roboto, Arial, sans-serif;
      --radius: 12px;
      --radius-pill: 999px;
      --white: #ffffff;
      --bg: #ffffff;
      --border: #e5e7eb;
      --muted: #6b7280;
      --dark: #111827;
      --maroon: maroon;
      --light-bg: #f9fafb;
      --light-gray: #f3f4f6;
      --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
      --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
      --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.14);
      --radius-full: 999px;
      --green: #33B554;
      --red: #E74C3C;
      --row-line: #f0f0f0;
      --z-cart-overlay: 200;
      --z-cart-sheet: 2001;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: var(--bg);
      font-family: system-ui, -apple-system, sans-serif;
      padding-bottom: 0;
      padding-top: 55px;
    }

    body.menu-open,
    body.searching {
      overflow: hidden;
    }

    .top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 55px;
      padding: 12px 8px;
      background: var(--white);
      box-shadow: var(--shadow-sm);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      max-width: none;
      z-index: 100;
      gap: 10px;
      box-sizing: border-box;
    }

    .top.searching {
      z-index: 70;
    }

    .logo-area {
      line-height: 1.1;
      flex-shrink: 0;
    }

    .logo-area b {
      font-size: 17px;
    }

    .logo-area b:first-child {
      color: var(--maroon);
    }

    .logo-area b:last-child {
      color: var(--dark);
    }

    .sub {
      font-size: 9px;
      color: var(--muted);
      margin-top: 2px;
    }

    .right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .search-bar {
      margin-left: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex: 1;
      min-width: 0;
      max-width: 220px;
      height: 36px;
      padding: 0 12px 0 14px;
      background: var(--light-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      cursor: pointer;
    }

    .search-bar span {
      font-size: 12px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-bar svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      fill: var(--muted);
    }

    .top-cart {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      flex-shrink: 0;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .top-cart svg {
      width: 26px;
      height: 26px;
      display: block;
    }

    .top-cart-count {
      position: absolute;
      top: 0;
      right: -2px;
      min-width: 18px;
      height: 18px;
      padding: 0 4px;
      background: #F7941D;
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      line-height: 18px;
      text-align: center;
      border-radius: 999px;
      border: 2px solid #fff;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .top-cart-count.hidden {
      display: none;
    }

    .hamburger {
      display: flex;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 10px 6px;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .hamburger span {
      width: 22px;
      height: 2.5px;
      background: var(--maroon);
      border-radius: 2px;
      transition: .3s;
    }

    .hamburger.open span:nth-child(1) {
      transform: rotate(45deg) translate(4px, 5px);
    }

    .hamburger.open span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
      transform: rotate(-45deg) translate(4px, -5px);
    }

    .search-expand {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background: var(--white);
      display: none;
      align-items: center;
      gap: 10px;
      padding: 0 14px;
      z-index: 20;
    }

    .search-expand.show {
      display: flex;
    }

    .search-expand .search {
      flex: 1;
      display: flex;
      align-items: center;
      background: var(--light-gray);
      border-radius: 20px;
      padding: 10px 14px;
    }

    .search-expand .search input {
      border: none;
      background: transparent;
      outline: none;
      width: 100%;
      font-size: 14px;
    }

    .back {
      font-size: 20px;
      cursor: pointer;
    }

    .top.searching .logo-area,
    .top.searching .search-bar,
    .top.searching .right {
      opacity: 0;
      pointer-events: none;
    }

    #searchOverlay {
      display: none;
      position: fixed;
      inset: 0;
      top: 56px;
      z-index: 60;
      background: rgba(0, 0, 0, 0.9);
    }

    #searchOverlay.show {
      display: block;
    }

    #searchDropdown {
      display: none;
      position: fixed;
      top: 56px;
      left: 0px;
      right: 0px;
      z-index: 70;
      background: #fff;
      width: 100%;
      max-width: none;
      transform: none;
      border-radius: 0 0 0;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
      border: 1px solid var(--border);
      max-height: 340px;
      overflow-y: auto;
      padding: 6px;
    }

    #searchDropdown.show {
      display: block;
    }

    .search-item {
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 8px;
      cursor: pointer;
      border-radius: 10px;
    }

    .search-item:active {
      background: var(--light-bg);
    }

    .search-item img {
      width: 48px;
      height: 48px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0;
      background: var(--light-gray);
    }

    .search-item-info {
      flex: 1;
      min-width: 0;
    }

    .search-item-info b {
      font-size: 13px;
      color: var(--maroon);
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-info span {
      font-size: 11px;
      color: var(--muted);
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-price {
      font-size: 13px;
      font-weight: 800;
      color: var(--maroon);
      white-space: nowrap;
    }

    .search-empty {
      padding: 16px;
      text-align: center;
      color: #888;
      font-size: 13px;
    }

    .search-label {
      padding: 8px 10px 4px;
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    /* ===== FIX 1: HAMBURGER MENU - FIXED, NOT ABSOLUTE ===== */
    .menu-overlay {
      display: none;
      position: fixed;
      inset: 0;
      top: 56px;
      background: rgba(0, 0, 0, 0.45);
      z-index: 30;
    }

    .menu-overlay.show {
      display: block;
    }

    .menu {
      display: flex;
      flex-direction: column;
      background: var(--white);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      padding: 14px;
      position: fixed;
      top: 56px;
      left: 0;
      right: 0;
      z-index: 40;
      max-height: calc(100vh - 56px);
      overflow-y: auto;
      transform: translateY(-8px);
      opacity: 0;
      visibility: hidden;
      transition: transform .18s ease, opacity .18s ease, visibility .18s;
      will-change: transform, opacity;
    }

    .menu.show {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }

    .menu a {
      text-decoration: none;
      color: var(--dark);
      padding: 10px 0;
      border-bottom: 1px solid var(--light-gray);
      font-size: 14px;
      display: block;
      touch-action: manipulation;
    }

    .menu-item {
      border-bottom: 1px solid var(--light-gray);
    }

    .menu-item .main-link {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      cursor: pointer;
      font-size: 14px;
      color: var(--dark);
      touch-action: manipulation;
    }

    .menu-item .arrow {
      font-size: 12px;
      transition: .3s;
    }

    .menu-item.open .arrow {
      transform: rotate(180deg);
    }

    .sub-menu {
      display: none;
      flex-direction: column;
      background: var(--light-bg);
      border-radius: 8px;
      padding: 6px 12px;
      margin-bottom: 8px;
    }

    .sub-menu.show {
      display: flex;
    }

    .sub-menu a {
      padding: 8px 0;
      font-size: 13px;
      color: #374151;
      border-bottom: none;
    }

    .hero {
      background-size: contain;
      background-position: center;
      width: 100%;
      height: auto;
      max-height: 400px;
      overflow: hidden;
      background: #fff;
      touch-action: pan-y;
      margin-top: 0px;
      padding-top: 0;
    }

    .track {
      display: flex;
      width: 300%;
      height: 100%;
      transition: transform .4s ease-out;
    }

    .track.dragging {
      transition: none;
    }

    .track img {
      width: 33.3333%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      flex-shrink: 0;
    }

    .dots {
      display: flex;
      gap: 8px;
      justify-content: center;
      align-items: center;
      margin-top: 14px;
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #d1d5db;
      transition: all .3s ease;
    }

    .dot.active {
      width: 22px;
      height: 6px;
      border-radius: var(--radius-full);
      background: maroon;
    }

    .ad {
      color: var(--maroon);
      margin-left: 16px;
      margin-top: 12px;
      font-size: 13px;
    }

    .ad-card {
      margin: 8px auto;
      width: calc(100% - 28px);
      max-width: 1900px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: var(--shadow-md);
      cursor: pointer;
    }

    .ad-card img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
    }

    .ad-fullscreen,
    .img-fullscreen {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.92);
      z-index: 100;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 14px;
    }

    .ad-fullscreen.show,
    .img-fullscreen.show {
      display: flex;
    }

    .ad-fullscreen img,
    .img-fullscreen img {
      width: 100%;
      max-width: 600px;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 12px;
    }

    .ad-close,
    .img-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      background: var(--white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      cursor: pointer;
      font-weight: bold;
    }

    .img-fullscreen {
      z-index: 300;
    }

    .img-close {
      z-index: 301;
    }

    .ad-actions {
      margin-top: 20px;
      display: flex;
      gap: 12px;
      width: 100%;
      max-width: 600px;
    }

    .ad-actions a,
    .ad-actions button {
      flex: 1;
      padding: 14px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
      text-decoration: none;
      border: none;
      cursor: pointer;
    }

    .btn-visit {
      background: #25D366;
      color: white;
    }

    .btn-close {
      background: var(--white);
      color: #111;
    }

    /* PRODUCTS - GRID CARD STYLE, UNCHANGED */
    .weekly-header {
      margin: 16px 14px 0;
      display: flex;
      align-items: center;
      font-size: 16px;
      color: maroon;
      justify-content: center;
    }

    .products-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      padding: 12px 14px 4px;
    }

    .product-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
      display: flex;
      flex-direction: column;
    }

    .product-card.highlight {
      border: 2px solid var(--maroon);
      box-shadow: 0 0 0 3px rgba(122, 26, 26, .15);
    }

    .product-link {
      cursor: pointer;
      display: block;
    }

    .product-card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      display: block;
      background: var(--light-gray);
    }

    .product-info {
      padding: 10px 12px 12px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .product-cat {
      font-size: 11px;
      color: #9ca3af;
    }

    .product-title {
      font-size: 14px;
      font-weight: 800;
      color: #111827;
      line-height: 1.2;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .product-description {
      font-size: 11px;
      color: gray;
      margin-top: 4px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .product-price {
      font-size: 15px;
      font-weight: 800;
      color: var(--maroon);
      margin-top: 6px;
    }

    .product-actions {
      display: flex;
      flex-direction: row;
      gap: 5px;
      margin-top: 10px;
    }

    .btn-details {
      background: #f4a08c;
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }

    .btn-order {
      width: 70%;
      height: 38px;
      background: var(--maroon);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-order.in-cart {
      background: var(--green) !important;
      color: #fff !important;
    }

    .btn-order.in-cart svg {
      width: 18px;
      height: 18px;
    }

    .btn-save {
      width: 30%;
      height: 38px;
      background: orange;
      color: #fff;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-save svg {
      width: 20px;
      height: 20px;
    }

    .btn-save.saved {
      background: var(--green) !important;
    }

    .no-results {
      display: none;
      text-align: center;
      padding: 30px 14px;
      color: #888;
      font-size: 14px;
    }

    .nav-wrapper {
      position: fixed;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 92%;
      max-width: 520px;
      z-index: 99;
      transition: opacity .3s ease;
    }

    body.searching .nav-wrapper {
      bottom: 10px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
    }

    body.menu-open .nav-wrapper {
      opacity: .6;
      pointer-events: none;
    }

    .nav-bar {
      position: relative;
      display: flex;
      align-items: center;
      background: var(--white);
      border-radius: 12px;
      padding: 4px;
      height: 45px;
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border);
    }

    .nav-indicator {
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      width: calc((100% - 8px) / 5);
      background: var(--maroon);
      border-radius: 12px;
      z-index: 1;
      transition: transform .45s cubic-bezier(0.65, 0, 0.35, 1), width .45s cubic-bezier(0.65, 0, 0.35, 1);
    }

    .nav-item {
      position: relative;
      z-index: 2;
      flex: 1;
      height: 44px;
      border: 0;
      background: transparent;
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      cursor: pointer;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      -webkit-tap-highlight-color: transparent;
    }

    .nav-item.active {
      color: #fff;
    }

    .nav-item svg {
      width: 24px;
      height: 24px;
      display: block;
    }

    .nav-item svg path,
    .nav-item svg circle {
      fill: #B2A3A1;
    }

    .nav-item.active svg path,
    .nav-item.active svg circle {
      fill: #fff;
    }

    .nav-item.active svg {
      animation: navIconPop .45s cubic-bezier(0.65, 0, 0.35, 1);
    }

    @keyframes navIconPop {
      0% {
        transform: scale(.6) translateY(3px);
      }

      50% {
        transform: scale(1.25) translateY(-1px);
      }

      100% {
        transform: scale(1) translateY(0);
      }
    }

    .nav-points svg {
      width: 28px;
      height: 28px;
    }

    .nav-item .cart-bubble {
      top: 2px;
      left: 50%;
    }

    .cart-bubble {
      position: absolute;
      top: 7px;
      left: 50px;
      min-width: 18px;
      height: 18px;
      padding: 0 4px;
      background: #F7941D;
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      line-height: 18px;
      text-align: center;
      border-radius: 999px;
      border: 2px solid #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3;
    }

    .nav-item.active .cart-bubble {
      background: #fff;
      color: var(--maroon);
      border-color: var(--maroon);
    }

    .cart-bubble.hidden {
      display: none;
    }

    #cartOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: var(--z-cart-overlay);
    }

    #cartOverlay.show {
      display: block;
    }

    #cartSheet {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: #fff;
      border-radius: 22px 22px 0 0;
      z-index: var(--z-cart-sheet);
      max-height: 85vh;
      overflow-y: auto;
      padding-bottom: 16px;
      box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
    }

    #cartSheet.show {
      display: block;
      animation: slideUp .3s ease;
    }

    #cartSheet.closing {
      display: block;
      animation: slideDown .32s ease forwards;
    }

    #wishlistOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: var(--z-cart-overlay);
    }

    #wishlistOverlay.show {
      display: block;
    }

    #wishlistSheet {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: #fff;
      border-radius: 22px 22px 0 0;
      z-index: var(--z-cart-sheet);
      max-height: 85vh;
      overflow-y: auto;
      padding-bottom: 16px;
      box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
    }

    #wishlistSheet.show {
      display: block;
      animation: slideUp .3s ease;
    }

    #wishlistSheet.closing {
      display: block;
      animation: slideDown .32s ease forwards;
    }

    .wishlist-title {
      text-align: center;
      padding: 14px 16px 6px;
      color: var(--maroon);
      font-weight: 800;
      font-size: 16px;
    }

    .wishlist-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto auto;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      border-bottom: 1px solid var(--row-line);
    }

    .wishlist-name {
      color: #555;
      font-size: 14px;
      min-width: 0;
    }

    .wishlist-name.x {
      color: var(--red);
      cursor: pointer;
      font-weight: 800;
      font-size: 18px;
      border: 0;
      background: transparent;
      padding: 6px;
    }

    .wishlist-amt {
      color: #555;
      font-size: 14px;
      white-space: nowrap;
      font-weight:700;
      transform:translateX(-40px);
    }

    .wishlist-add {
      border: none;
      background: maroon;
      color: #fff;
      padding: 8px 10px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
    }

    .cart-toast {
      position: fixed;
      left: 50%;
      bottom: 76px;
      z-index: 3000;
      transform: translate(-50%, 16px);
      padding: 11px 18px;
      border-radius: var(--radius-full);
      background: var(--maroon);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
    }

    .cart-toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    @media (max-width: 420px) {
      .wishlist-row {
        gap: 6px;
        padding: 10px 8px;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
      }

      .wishlist-name,
      .wishlist-amt {
        font-size: 12px;
      }

      .wishlist-add {
        padding: 7px 8px;
        font-size: 11px;
      }
    }

    /* CONTACT US POP-OUT - FIXED */
    #contactOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .8);
      z-index: 600;
    }

    #contactOverlay.show {
      display: block;
    }

    .contact-pop {
      position: absolute;
      left: 14px;
      bottom: 70px;
      width: 150px;
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
      animation: contactPop .25s ease;
    }

    @keyframes contactPop {
      from {
        transform: translateY(10px) scale(.9);
        opacity: 0;
      }

      to {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    .contact-pop-head {
      background: var(--maroon);
      color: #fff;
      text-align: left;
      font-size: 18px;
      font-weight: 800;
      padding: 8px 10px 8px 12px;
    }

    .contact-pop a {
      display: block;
      text-align: left;
      text-decoration: none;
      color: #7a7a7a;
      font-size: 14px;
      font-weight: 500;
      padding: 7px 10px;
      border-bottom: 1px solid #e5e7eb;
    }

    .contact-pop a:last-child {
      border-bottom: none;
    }

    .contact-pop a:active {
      background: #f9fafb;
    }

    /* TRACK ORDER POP-OUT - ADD ONLY */
    #trackOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .8);
      z-index: 600;
    }

    #trackOverlay.show {
      display: block;
    }

    .track-pop {
      position: absolute;
      left: 0;
      right: 0;
      margin: 0 auto;
      bottom: 70px;
      width: 580px;
      max-width: 80vw;
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
      animation: contactPop .25s ease;
    }

    .track-pop-head {
      background: var(--maroon);
      color: #fff;
      text-align: center;
      font-size: 18px;
      font-weight: 800;
      padding: 8px 10px;
    }

    .track-pop p {
      text-align: center;
      color: #7a7a7a;
      font-size: 14px;
      font-weight: 500;
      padding: 12px 10px;
    }

    /* POP CLOSE BUTTON - ADD ONLY */
    .pop-close {
      position: absolute;
      top: 6px;
      right: 8px;
      width: 26px;
      height: 26px;
      background: rgba(255, 255, 255, .25);
      color: #fff;
      border: none;
      border-radius: 50%;
      font-size: 15px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
    }

    .contact-pop-head,
    .track-pop-head {
      position: relative;
    }

    @keyframes slideUp {
      from {
        transform: translateY(100%);
      }

      to {
        transform: translateY(0);
      }
    }

    @keyframes slideDown {
      from {
        transform: translateY(0);
      }

      to {
        transform: translateY(100%);
      }
    }

    .cart-titles {
      display: grid;
      grid-template-columns: 90px 1fr 90px;
      padding: 12px 16px 6px;
      color: var(--maroon);
      font-weight: 500;
      font-size: 14px;
      text-align: center;
    }

    .cart-titles span:nth-child(2) {
      text-align: left;
    }

    .cart-row {
      display: grid;
      grid-template-columns: 90px 1fr 90px;
      align-items: center;
      padding: 10px 16px;
      border-bottom: 1px solid var(--row-line);
    }

    .qty-ctrl {
      display: flex;
      align-items: center;
      gap: 6px;
      justify-content: center;
    }

    .qty-ctrl button {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: none;
      background: #eee;
      font-size: 18px;
      cursor: pointer;
    }

    .cart-name {
      color: #555;
      font-size: 14px;
    }

    .cart-name .x {
      color: var(--red);
      cursor: pointer;
      font-weight: 800;
      margin-left: 4px;
      font-size: 16px;
    }

    .cart-amt {
      text-align: right;
      color: #555;
      font-size: 14px;
    }

    .cart-total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 16px;
    }

    .cart-total-row b {
      color: var(--maroon);
    }

    .cart-total-right {
      display: flex;
      gap: 8px;
    }

    .cart-total-right b {
      color: var(--maroon);
      font-size: 14px;
    }

    .cart-btns {
      display: flex;
      gap: 10px;
      padding: 0 16px;
    }

    .cart-btns button {
      flex: 1;
      border: none;
      padding: 10px;
      border-radius: 12px;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
    }

    .btn-continue {
      background: var(--green);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
    }

    .btn-continue svg path {
      stroke-dasharray: 32;
      stroke-dashoffset: 32;
      animation: drawTick .45s ease .05s forwards;
    }

    @keyframes drawTick {
      to {
        stroke-dashoffset: 0;
      }
    }

    .btn-order-final {
      background: var(--maroon);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 38px;
    }

    .btn-order-final:disabled {
      opacity: .85;
      cursor: wait;
    }

    .btn-order-final .spinner {
      width: 18px;
      height: 18px;
      border: 2.5px solid rgba(255, 255, 255, .35);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    #checkoutOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .5);
      z-index: 500;
    }

    #checkoutOverlay.show {
      display: block;
    }

    #checkoutSheet {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: #fff;
      border-radius: 22px 22px 0 0;
      z-index: 501;
      max-height: 92vh;
      overflow-y: auto;
      padding: 18px 18px 22px;
      box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
    }

    #checkoutSheet.show {
      display: block;
      animation: slideUp .3s ease;
    }

    .checkout-title {
      text-align: center;
      font-size: 18px;
      font-weight: 800;
      color: maroon;
      margin-bottom: 20px;
    }

    .checkout-row {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 14px;
    }

    .checkout-row label {
      width: 78px;
      flex-shrink: 0;
      padding-top: 12px;
      font-size: 17px;
      color: #64748b;
    }

    .checkout-field {
      flex: 1;
    }

    .checkout-field input {
      width: 100%;
      border: none;
      background: #efefef;
      border-radius: 14px;
      padding: 14px;
      font-size: 15px;
      outline: none;
      font-family: inherit;
    }

    .checkout-field input:focus {
      background: #e8e8e8;
    }

    .checkout-error {
      display: none;
      color: #ef4444;
      font-size: 14px;
      margin-top: 6px;
    }

    .checkout-error.show {
      display: block;
    }

    .checkout-notes textarea {
      width: 100%;
      border: none;
      background: #efefef;
      border-radius: 14px;
      padding: 16px;
      font-size: 15px;
      outline: none;
      font-family: inherit;
      min-height: 140px;
    }

    .checkout-notes textarea::placeholder {
      color: #9ca3af;
    }

    .checkout-summary {
      background: #f9fafb;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
      font-size: 13px;
      color: black;
      margin: 14px 0;
      line-height: 1.6;
      font: sans-serif;
    }

    .checkout-btns {
      display: flex;
      gap: 10px;
      margin-top: 16px;
    }

    .checkout-btns button {
      flex: 1;
      border: none;
      padding: 14px;
      border-radius: 12px;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
    }

    .btn-checkout-cancel {
      background: #eee;
      color: #111;
    }

    .btn-checkout-send {
      background: var(--maroon);
      color: #fff;
    }

    .footer {
      background: maroon;
      color: #fff;
      padding: 24px 16px 110px;
      margin-top: 12px;
      margin-bottom: 1px;
      max-height: 300px;
    }

    .footer-logo b {
      font-size: 20px;
      line-height: 1.1;
      display: block;
      color: #fff;
    }

    .footer-sub {
      font-size: 11px;
      color: white;
      margin-top: 4px;
    }

    .footer h3 {
      font-size: 16px;
      margin: 20px 0 12px;
    }

    .footer a {
      display: block;
      color: #d1d5db;
      text-decoration: none;
      font-size: 14px;
      padding: 6px 0;
    }

    .footer-bottom {
      border-top: 1px solid white;
      margin-top: 20px;
      padding-top: 14px;
      font-size: 12px;
      color: #9ca3af;
      text-align: center;
    }

    .points {
      color: #33B554;
      padding: 10px 50px;
      font-size: 12px;
      font-weight: 700px;
    }

    .terms {
      font-size: 12px;
      margin: 4px 0;
      justify-content: space-between;
      display: flex;
      gap: 19px;
    }

    .footer h3 {
      margin: 22px 0 2px;
    }

    .footer a {
      padding: 3px 0;
    }

    .price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 0px;
    }

    .product-price {
      margin-top: -2px;
      margin-bottom: 3px;
    }

    .product-actions {
      margin-top: -3px;
      gap: 5px;
    }

    .order-actions: {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .order-actions buttons {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-weight: 700;
      cursor: pointer;
    }

    .order-btn {
      background: orange;
      color: white;
    }

    .btn-save {
      background: orange;
      color: white;
    }

    @media (min-width:600px) {
      .products-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (min-width:1024px) {
      .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
      }
    }

    @media (max-width: 480px) {
      .hero {
        aspect-ratio: auto;
        height: auto;
      }
    }

    @media (min-width:768px) {
      .hero {
        aspect-ratio: auto;
        height: auto;
      }
    }

    @media (min-width: 1024px) {
      .hero {
        aspect-ratio: auto;
        max-height: auto;
        max-height: none;
      }
    }

    @media (min-width:768px) {
      .products-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    @media (min-width:1024px) {
      .products-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: none;
        margin: 0 auto;
        gap: 16px;
      }
    }

    @media (min-width: 768px) {

      #cartSheet,
      #wishlistSheet,
      #checkoutSheet {
        left: 50%;
        right: auto;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: calc(100% - 40px);
        max-width: 520px;
        border-radius: 20px;
        max-height: 85vh;
      }

      #cartSheet.show,
      #wishlistSheet.show,
      #checkoutSheet.show {
        animation: popIn .25s ease forwards;
      }

      #cartSheet.closing,
      #wishlistSheet.closing,
      #checkoutSheet.closing {
        animation: popOut .25s ease forwards;
      }

      @keyframes popIn {
        from {
          transform: translate(-50%, - 50%) scale(.92);
          opacity: 0;
        }

        to {
          transform: translate(-50%, -50%) scale(1);
          opacity: 1;
        }
      }

      @keyframes popOut {
        from {
          transform: translate(-50%, -50%) scale(1);
          opacity: 1;
        }

        to {
          transform: translate(-50%, -50%) scale(.92);
          opacity: 0.92;
        }
      }
    }
    .sheet-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      display: none;
      z-index: 9999;
      align-items: flex-end;
      justify-content: center;
    }
    /* =====================================
   BOTTOM SHEET - FIXED VERSION
===================================== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
}
.sheet-overlay.open { display: flex; }

.sheet {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 22px 22px 0 0;
  padding: 18px 20px 28px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  animation: sheetSlideUp 0.35s ease;
}
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 2px solid #800000;
  border-radius: 50%;
  background: #fff;
  color: #800000;
  font-size: 18px; font-weight: bold;
  cursor: pointer; line-height: 1;
}
.sheet-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.sheet-dots span {
  width: 16px; height: 20px;
  background: #800000; display: block;
}
.sheet h2 {
  text-align: center;
  font-size: 26px;
  margin: 8px 0 4px;
  letter-spacing: 0.5px;
  color: #111;
}
.sheet p.sub {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin: 0 0 16px;
  display: block;
}
.sheet .tabs {
  display: flex;
  background: #f7f3ef;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}
.sheet .tabs button {
  flex: 1; border: 0; background: transparent;
  padding: 11px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.sheet .tabs button.active {
  background: #800000; color: #fff;
}
.sheet .row { display: flex; gap: 10px; }
.sheet .prefix {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #ddd; border-radius: 10px;
  padding: 0 10px; background: #fff; min-width: 105px;
}
.sheet .prefix select {
  border: 0; outline: 0; font-weight: 700; background: transparent;
}
.sheet .input {
  flex: 1; border: 1px solid #ddd; border-radius: 10px;
  padding: 13px; font-size: 15px; outline: none; width: 100%;
}
.sheet .btn-continue {
  width: 100%; margin-top: 14px; padding: 15px;
  border: 0; border-radius: 999px;
  background: #ddd; color: #333;
  font-weight: 700; font-size: 16px; cursor: pointer;
  display: block; min-height: auto;
}
.sheet .btn-continue.ready {
  background: #800000; color: #fff;
}
.sheet .divider {
  display: flex; align-items: center; gap: 10px;
  color: #888; font-size: 13px; margin: 16px 0;
}
.sheet .divider:before,
.sheet .divider:after {
  content: ""; flex: 1; height: 1px; background: #ddd;
}
.sheet .google-btn {
  width: 48px; height: 48px;
  border: 1px solid #ddd; border-radius: 50%;
  margin: 0 auto; display: flex;
  align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; cursor: pointer;
  background: #fff; color: #111;
}
.sheet .terms {
  text-align: center; font-size: 12px; color: #777;
  margin-top: 16px; display: block; justify-content: center;
}
.sheet .terms a { color: #555; }
.google-btn{
  width: 30px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.google-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== TOP BAR FULL WIDTH - LANDSCAPE / DESKTOP ===== */
@media (min-width: 768px), (orientation: landscape) {
  .top {
    height: 60px;
    padding: 10px 28px;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
  }
  .logo-area b {
    font-size: 20px;
  }
  .search-bar {
    max-width: 1100px;
    margin-left: auto;
  }
  #searchDropdown {
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 0 12px 12px !important;
  }
  #searchOverlay {
    top: 60px !important;
  }
      
      /*---------RECENTLY VIEWED------*/
      /* RECENTLY VIEWED */
#recentlyViewedSection {
  display: none;
  margin-top: 18px;
}

.rv-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px 4px;
}

#recentlyViewedList {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 10px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#recentlyViewedList::-webkit-scrollbar {
  display: none;
}

.rv-card {
  min-width: 145px;
  max-width: 145px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  scroll-snap-align: start;
  flex-shrink: 0;
  text-align: left;
  cursor: pointer;
}

.rv-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.rv-card .rv-info {
  padding: 8px 10px 10px;
}

.rv-card .rv-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  height: 32px;
  overflow: hidden;
  margin: 0;
}

.rv-card .rv-price {
  color: #8B0000;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}
  .products-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  .weekly-header,
  .hero,
  .ad-card {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1200px) {
  .products-grid {
    max-width: 1200px;
  }
}