/* ==========================
   1. VARIABLES & RESET
========================== */
:root {
  --ease: cubic-bezier(.3, .7, .4, 1);
  --fast: .18s var(--ease);
  --normal: .28s var(--ease);
  --primary: #111;
  --accent: #ff2d55;
  --bg: #fafafa;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 14px 32px rgba(31,31,31,0.13);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: #222;
  opacity: 1;
  transition: opacity .4s var(--ease);
  overflow-x: hidden;
  padding-bottom: 0;
}

body.menu-open {
  overflow: hidden;
}

/* ============================
   HEADER & SEARCH (FIXED)
============================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f0f0f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  height: auto;
  min-height: 70px;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

/* Logo Styles */
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 1002;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0; /* Prevents logo from crushing on small screens */
}

header.products-mode .logo {
  color: #ffffff !important;
}

.logo:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

/* Desktop Nav */
.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* --- NEW RULE: Hide Desktop Nav Links ONLY on Home Page --- */
body.home-active .desktop-nav {
  display: none !important;
}

.nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a.active {
  color: var(--accent);
}

.nav-list a.active::after {
  width: 100%;
}

/* Header Right Buttons */
.header-btns-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
  flex-shrink: 0;
}

/* Search Bar Wrapper */
.search-wrap {
  position: relative;
  z-index: 1200;
  width: auto;
  min-width: 250px;
  max-width: 320px;
  display: flex;
  align-items: center;
}

/* HIDE elements on Hero/Home page */
header.hero-mode .search-wrap,
header.hero-mode .header-btns-inline {
  display: none !important;
}

/* Ensure Logo stays left and Nav centered normally */
header.hero-mode {
  justify-content: space-between;
}

.search-wrap-inline {
  position: relative;
  width: 100%;
}

.search-input-inline {
  width: 100%;
  min-width: 250px;
  padding: 10px 16px;
  border-radius: 20px;
  background: #2a2a2a;
  color: white;
  font-size: 14px;
  border: 1px solid #444;
  transition: all 0.2s ease;
}

.search-input-inline:focus {
  outline: none;
  border-color: var(--accent);
  background: #111;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; 
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 1300;
  overflow: hidden;
  color: black;
}

.search-suggestions .title {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f0f0f0;
}

.search-name {
  font-size: 14px;
  font-weight: 600;
}

.search-tag {
  font-size: 10px;
  background: #111;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  background: #111;
  padding: 10px;
  border-radius: 8px;
  min-width: 140px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  animation: none;
  z-index: 1005;
}

