@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --primary: #000000;
  --primary-light: #f1f1f1;
  --pink: #000000; /* Remapped to black for primary use */
  --pink-light: #f1f1f1;
  --purple: #000000;
  --purple-light: #f1f1f1;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --green: #10b981;

  /* Semantic */
  --bg: #ffffff;
  --card: #f9f9f9;
  --text-1: #000000;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: rgba(0,0,0,0.1);

  /* Elevation */
  --shadow-1: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-3: 0 8px 24px rgba(0,0,0,0.08);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Scrollbar hide */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== UTILITIES ========== */
@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ========== TOP STATUS BAR ========== */
.status-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  background: rgba(245,245,247,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.status-bar .logo {
  font-size: 20px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--text-1);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-1); box-shadow: var(--shadow-1);
  transition: all 0.2s;
  position: relative;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn .badge {
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink); border: 2px solid var(--bg);
}

/* ========== GREETING / HERO ========== */
.greeting {
  padding: 12px 0 0;
}
.greeting h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.15; margin-bottom: 4px;
}
.greeting p { font-size: 15px; color: var(--text-2); }

/* ========== SEARCH BAR ========== */
.search-bar {
  margin: 16px 0;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 12px 20px;
  box-shadow: var(--shadow-1);
}
.search-bar i { font-size: 18px; color: var(--text-3); }
.search-bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; font-family: inherit; color: var(--text-1);
}
.search-bar input::placeholder { color: var(--text-3); }

/* ========== PROMO BANNER CAROUSEL ========== */
.promo-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 16px; padding: 4px 0 16px;
  margin: 0; 
}
.promo-card {
  scroll-snap-align: center;
  flex: 0 0 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-3);
}
.promo-card img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.promo-card .overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fff;
}
.promo-card .tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  width: fit-content; margin-bottom: 8px;
}
.promo-card h3 { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.promo-card p { font-size: 13px; opacity: 0.85; }
.promo-btn {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #000; color: #fff;
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 700; border: none;
  width: fit-content;
}

/* ========== CATEGORIES (ICON CIRCLES) ========== */
.cat-section { padding: 4px 0 8px; }
.cat-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 4px 0 12px;
  align-items: flex-start;
}
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 0 0 84px; width: 84px;
}
.cat-icon {
  width: 100%; aspect-ratio: 1; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: var(--shadow-2);
  transition: transform 0.2s;
  flex-shrink: 0; background: #f8f9fa; color: #000;
}
.cat-icon:active { transform: scale(0.9); }
.cat-label { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.3; }

/* ========== SECTION HEADERS ========== */
.sec-header {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0 12px;
}
.sec-header h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.sec-header a { font-size: 13px; font-weight: 600; color: var(--pink); }

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding-bottom: 24px;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
}
.product-card {
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.product-card:active { transform: scale(0.96); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.product-card .img-wrap {
  position: relative; overflow: hidden;
  background: var(--bg);
}
.product-card .img-wrap img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.3s;
}
.product-card .fav-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-3);
  box-shadow: var(--shadow-1);
}
.product-card .fav-btn.liked { color: var(--pink); }
.product-card .info { padding: 12px; }
.product-card .info h3 {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  margin-bottom: 6px; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card .price {
  font-size: 16px; font-weight: 800; color: var(--text-1);
}
.product-card .add-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--text-1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; font-size: 18px;
  transition: transform 0.15s;
}
.product-card .add-btn:active { transform: scale(0.85); }

/* ========== FILTER PILLS ========== */
.filter-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 0 16px;
}
.filter-pill {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  padding: 10px 20px; border-radius: var(--r-full);
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-1); cursor: pointer;
  transition: all 0.2s;
}
.filter-pill.active {
  background: var(--text-1); color: #fff; border-color: var(--text-1);
}
.filter-pill:active { transform: scale(0.95); }

