/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

:root {
  --anim-speed: 0.8s;
  --anim-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* LIGHT THEME */
  --bg-color: #f3f3f3;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --navbar-bg: rgba(255, 255, 255, 0.7);
  --card-bg: #ffffff;
  --secondary-bg: #f8f8f8;
  --border-color: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --accent-color: #c49b63;
  --hover-bg: rgba(0, 0, 0, 0.05);
  --text-color: #222222;
}

[data-theme='dark'] {
  --bg-color: #121212;
  --text-primary: #f0f0f0;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --navbar-bg: rgba(26, 26, 26, 0.85);
  --card-bg: #1e1e1e;
  --secondary-bg: #252525;
  --border-color: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --accent-color: #e5c07b;
  --hover-bg: rgba(255, 255, 255, 0.08);
  --text-color: #f0f0f0;
}

body {
  background: var(--bg-color);
  color: var(--text-primary);
  padding-top: 70px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px; /* Slimmed down from 15px 60px */
  background: var(--navbar-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 32px; /* Slimmer logo */
  height: 32px;
  filter: drop-shadow(0 0 5px rgba(196, 155, 99, 0.15));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links > li > a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s ease;
}

/* Magnetic Highlight for Links */
.nav-links > li > a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(196, 155, 99, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
}

.nav-links > li:hover > a::before {
  width: 100px;
  height: 100px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--accent-color);
}

/* Animated Underline */
.nav-links > li > a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  left: 0;
  bottom: -2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links > li:hover > a::after,
.nav-links > li > a.active::after {
  width: 100%;
}

/* RIGHT SIDE (Restored and Slimmed) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 1; /* Hidden logic is in JS if needed */
  transition: opacity 0.4s ease;
}

.nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.nav-icon:active {
  transform: scale(0.9) translateY(0);
}

.nav-icon a i {
  color: var(--text-primary);
  font-size: 16px; /* Slimmer icons */
  transition: color 0.3s ease;
}

.nav-icon:hover a i {
  color: var(--accent-color);
}

.nav-icon span {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-color);
  color: #fff;
  font-size: 9px;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.auth-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.auth-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.user-profile-link:active {
  transform: scale(0.95);
}


/* ================= DROPDOWN (PREMIUM) ================= */
.dropdown {
  position: relative;
}

.menu {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
  backdrop-filter: blur(25px) saturate(200%);
  border-radius: 18px;
  padding: 10px;
  min-width: 220px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 0 1px rgba(0, 0, 0, 0.1);
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  pointer-events: none;
}

[data-theme='dark'] .menu {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.9));
  border-color: rgba(255, 255, 255, 0.05);
}

.level-1 {
  top: 100%;
  left: 0;
  margin-top: 15px;
}

.menu li {
  position: relative;
  perspective: 1000px;
}

.menu .menu {
  top: -10px;
  left: 96%; /* Slight overlap */
  margin-top: 0;
}

.dropdown:hover > .menu,
.nav-links li:hover > .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Staggered entrance animation for dropdown items */
.menu li {
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s ease;
}

.dropdown:hover > .menu > li,
.nav-links li:hover > .menu > li {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.menu li:nth-child(1) { transition-delay: 0.05s; }
.menu li:nth-child(2) { transition-delay: 0.1s; }
.menu li:nth-child(3) { transition-delay: 0.15s; }
.menu li:nth-child(4) { transition-delay: 0.2s; }
.menu li:nth-child(5) { transition-delay: 0.25s; }

/* Menu links styling */
.menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.menu li a:hover {
  background: rgba(196, 155, 99, 0.08);
  color: var(--accent-color);
  transform: translateX(5px);
  padding-left: 22px;
}

/* Arrow indicators for top-level dropdowns */
.nav-links li.dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links li.dropdown > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links li.dropdown:hover > a::after {
  transform: rotate(180deg) scale(1.2);
  color: var(--accent-color);
  opacity: 1;
}

/* Arrow indicators for nested submenus */
.menu li:has(.menu) > a::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  opacity: 0.4;
  margin-left: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu li:hover > a::after {
  opacity: 1;
  transform: translateX(4px) scale(1.1);
  color: var(--accent-color);
}



/* ================= HERO SLIDER ================= */
.hero {
  position: relative;
  width: 99%;
  height: 461px;
  margin: 2px auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  transition: transform 0.8s ease-in-out;
}

/* IMAGE */
.slide img {
  width: 50%;
  border-radius: 15px;
  object-fit: cover;
  transform: translateY(40px) scale(1.05);
  opacity: 0;
  transition: transform var(--anim-speed) var(--anim-ease),
    opacity var(--anim-speed) var(--anim-ease);
}

.slide.active img {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* TEXT */
.text {
  width: 45%;
  color: #fff;
  margin-left: 60px;
  transform: translateY(-40px);
  opacity: 0;
  transition: transform var(--anim-speed) var(--anim-ease),
    opacity var(--anim-speed) var(--anim-ease);
}

.slide.active .text {
  transform: translateY(0);
  opacity: 1;
}

.main-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.4;
  position: relative;
  top: -20px;
}

.text ul {
  margin-top: 100px;
}

.text li {
  font-size: 30px;
  color: #ccc;
  opacity: 0;
  transform: translateY(-15px);
  transition: 0.5s;
}

.slide.active .text li:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.slide.active .text li:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.slide.active .text li:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  z-index: 10;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

/* ================= PRODUCTS ================= */
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1450px;
  margin: 40px auto;
  padding: 0 20px;
  justify-content: center;
}