.has-dropdown:hover .dropdown {
  display: block;
  animation: dropdownSlide 0.25s ease forwards;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown a {
  display: block;
  padding: 10px;
  color: #ccc;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown a:hover {
  color: white;
  background: #222;
  transform: translateX(4px);
}

/* Buttons Styles */
.icon-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: none;
  outline: none;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.icon-btn .count {
  background: var(--accent);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.btn.primary {
  background: white;
  color: #111;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  min-height: 44px;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================
   2. UTILITIES & ANIMATIONS
========================== */
.hidden {
  display: none !important;
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--normal), transform var(--normal);
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-10 { gap: 10px; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.w-100 { width: 100%; }

/* Address Fields Row */
.co-fields-row {
  display: flex;
  gap: 10px;
}

/* Radio & Checkbox Labels */
.radio-label {
  display: flex;
  align-items: center;
  margin: 12px 0;
  cursor: pointer;
  min-height: 44px;
}

.radio-label input {
  margin-right: 8px;
  cursor: pointer;
}

/* Star Rating Styles */
.star-rating-container {
  display: flex;
  gap: 4px;
  font-size: 20px;
}

.star {
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 4px;
}

.star:hover {
  transform: scale(1.1);
}

.star.active {
  transform: scale(1.15);
}

/* Rating Label */
.rating-label {
  font-size: 12px;
  color: #777;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Product Rating Display */
.pp-rating-display {
  margin-bottom: 16px;
  text-align: center;
}

.pp-rating-stars {
  font-size: 20px;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.pp-rating-text {
  font-size: 12px;
  color: #777;
}

/* Reviews Button */
.pp-reviews-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.pp-reviews-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
}

/* Checkout Totals */
.co-subtotal {
  text-align: left;
  margin-bottom: 12px;
  font-size: 14px;
  color: #777;
}

.co-total-line {
  text-align: left;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: 700;
}

/* Keyframe Animations */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes popHeart {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.2); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================
   TRANSITION & BUTTONS
========================== */

/* Buttons */
button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform var(--fast), background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

button:active {
  transform: scale(0.96);
}

/* Primary CTA Button Styling */
button.add.glow, button.place-btn, button.cart-checkout-btn, .btn.primary {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--accent) 0%, #ff7eb9 100%);
  color: white;
  font-weight: 700;
}

button.add.glow:hover, button.place-btn:hover, button.cart-checkout-btn:hover, .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.35);
}

/* Close Button Styling */
button.closeBtn, .mobile-close, .checkout-close {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #111;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

button.closeBtn:hover, .mobile-close:hover, .checkout-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
  border-color: #bbb;
  box-shadow: var(--shadow-md);
}

button.cart-continue-btn, button.filter-trigger-btn {
  border-color: #ddd;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

button.cart-continue-btn:hover, button.filter-trigger-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #111;
  transform: translateY(-1px);
}

/* ==========================
   4. HERO SECTION
========================== */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  margin-bottom: 0;
}
/* HERO OVERLAY FOR BETTER TEXT VISIBILITY */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.55)
  );
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

.hero-slide-1 {
  background-image: url('IMG_12.jpg?w=1400');
  background-color: #333;
}

.hero-slide-2 {
  background-image: url('IMG_13.jpg?w=1400');
  background-color: #444;
}

.hero-slide-3 {
  background-image: url('IMG_14.jpg?w=1400');
  background-color: #555;
}
.hero-box {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow:
    0 4px 20px rgba(0,0,0,0.6),
    0 1px 2px rgba(0,0,0,0.9);
  margin-bottom: 12px;
}

.hero-box p {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  margin-top: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.hero-cta {
  margin-top: 24px;
  padding: 16px 40px;
  background: linear-gradient(90deg, #ff2d55 60%, #ff7eb9 100%);
  color: white;
  font-weight: 900;
  border-radius: 30px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 45, 85, 0.4);
}

/* ==========================
   5. PRODUCTS GRID
========================== */
.products {
  padding: 30px 4%;
  animation: fadeInScale 0.4s ease;
  margin-top: 0 !important;
}

.products.hidden {
  animation: slideOutDown 0.3s ease forwards;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.06);
}

.card .info {
  padding: 14px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #111;
  line-height: 1.3;
}