/* ========== CART PAGE ========== */
.cart-card {
  background: var(--card); border-radius: var(--r-md);
  padding: 14px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-2); margin-bottom: 12px;
}
.cart-card img {
  width: 72px; height: 72px; border-radius: var(--r-sm);
  object-fit: cover; flex-shrink: 0;
}
.cart-card .cart-info { flex: 1; min-width: 0; }
.cart-card .cart-info h3 {
  font-size: 14px; font-weight: 600; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-card .cart-info .cart-price { font-size: 16px; font-weight: 800; color: var(--pink); }
.cart-del {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fef2f2; color: #ef4444; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.summary-card {
  background: var(--card); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow-2); margin-top: 8px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 14px; color: var(--text-2);
}
.summary-row span:last-child { font-weight: 600; color: var(--text-1); }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: 8px;
  border-top: 1.5px dashed var(--border);
}
.summary-total span:first-child { font-size: 15px; font-weight: 700; }
.summary-total span:last-child { font-size: 22px; font-weight: 900; color: var(--pink); }

.checkout-btn {
  width: 100%; margin-top: 20px; padding: 16px;
  border-radius: var(--r-full); border: none;
  background: #000;
  color: #fff; font-size: 16px; font-weight: 700;
  transition: transform 0.15s;
}
.checkout-btn:active { transform: scale(0.97); }

/* ========== PROFILE PAGE ========== */
.profile-hero {
  background: var(--card);
  border-radius: var(--r-lg); padding: 28px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-1); margin-bottom: 16px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; flex-shrink: 0;
}
.profile-hero h2 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.profile-hero p { font-size: 13px; color: var(--text-2); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-box {
  background: var(--card); border-radius: var(--r-md);
  padding: 16px 12px; text-align: center;
  box-shadow: var(--shadow-2);
}
.stat-box h3 { font-size: 22px; font-weight: 900; margin-bottom: 2px; }
.stat-box p { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; }

.menu-card {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); overflow: hidden; margin-bottom: 16px;
}
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-1);
}
.menu-item:last-child { border-bottom: none; }
.menu-item .m-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.menu-item .m-icon.pink { background: var(--pink-light); color: var(--pink); }
.menu-item .m-icon.purple { background: var(--purple-light); color: var(--purple); }
.menu-item .m-icon.blue { background: var(--blue-light); color: var(--blue); }
.menu-item .m-icon.orange { background: var(--orange-light); color: var(--orange); }
.menu-item .arrow { margin-left: auto; color: var(--text-3); font-size: 18px; }

.logout-btn {
  width: 100%; padding: 14px; border-radius: var(--r-full);
  background: #fef2f2; color: #ef4444; border: 1px solid rgba(239,68,68,0.15);
  font-size: 15px; font-weight: 700; margin-bottom: 24px;
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 72px; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 0; width: 64px;
  color: var(--text-3); font-size: 10px; font-weight: 600;
  transition: color 0.2s;
}
.nav-item i { font-size: 22px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-item.active { color: var(--pink); }
.nav-item.active i { transform: translateY(-2px) scale(1.1); }

/* ========== INNER PAGE TOP BAR ========== */
.inner-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  background: rgba(245,245,247,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.inner-bar .title { font-size: 17px; font-weight: 700; }
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-1);
}

/* ========== PRODUCT DETAIL PAGE ========== */

/* Floating top bar over image */
.pd-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.pd-topbar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-1); box-shadow: var(--shadow-2);
  cursor: pointer; transition: transform 0.15s;
}
.pd-topbar-btn:active { transform: scale(0.9); }

/* Image gallery horizontal scroll */
.pd-gallery { position: relative; background: var(--card); }
.pd-gallery-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
}
.pd-gallery-item {
  flex: 0 0 100%; scroll-snap-align: start;
}
.pd-gallery-item img {
  width: 100%; height: 380px; object-fit: cover; display: block;
}
.pd-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: all 0.3s;
}
.pd-dot.active { width: 24px; border-radius: 4px; background: #fff; }

/* Info sheet that sits below image */
.pd-info-sheet {
  background: var(--bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-top: -24px; position: relative; z-index: 10;
  padding-top: 24px;
}

/* Title & Price header */
.pd-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px;
}
.pd-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.25; color: var(--text-1);
}
.pd-subtitle {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
  flex-wrap: wrap;
}
.pd-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--pink-light); color: var(--pink);
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
}
.pd-rating {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 700; color: var(--text-1);
}
.pd-rating i { color: #fbbf24; }
.pd-reviews { color: var(--text-3); font-weight: 500; }

.pd-price-box { text-align: right; flex-shrink: 0; }
.pd-price { font-size: 28px; font-weight: 900; color: var(--pink); line-height: 1; }
.pd-price-old {
  font-size: 14px; color: var(--text-3); text-decoration: line-through;
  margin-top: 2px;
}

/* Sections */
.pd-section { margin-bottom: 24px; }
.pd-section-title {
  font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--text-1);
}
.pd-desc {
  font-size: 14px; line-height: 1.7; color: var(--text-2);
}

