/* Indian Souvenir Store — Impeccable Overdrive Redesign */
:root {
  --crimson: #8C1C13;
  --crimson-hover: #6B150F;
  --gold: #BF8C3F;
  --ink: #110B08;
  --muted: #6C625A;
  --surface: #F5EFE9;
  --bg: #FDFBFA;
  --white: #FFFFFF;
  --border: rgba(17, 11, 8, 0.08);
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  
  --transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  --shadow-float: 0 30px 60px -10px rgba(17, 11, 8, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: min(1440px, 92vw); margin: 0 auto; }

/* ─── Top Bar ─── */
.top-bar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-contacts { display: flex; gap: 2rem; align-items: center; }
.top-contacts a { opacity: 0.8; }
.top-contacts a:hover { opacity: 1; color: var(--gold); }
.top-contacts svg { width: 12px; height: 12px; margin-right: 0.4rem; vertical-align: -1px; }

/* ─── Header ─── */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem 0;
}

.logo img {
  height: 64px;
  width: auto;
  transition: opacity var(--transition);
  mix-blend-mode: multiply;
}
.logo:hover img { opacity: 0.7; }

/* Minimal Search */
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  transition: border-color var(--transition);
  padding-bottom: 0.5rem;
}
.search-form:focus-within { border-color: var(--ink); }

/* Autocomplete suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 0.5rem;
  display: none;
}
.search-suggestions.open {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: var(--surface);
}
.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--white);
  padding: 0.15rem;
}
.suggestion-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.suggestion-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.suggestion-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.suggestion-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--crimson);
}

.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  padding: 0 0.5rem;
}
.search-form select {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: var(--muted);
  outline: none;
  cursor: pointer;
  padding: 0 1rem;
  border-left: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-form button {
  color: var(--ink);
  display: flex;
  align-items: center;
  padding-left: 1rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.search-form button:hover { opacity: 1; }
.search-form button svg { width: 20px; height: 20px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 2rem; }
.header-action { display: flex; align-items: center; gap: 0.5rem; opacity: 0.8; transition: opacity var(--transition); }
.header-action:hover { opacity: 1; color: var(--crimson); }
.header-action svg { width: 22px; height: 22px; }

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-total { font-size: 0.85rem; font-weight: 500; margin-left: 0.25rem; }

/* ─── Navigation ─── */
.main-nav {
  border-bottom: 1px solid var(--border);
}
.nav-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.nav-list a {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 0;
  color: var(--muted);
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.nav-list a:hover, .nav-list a.active { color: var(--ink); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); transform-origin: left; }

.mobile-menu-btn { display: none; padding: 1rem 0; }
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* ─── Hero ─── */
.hero {
  position: relative;
  background: transparent;
  padding: 0;
}
.hero #heroSlider {
  line-height: 0;
  overflow: hidden;
  border-radius: 4px;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ─── Trust Badges ─── */
@keyframes trustMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-bar {
  padding: 2.5rem 0;
  background: var(--surface);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.trust-grid {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: trustMarquee 60s linear infinite;
}

.trust-grid:hover {
  animation-play-state: paused;
}

.trust-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.75rem;
  padding: 0 3.5rem;
}

.trust-icon {
  color: var(--crimson);
}
.trust-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.trust-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.1rem;
}
.trust-text span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Sections ─── */
.section { padding: clamp(5rem, 8vw, 8rem) 0; }
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Tabs ─── */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
#featuredTabs {
  justify-content: center !important;
}
.tab-btn {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--crimson); border-bottom-color: var(--crimson); }