.product-card {
  width: 100%;
  max-width: 300px; /* Slightly wider for premium feel */
  margin: auto;
  background: var(--card-bg);
  border-radius: 24px; /* Smoother corners */
  overflow: hidden;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto; /* Allow content to dictate height */
  min-height: 440px;
  border: 1px solid rgba(196, 155, 99, 0.1);
  background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.02));
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 10px 20px rgba(196, 155, 99, 0.05);
  border-color: rgba(196, 155, 99, 0.3);
}

.card-img {
  position: relative;
  padding: 12px; /* Inner frame effect */
  background: rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-img img {
  transform: scale(1.1);
}

.wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.wishlist:hover {
  color: #c49b63;
  transform: scale(1.2);
}

.wishlist.liked {
  color: #c49b63;
}

.wishlist.liked i {
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

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

/* CONTENT */
.card-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-id {
  font-size: 10px;
  color: var(--accent-color);
  font-weight: 700;
  background: rgba(196, 155, 99, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rating {
  color: #ffb400; /* Richer gold */
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px 8px;
  border-radius: 50px;
}

.review-text {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  margin-left: 2px;
}

.price {
  font-weight: bold;
  margin: 5px 0 10px;
}

/* BUTTONS */
.card-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.add {
  flex: 1;
  background: #c49b63;
  color: #fff;
  border: none;
  padding: 10px 5px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
}

.add:hover {
  background: #a67c52;
  transform: translateY(-2px);
}

.add:active {
  transform: scale(0.96) translateY(0);
  background: #8e6d3d;
}

.qty-control {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfaf6;
  border: 1px solid #c49b63;
  border-radius: 10px;
  overflow: hidden;
  height: 38px;
}

.qty-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 600;
  width: 35px;
  height: 100%;
  cursor: pointer;
  color: #c49b63;
  transition: 0.2s;
}

.qty-btn:hover {
  background: #f0e4d4;
}

.qty-val {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.custom {
  flex: 1;
  border: 1px solid #c49b63;
  background: transparent;
  color: #c49b63;
  padding: 10px 5px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

.custom:hover {
  background: #c49b63;
  color: #fff;
  transform: translateY(-2px);
}

.custom:active {
  transform: scale(0.96) translateY(0);
  background: #a67c52;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 15px;
  }
  .nav-right {
    gap: 12px;
  }
  .nav-icon span {
    top: -6px;
    right: -8px;
    font-size: 8px;
    min-width: 12px;
    height: 12px;
  }
  .auth-btn {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 15px;
  }
  .logo img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 10px;
  }
  .nav-right {
    gap: 8px;
  }
  .auth-btn {
    padding: 4px 10px;
    font-size: 10px;
  }
  .nav-icon a i {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: -1; /* Keep at left */
    font-size: 22px;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    color: var(--text-primary);
  }

  .menu-toggle:active {
    transform: scale(0.85);
    opacity: 0.7;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Slide from left for better UX on most mobile devices */
    right: auto;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    display: flex;
    flex-direction: column;
    padding: 80px 25px 40px;
    gap: 0;
    list-style: none;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
  }

  .nav-links.active {
    left: 0; /* Slide in */
  }

  .nav-links li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li a {
    padding: 14px 0;
    font-size: 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
  }

  /* Mobile Accordion */
  .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent-color);
    margin: 0 0 10px 15px;
    padding: 0 0 0 15px;
    width: calc(100% - 15px);
    min-width: unset;
    pointer-events: auto;
    background: transparent !important;
  }

  .menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links li.dropdown.active > a::after,
  .menu li.active > a::after {
    transform: rotate(180deg);
  }

  .nav-links .auth-btn {
    display: block;
    margin-top: 30px;
    width: 100%;
    text-align: center;
  }
}

/* ================= OFFER BAR ================= */

.offer-bar {
  width: 100%;
  overflow: hidden;
  background: #f8f5f0;
  background: linear-gradient(90deg, #f3b244, #f3efe8);
  border-bottom: 1px solid #e5e0d8;
  padding: 8px 0;
}

/* LINK */
.offer-link {
  text-decoration: none;
  color: #333;
  display: block;
}

/* MARQUEE */
.marquee {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}

/* TEXT */
.marquee span {
  display: inline-block;
  padding-left: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: scrollText 39s linear infinite;
}

/* ANIMATION */
@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* HOVER PAUSE */
.offer-bar:hover .marquee span {
  animation-play-state: paused;
}

/* TEXT HOVER */
.offer-link:hover {
  color: #c49b63;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px) {
  .marquee span {
    font-size: 12px;
  }
}

@media(max-width:480px) {
  .marquee span {
    font-size: 11px;
  }
}

.card-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 0 5px;
}

.add {
  flex: 1.4; /* Give Add to Cart more weight */
  background: linear-gradient(135deg, #c49b63, #e5c07b);
  color: #fff;
  border: none;
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(196, 155, 99, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 155, 99, 0.3);
  filter: brightness(1.05);
}

.add:active {
  transform: translateY(-1px);
}

.custom {
  flex: 1;
  background: transparent;
  border: 1.5px solid rgba(196, 155, 99, 0.5);
  color: var(--accent-color);
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.custom:hover {
  background: rgba(196, 155, 99, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.qty-control {
  flex: 1.4;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: #fff;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.qty-val {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
}

/* CART BOUNCE */
@keyframes bounceCart {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.3);
  }

  60% {
    transform: scale(0.9);
  }

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

.cart-bounce {
  animation: bounceCart 0.4s ease;
}

/* ================= FLY IMAGE ANIMATION ================= */
.fly-img {
  position: fixed;
  object-fit: cover;
  border-radius: 12px;
  z-index: 99999;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateZ(0); /* Hardware Acceleration */
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.cart-bounce {
  animation: cartBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  color: var(--accent-color) !important;
}

  60% {
    transform: scale(0.9);
  }

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

.cart-bounce {
  animation: bounceCart 0.4s ease;
}

/* Fly Image & Bounce Keyframes already exist above */
/* SECTION */
.featured {
  padding: 80px 5%;
  background: var(--bg-color);
  transition: background 0.3s ease;
  position: relative;
  border-top: 1px solid var(--border-color);
}

[data-theme='dark'] .featured {
  background: linear-gradient(to bottom, #121212, #1a1a1a);
}

/* HEADER */
.featured-header {
  text-align: center; /* Centered like wishlist */
  margin: 0 auto 30px; /* Removed top margin */
  position: relative;
}

.featured-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  letter-spacing: 1px;
  position: relative;
  display: block; /* 🔥 change to block for full control */
}

.featured-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 100%; 
  height: 3px;
  background: linear-gradient(90deg, #c89b3c, #f5d27a);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.featured-header h2:hover::after {
  transform: translateX(-50%) scaleX(1);
  box-shadow: 0 0 8px rgba(200, 155, 60, 0.5);
}

.featured-header p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-top: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
  display: block;
  transition: all 0.4s ease;
  opacity: 0.8;
}

.featured-header:hover p {
  letter-spacing: 1.5px;
  opacity: 1;
  color: var(--accent-color);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.search-box {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
}

.search-box input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 30px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

.search-box input:focus {
  border-color: #c89b3c;
  box-shadow: 0 0 5px rgba(200, 155, 60, 0.3);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
}

/* INPUT */
.search-box input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  /* left space for icon */
  border-radius: 30px;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

/* ICON */
.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
}

/* HOVER */
.search-box input:focus {
  border-color: #c89b3c;
  box-shadow: 0 0 8px rgba(200, 155, 60, 0.3);
}

.featured-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

/* TITLE */
.featured-header h2 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}


/* SUBTITLE */
.featured-header p {
  margin-top: 12px;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* BACKGROUND TOUCH */
.featured {
  background: linear-gradient(to bottom, #f8f8f8, #ffffff);
  padding: 60px 5%;
}

.featured-header h2 {
  font-family: 'Playfair Display', serif;
}

.tilt-text {
  display: inline-block;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
}

.tilt-text {
  perspective: 500px;
}

.tilt-text {
  transform-style: preserve-3d;
}

.tilt-text {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ================= TILT EFFECT ================= */

.tilt-text {
  display: inline-block;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
}

/* HOVER TILT */
.tilt-text:hover {
  transform: perspective(500px) rotateY(2deg) rotateX(-2deg);
}


/* BACKGROUND GRADIENT */
.featured {
  background: linear-gradient(to bottom, #f8f8f8, #ffffff);
  padding: 60px 5%;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .tilt-text:hover {
    transform: none;
  }
}


.featured-header h2 {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text.animate li {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.text.animate li:nth-child(1) {
  transition-delay: 0.2s;
}

.text.animate li:nth-child(2) {
  transition-delay: 0.4s;
}

.text.animate li:nth-child(3) {
  transition-delay: 0.6s;
}

.text.animate li:nth-child(4) {
  transition-delay: 0.8s;
}

.text.animate li:nth-child(5) {
  transition-delay: 1.0s;
}

.cart-icon i {
  color: var(--text-color);
  /* default color */
  transition: 0.3s;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.theme-btn i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s, color 0.4s;
}

.theme-btn:hover {
  background: var(--hover-bg);
}

.theme-btn:hover i {
  transform: scale(1.15) rotate(12deg);
}

/* PREMIUM TRANSITION STATE */
.theme-btn.theme-animating i {
  transform: scale(0) rotate(180deg);
  opacity: 0;
}

/* ❌ red होने से रोक */
.cart-icon a:active i,
.cart-icon a:focus i,
.cart-icon i:active {
  color: var(--accent-color) !important;
}

.cart-icon i:hover {
  color: #c89b3c;
  /* gold theme */
}

/* DEFAULT */
.cart-icon i {
  color: var(--text-primary);
  transition: 0.3s ease;
}

/* HOVER */
.cart-icon i:hover {
  color: #c89b3c;
}

/* 🔥 CLICK / ACTIVE / FOCUS */
.cart-icon a:active i,
.cart-icon a:focus i,
.cart-icon i:active {
  color: #c89b3c !important;
}

/* 🔥 REMOVE TAP FLASH */
a,
button,
i {
  -webkit-tap-highlight-color: transparent;
}

/* REMOVE OUTLINE */
a:focus {
  outline: none;
}

.cart-icon:active {
  transform: scale(0.9);
}

/* HAMBURGER HIDE (desktop) */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* MOBILE */
@media(max-width:768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    display: flex;
    padding: 80px 30px;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 10px 0;
    width: 100%;
  }

  .nav-links a {
    font-size: 18px;
    display: block;
    padding: 10px 0;
  }

  .dropdown .menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
    border: none;
    background: transparent;
  }

  .dropdown:hover .menu {
    display: block;
  }

  /* 📱 FEATURED HEADER MOBILE */
  .featured-header {
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
  }

  .featured-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .featured-header p {
    font-size: 14px;
    margin-top: 10px;
  }
}

.hero {
  width: 98%;
  height: 480px;
  margin: 10px auto;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 500px;
    width: 95%;
  }
}
.slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 40px;
}

@media (max-width: 768px) {
  .slide {
    flex-direction: column-reverse; /* Put image at bottom, text at top on mobile */
    text-align: center;
    padding: 30px 20px;
    justify-content: flex-end;
    gap: 20px;
  }
  .slide .text {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main-title {
    font-size: 28px;
    margin-bottom: 12px;
    top: 0;
  }
  .slide .text ul {
    margin-top: 15px;
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .slide .text li {
    font-size: 14px;
    list-style: none;
    color: #bbb;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 22px;
  }
  .slide img {
    height: 200px;
  }
}
.slide{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* 📱 MOBILE */
@media(max-width:768px){
  .slide{
    flex-direction: column;   /* image + text vertical */
    text-align: center;
  }
}
.slide img{
  width: 50%;
  height: auto;
  object-fit: cover;
}

/* 📱 MOBILE */
@media(max-width:768px){
  .slide img{
    width: 100%;   /* 🔥 full width */
    height: auto;
  }
}

/* ================= SUPPORT WIDGET ================= */
.support-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.support-toggle {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.support-toggle:hover {
  transform: scale(1.1);
  background: #a67c52;
}

.support-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.support-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.support-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.support-btn:hover {
  transform: scale(1.1);
}

.support-btn.whatsapp { background: #25D366; }
.support-btn.phone { background: #007bff; }
.support-btn.email { background: #EA4335; }

/* 📱 MOBILE */
@media(max-width: 768px) {
  .support-widget {
    bottom: 20px;
    right: 20px;
  }
  .support-toggle {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .support-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ================= FOOTER ================= */
.footer {
  background: #111; 
  border-top: none;
  color: #fff;
  padding: 80px 5% 30px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40%;
  height: 2px;
  background: var(--accent-color);
}

.footer-col p {
  line-height: 1.7;
  opacity: 0.8;
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #cccccc;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  transform: translateX(8px);
}

/* NEWSLETTER */
.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: 1px solid #333333;
  background: #222222;
  color: #ffffff;
  border-radius: 30px 0 0 30px;
  outline: none;
  width: 100%;
  transition: 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(196, 155, 99, 0.3);
}

.newsletter-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0 25px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #a67c52;
  box-shadow: 0 4px 10px rgba(166, 124, 82, 0.4);
}

/* BOTTOM BAR */
.footer-bottom {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  opacity: 0.8;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #222222;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #333333;
}

.social-links a:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 5px 15px rgba(196, 155, 99, 0.4);
}

@media(max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* ================= MAP SECTION (Dedicated Footer Area) ================= */
.map-section {
  padding: 80px 10%;
  background: var(--navbar-bg);
  text-align: center;
  opacity: 0;
  margin-top: 50px; /* Use margin instead of transform */
  transition: all 0.8s ease-out;
}

.map-section.reveal {
  opacity: 1;
  margin-top: 0;
}

.map-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.map-preview {
  height: 300px;
  cursor: pointer;
}

.map-preview i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #fff;
  background: var(--accent-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 5;
}

.map-preview:hover i {
  transform: translate(-50%, -50%) scale(1.1);
  background: #a67c52;
}

.map-expand-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.map-expand-btn:hover {
  background: var(--accent-color);
}

/* Expanded State for Large Map */
.map-wrapper.full-screen {
  position: fixed;
  top: 75px; /* Slightly lower for better floating look */
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: auto; /* Allow left/right to define width */
  height: auto; /* Allow top/bottom to define height */
  max-width: none !important;
  z-index: 1100; /* Above navbar if desired? Actually slightly below is safer to see menu. No, 1100 is above navbar. */
  padding: 0;
  margin: 0 !important;
  border-radius: 25px !important; /* Premium Rounded Corners */
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4) !important;
  border: 2px solid var(--accent-color);
}

.map-wrapper.full-screen iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 25px !important;
}
/* ================= SKELETON LOADER (PREMIUM UX) ================= */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(190, 190, 190, 0.1) 25%,
    rgba(196, 155, 99, 0.05) 50%,
    rgba(190, 190, 190, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 12px;
}

[data-theme='dark'] .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(196, 155, 99, 0.03) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  width: 100%;
  max-width: 300px;
  height: 440px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 15px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skeleton-img { width: 100%; height: 200px; border-radius: 18px; }
.skeleton-title { width: 80%; height: 20px; border-radius: 4px; }
.skeleton-price { width: 40%; height: 15px; border-radius: 4px; }
.skeleton-btn { width: 100%; height: 40px; border-radius: 12px; }

/* ================= UNIFIED SEARCH & FILTER BAR ================= */
.search-filter-wrapper {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 50;
}

.search-filter-merged {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] .search-filter-merged {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.search-filter-merged:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 25px 50px rgba(196, 155, 99, 0.1);
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 15px;
  gap: 15px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='dark'] .search-input-group {
  border-color: rgba(255, 255, 255, 0.08);
}

.search-input-group i {
  color: var(--accent-color);
  font-size: 18px;
}

.search-input-group input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
}

.filter-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-item {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px 12px;
  border-radius: 20px;
  gap: 8px;
  transition: all 0.3s ease;
}

[data-theme='dark'] .control-item {
  background: rgba(255, 255, 255, 0.05);
}

.control-item i {
  font-size: 14px;
  color: var(--accent-color);
}

.premium-select-minimal {
  display: none; /* fallback */
}

.custom-select-wrapper {
  position: relative;
  cursor: pointer;
  user-select: none;
  min-width: 140px;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
}

.custom-select-trigger .caret {
  font-size: 10px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.custom-options {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  background: var(--bg-color, #ffffff);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 155, 99, 0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-radius: 16px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme='dark'] .custom-options {
  background: var(--card-bg, #1a1a1a);
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-wrapper.open .caret {
  transform: rotate(180deg);
}

.custom-option {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-option:hover {
  background: rgba(196, 155, 99, 0.1);
  color: var(--accent-color);
  padding-left: 25px;
}

.custom-option.selected {
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(196, 155, 99, 0.05);
}

@media (max-width: 992px) {
  .search-filter-merged {
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    gap: 20px;
  }
  .search-input-group {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 5px;
    padding-bottom: 15px;
  }
  .filter-controls-group {
    width: 100%;
    justify-content: space-between;
  }
  .control-item {
     flex: 1;
     justify-content: center;
  }
}