/* Features Grid */
.pd-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.pd-feature-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--r-sm);
  padding: 14px; box-shadow: var(--shadow-1);
}
.pd-feature-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.pd-feature-icon.pink { background: var(--pink-light); color: var(--pink); }
.pd-feature-icon.purple { background: var(--purple-light); color: var(--purple); }
.pd-feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.pd-feature-icon.orange { background: var(--orange-light); color: var(--orange); }
.pd-feature-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.pd-feature-item p { font-size: 11px; color: var(--text-3); }

/* Related Products Scroll */
.pd-related-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.pd-related-card {
  flex: 0 0 140px; background: var(--card);
  border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-2);
}
.pd-related-card img {
  width: 100%; height: 120px; object-fit: cover;
}
.pd-related-card h4 {
  font-size: 12px; font-weight: 600; padding: 8px 10px 2px;
  line-height: 1.3; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pd-related-card span {
  display: block; padding: 2px 10px 10px;
  font-size: 14px; font-weight: 800; color: var(--pink);
}

/* Sticky Bottom Add-to-Cart Bar */
.pd-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: 80px; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pd-bottom-price { display: flex; flex-direction: column; }
.pd-bottom-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.pd-bottom-amount { font-size: 24px; font-weight: 900; color: var(--text-1); line-height: 1.1; }
.pd-cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000;
  color: #fff; border: none; padding: 14px 28px;
  border-radius: var(--r-full); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform 0.15s;
}
.pd-cart-btn:active { transform: scale(0.96); }

/* Bottom Sheet Drawer Modal */
.filter-bottom-sheet {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: flex-end;
}
.filter-bottom-sheet.open { display: flex; }

.sheet-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.sheet-content {
  position: relative; width: 100%; max-width: 600px; margin: 0 auto;
  background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px; z-index: 10;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.filter-bottom-sheet.open .sheet-content {
  transform: translateY(0);
}
.sheet-handle {
  width: 40px; height: 5px; background: var(--border);
  border-radius: var(--r-full); margin: 0 auto 16px;
}
.sheet-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; text-align: center; color: var(--text-1); }
.sheet-list { display: flex; flex-direction: column; gap: 8px; }
.sheet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--text-1);
  background: var(--bg); transition: all 0.2s;
}
.sheet-item i { font-size: 18px; color: var(--text-2); }
.sheet-item.active { background: var(--pink-light); color: var(--pink); }
.sheet-item.active i { color: var(--pink); }

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* Navigation Drawer (Sidebar) */
.nav-drawer {
  position: fixed; inset: 0; z-index: 400;
  display: none;
}
.nav-drawer.open { display: flex; }

.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.drawer-content {
  position: relative; width: 280px; height: 100%;
  background: var(--card); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 24px 16px; z-index: 10;
  box-shadow: 10px 0 40px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex; flex-direction: column;
}
.nav-drawer.open .drawer-content {
  transform: translateX(0);
}
.drawer-header {
  padding: 12px 12px 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.drawer-header h3 {
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--text-1);
}
.drawer-header p { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.drawer-menu { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--text-1);
  transition: all 0.2s; margin-bottom: 2px;
}
.drawer-item i { font-size: 18px; color: var(--text-2); }
.drawer-item:hover, .drawer-item:active { background: var(--bg); }