/* ─── Product Grid Overdrive ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 2rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-image-wrap {
  position: relative;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover .product-image-wrap {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}
.product-image-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform var(--transition);
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.sale-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  z-index: 10;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.product-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price .current {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
}
.product-price .original {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}
.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--crimson);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition);
}
.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateX(0);
}
.add-to-cart-btn svg { width: 16px; height: 16px; stroke-width: 2px; }

.carousel-wrap { position: relative; }
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--ink);
  transform: scale(1.5);
}

/* ─── Newsletter (Drenched) ─── */
.newsletter {
  background: var(--crimson);
  padding: clamp(3rem, 5vw, 5rem) 0;
  color: var(--white);
  text-align: center;
}
.newsletter .container {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.newsletter-text {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}
.newsletter-text svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  stroke-width: 1.5;
  color: var(--gold);
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  text-wrap: balance;
}
.newsletter-text p {
  font-size: 1.05rem;
  opacity: 0.9;
}
.newsletter-form {
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.5rem;
  transition: border-color var(--transition);
}
.newsletter-form:focus-within { border-color: var(--white); }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.5rem 0;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--surface);
  color: var(--ink);
  padding-top: 6rem;
  border-top: 1px solid var(--border);
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}
.footer-brand img {
  max-height: 80px;
  margin-bottom: 2.5rem;
  mix-blend-mode: multiply;
}
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.footer-contact p, .footer-contact a {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  display: block;
}
.footer-contact a:hover { color: var(--crimson); }

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.social-links a {
  color: var(--muted);
}
.social-links a:hover { color: var(--crimson); }
.social-links svg { width: 24px; height: 24px; }

.footer-visual { display: flex; align-items: center; justify-content: flex-end; }
.footer-visual img { max-width: 400px; opacity: 0.9; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--crimson); }
.footer-payments img { height: 24px; opacity: 0.8; transition: opacity var(--transition); }
.footer-payments img:hover { opacity: 1; }

/* ─── Cart Drawer & Overlay ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 11, 8, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--bg);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(17,11,8,0.1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 400;
}
.cart-close { opacity: 0.5; transition: opacity var(--transition); }
.cart-close:hover { opacity: 1; }
.cart-close svg { width: 28px; height: 28px; }

.cart-items { flex: 1; overflow-y: auto; padding: 2rem; }
.cart-empty { text-align: center; padding: 4rem 0; color: var(--muted); }
.cart-empty p { font-size: 1.1rem; }

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--surface);
  padding: 0.5rem;
}
.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item-info h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.cart-item-info .price {
  font-size: 1rem;
  color: var(--muted);
}
.cart-item-remove {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crimson);
  margin-top: 0.75rem;
  align-self: flex-start;
}

.cart-footer {
  padding: 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.checkout-btn {
  width: 100%;
  padding: 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background var(--transition);
}
.checkout-btn:hover { background: var(--crimson); }

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 50;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ─── Mobile Bottom Navigation ─── */
.mobile-bottom-nav {
  display: none;
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 1rem;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar {
    display: none;
  }
  .nav-list a {
    white-space: nowrap;
    padding: 1.25rem 0.75rem;
  }

  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img, .footer-visual img { margin-left: auto; margin-right: auto; }
  .social-links { justify-content: center; }
  .footer-visual { justify-content: center; margin-top: 2rem; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }

  .top-contacts { display: none; }
  
  .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .logo img { height: 44px; }
  
  .search-form {
    width: 100%;
    order: 3;
    margin-top: 0.5rem;
  }
  .search-form select {
    display: none;
  }
  
  .main-nav {
    display: none;
  }

  .whatsapp-float {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(17, 11, 8, 0.06);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    gap: 0.25rem;
    flex: 1;
    height: 100%;
    transition: color var(--transition);
  }
  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
  }
  .mobile-nav-item.active {
    color: var(--crimson);
  }

  .trust-bar {
    padding: 2rem 0;
  }
  .trust-item {
    padding: 0 2rem;
  }
  .trust-icon svg {
    width: 24px;
    height: 24px;
  }
  .trust-text strong {
    font-size: 0.95rem;
    margin-bottom: 0.05rem;
  }
  .trust-text span {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    display: block;
  }

  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    gap: 1.5rem;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .category-tabs .tab-btn {
    flex-shrink: 0;
  }
  #featuredTabs {
    justify-content: center;
  }

  .product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    margin: 0 -4vw;
    padding-left: 4vw;
    padding-right: 4vw;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .product-grid::-webkit-scrollbar {
    display: none;
  }
  .product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .add-to-cart-btn { opacity: 1; transform: translateX(0); } /* Always show on mobile */
  .newsletter .container { padding: 0 1rem; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) both; }
.product-card { animation-delay: calc(var(--i, 0) * 0.1s); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