.card .price {
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.card .heart {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 26px;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  padding: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
}

.card .heart:hover {
  transform: scale(1.2);
  background: rgba(0,0,0,0.2);
}

.card .heart.liked {
  color: var(--accent);
  background: rgba(255, 45, 85, 0.15);
  animation: popHeart 0.4s ease;
}

/* Controls */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.filter-trigger-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 10px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-trigger-btn:hover {
  border-color: #111;
  background: #f5f5f5;
}

/* Filter Pills */
.pill-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pill {
  background: #111;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.pill:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Sort Select Dropdown */
#sortSelect {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ==========================
   6. MOBILE NAV DRAWER
========================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
}

.mobile-nav-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  background: white;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.mobile-nav.open .mobile-nav-inner {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-brand {
  font-weight: 800;
  font-size: 20px;
}

.mobile-nav-list > li {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  animation: none;
  transition: all 0.2s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.sub {
  display: none;
  background: #fafafa;
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none;
}

.has-sub.open .sub {
  display: block;
  max-height: 500px;
}

.sub li {
  padding: 12px 0;
  border-bottom: none;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sub li:hover {
  color: var(--accent);
  padding-left: 4px;
}

.has-sub.open > span {
  color: var(--accent);
}

.mobile-only-action {
  padding: 16px 20px !important;
  background: rgba(255, 45, 85, 0.08) !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--accent);
}

/* Hamburger & Mobile Icons */
.mobile-icons {
  display: none;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1001;
  order: 2; 
}

/* --- NEW RULE: Hide Mobile Cart & Heart ONLY on Home Page --- */
body.home-active .mobile-icons .top-heart,
body.home-active .mobile-icons .mobile-cart-btn {
  display: none !important;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  padding: 8px 10px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.top-heart {
  background: none;
  color: white;
  font-size: 22px;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-heart.active {
  color: var(--accent);
}

.mobile-cart-btn {
  background: rgba(255, 45, 85, 0.2);
  border: 1px solid var(--accent);
  padding: 8px 10px;
  font-size: 20px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================
   7. MODALS (Cart, Checkout, Filters)
========================== */
.modal-overlay, .checkout-overlay, .filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.show, .open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* FULL SCREEN CART MODAL */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 5000;
  display: none;
  transform: none;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.cart-modal.show {
  display: flex;
  animation: fadeInScale 0.3s ease;
}

.cart-modal-inner {
  background: white;
  width: 100%;
  max-width: 600px;
  height: 90vh;
  max-height: 800px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.cart-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.cart-item-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}

.cart-item-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details .item-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.cart-item-details .item-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.cart-item-details .item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid #eee;
  background: #fcfcfc;
  margin-top: auto;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-footer-buttons {
  display: flex;
  gap: 12px;
}

.cart-footer-buttons button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  border: none;
  min-height: 48px;
}

.cart-continue-btn {
  background: white;
  color: #111;
  border: 2px solid #e0e0e0;
}

.cart-continue-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
  transform: translateY(-2px);
}

.cart-checkout-btn {
  background: linear-gradient(90deg, #ff2d55 60%, #ff7eb9 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.2);
}

.cart-checkout-btn:hover {
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.35);
  transform: translateY(-2px);
}

/* Checkout Overlay */
.checkout-overlay {
  z-index: 4500;
  background: white;
  overflow-y: auto;
  padding: 0;
}

.checkout-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  position: relative;
}

.checkout-title {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 700;
}

.checkout-close {
  position: absolute;
  right: 24px;
  top: 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.co-field {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  min-height: 44px;
}

.co-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.1);
}

.place-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #ff2d55 60%, #ff7eb9 100%);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 20px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

.place-btn:hover {
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
  transform: translateY(-2px);
}

/* Filter Sidebar */
.filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 4100;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  border-radius: 16px 0 0 16px;
  overflow-y: auto;
}

.filter-sidebar.open {
  transform: translateX(0);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select, .filter-group input, .filter-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  margin-top: 6px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  min-height: 44px;
}

.filter-group select:focus, .filter-group input:focus, .filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.1);
}

.filter-price-flex {
  display: flex;
  gap: 10px;
}

.filter-price-flex .filter-input {
  flex: 1;
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.filter-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-height: 44px;
}

.filter-actions .add {
  background: linear-gradient(90deg, #ff2d55 60%, #ff7eb9 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.filter-actions .add:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.filter-actions .clear-btn {
  background: #f5f5f5;
  color: #111;
  border: 1px solid #ddd;
}

.filter-actions .clear-btn:hover {
  background: #eee;
}

/* Wishlist Sidebar */
.wishlist {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 4200;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  border-radius: 16px 0 0 16px;
  overflow-y: auto;
}

.wishlist.open {
  transform: translateX(0);
}

/* ==========================
   8. PRODUCT DETAIL (MODAL)
========================== */
.productPage {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 4500;
  display: none;
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  animation: slideInUp 0.4s ease;
}

.productPage.show {
  display: block;
}

.pp-wrap {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 40px auto;
}

.pp-left {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-right {
  flex: 1;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.pp-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}

#mainImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.pp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  border: none;
  box-shadow: var(--shadow-md);
}

.pp-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.pp-arrow.left {
  left: 10px;
}

.pp-arrow.right {
  right: 10px;
}

.thumb-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
}