.drawer-divider { height: 1px; background: var(--border); margin: 12px 0; }
.drawer-section { padding: 4px 16px 8px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

/* ========== SPACERS ========== */
.top-space { height: 56px; }
.bottom-space { height: 84px; }

/* ========== DESKTOP GLOBAL LAYOUT (1024px+) ========== */

/* Hide desktop chrome by default (mobile first) */
.dsk-nav,
.dsk-footer,
.desktop-footer { display: none; }

@media (min-width: 1024px) {

  /* Hide all mobile-only UI chrome */
  .status-bar,
  .bottom-nav,
  .inner-bar,
  .pd-topbar,
  .pd-bottom-bar,
  .nav-drawer,
  .filter-bottom-sheet { display: none !important; }

  /* Show desktop chrome */
  .dsk-nav { display: block !important; }
  .dsk-footer { display: block; }
  .desktop-footer { display: flex !important; }

  .top-space { height: 0 !important; }
  .bottom-space { height: 0 !important; }

  /* Flex column layout so footer sticks to bottom */
  body {
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* Main content area grows to fill remaining space */
  .container {
    max-width: 1200px;
    width: 100%;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    padding-top: 96px;
    padding-bottom: 60px;
    flex: 1;
  }

  /* ===== DESKTOP NAVBAR ===== */
  .dsk-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 72px;
  }
  .dsk-nav-inner {
    max-width: 1400px; margin: 0 auto;
    height: 100%; display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 3vw, 40px);
    gap: clamp(12px, 2vw, 28px);
  }
  .dsk-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .dsk-logo img {
    height: clamp(32px, 3.2vw, 44px);
    width: auto;
    display: block;
  }
  .dsk-links {
    display: flex; align-items: center;
    gap: clamp(8px, 1.4vw, 22px);
    flex: 1; justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
  }
  .dsk-link {
    color: var(--text-2);
    font-size: clamp(11px, 1.05vw, 14px);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 2px;
  }
  .dsk-link:hover,
  .dsk-link.active { color: var(--pink); }

  /* Category hover dropdown */
  .dsk-cat {
    position: relative;
    display: flex;
    align-items: center;
  }
  .dsk-caret {
    font-size: 16px;
    opacity: 0.7;
    transition: transform 0.2s;
  }
  .dsk-cat:hover .dsk-caret,
  .dsk-cat:focus-within .dsk-caret {
    transform: rotate(180deg);
  }
  .dsk-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 1100;
  }
  .dsk-dropdown::before {
    content: '';
    position: absolute;
    top: -10px; left: 0; right: 0;
    height: 12px;
  }
  .dsk-cat:hover .dsk-dropdown,
  .dsk-cat:focus-within .dsk-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .dsk-dropdown-item {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
  }
  .dsk-dropdown-item:hover,
  .dsk-dropdown-item.active {
    background: var(--pink-light);
    color: var(--pink);
  }

  .dsk-actions {
    display: flex; align-items: center;
    gap: clamp(8px, 1vw, 14px);
    flex-shrink: 0;
  }

  .dsk-search-form {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .dsk-search-form:focus-within {
    border-color: rgba(0,0,0,0.25);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
  }
  .dsk-search-form i { color: var(--text-3); font-size: 16px; }
  .dsk-search-form input {
    background: none; border: none; outline: none;
    color: var(--text-1); font-size: 13px; font-family: inherit;
    width: clamp(90px, 12vw, 180px);
  }
  .dsk-search-form input::placeholder { color: var(--text-3); }

  .dsk-cart-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%;
    background: var(--pink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; text-decoration: none; transition: opacity 0.2s;
  }
  .dsk-cart-btn:hover { opacity: 0.85; }
  .dsk-cart-count {
    position: absolute; top: -3px; right: -3px;
    background: #fff; color: var(--pink);
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
  .dsk-icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: transparent; border: none;
    color: var(--text-1); font-size: 22px; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
  }
  .dsk-icon-btn:hover { background: var(--bg); color: var(--pink); }
  .dsk-login-btn {
    padding: 9px 20px; border-radius: 999px;
    background: var(--text-1); border: 1px solid var(--text-1);
    color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
    transition: opacity 0.2s;
  }
  .dsk-login-btn:hover { opacity: 0.85; }

  /* ===== DESKTOP FOOTER ===== */
  .desktop-footer {
    background: #0a0a14; color: rgba(255,255,255,0.6);
    padding: 32px clamp(20px, 5vw, 80px);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
  }
  .desktop-footer .df-logo {
    font-size: 20px; font-weight: 900;
    color: #fff;
  }
  .desktop-footer-links { display: flex; gap: clamp(12px, 2vw, 24px); flex-wrap: wrap; }
  .desktop-footer-links a {
    color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500;
    text-decoration: none; transition: color 0.2s;
  }
  .desktop-footer-links a:hover { color: #fff; }

  /* ===== DESKTOP CONTENT UPGRADES ===== */
  .desktop-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px clamp(20px, 5vw, 80px) 64px !important;
    box-sizing: border-box;
  }
  .desktop-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)) !important;
  }
  .desktop-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)) !important;
  }

  /* Products grid: more columns */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: clamp(16px, 2vw, 24px);
  }
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
  .product-card:active { transform: translateY(-4px); }

  /* Category scroll → grid */
  .cat-scroll {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    overflow: visible; gap: 16px; padding: 4px 0 16px;
  }
  .cat-item { width: auto; }
  .cat-icon { width: 64px; height: 64px; font-size: 28px; }

  /* Promo banners: side by side */
  .promo-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; overflow: visible; }
  .promo-card { flex: none; width: auto; min-height: 220px; }

  /* Greeting larger */
  .greeting h1 { font-size: clamp(28px, 3vw, 40px); }
  .greeting { padding: 16px 0 8px; }

  /* Cart page */
  .cart-card { transition: box-shadow 0.2s; }
  .cart-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

  /* Product detail gallery offset for desktop navbar */
  .pd-gallery { margin-top: 72px !important; }
  .pd-gallery-item img { height: clamp(320px, 45vw, 520px); }
  .pd-info-sheet { flex: 1; }
  .pd-related-scroll { gap: 20px; }
  .pd-related-card { flex: 0 0 180px; }
  .pd-related-card img { height: 150px; }

  /* Profile stat row */
  .stat-row { grid-template-columns: repeat(3, 1fr); }

  /* Section headers */
  .sec-header h2 { font-size: clamp(20px, 2.2vw, 26px); }

  /* Summary card wider */
  .summary-card { max-width: 480px; }

  /* Product detail desktop layout */
  .desktop-layout {
    width: 100%;
    max-width: 1200px;
    margin: 96px auto 48px !important;
    padding: 0 clamp(20px, 4vw, 40px) !important;
    gap: clamp(24px, 3vw, 40px) !important;
  }

  a { transition: opacity 0.2s; }
}

