:root {
  --clr-white: #FFFFFF;
  --clr-alt: #F5F6F7;
  --clr-border: #C1C4C8;
  --clr-mid: #7B7F85;
  --clr-dark: #2B2E33;
  --clr-accent: #2B2E33;
  --font-h: 'Playfair Display', serif;
  --font-b: 'Poppins', sans-serif;
  --sh-sm: 0 2px 10px rgba(0,0,0,0.05);
  --sh-md: 0 10px 30px rgba(0,0,0,0.1);
  --sh-lg: 0 20px 50px rgba(0,0,0,0.15);
  --tr: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global resets & Premium feel */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { 
  font-family: var(--font-b); 
  color: var(--clr-dark); 
  background: var(--clr-white); 
  line-height: 1.7; 
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--tr); }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }

/* Announcement Bar */
.announcement-bar {
  background: var(--clr-dark);
  color: #ddd;
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Header & Nav */
header { 
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--clr-border);
}
.header-main { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 5px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--clr-dark); transition: var(--tr); }
.nav-links a:hover::after { width: 100%; }

.header-logo img { height: 50px; width: auto; object-fit: contain; }
.header-actions { display: flex; gap: 1.2rem; align-items: center; }
.header-actions i { font-size: 1.2rem; transition: var(--tr); cursor: pointer; }
.header-actions i:hover { color: var(--clr-mid); transform: translateY(-2px); }

/* Badge Count */
.badge-count { position: relative; }
.badge-count::after {
  content: attr(data-count);
  position: absolute; top: -8px; right: -8px;
  background: var(--clr-dark); color: white;
  font-size: 0.6rem; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

/* Mobile Header Tweak */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .header-main { height: 75px; display: grid !important; grid-template-columns: 50px 1fr 130px !important; align-items: center; width: 100%; }
  .hamburger { display: block !important; order: -1; font-size: 1.4rem; cursor: pointer; }
  .header-logo { text-align: center; }
  .header-logo img { height: 35px !important; margin: 0 auto; }
  .header-actions { justify-content: flex-end; }
  .hide-mobile { display: none !important; }
}

/* Luxury Drawers (Glassmorphism & Hidden States) */
.mobile-nav-menu, .cart-drawer {
  position: fixed; top: 0; height: 100vh; width: 85%; max-width: 400px;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  z-index: 5000; padding: 2rem; box-shadow: var(--sh-lg);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
}
.mobile-nav-menu { left: 0; transform: translateX(-105%); }
.cart-drawer { right: 0; transform: translateX(105%); }
.mobile-nav-menu.open, .cart-drawer.open { transform: translateX(0); }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  z-index: 4999; display: none;
}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { 
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; } 
  .container { padding: 0 1rem; }
}

.product-card { transition: var(--tr); }
.product-card:hover { transform: translateY(-5px); }
.product-image { aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; background: var(--clr-alt); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr); }
.product-card:hover .product-image img { transform: scale(1.08); }

.product-info { padding: 1rem 0; text-align: center; }
.product-info h3 { font-size: 1rem; font-family: var(--font-b); font-weight: 500; margin-bottom: 5px; }
.price-box { font-weight: 600; font-size: 1rem; }

/* Hero Slider */
.hero-slider { position: relative; height: 75vh; min-height: 500px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.slide-content { position: relative; z-index: 10; color: white; max-width: 700px; padding: 0 2rem; }
.slide-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 2rem; }

/* Category Grid Index */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .category-grid { display: flex !important; overflow-x: auto; gap: 1rem; padding-bottom: 1rem; margin: 0 -1rem; padding-left: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .category-card { min-width: 180px; flex: 0 0 auto; scroll-snap-align: start; }
}

.category-card { position: relative; aspect-ratio: 1/1.3; overflow: hidden; border-radius: 4px; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr); }
.category-card:hover img { transform: scale(1.1); }
.category-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.category-card h3 { color: white; font-size: 1.3rem; text-align: center; text-transform: uppercase; letter-spacing: 1px; }

/* Sticky Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 65px;
  background: white; border-top: 1px solid var(--clr-border);
  display: none; grid-template-columns: repeat(4, 1fr); align-items: center;
  z-index: 4500; box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: grid !important; }
  body { padding-bottom: 65px; }
}
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.65rem; font-weight: 600; color: var(--clr-mid); }
.bottom-nav-item.active { color: var(--clr-dark); }
.bottom-nav-item i { font-size: 1.2rem; }

/* Footer */
footer { background: #181a1c; color: #999; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Section General */
.section { padding: 5rem 0; }
.section-title h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; position: relative; padding-bottom: 1rem; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 2px; background: var(--clr-dark); }

/* Utility */
.btn-primary { background: var(--clr-dark); color: white; border: none; padding: 1rem 2.5rem; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: var(--tr); display: inline-flex; align-items: center; gap: 10px; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.hide-desktop { display: none; }
@media (max-width: 768px) { .hide-desktop { display: block; } .hide-mobile { display: none !important; } }