.tile {
  flex-shrink: 0;
}

.tile img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.tile img:hover {
  opacity: 0.8;
}

.tile.active img {
  opacity: 1;
  border: 2px solid #111;
}

.size-grid {
  margin-bottom: 20px;
}

.size-grid button {
  padding: 12px 20px;
  border: 2px solid #ddd;
  background: white;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  min-height: 44px;
}

.size-grid button:hover {
  border-color: #111;
}

.size-grid button.active {
  background: #111;
  color: white;
  border-color: #111;
}

.pp-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  margin-bottom: 0;
  height: 44px;
  box-shadow: var(--shadow-sm);
}

.pp-qty-wrap button {
  border: none;
  background: white;
  padding: 0 16px;
  font-size: 18px;
  height: 100%;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
}

.pp-qty-wrap button:hover {
  background: #f5f5f5;
}

.pp-qty-num {
  padding: 0 16px;
  font-weight: 600;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.qty-add-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.add.glow {
  background: linear-gradient(90deg, #ff2d55 60%, #ff7eb9 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  flex: 1;
  transition: all 0.2s;
  height: 44px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.add.glow:hover {
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
  transform: translateY(-2px);
}

.closePP {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #111;
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  z-index: 4600;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
}

.closePP:hover {
  background: #333;
  transform: scale(1.05);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.related-heading {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-grid .card img {
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: #f5f5f5;
}

.related-card .info {
  padding: 12px 14px 16px;
}

.related-card h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #111;
}

.related-card .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* Reviews Modal */
.reviews-modal {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 350px;
  background: white;
  z-index: 5500;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.2);
  border-radius: 16px 0 0 16px;
  overflow-y: auto;
}

.reviews-modal.open {
  transform: translateX(0);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.reviews-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.review-form-container {
  margin-top: 20px;
}

.field {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  min-height: 44px;
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.1);
}

.message-textarea {
  min-height: 100px;
  resize: vertical;
  padding: 12px;
}

/* ==========================
   9. MOBILE RESPONSIVE
========================== */
.mobile-controls {
  display: none; /* hidden on desktop */
}

@media (min-width: 900px) {
  .pp-left {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .thumb-grid {
    flex-direction: column;
    width: 80px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0;
    order: -1;
  }
  
  .thumb-grid .tile {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .thumb-grid .tile img {
    width: 100%;
    
    height: 70px;
  }
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================
   CONTACT SECTION
========================== */
.contact-section {
  padding: 80px 6%;
  background: linear-gradient(180deg, #fafafa, #ffffff);
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 15px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card .icon {
  font-size: 26px;
}

.contact-card strong {
  font-size: 14px;
  font-weight: 700;
}

.contact-card span {
  font-size: 13px;
  color: #666;
}

/* Platform colors */
.contact-card.whatsapp {
  border-left: 4px solid #25D366;
}

.contact-card.instagram {
  border-left: 4px solid #ff2d55;
}

/* Form */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ==========================
   FULL SCREEN CART (DESKTOP)
========================== */
@media (min-width: 1024px) {
  .cart-modal {
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: stretch;
    justify-content: stretch;
  }

  .cart-modal.show {
    display: flex;
  }

  .cart-modal-inner {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    animation: cartSlideUp 0.35s cubic-bezier(.3,.7,.4,1);
  }

  .cart-header {
    padding: 28px 40px;
  }

  .cart-footer {
    padding: 28px 40px;
  }

  .cart-item-card {
    padding: 24px 40px;
  }

  @keyframes cartSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* ==========================
   MOBILE HEADER FIXES
========================== */
@media (max-width: 900px) {
  
  /* 1. Reset Header Layout for Mobile */
  header {
    padding: 10px 16px;
    height: auto;
    display: flex;
    justify-content: space-between; /* Logo Left, Icons Right */
    align-items: center;
  }

  /* 2. Force Logo to sit on the Left (No Overlap) */
  .logo {
    position: static !important; /* IMPORTANT: Disables absolute centering */
    transform: none !important;
    margin: 0;
    font-size: 20px;
    order: 0; /* Ensures it stays on the left */
  }
  
  /* 3. Hide Desktop Elements */
  .desktop-nav, 
  .search-wrap, 
  .header-btns-inline, 
  .desktop-only-flex {
    display: none !important;
  }

  /* 4. Fix Mobile Icons Container */
  .mobile-icons {
    display: flex !important;
    align-items: center;
    gap: 10px;
    order: 2; /* Ensures it stays on the right */
    z-index: 1003;
  }

  /* 5. Adjust Buttons size for mobile */
  .mobile-icons button,
  .hamburger {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }
  
  /* Fix the specific red cart button styling */
  .mobile-cart-btn {
    padding: 0 12px !important;
    width: auto;
    border-radius: 10px;
  }
  
  /* Mobile Search Bar Style */
  .mobile-search-wrap {
    flex: 1;
    position: relative;
    min-width: 150px;
  }
  
  .mobile-search-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #f9f9f9;
  }
  
  .mobile-search-input:focus {
    background: #fff;
    border-color: var(--accent);
    outline: none;
  }
  
  /* Show Mobile Controls */
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
  }

  /* Adjust Hero for Mobile */
  .hero { height: 100svh; }
  .hero-box { padding: 32px 24px; border-radius: 12px; }
  .hero-box h1 { font-size: 32px; margin-bottom: 8px; }
  .hero-box p { font-size: 16px; margin-bottom: 16px; }
  .hero-cta { font-size: 16px; padding: 14px 28px; width: 85vw; max-width: 300px; }

  /* Adjust Grid for Mobile */
  .products { padding: 20px 12px; margin-bottom: 60px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
  .card { border-radius: 12px; background: white; }
  .card img { height: 240px; object-fit: cover; }
  .card .info { padding: 12px; }
  .card h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #111; }
  .card .price { font-size: 14px; color: var(--accent); }
  .card .heart { font-size: 22px; top: 8px; right: 8px; padding: 4px; }
  .card:hover { transform: translateY(-6px); }

  /* Product Page Mobile */
  .productPage { border-radius: 20px 20px 0 0; padding: 16px; }
  .pp-wrap { flex-direction: column; gap: 20px; margin-top: 50px; }
  .pp-left, .pp-right { flex: 1; width: 100%; }
  .pp-right { background: white; padding: 0; }
  .closePP { left: 16px; top: 16px; font-size: 14px; }

  /* Checkout & Modals Mobile */
  .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
  .checkout-container { margin: 20px auto; padding: 16px; }
  .checkout-title { font-size: 24px; }
  .checkout-right { background: white; padding: 0; border: 1px solid #eee; }
  .cart-modal-inner { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .filter-sidebar, .wishlist, .reviews-modal { width: 90%; max-width: 280px; border-radius: 20px 0 0 20px; }
  .reviews-modal { width: 85%; max-width: 300px; }
  
  /* Contact Section Mobile */
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
  .contact-info h2 { font-size: 28px; }
  .contact-section { padding: 60px 5%; }
}

@media (max-width: 600px) {
  .checkout-grid { gap: 16px; }
  .cart-footer-buttons { flex-direction: column-reverse; }
  .cart-footer-buttons button { width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qty-add-container { flex-direction: row; }
  .card img { height: 220px; }
}

/* Fix Mobile Search Suggestions Positioning */
.mobile-search-wrap .search-suggestions {
  top: 100%;
  margin-top: 4px;
  width: 100%;
  left: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid #eee;
}

/* ==========================
   OVERRIDES: Keep Desktop Nav visible on Home + improved dropdown accessibility
   ========================== */

/* Keep desktop navigation visible on home/hero page */
body.home-active .desktop-nav {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Dropdowns open on hover AND focus (click/keyboard) */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  z-index: 1100;
}

/* Improve dropdown visibility */
.dropdown {
  min-width: 160px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

/* Better click/tap interaction for nav items */
.nav-list > li > a,
.nav-list > li > span {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Ensure open state stays visible if toggled via JS later */
.has-dropdown.open .dropdown {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* =========================
   DESKTOP CONTACT CLICK FIX
========================= */
/* Ensure nav links are clickable over hero */
.desktop-nav,
.nav-list,
.nav-list a {
  pointer-events: auto !important;
  z-index: 1500;
}

/* =========================
   DROPDOWN CLICK + FOCUS FIX
========================= */
.has-dropdown:focus-within .dropdown,
.has-dropdown:hover .dropdown {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  z-index: 2000;
}


/* =========================
   MOBILE HEADER HARD FIX
========================= */
@media (max-width: 768px) {

  /* Hide desktop nav links completely on mobile */
  .desktop-nav {
    display: none !important;
  }

  /* On home page, ONLY show logo + hamburger */
  body.home-active header {
    justify-content: space-between;
  }

  body.home-active .nav-list,
  body.home-active .nav-item {
    display: none !important;
  }

  /* Ensure hamburger is visible */
  .mobile-icons {
    display: flex !important;
  }
}


/* =========================
   SMOOTHER MOBILE DRAWER
========================= */
.mobile-nav-inner {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mobile-menu-overlay {
  -webkit-backdrop-filter: blur(4px); /* Safari iOS */
  backdrop-filter: blur(4px);         /* Chrome / Edge / Firefox */
  background: rgba(0,0,0,0.35);       /* Fallback if blur unsupported */
}


/* =========================
   STICKY HEADER SCROLL EFFECT
========================= */
header {
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

header.scrolled {
  background: rgba(15,15,15,0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================
   PERFORMANCE: CLS SAFETY
========================= */
img {
  aspect-ratio: attr(width) / attr(height);
}

.card img {
  aspect-ratio: 3 / 4;
}
/* =========================
   SVG CONTACT ICONS
========================= */

.svg-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 8px 22px rgba(0,0,0,0.18);
}

.svg-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* WhatsApp */
.whatsapp-icon {
  background: linear-gradient(135deg, #25D366, #1EBE5D);
}

/* Instagram */
.instagram-icon {
  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}

/* Hover polish */
.contact-card:hover .svg-icon {
  transform: scale(1.08);
  transition: transform 0.25s ease;
}

/* Mobile size */
@media (max-width: 480px) {
  .svg-icon {
    width: 44px;
    height: 44px;
  }
  .svg-icon svg {
    width: 20px;
    height: 20px;
  }
}


/* =========================
   SAFARI BACKDROP FILTER FIX
========================= */
.mobile-menu-overlay {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.35);
}



/* ================= MOBILE MENU FINAL FIX ================= */

/* Mobile nav should not block page when closed */
.mobile-nav {
  pointer-events: none;
}

.mobile-nav.open {
  pointer-events: auto;
}

/* Overlay behavior */
.mobile-menu-overlay {
  display: none;
  pointer-events: none;
}

body.menu-open .mobile-menu-overlay {
  display: block;
  pointer-events: auto;
}

/* Ensure hamburger & hero CTA clickable */
.hamburger {
  position: relative;
  z-index: 1001;
}

.hero-box {
  position: relative;
  z-index: 2;
}

/* Menu stagger animation */
.mobile-nav-list > li {
  opacity: 0;
  transform: translateY(12px);
}

.mobile-nav.open .mobile-nav-list > li {
  opacity: 1;
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