/* Compact laptop / small desktop */
@media (min-width: 1024px) and (max-width: 1280px) {
  .dsk-links { gap: 10px; }
  .dsk-link { font-size: 12px; }
  .dsk-search-form input { width: 100px; }
  .hero-section { height: clamp(360px, 48vw, 520px) !important; }
  .desktop-content { padding-top: 40px !important; }
}

/* Large desktop */
@media (min-width: 1440px) {
  .dsk-nav-inner { max-width: 1500px; }
  .desktop-content { max-width: 1500px; }
  .desktop-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
}

/* Tablet (768-1023px) intermediate */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { max-width: 800px; padding: 0 24px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .promo-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; overflow: visible; }
  .promo-card { flex: none; }
  .cat-scroll { gap: 20px; }
}

/* ========== WHATSAPP FLOATING CHAT ========== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9500;
  width: 58px;
  height: 58px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Closed: only the FAB receives touches — not the invisible panel area */
  pointer-events: none;
}
.wa-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #25D366;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.wa-fab:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55); }
.wa-fab .wa-fab-close { display: none; font-size: 26px; }
.wa-float.open .wa-fab { background: #128C7E; }
.wa-float.open .wa-fab .wa-fab-icon { display: none; }
.wa-float.open .wa-fab .wa-fab-close { display: block; }

.wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 40px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 1;
}
.wa-float.open .wa-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: #075E54;
  color: #fff;
}
.wa-panel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.wa-panel-meta { flex: 1; min-width: 0; }
.wa-panel-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.wa-panel-meta span {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 500;
}
.wa-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wa-panel-body {
  padding: 16px;
  background: #ece5dd;
  min-height: 120px;
}
.wa-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  max-width: 92%;
}
.wa-bubble p {
  font-size: 13px;
  line-height: 1.45;
  color: #111;
  margin: 0 0 8px;
}
.wa-bubble p:last-child { margin-bottom: 0; }
.wa-panel-footer {
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid #eee;
}
.wa-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}
.wa-start-btn:hover { background: #1ebe57; transform: translateY(-1px); }
.wa-start-btn i { font-size: 18px; }

@media (max-width: 1023px) {
  .wa-float {
    right: 16px;
    bottom: 88px; /* above mobile bottom nav */
    width: 54px;
    height: 54px;
  }
  .wa-fab {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
}