    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

    :root {
      --primary: #ff6801;
      --primary-rgb: 255, 104, 1;
      --primary-hover: #e05b00;
      --primary-light: rgba(255, 104, 1, 0.12);
      --accent: #7c3aed;
      --accent-light: rgba(124, 58, 237, 0.1);
      --success: #10b981;
      --danger: #ef4444;
      --warning: #f59e0b;
      --text-color: #1a1a2e;
      --text-muted: #64748b;
      --bg-color: #f0f2f8;
      --surface: rgba(255, 255, 255, 0.92);
      --surface-hover: rgba(255, 255, 255, 0.98);
      --glass: rgba(255, 255, 255, 0.7);
      --glass-border: rgba(255, 255, 255, 0.5);
      --card-radius: 18px;
      --card-shadow: 0 4px 24px rgba(0, 0, 50, 0.08);
      --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
      --font-dec: 'Plus Jakarta Sans', sans-serif;
      --gradient: linear-gradient(135deg, #ff6801 0%, #ff4757 50%, #c0392b 100%);
      --gradient-cool: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --gradient-bg: linear-gradient(160deg, #ffecd2 0%, #fcb69f 40%, #f0e6ff 100%);
    }

    * {
      -webkit-user-select: none;
      user-select: none;

      -webkit-user-drag: none;

      -webkit-tap-highlight-color: transparent;
    }

    img {
      pointer-events: none;
    }

    .gallery-img,
    .thumb,
    .product-img,
    .cart-item img,
    .review-pic,
    .image-viewer-img {
      pointer-events: auto;
    }


    /* ─── Reset & Scrollbars ─── */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    ::-webkit-scrollbar {
      display: none !important;
    }

    * {
      -ms-overflow-style: none !important;
      scrollbar-width: none !important;
    }

    img {
      -webkit-user-drag: none;
      user-select: none;
    }

    .image-viewer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.78);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 99999;
    }

    .image-viewer-shell {
      width: min(92vw, 780px);
      max-height: 92vh;
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
      padding: 12px;
      position: relative;
      overflow: hidden;
    }

    .image-viewer-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 38px;
      height: 38px;
      border: none;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.8);
      color: #fff;
      display: grid;
      place-items: center;
      cursor: pointer;
      z-index: 2;
    }

    .image-viewer-controls {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      margin-bottom: 10px;
      padding-right: 48px;
    }

    .image-viewer-control {
      width: 36px;
      height: 36px;
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      background: #fff;
      color: var(--text-color);
      display: grid;
      place-items: center;
      cursor: pointer;
    }

    .image-viewer-zoom-label {
      min-width: 54px;
      text-align: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-color);
    }

    .image-viewer-stage {
      width: 100%;
      height: min(72vh, 560px);
      min-height: 320px;
      border-radius: 16px;
      background: linear-gradient(135deg, #f8fafc, #eef2ff);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      cursor: zoom-in;
      touch-action: none;
    }

    .image-viewer-img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      transform-origin: center center;
      transition: transform 0.2s ease;
      transform: scale(1);
      user-select: none;
      -webkit-user-drag: none;
    }

    .image-viewer-nav {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .image-viewer-nav .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #cbd5e1;
      cursor: pointer;
    }

    .image-viewer-nav .dot.active {
      background: var(--primary);
      transform: scale(1.15);
    }

    @media (max-width: 640px) {
      .image-viewer-shell {
        width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
        padding: 10px;
      }

      .image-viewer-stage {
        height: min(70vh, 460px);
      }
    }

    /* ─── Base Body ─── */
    body {
      font-family: var(--font-main);
      color: var(--text-color);
      background-color: #ffffff;
      background-image: none;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ─── HEADER ─── */
    header {
      background: var(--surface);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--glass-border);
      position: sticky;
      top: 0;
      z-index: 200;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      box-shadow: 0 2px 20px rgba(0, 0, 50, 0.06);
    }

    .brand {
      font-family: var(--font-dec);
      font-weight: 800;
      font-size: 20px;
      color: var(--text-color);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .brand i {
      color: var(--primary);
      font-size: 18px;
    }

    .brand span {
      color: var(--primary);
    }

    .search-container {
      position: relative;
      cursor: pointer;
    }

    .search-container input {
      width: 130px;
      padding: 8px 14px 8px 36px;
      border: 1.5px solid rgba(0, 0, 50, 0.1);
      border-radius: 50px;
      outline: none;
      font-size: 13px;
      font-family: var(--font-main);
      background: rgba(255, 255, 255, 0.7);
      transition: all 0.2s;
      cursor: pointer;
    }

    .search-container i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary);
      font-size: 12px;
    }

    /* ─── MAIN LAYOUT ─── */
    main {
      flex-grow: 1;
      padding: 12px 14px;
      max-width: 680px;
      margin: 0 auto;
      width: 100%;
      padding-bottom: 90px;
    }

    .page {
      display: none;
    }

    .page.active {
      display: block;
      animation: pageFade 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes pageFade {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ─── SECTION TITLE ─── */
    .section-title {
      font-family: var(--font-dec);
      font-size: 16px;
      font-weight: 700;
      margin: 20px 0 10px;
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--text-color);
    }

    /* ─── SLIDER / BANNER ─── */
    .slider-box {
      width: 100%;
      height: 190px;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      margin-bottom: 4px;
      box-shadow: 0 8px 32px rgba(255, 104, 1, 0.18);
      touch-action: pan-y;
    }

    .slider-box img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: translateX(100%);
      transition: transform 0.6s ease, opacity 0.6s ease;
      pointer-events: none;
    }

    .slider-box img.active {
      opacity: 1;
      transform: translateX(0);
      z-index: 2;
    }

    .slider-box img.prev {
      transform: translateX(-100%);
      opacity: 0;
      z-index: 1;
    }

    .slider-box img.next {
      transform: translateX(100%);
      opacity: 0;
      z-index: 1;
    }

    @keyframes sliderIn {
      from {
        opacity: 0;
        transform: scale(1.04);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .slider-dots {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 5px;
      z-index: 3;
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      cursor: pointer;
      transition: all 0.3s;
    }

    .dot.active {
      transform: scale(1.25);
      background: var(--primary);
    }

    .dot.active {
      background: white;
      width: 18px;
      border-radius: 3px;
    }

    /* ─── CATEGORY BAR ─── */
    .category-filter-bar {
      display: flex;
      gap: 10px;
      padding: 14px 0 6px;
      overflow-x: auto;
    }

    .category-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      min-width: 56px;
      transition: transform 0.2s ease;
    }

    .category-item:active {
      transform: translateY(-3px);
    }

    .category-icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: white;
      box-shadow: 0 2px 10px rgba(0, 0, 50, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: var(--text-muted);
      transition: all 0.25s ease;
    }

    .category-item.active .category-icon,
    .category-item:active .category-icon {
      background: var(--gradient);
      color: white;
      box-shadow: 0 4px 16px rgba(255, 104, 1, 0.3);
    }

    .category-item span {
      font-size: 9.5px;
      color: var(--text-muted);
      font-weight: 600;
      text-align: center;
    }

    .category-item.active span {
      color: var(--primary);
    }

    /* ─── PRODUCT GRIDS ─── */
    .products-grid {
      display: grid;
      gap: 12px;
    }

    .products-grid.grid-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    .products-grid.side-scroll {
      display: flex;
      overflow-x: auto;
      gap: 12px;
      padding-bottom: 8px;
    }

    .products-grid.side-scroll .product-card {
      min-width: 148px;
      max-width: 148px;
      flex-shrink: 0;
    }

    /* ─── PRODUCT CARD ─── */
    .product-card {
      background: var(--surface);
      border-radius: var(--card-radius);
      overflow: hidden;
      box-shadow: var(--card-shadow);
      cursor: pointer;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
      position: relative;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(255, 255, 255, 0.6);
    }

    .product-card:active {
      transform: scale(0.97);
    }

    .product-img-wrapper {
      position: relative;
      width: 100%;
      height: 140px;
      background: #e2e8f0;
      overflow: hidden;
    }

    .image-shimmer {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 16px;
      background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
    }

    .product-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }

    .products-grid.side-scroll .product-img-wrapper {
      height: 120px;
    }

    .product-info {
      padding: 10px 10px 12px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      gap: 6px;
    }

    .product-name {
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.35;
      max-height: 34px;
      overflow: hidden;
      display: -webkit-box;
      line-clamp: 2;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .price-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .price-selling {
      font-size: 14px;
      font-weight: 800;
      color: var(--primary);
    }

    .price-original {
      font-size: 10px;
      text-decoration: line-through;
      color: var(--text-muted);
    }

    /* Card Badges */
    .card-rating-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(6px);
      color: #ffd700;
      padding: 3px 7px;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 700;
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 3px;
      letter-spacing: 0.3px;
    }

    .discount-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      background: linear-gradient(135deg, #ff416c, #ff4b2b);
      color: white;
      padding: 3px 7px;
      border-radius: 8px;
      font-size: 9.5px;
      font-weight: 800;
      z-index: 3;
      letter-spacing: 0.3px;
    }

    .stock-badge {
      position: absolute;
      bottom: 50px;
      left: 8px;
      padding: 2px 7px;
      border-radius: 6px;
      font-size: 8.5px;
      font-weight: 700;
      color: white;
      z-index: 3;
    }

    .stock-avail {
      background: linear-gradient(135deg, #10b981, #059669);
    }

    .stock-out {
      background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .stock-not {
      background: linear-gradient(135deg, #6b7280, #4b5563);
    }

    .rating-row {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-muted);
    }

    .rating-stars {
      color: #f59e0b;
    }

    /* ─── PRODUCT DETAIL ─── */
    .detail-container {
      background: var(--surface);
      border-radius: var(--card-radius);
      padding: 16px;
      box-shadow: var(--card-shadow);
      border: 1px solid var(--glass-border);
    }

    .gallery-box {
      width: 100%;
      height: 240px;
      border-radius: 16px;
      overflow: hidden;
      background: linear-gradient(135deg, #f8f8ff, #f0f0fa);
      position: relative;
    }

    .gallery-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: none;
    }

    .gallery-img.active {
      display: block;
      animation: sliderIn 0.3s ease;
    }

    .gallery-thumbs {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .thumb {
      width: 52px;
      height: 52px;
      border: 2px solid transparent;
      border-radius: 10px;
      cursor: pointer;
      object-fit: cover;
      transition: border-color 0.2s;
      flex-shrink: 0;
    }

    .thumb.active {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 104, 1, 0.2);
    }

    .detail-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media (min-width: 960px) {
      .detail-layout {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
      }
    }

    .detail-info {
      display: flex;
      flex-direction: column;
      gap: 18px;
      margin-top: 0;
    }

    .detail-title {
      font-family: var(--font-dec);
      font-size: 26px;
      font-weight: 900;
      margin-bottom: 12px;
      line-height: 1.2;
      color: #111827;
    }

    .detail-price-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 10px;
    }

    .detail-price-row .price-main {
      font-size: 28px;
      font-weight: 900;
      color: var(--primary);
    }

    .detail-price-row .price-old {
      font-size: 14px;
      color: #6b7280;
      text-decoration: line-through;
    }

    .detail-description {
      font-size: 14px;
      line-height: 1.75;
      color: #4b5563;
      margin-bottom: 0;
    }

    .detail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-top: 4px;
    }

    .detail-actions .btn {
      min-width: 150px;
    }

    .detail-summary {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(15, 23, 42, 0.05);
      border-radius: 16px;
      padding: 14px;
      display: grid;
      gap: 10px;
      font-size: 13px;
      color: #374151;
    }

    .detail-summary span {
      display: flex;
      justify-content: space-between;
      gap: 8px;
    }

    .product-sticky-bar {
      position: fixed;
      bottom: 62px;
      left: 0;
      width: 100%;
      background: #ffffff;
      border-top: 1px solid rgba(15, 23, 42, 0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
      z-index: 999;
    }

    .sticky-price {
      font-family: var(--font-dec);
      font-size: 18px;
      font-weight: 900;
      color: #dc2626;
      min-width: 90px;
    }

    .sticky-btn-buy,
    .sticky-btn-cart {
      flex: 1;
      margin: 0 6px;
      border-radius: 14px;
      min-width: 130px;
      letter-spacing: 0.01em;
    }

    @media (min-width: 960px) {
      .product-sticky-bar {
        display: none;
      }
    }

    @media (max-width: 640px) {
      .gallery-box {
        height: 260px;
      }

      .detail-actions {
        flex-direction: column;
        gap: 10px;
      }
    }

    .boost-row {
      display: flex;
      gap: 16px;
      margin: 10px 0;
      font-size: 12px;
      color: var(--text-muted);
    }

    .like-btn {
      color: var(--primary);
      cursor: pointer;
      font-weight: 700;
    }

    /* ─── BUTTONS ─── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      background: var(--gradient);
      color: white;
      border: none;
      border-radius: 12px;
      font-weight: 700;
      font-family: var(--font-main);
      cursor: pointer;
      transition: all 0.2s;
      width: 100%;
      font-size: 13.5px;
      box-shadow: 0 4px 16px rgba(255, 104, 1, 0.25);
    }

    .btn:active {
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(255, 104, 1, 0.35);
    }

    .btn:active {
      transform: scale(0.97);
    }

    .btn-secondary {
      background: rgba(0, 0, 50, 0.05);
      color: var(--text-color);
      box-shadow: none;
      border: 1.5px solid rgba(0, 0, 50, 0.1);
    }

    .btn-secondary:active {
      background: rgba(0, 0, 50, 0.08);
      box-shadow: none;
      transform: none;
    }

    .btn-danger {
      background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    /* ─── REVIEWS ─── */
    .reviews-box {
      margin-top: 20px;
      border-top: 1px solid rgba(0, 0, 50, 0.06);
      padding-top: 16px;
    }

    .reviews-box h3 {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .review-item {
      border-bottom: 1px solid rgba(0, 0, 50, 0.05);
      padding: 12px 0;
    }

    .review-user {
      font-weight: 700;
      font-size: 13px;
      margin-bottom: 3px;
    }

    .review-text {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 6px;
      line-height: 1.5;
    }

    .review-pic {
      max-width: 70px;
      border-radius: 8px;
      margin-top: 4px;
      cursor: pointer;
    }

    .write-review-box {
      background: linear-gradient(135deg, rgba(255, 104, 1, 0.03), rgba(124, 58, 237, 0.03));
      padding: 14px;
      border-radius: 14px;
      margin-bottom: 16px;
      border: 1px solid rgba(255, 104, 1, 0.1);
    }

    .rating-picker {
      font-size: 20px;
      color: #ddd;
      cursor: pointer;
      margin-bottom: 10px;
      display: flex;
      gap: 6px;
    }

    .rating-picker .star.active {
      color: #f59e0b;
    }

    /* ─── FORMS ─── */
    .form-group {
      margin-bottom: 14px;
      text-align: left;
    }

    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .form-input,
    select,
    textarea {
      width: 100%;
      padding: 11px 14px;
      border: 1.5px solid rgba(0, 0, 50, 0.1);
      border-radius: 10px;
      font-family: var(--font-main);
      outline: none;
      font-size: 13px;
      background: rgba(255, 255, 255, 0.8);
      transition: border-color 0.2s, box-shadow 0.2s;
      color: var(--text-color);
    }

    .form-input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(255, 104, 1, 0.12);
    }

    .file-upload-box {
      border: 2px dashed rgba(255, 104, 1, 0.3);
      padding: 14px;
      border-radius: 12px;
      text-align: center;
      cursor: pointer;
      position: relative;
      color: var(--text-muted);
      font-size: 12px;
      transition: border-color 0.2s, background 0.2s;
    }

    .file-upload-box:active {
      border-color: var(--primary);
      background: rgba(255, 104, 1, 0.03);
    }

    .file-upload-box input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    /* ─── CART ─── */
    .cart-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .cart-item {
      background: var(--surface);
      border-radius: 16px;
      padding: 12px;
      display: flex;
      gap: 12px;
      align-items: center;
      box-shadow: 0 2px 12px rgba(0, 0, 50, 0.06);
      border: 1px solid var(--glass-border);
      transition: transform 0.2s;
    }

    .cart-item img {
      width: 56px;
      height: 56px;
      border-radius: 10px;
      object-fit: cover;
    }

    .cart-item-info {
      flex-grow: 1;
    }

    .cart-item-title {
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .qty-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 6px;
    }

    .qty-btn {
      width: 26px;
      height: 26px;
      border: 1.5px solid rgba(0, 0, 50, 0.1);
      border-radius: 8px;
      background: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      transition: all 0.15s;
    }

    .qty-btn:active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }

    .checkout-summary {
      background: var(--surface);
      border-radius: var(--card-radius);
      padding: 16px;
      box-shadow: var(--card-shadow);
      border: 1px solid var(--glass-border);
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 13px;
    }

    /* ─── ORDER TRACKER ─── */
    .order-card {
      background: var(--surface);
      border-radius: var(--card-radius);
      border: 1px solid var(--glass-border);
      padding: 16px;
      margin-bottom: 12px;
      box-shadow: var(--card-shadow);
    }

    .order-header {
      display: flex;
      justify-content: space-between;
      font-size: 11.5px;
      color: var(--text-muted);
      border-bottom: 1px solid rgba(0, 0, 50, 0.06);
      padding-bottom: 8px;
      margin-bottom: 10px;
    }

    .tracker-steps {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      position: relative;
      margin: 14px 0;
    }

    .tracker-steps::after {
      content: '';
      position: absolute;
      top: 11px;
      left: 10%;
      right: 10%;
      height: 2px;
      background: linear-gradient(90deg, rgba(0, 0, 50, 0.1), rgba(0, 0, 50, 0.05));
      z-index: 1;
    }

    .tracker-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 9.5px;
      color: var(--text-muted);
      position: relative;
      z-index: 2;
      gap: 4px;
    }

    .tracker-step .node {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(0, 0, 50, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 10px;
    }

    .tracker-step.active {
      color: var(--primary);
      font-weight: 700;
    }

    .tracker-step.active .node {
      background: var(--gradient);
      box-shadow: 0 0 12px rgba(255, 104, 1, 0.4);
    }

    .tracker-step.cancelled .node {
      background: var(--danger);
    }

/* ─── PROFILE / AUTH ─── */
.page.centered-auth {
  width: 100% !important;
  min-height: calc(100vh - 92px) !important;
  height: calc(100vh - 92px) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.auth-box {
  width: min(400px, calc(100% - 32px)) !important;
  max-width: 400px !important;

  margin: 0 auto !important;

  background: var(--surface);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 50, 0.1);
  border: 1px solid var(--glass-border);

  box-sizing: border-box;
}

    body.hide-navigation header,
    body.hide-navigation .bottom-tab-bar,
    body.hide-navigation #chat-launcher {
      display: none !important;
    }

    .login-prompt-card {
      display: flex;
      align-items: center;
      gap: 16px;
      background: var(--surface);
      border-radius: 20px;
      padding: 22px;
      box-shadow: var(--card-shadow);
      border: 1px solid rgba(0, 0, 50, 0.08);
      max-width: 500px;
      margin: 24px auto;
    }

    .login-prompt-card i {
      font-size: 28px;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      color: white;
      background: var(--gradient);
      border-radius: 50%;
    }

    .login-action-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 14px;
      border-radius: 14px;
      background: var(--primary);
      color: white;
      font-weight: 700;
      text-decoration: none;
      font-size: 13px;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .login-action-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(255, 104, 1, 0.2);
    }

    .share-icon-btn {
      margin-left: auto;
      border: none;
      background: rgba(255, 104, 1, 0.1);
      color: var(--primary);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 12px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background 0.2s, transform 0.2s;
    }

    .share-icon-btn:hover {
      background: rgba(255, 104, 1, 0.18);
      transform: translateY(-1px);
    }

    .cart-grid {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .cart-item {
      background: var(--surface);
      border-radius: 18px;
      padding: 16px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 14px;
      align-items: center;
      border: 1px solid rgba(255, 255, 255, 0.7);
      box-shadow: 0 12px 30px rgba(0, 0, 50, 0.08);
    }

    .cart-item img {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      object-fit: cover;
    }

    .cart-item-info {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .cart-item-title {
      font-size: 15px;
      font-weight: 700;
      color: #111827;
    }

    .cart-item-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      color: #475569;
      font-size: 13px;
    }

    .cart-item-price {
      font-size: 15px;
      font-weight: 800;
      color: var(--primary);
    }

    .cart-item-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: space-between;
      gap: 10px;
    }

    .cart-item-actions .qty-controls {
      margin-top: 0;
    }

    .checkout-summary {
      background: var(--surface);
      border-radius: 24px;
      padding: 20px;
      box-shadow: var(--card-shadow);
      border: 1px solid rgba(255, 255, 255, 0.7);
    }

    .checkout-summary h2,
    .checkout-summary .summary-row {
      color: #1f2937;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      font-size: 14px;
    }

    .summary-row strong {
      color: #111827;
    }

    .order-card {
      background: var(--surface);
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.7);
      padding: 18px;
      box-shadow: var(--card-shadow);
    }

    .order-header {
      display: flex;
      justify-content: space-between;
      font-size: 12.5px;
      color: #6b7280;
      border-bottom: 1px solid rgba(15, 23, 42, 0.06);
      padding-bottom: 10px;
      margin-bottom: 14px;
    }

    .tracker-steps {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      position: relative;
      margin: 16px 0;
    }

    .tracker-steps::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 8%;
      right: 8%;
      height: 2px;
      background: rgba(255, 104, 1, 0.18);
      transform: translateY(-50%);
      z-index: 1;
    }

    .tracker-step {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      color: #64748b;
    }

    .tracker-step .node {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: white;
      border: 2px solid rgba(255, 104, 1, 0.16);
      color: var(--primary);
      box-shadow: 0 5px 18px rgba(255, 104, 1, 0.1);
    }

    .tracker-step.active .node {
      background: linear-gradient(135deg, #ff8b3d, #ff6801);
      color: white;
      border-color: transparent;
    }

    .tracker-step.active {
      color: #1f2937;
      font-weight: 700;
    }

    .auth-toggle {
      display: flex;
      margin-bottom: 20px;
      border-radius: 12px;
      background: rgba(0, 0, 50, 0.05);
      padding: 3px;
    }

    .auth-tab {
      flex-grow: 1;
      padding: 8px;
      text-align: center;
      cursor: pointer;
      font-weight: 700;
      font-size: 13px;
      border-radius: 10px;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .auth-tab.active {
      background: white;
      color: var(--primary);
      box-shadow: 0 2px 10px rgba(0, 0, 50, 0.08);
    }

    .profile-box {
      background: var(--surface);
      border-radius: var(--card-radius);
      padding: 18px;
      box-shadow: var(--card-shadow);
      border: 1px solid var(--glass-border);
    }

    .profile-pic-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 16px;
    }

    .profile-pic-preview {
      width: 84px;
      height: 84px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid transparent;
      background: var(--gradient);
      padding: 2px;
      margin-bottom: 8px;
    }

    /* ─── CHAT WIDGET ─── */
    #chat-launcher {
      position: fixed;
      bottom: 82px;
      right: 18px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--gradient);
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      cursor: grab;
      box-shadow: 0 6px 24px rgba(255, 104, 1, 0.4);
      z-index: 99999;
      transition: transform 0.2s;
    }

    #chat-launcher:active {
      transform: scale(1.08);
    }

    #chat-launcher:active {
      cursor: grabbing;
    }

    #chat-launcher.notify::after {
      content: '';
      position: absolute;
      top: 1px;
      right: 1px;
      width: 13px;
      height: 13px;
      background: #00e676;
      border-radius: 50%;
      border: 2px solid white;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        transform: scale(0.9);
        opacity: 0.8;
      }

      50% {
        transform: scale(1.15);
        opacity: 1;
      }
    }

    #chat-box-widget {
      position: fixed;
      bottom: 148px;
      right: 18px;
      width: 320px;
      height: 400px;
      border-radius: 20px;
      background: white;
      box-shadow: 0 12px 48px rgba(0, 0, 50, 0.18);
      border: 1px solid rgba(0, 0, 50, 0.06);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 99999;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    #chat-box-widget.fullscreen {
      width: 100vw;
      height: 100vh;
      bottom: 0;
      right: 0;
      border-radius: 0;
    }

    .widget-header {
      background: var(--gradient);
      color: white;
      padding: 12px 16px;
      font-weight: 700;
      font-size: 13px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .widget-header-actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .widget-header-actions i {
      cursor: pointer;
      font-size: 14px;
    }

    .widget-messages {
      flex-grow: 1;
      padding: 12px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #f7f8ff;
    }

    .w-bubble {
      max-width: 78%;
      padding: 9px 13px;
      border-radius: 14px;
      font-size: 12px;
      line-height: 1.5;
    }

    .w-bubble.client {
      background: white;
      box-shadow: 0 1px 6px rgba(0, 0, 50, 0.07);
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }

    .w-bubble.agent {
      background: var(--gradient);
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }

    .w-bubble.ai {
      background: #e8f5e9;
      border: 1px solid #c8e6c9;
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }

    .widget-input {
      padding: 10px;
      border-top: 1px solid rgba(0, 0, 50, 0.06);
      display: flex;
      gap: 8px;
      background: white;
    }

    .widget-input input {
      flex-grow: 1;
      padding: 9px 14px;
      border: 1.5px solid rgba(0, 0, 50, 0.1);
      border-radius: 50px;
      outline: none;
      font-size: 12px;
      font-family: var(--font-main);
    }

    .widget-input input:focus {
      border-color: var(--primary);
    }

    .widget-input button {
      border: none;
      background: var(--gradient);
      color: white;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    /* ─── BOTTOM TAB BAR ─── */
    .bottom-tab-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-top: 1px solid rgba(0, 0, 50, 0.07);
      display: flex;
      justify-content: space-around;
      padding: 8px 4px 12px;
      z-index: 100;
      box-shadow: 0 -4px 20px rgba(0, 0, 50, 0.06);
    }

    .tab-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 9.5px;
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
      position: relative;
      gap: 3px;
      padding: 2px 8px;
      border-radius: 12px;
      transition: all 0.2s;
      min-width: 48px;
    }

    .tab-item i {
      font-size: 18px;
      transition: transform 0.2s;
    }

    .tab-item.active {
      color: var(--primary);
      font-weight: 700;
    }

    .tab-item.active i {
      transform: scale(1.15);
    }

    .tab-item.notify::after {
      content: '';
      position: absolute;
      top: 0px;
      right: 8px;
      width: 8px;
      height: 8px;
      background: #00e676;
      border-radius: 50%;
      border: 1.5px solid white;
      box-shadow: 0 0 6px #00e676;
    }

    /* ─── MODAL OVERLAY ─── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(10, 10, 40, 0.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-box {
      background: white;
      border-radius: 20px;
      box-shadow: 0 24px 64px rgba(0, 0, 50, 0.2);
      overflow: hidden;
      animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      max-width: 480px;
      width: 92%;
    }

    @keyframes modalPop {
      from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .modal-header {
      padding: 16px 20px;
      border-bottom: 1px solid rgba(0, 0, 50, 0.06);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .close-btn {
      cursor: pointer;
      color: var(--text-muted);
      transition: color 0.2s;
      font-size: 22px;
    }

    .close-btn:active {
      color: var(--danger);
    }

    /* ─── SEARCH SUGGESTIONS ─── */
    #search-suggestions>div:active {
      background: #f7f8ff;
    }

    /* ─── STATUS BADGES ─── */
    .status-badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 10px;
      border-radius: 50px;
      font-size: 10.5px;
      font-weight: 700;
    }

    .status-pending {
      background: rgba(245, 158, 11, 0.12);
      color: #b45309;
    }

    .status-confirmed {
      background: rgba(59, 130, 246, 0.12);
      color: #1d4ed8;
    }

    .status-shipped {
      background: rgba(124, 58, 237, 0.12);
      color: #6d28d9;
    }

    .status-delivered {
      background: rgba(16, 185, 129, 0.12);
      color: #065f46;
    }

    .status-cancelled {
      background: rgba(239, 68, 68, 0.12);
      color: #b91c1c;
    }

    /* ─── MICRO ANIMATIONS ─── */
    @keyframes shimmer {
      0% {
        background-position: -200% 0;
      }

      100% {
        background-position: 200% 0;
      }
    }

    .loading-shimmer {
      background: linear-gradient(90deg, #f7f7f7 25%, #ececec 50%, #f7f7f7 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
    }

    .global-loading-screen {
      position: fixed;
      inset: 0;
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 50; /* keep below header (200) and bottom bar (100) */
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .global-loading-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 28px 24px;
      border-radius: 24px;
      background: #ffffff;
      box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
      max-width: 280px;
      width: 100%;
    }

    .loader-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 6px solid #e5e7eb;
      border-top-color: var(--primary);
      animation: spin 1s linear infinite;
    }

    .loader-circle.detail {
      width: 50px;
      height: 50px;
      border-width: 5px;
    }

    .loader-label {
      font-weight: 700;
      font-size: 18px;
      color: #1f2937;
      text-align: center;
    }

    .loader-subtitle {
      font-size: 12px;
      color: #9ca3af;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      text-align: center;
    }

    .avatar-gradient {
      background: linear-gradient(135deg, #ff9a00 0%, #ff5c7a 50%, #7c3aed 100%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      overflow: hidden;
      background-size: cover;
      background-position: center;
    }

    .detail-loading-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 280px;
      background: #ffffff;
      border-radius: 22px;
      box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
      padding: 24px;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .loading-card {
      background: #ffffff;
      border-radius: 22px;
      padding: 18px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      display: grid;
      gap: 12px;
      min-height: 210px;
      border: 1px solid rgba(0,0,0,0.04);
    }

    .loading-block {
      width: 100%;
      height: 18px;
      border-radius: 12px;
      display: block;
    }

    .loading-block.short {
      width: 70%;
    }

    .loading-block.shorter {
      width: 50%;
    }

    .loading-block.tiny {
      width: 35%;
      height: 14px;
    }

    :root {
      --primary: #ff6801;
      --primary-hover: #e05b00;
      --text-color: #212121;
      --bg-color: #ffffff;
      --bg-home: none;
      --bg-product: none;
      --bg-cart: none;
      --bg-profile: none;
      --bg-orders: none;
      --card-radius: 12px;
      --font-dec: 'Outfit', sans-serif;
      --font-main: 'Inter', sans-serif;
    }

    /* Hide all scrollbars globally */
    ::-webkit-scrollbar {
      display: none !important;
    }

    * {
      -ms-overflow-style: none !important;
      /* IE and Edge */
      scrollbar-width: none !important;
      /* Firefox */
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-main);
      color: var(--text-color);
      background-color: #ffffff;
      background-image: none;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: background 0.3s;
    }

    /* Fixed Top Navigation */
    header {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 12px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand {
      font-family: var(--font-dec);
      font-weight: 800;
      font-size: 22px;
      color: var(--text-color);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .brand span {
      color: var(--primary);
    }

    .search-container {
      flex-grow: 1;
      max-width: 500px;
      margin: 0 16px;
      position: relative;
    }

    .search-container input {
      width: 100%;
      padding: 10px 16px;
      padding-right: 40px;
      border: 1px solid #ddd;
      border-radius: 20px;
      outline: none;
      font-size: 14px;
    }

    .search-container i {
      position: absolute;
      right: 14px;
      top: 13px;
      color: #999;
    }

    /* Main Content */
    main {
      flex-grow: 1;
      padding: 20px 16px;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
      padding-bottom: 80px;
      /* Spacer for bottom tab bar */
    }

    .page {
      display: none;
    }

    .page.active {
      display: block;
      animation: pageFade 0.3s ease-out;
    }

    @keyframes pageFade {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Layout Sections */
    .section-title {
      font-family: var(--font-dec);
      font-size: 18px;
      font-weight: 700;
      margin: 24px 0 12px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* Home Page slider & Banners */
    .slider-box {
      width: 100%;
      height: 180px;
      border-radius: var(--card-radius);
      overflow: hidden;
      position: relative;
      margin-bottom: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      touch-action: pan-y;
    }

    .slider-box img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: translateX(100%);
      transition: transform 0.6s ease, opacity 0.6s ease;
      pointer-events: none;
    }

    .slider-box img.active {
      opacity: 1;
      transform: translateX(0);
      z-index: 2;
    }

    .slider-box img.prev {
      transform: translateX(-100%);
      opacity: 0;
      z-index: 1;
    }

    .slider-box img.next {
      transform: translateX(100%);
      opacity: 0;
      z-index: 1;
    }

    .slider-dots {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 3;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s;
    }

    .dot.active {
      transform: scale(1.25);
      background: var(--primary);
    }

    /* Predefined Layout Grids */
    .products-grid {
      display: grid;
      gap: 14px;
    }

    .products-grid.grid-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    .products-grid.side-scroll {
      display: flex;
      overflow-x: auto;
      gap: 14px;
      padding-bottom: 10px;
      scrollbar-width: thin;
    }

    .products-grid.side-scroll .product-card {
      min-width: 155px;
      max-width: 155px;
      flex-shrink: 0;
    }

    /* Product Cards */
    .product-card {
      background: rgba(255, 255, 255, 0.95);
      border-radius: var(--card-radius);
      border: 1px solid rgba(0, 0, 0, 0.05);
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .product-img {
      width: 100%;
      height: 130px;
      object-fit: cover;
      background: #eee;
    }

    .product-info {
      padding: 10px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      justify-content: space-between;
    }

    .product-name {
      font-size: 13px;
      font-weight: 600;
      line-height: 1.3;
      height: 34px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      line-clamp: 2;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      margin-bottom: 0px;
    }

    .price-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 4px;
    }

    .price-selling {
      font-size: 14px;
      font-weight: 700;
      color: var(--primary);
    }

    .price-original {
      font-size: 10px;
      text-decoration: line-through;
      color: #888;
    }

    .discount-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      background: #ff3d00;
      color: white;
      padding: 3px 6px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 700;
      z-index: 2;
    }

    .card-rating-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      color: #ffc107;
      padding: 3px 6px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 700;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .rating-row {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      color: #666;
    }

    .rating-stars {
      color: #ffc107;
    }

    .stock-badge {
      position: absolute;
      bottom: 8px;
      left: 8px;
      padding: 3px 6px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 700;
      color: white;
      z-index: 2;
    }

    .stock-avail {
      background: #2e7d32;
    }

    .stock-out {
      background: #c62828;
    }

    .stock-not {
      background: #555555;
    }

    /* Product Details Page */
    .detail-container {
      background: white;
      border-radius: var(--card-radius);
      padding: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .gallery-box {
      width: 100%;
      height: 220px;
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      background: #fafafa;
      border: 1px solid #f0f0f0;
    }

    .gallery-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: none;
    }

    .gallery-img.active {
      display: block;
    }

    .gallery-thumbs {
      display: none;
      gap: 8px;
      margin-top: 8px;
      overflow-x: auto;
    }

    .thumb {
      width: 48px;
      height: 48px;
      border: 2px solid transparent;
      border-radius: 4px;
      cursor: pointer;
      object-fit: cover;
    }

    .thumb.active {
      border-color: var(--primary);
    }

    .detail-info {
      margin-top: 16px;
    }

    .detail-title {
      font-family: var(--font-dec);
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .boost-row {
      display: flex;
      gap: 16px;
      margin: 12px 0;
      font-size: 13px;
      color: #555;
    }

    .like-btn {
      color: var(--primary);
      cursor: pointer;
      font-weight: 600;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px 20px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      width: 100%;
      font-size: 14px;
      text-align: center;
    }

    .btn-secondary {
      background: none;
      color: #333;
    }

    /* Reviews */
    .reviews-box {
      margin-top: 24px;
      border-top: 1px solid #eee;
      padding-top: 16px;
      display:none;
    }

    .reviews-box h3 {
      font-size: 16px;
      margin-bottom: 12px;
    }

    .review-item {
      border-bottom: 1px solid #f9f9f9;
      padding: 12px 0;
    }

    .review-user {
      font-weight: 600;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .review-text {
      font-size: 12px;
      color: #444;
      margin-bottom: 6px;
    }

    .review-pic {
      max-width: 70px;
      border-radius: 4px;
      margin-top: 4px;
      cursor: pointer;
    }

    .write-review-box {
      background: #fafafa;
      padding: 14px;
      border-radius: 8px;
      margin-bottom: 16px;
      border: 1px solid #eee;
    }

    .rating-picker {
      font-size: 18px;
      color: #ccc;
      cursor: pointer;
      margin-bottom: 10px;
      display: flex;
      gap: 6px;
    }

    .rating-picker .star.active {
      color: #ffc107;
    }

    .form-group {
      margin-bottom: 12px;
      text-align: left;
    }

    .form-group label {
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      font-weight: 600;
      color: #666;
    }

    .form-input,
    select,
    textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-family: inherit;
      outline: none;
      font-size: 13px;
    }

    .form-input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--primary);
    }

    .file-upload-box {
      border: 1.5px dashed #ccc;
      padding: 12px;
      border-radius: 6px;
      text-align: center;
      cursor: pointer;
      position: relative;
    }

    .file-upload-box input {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    /* Cart Layout */
    .cart-grid {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .cart-item {
      background: white;
      border-radius: 8px;
      padding: 12px;
      display: flex;
      gap: 10px;
      align-items: center;
      border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .cart-item img {
      width: 50px;
      height: 50px;
      border-radius: 4px;
      object-fit: cover;
    }

    .cart-item-info {
      flex-grow: 1;
    }

    .cart-item-title {
      font-size: 13px;
      font-weight: 600;
    }

    .qty-controls {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
    }

    .qty-btn {
      width: 22px;
      height: 22px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #eee;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
    }

    .checkout-summary {
      background: white;
      border-radius: var(--card-radius);
      padding: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 13px;
    }

    /* Orders Tracker Section */
    .order-card {
      background: white;
      border-radius: var(--card-radius);
      border: 1px solid rgba(0, 0, 0, 0.05);
      padding: 16px;
      margin-bottom: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }

    .order-header {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: #666;
      border-bottom: 1px solid #f0f0f0;
      padding-bottom: 8px;
      margin-bottom: 10px;
    }

    .tracker-steps {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      margin: 16px 0;
    }

    .tracker-steps::after {
      content: '';
      position: absolute;
      top: 10px;
      left: 10%;
      right: 10%;
      height: 2px;
      background: #ddd;
      z-index: 1;
    }

    .tracker-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 10px;
      color: #999;
      position: relative;
      z-index: 2;
    }

    .tracker-step .node {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 10px;
      margin-bottom: 4px;
    }

    .tracker-step.active {
      color: var(--primary);
      font-weight: 600;
    }

    .tracker-step.active .node {
      background: var(--primary);
      box-shadow: 0 0 8px var(--primary);
    }

    .tracker-step.cancelled .node {
      background: #c62828;
    }

    .profile-box {
      background: white;
      border-radius: var(--card-radius);
      padding: 18px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    }

    .profile-pic-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 16px;
    }

    .profile-pic-preview {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--primary);
      margin-bottom: 8px;
    }

    /* Floating Draggable Chat Widget */
    #chat-launcher {
      position: fixed;
      bottom: 80px;
      right: 20px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      cursor: grab;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
      z-index: 99999;
    }

    #chat-launcher:active {
      cursor: grabbing;
    }

    #chat-launcher.notify::after {
      content: '';
      position: absolute;
      top: 1px;
      right: 1px;
      width: 12px;
      height: 12px;
      background: #00e676;
      border-radius: 50%;
      border: 2px solid white;
      box-shadow: 0 0 8px #00e676;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% {
        transform: scale(0.9);
        opacity: 0.9;
      }

      50% {
        transform: scale(1.1);
        opacity: 1;
      }

      100% {
        transform: scale(0.9);
        opacity: 0.9;
      }
    }

    #chat-box-widget {
      position: fixed;
      bottom: 140px;
      right: 20px;
      width: 310px;
      height: 380px;
      border-radius: 12px;
      background: white;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(0, 0, 0, 0.08);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 99999;
      transition: all 0.3s ease;
    }

    #chat-box-widget.fullscreen {
      width: 100vw;
      height: 100vh;
      bottom: 0;
      right: 0;
      border-radius: 0;
    }

    .widget-header {
      background: var(--primary);
      color: white;
      padding: 10px 14px;
      font-weight: 600;
      font-size: 13px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .widget-header-actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .widget-header-actions i {
      cursor: pointer;
      font-size: 14px;
    }

    .widget-messages {
      flex-grow: 1;
      padding: 10px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #fafafa;
    }

    .w-bubble {
      max-width: 75%;
      padding: 8px 12px;
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.4;
    }

    .w-bubble.client {
      background: #e2e2e2;
      align-self: flex-start;
      border-bottom-left-radius: 0;
    }

    .w-bubble.agent {
      background: var(--primary);
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 0;
    }

    .w-bubble.ai {
      background: #e8f5e9;
      border: 1px solid #c8e6c9;
      align-self: flex-start;
      border-bottom-left-radius: 0;
    }

    .widget-input {
      padding: 8px;
      border-top: 1px solid #eee;
      display: flex;
      gap: 6px;
      background: white;
    }

    .widget-input input {
      flex-grow: 1;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 16px;
      outline: none;
      font-size: 12px;
    }

    .widget-input button {
      border: none;
      background: var(--primary);
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
    }

    /* Fixed Bottom Tab Bar for Mobile */
    .bottom-tab-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      display: flex;
      justify-content: space-around;
      padding: 8px 0;
      z-index: 100;
    }

    .tab-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 10px;
      color: #777;
      cursor: pointer;
      text-decoration: none;
      position: relative;
    }

    .tab-item.active {
      color: var(--primary);
      font-weight: 600;
    }

    .tab-item i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    html,
    body {
      overscroll-behavior: none;
    }

    .tab-item.notify::after {
      content: '';
      position: absolute;
      top: 2px;
      right: 12px;
      width: 8px;
      height: 8px;
      background: #00e676;
      border-radius: 50%;
      border: 1.5px solid white;
      box-shadow: 0 0 4px #00e676;
    }

    /* Category Filter Bar */
    .category-filter-bar {
      display: flex;
      gap: 10px;
      padding: 12px 4px 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .category-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      min-width: 58px;
      transition: transform 0.15s ease;
    }


    .category-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f0f0f5;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: #666;
      transition: background 0.2s, color 0.2s;
    }

    .category-item:active .category-icon {
      background: var(--primary);
      color: white;
    }

    .category-item span {
      font-size: 10px;
      color: #555;
      font-weight: 500;
    }

    .category-item.active span {
      color: var(--primary);
      font-weight: 700;
    }

    /* Modal Overlay */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Suggestion hover effects */
    #search-suggestions>div:active {
      background: #f7f8ff;
    }

    /* ─── CLOTHING STORE CUSTOM STYLES ─── */
    .stacked-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: absolute;
      right: 12px;
      top: 12px;
      z-index: 10;
    }
    .circular-action-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #ff4757;
      color: white;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
      cursor: pointer;
      font-size: 16px;
      transition: background 0.2s, transform 0.2s;
    }
    .circular-action-btn:active {
      transform: scale(0.9);
    }
    .product-sticky-bar {
      position: fixed;
      bottom: 53px; /* Just above mobile tab bar */
      left: 0;
      width: 100%;
      background: white;
      border-top: 1px solid rgba(0,0,0,0.06);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
      z-index: 99;
    }
    .sticky-price {
      font-family: var(--font-dec);
      font-size: 18px;
      font-weight: 800;
      color: #ef4444;
    }
    .sticky-btn-buy {
      flex: 1;
      margin: 0 8px 0 16px;
      background: #ffaa00;
      color: white;
      border: none;
      padding: 11px;
      border-radius: 8px;
      font-family: var(--font-dec);
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      text-align: center;
    }
    .sticky-btn-cart {
      flex: 1;
      margin: 0;
      background: #ff4757;
      color: white;
      border: none;
      padding: 11px;
      border-radius: 8px;
      font-family: var(--font-dec);
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      text-align: center;
    }
    .size-selection-box {
      margin: 16px 0;
    }
    .size-selection-title {
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 8px;
    }
    .size-pills-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .size-pill {
      min-width: 40px;
      height: 40px;
      padding: 0 12px;
      border-radius: 8px;
      border: 1px solid #ddd;
      background: white;
      color: var(--text-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .size-pill.active {
      background: #ff6801;
      color: white;
      border-color: #ff6801;
      box-shadow: 0 4px 10px rgba(255, 104, 1, 0.2);
    }
    .cart-summary-card {
      background: #eef7f2;
      border-radius: 12px;
      padding: 16px;
      margin-top: 16px;
      border: 1px solid #d0ebd9;
    }
    .checkout-btn-green {
      background: #20a060;
      color: white;
      width: 100%;
      border: none;
      padding: 12px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      text-align: center;
      margin-top: 14px;
      box-shadow: 0 4px 12px rgba(32, 160, 96, 0.2);
    }
    .profile-list-card {
      background: white;
      border-radius: 12px;
      padding: 4px 16px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.02);
      border: 1px solid #eee;
    }
    .profile-list-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #f6f6f6;
      cursor: pointer;
      font-size: 14px;
    }
    .profile-list-row:last-child {
      border-bottom: none;
    }
    .profile-list-label {
      color: #777;
      font-weight: 500;
    }
    .profile-list-val {
      font-weight: 600;
      color: var(--text-color);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .profile-list-chevron {
      color: #bbb;
      font-size: 12px;
    }
    .profile-avatar-wrapper {
      position: relative;
      width: 90px;
      height: 90px;
      margin: 0 auto 12px auto;
    }
    .profile-avatar-img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #ddd;
    }
    /* profile avatar camera overlay removed per user request */
    .notification-toast {
      position: fixed;
      top: 20px;
      right: 20px;
      background: linear-gradient(135deg, #ff6801 0%, #ff4757 100%);
      color: white;
      padding: 12px 24px;
      border-radius: 8px;
      box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
      z-index: 99999;
      font-weight: 600;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: slideInRight 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    }
    @keyframes slideInRight {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    @keyframes fadeOut {
      from { opacity: 1; }
      to { opacity: 0; pointer-events: none; }
    }

    /* Smooth Slide Animation for Banners and Galleries */
    .slider-box {
      position: relative;
      overflow: hidden;
    }
    .slider-box img {
      transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
      opacity: 0;
      transform: scale(0.97);
    }
    .slider-box img.active {
      opacity: 1;
      transform: scale(1);
    }

    /* Clothing Options: Color & Size Chips */
    .opt-chip-group {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
      margin-bottom: 14px;
    }
    .opt-chip {
      padding: 6px 14px;
      border: 1.5px solid #e2e8f0;
      border-radius: 8px;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      background: #f8fafc;
      color: var(--text-color);
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .opt-chip:hover {
      border-color: var(--primary);
    }
    .opt-chip.active {
      border-color: var(--primary);
      background: rgba(255, 104, 1, 0.1);
      color: var(--primary);
      box-shadow: 0 2px 8px rgba(255, 104, 1, 0.15);
    }

    /* Search Quick Recommendation Tags */
    .search-tags-container {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .search-tag-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 20px;
      background: #f1f5f9;
      color: #475569;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      border: 1px solid #e2e8f0;
    }
    .search-tag-chip:hover {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }

    /* Fixed Sticky Action Bar for Product Detail Page */
    #product-bottom-actions {
      position: fixed;
      bottom: 56px;
      left: 0;
      width: 100%;
      padding: 10px 16px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: 1px solid #e2e8f0;
      display: flex;
      gap: 10px;
      z-index: 180;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    }
    #product-bottom-actions .btn {
      flex: 1;
      padding: 12px;
      font-size: 14px;
      font-weight: 700;
      border-radius: 10px;
      margin: 0;
    }

    /* Admin Mobile-First & Minimal Detail Modal */
    .admin-info-modal {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 3000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .admin-info-content {
      background: white;
      border-radius: 16px;
      width: 100%;
      max-width: 520px;
      max-height: 85vh;
      overflow-y: auto;
      padding: 24px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      position: relative;
    }
