/* ============================================================
   TANVI BY LAKSHYA — HIGH-END BOUTIQUE THEME
   ============================================================ */
:root {
  /* THEME COLORS: Peach & Maroon */
  --peach-bg: #efd7c7;       
  --peach-light: #f7e6db;    
  --maroon: #a0283c;         
  --maroon-deep: #701a28;    
  --gold: #C8A24D;
  --text-dark: #3a1c22;      
  --white: #ffffff;          

  /* LUXURY TYPOGRAPHY */
  --display: 'Cinzel', serif;
  --heading: 'Playfair Display', serif;
  --body: 'Manrope', sans-serif;
  --script: 'Pinyon Script', cursive;
  --mal: 'Noto Serif Malayalam', serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--peach-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 5vw; }
::selection { background: var(--maroon); color: var(--peach-bg); }

/* ============================================================
   PREMIUM GLASS NAVBAR (BASE & SCROLLED STATE)
   ============================================================ */

.navbar {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  z-index: 9999; 
  padding: 20px 5vw;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Cinematic ease */
  background: transparent;
  box-sizing: border-box; /* Prevents padding from breaking the width animation */
}

/* The Floating Glass Effect */
.navbar.scrolled {
  top: 15px;               
  width: 92%;              
  left: 4%;                
  border-radius: 40px;     
  padding: 10px 40px;      /* Adjusted side padding to fit the rounded edges */
  
  background: rgba(247, 230, 219, 0.7); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  border: 1px solid rgba(255, 255, 255, 0.5); 
  box-shadow: 0 15px 35px rgba(160, 40, 60, 0.15); 
}

/* --- BRANDING & LOGO --- */
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { 
  height: 80px; 
  width: auto; 
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}
.navbar.scrolled .brand img { height: 50px; } /* Shrinks logo smoothly */

.brand-word {
  font-family: var(--display); font-size: 1.3rem; letter-spacing: 2px;
  color: var(--maroon); line-height: 1.1; font-weight: 600;
}
.brand-word span {
  display: block; font-family: var(--body); font-size: 0.55rem;
  letter-spacing: 4px; color: var(--text-dark); font-weight: 600; margin-top: 4px;
}

/* --- NAV LINKS --- */
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 0.85rem; letter-spacing: 1px; font-weight: 600; text-transform: uppercase;
  color: var(--text-dark); position: relative; padding: 6px 0; transition: color 0.3s;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--maroon); transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* --- ICONS --- */
.nav-icons { display: flex; align-items: center; gap: 20px; color: var(--maroon); }
.nav-icons button { 
  color: inherit; 
  background: transparent; 
  border: none; 
  cursor: pointer;
  transition: transform 0.3s; 
}
.nav-icons button:hover { transform: translateY(-2px); }

.cart-badge {
  position: absolute; top: -6px; right: -8px; background: var(--maroon-deep); color: var(--white);
  font-size: 0.6rem; font-weight: 700; border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

.burger { display: none; }

/* ============================================================
   EDITORIAL HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; 
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 80px;
  background: radial-gradient(circle at 50% 40%, #fbf1ea 0%, var(--peach-bg) 100%);
}

/* Woven Thread Animation */
.hero-thread {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none;
}
.thread-path {
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: drawThread 8s ease-in-out forwards infinite alternate;
}
.thread-path-gold {
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: drawThread 8s ease-in-out 1s forwards infinite alternate;
}
@keyframes drawThread { to { stroke-dashoffset: 0; } }

.hero-content {
  position: relative; z-index: 5; text-align: center; max-width: 900px;
  display: flex; flex-direction: column; align-items: center;
}

.logo-wrapper {
  margin-bottom: 20px;
  animation: floatLogo 6s ease-in-out infinite;
}
.hero-mark {
  height: 180px; /* Center Logo Size */
  width: auto;
  filter: drop-shadow(0 15px 35px rgba(160, 40, 60, 0.15));
}
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-malayalam {
  font-family: var(--mal); color: var(--gold); letter-spacing: 4px; font-size: 1.1rem;
  margin-bottom: 15px; opacity: 0; animation: fadeUp 1s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--display); font-weight: 400; color: var(--maroon);
  font-size: clamp(3rem, 7vw, 6rem); line-height: 1.1; margin-bottom: 1.5rem;
  letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.5s forwards;
}
.italic-serif {
  font-family: var(--heading); font-style: italic; text-transform: none; 
  color: var(--text-dark); letter-spacing: 0; font-size: 1.1em;
}

.hero-desc {
  font-size: 1.1rem; color: var(--text-dark); max-width: 600px; margin: 0 auto 2.5rem;
  line-height: 1.8; opacity: 0; animation: fadeUp 1s var(--ease) 0.7s forwards;
}

.hero-ctas { opacity: 0; animation: fadeUp 1s var(--ease) 0.9s forwards; }

.btn {
  display: inline-block; padding: 16px 40px; font-size: 0.85rem; letter-spacing: 2px;
  font-weight: 600; text-transform: uppercase; border-radius: 0;
  transition: all 0.4s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn-maroon {
  background: var(--maroon); color: var(--white);
  box-shadow: 0 10px 30px rgba(160, 40, 60, 0.2);
}
.btn-maroon:hover {
  background: var(--maroon-deep); transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(160, 40, 60, 0.3);
}
.btn-outline-maroon {
  background: transparent; border-color: var(--maroon); color: var(--maroon);
}
.btn-outline-maroon:hover {
  background: var(--maroon); color: var(--white);
}

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 1px; height: 60px; background: rgba(160, 40, 60, 0.2);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.scroll-dot {
  width: 5px; height: 5px; background: var(--maroon); border-radius: 50%;
  transform: translateX(-2px); animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes scrollDown { 0% { transform: translate(-2px, 0); opacity: 1; } 100% { transform: translate(-2px, 60px); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SECTIONS & REVEALS
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.alt-bg { background: var(--peach-light); }

.editorial-header { text-align: center; margin-bottom: 70px; }
.script-accent { font-family: var(--script); font-size: 3.5rem; color: var(--gold); display: block; margin-bottom: -25px; position: relative; z-index: 2;}
.mal-accent { font-family: var(--mal); font-size: 1.1rem; color: var(--maroon); letter-spacing: 2px; display: block; margin-bottom: 10px;}
.editorial-header h2 { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--maroon); position: relative; z-index: 1;}
.header-line { width: 60px; height: 1px; background: var(--maroon); margin: 20px auto 0; }
.sub-desc { margin-top: 15px; font-size: 1.05rem; color: var(--text-dark); opacity: 0.8; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ============================================================
   LIVING TRADITIONS (MASONRY/EDITORIAL GRID)
   ============================================================ */
.editorial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 30px;
}
.ed-card {
  display: block; 
  position: relative; 
  text-decoration: none;
}
.ed-card:nth-child(even) { margin-top: 60px; } /* Asymmetrical layout */

.ed-frame {
  position: relative; padding: 12px; border: 1px solid rgba(160, 40, 60, 0.2);
  transition: all 0.6s var(--ease); background: var(--white);
}
.ed-img-wrap {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--peach-light);
}
.ed-img-wrap img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s, -webkit-filter 0.6s;
  
  /* Safe Cross-Browser Filters using Percentages */
  -webkit-filter: sepia(20%) contrast(105%);
  filter: sepia(20%) contrast(105%);
}

.ed-overlay {
  position: absolute; bottom: 12px; left: 12px; right: 12px; padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(239, 215, 199, 0.95), transparent);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: translateY(10px); opacity: 0; transition: all 0.5s var(--ease);
}
.ed-index { font-family: var(--display); font-size: 0.8rem; color: var(--maroon); letter-spacing: 2px; margin-bottom: 5px; }
.ed-overlay h3 { font-family: var(--heading); font-style: italic; font-size: 1.8rem; font-weight: 400; color: var(--text-dark); margin-bottom: 10px; }
.ed-link { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--maroon); border-bottom: 1px solid var(--maroon); padding-bottom: 3px; }

.ed-card:hover .ed-frame { border-color: var(--maroon); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(160, 40, 60, 0.1); }
.ed-card:hover .ed-img-wrap img { transform: scale(1.05); filter: sepia(0); }
.ed-card:hover .ed-overlay { transform: translateY(0); opacity: 1; }

/* ============================================================
   PRODUCT SLIDER (RAIL)
   ============================================================ */
.rail { display: flex; gap: 30px; overflow-x: auto; padding: 10px 10px 40px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.p-card {
  flex: 0 0 320px; scroll-snap-align: start; background: var(--white);
  border: 1px solid rgba(160, 40, 60, 0.1); transition: all 0.5s var(--ease);
}
.p-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(160, 40, 60, 0.08); border-color: rgba(160, 40, 60, 0.3); }
.p-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #fafafa; display: flex; align-items: center; justify-content: center;}
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-badge { position: absolute; top: 15px; left: 15px; background: var(--maroon); color: var(--white); font-size: 0.65rem; letter-spacing: 2px; padding: 6px 12px; z-index: 2; }
.p-wish { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--maroon); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.3s; z-index: 2;}
.p-wish:hover, .p-wish.active { background: var(--maroon); color: var(--white); }
.p-info { padding: 25px 20px; text-align: center; }
.cat-name { font-family: var(--display); font-size: 0.8rem; letter-spacing: 2px; color: var(--gold); display: block; margin-bottom: 8px; }
.p-info h4 { font-family: var(--heading); font-size: 1.3rem; font-weight: 400; color: var(--text-dark); margin-bottom: 12px; }
/* ============================================================
   PRODUCT PRICING (Updated Hierarchy)
   ============================================================ */
.p-price { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; /* Adds clean spacing between the two prices */
  font-family: var(--body); 
  margin-bottom: 20px; 
}

/* Highlight the discounted price */
.p-price .now { 
  font-weight: 800; 
  font-size: 1.2rem; 
  color: var(--maroon-deep); 
}

/* Add the cross mark (strikethrough) and mute the old price */
.p-price .was { 
  text-decoration: line-through; 
  text-decoration-color: rgba(160, 40, 60, 0.6); /* Soft maroon strikethrough line */
  text-decoration-thickness: 1.5px;
  color: #a3968e; /* Muted taupe/grey */
  font-size: 0.95rem; 
  font-weight: 500;
}
.p-cta { display: block; width: 100%; padding: 14px; background: var(--peach-light); color: var(--maroon); font-size: 0.8rem; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; transition: all 0.3s; }
.p-cta:hover { background: var(--maroon); color: var(--white); }

/* ============================================================
   HERITAGE STORY
   ============================================================ */
.heritage-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.h-image { position: relative; }
.h-img-inner { position: relative; aspect-ratio: 3/4; overflow: hidden; z-index: 2; }
.h-img-inner img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.3); }
.h-decorative-border { position: absolute; top: 30px; left: -30px; width: 100%; height: 100%; border: 1px solid var(--maroon); z-index: 1; }
.h-text h2 { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.1; color: var(--maroon); margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px;}
.h-text p { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); opacity: 0.85; margin-bottom: 20px; }
.h-stats { display: flex; gap: 40px; margin: 40px 0; border-top: 1px solid rgba(160,40,60,0.2); border-bottom: 1px solid rgba(160,40,60,0.2); padding: 20px 0; }
.h-stats div strong { font-family: var(--display); font-size: 2.5rem; color: var(--maroon); display: block; line-height: 1; }
.h-stats div span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 600; }
/* ============================================================
   FOOTER & NEWSLETTER
   ============================================================ */
.luxury-footer { 
  background: var(--maroon-deep); 
  color: var(--peach-bg); 
  position: relative; 
  margin-top: 120px;
}

/* Invisible block to prevent the negative margin from collapsing */
.luxury-footer::before {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
}

.newsletter-box {
  /* Safely pulls the box up and centers it without relying on transforms */
  margin: -90px auto 60px auto; 
  position: relative;
  z-index: 10;
  width: 90%; 
  max-width: 900px; 
  background: var(--maroon); 
  padding: 60px 40px;
  text-align: center; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
  border: 1px solid rgba(239, 215, 199, 0.2);
}
.nform { display: flex; max-width: 500px; margin: 0 auto; border-bottom: 1px solid var(--peach-bg); padding-bottom: 5px; }
.nform input { flex: 1; background: transparent; border: none; color: var(--white); font-family: var(--body); font-size: 1rem; outline: none; }
.nform input::placeholder { color: rgba(239, 215, 199, 0.6); }
.nform button { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; transition: color 0.3s; }
.nform button:hover { color: var(--white); }

.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; padding-bottom: 60px; }
.f-logo { 
  height: 80px; 
  margin-bottom: 20px;
  
  /* 1. Forces the logo to match rgb(239, 215, 199) */
  filter: brightness(0) saturate(100%) invert(88%) sepia(14%) saturate(848%) hue-rotate(338deg) brightness(101%) contrast(93%);
  opacity: 0.95; 
}
.f-brand-word { font-family: var(--display); font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 15px; color: var(--peach-light);}
.f-brand-word span { display: block; font-family: var(--body); font-size: 0.6rem; letter-spacing: 4px; color: var(rgba(239, 215, 199, 0.95)); margin-top: 5px; }
.f-brand-col p { opacity: 0.7; line-height: 1.8; max-width: 300px; }

.f-links h5, .f-contact h5 { font-family: var(--display); font-size: 1.2rem; letter-spacing: 2px; color: var(rgba(239, 215, 199, 0.95)); margin-bottom: 25px; text-transform: uppercase; }
.f-links a { display: block; margin-bottom: 15px; opacity: 0.7; transition: opacity 0.3s, color 0.3s; }
.f-links a:hover { opacity: 1; color: var(--white); }
.f-contact p { margin-bottom: 15px; opacity: 0.7; }

.f-bottom { border-top: 1px solid rgba(239, 215, 199, 0.1); padding: 25px 0; text-align: center; font-size: 0.85rem; opacity: 0.6; }

/* ============================================================
   FAB STACK
   ============================================================ */
.fab-stack { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 1rem; z-index: 999; }
.fab { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: all 0.3s var(--ease); }
.fab:hover { transform: translateY(-5px) scale(1.05); }
.fab-wa { background: #25D366; color: white; }
.fab-top { background: var(--charcoal); color: var(--peach-bg); opacity: 0; visibility: hidden; }
.fab-top.show { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .heritage-split { grid-template-columns: 1fr; gap: 40px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .ed-card:nth-child(even) { margin-top: 0; }
}

@media (max-width:768px){
  /* --- Existing Typography & Footer Resets --- */
  .hero-title { font-size: 2.8rem; }
  .script-accent { font-size: 2.5rem; }
  .editorial-header h2 { font-size: 2rem; }
  .newsletter-box { 
    margin: 0 auto 40px auto; 
    width: 100%; 
    border: none; 
    box-shadow: none; 
    border-bottom: 1px solid rgba(239,215,199,0.2);
  }
  .luxury-footer { margin-top: 0; padding-top: 40px; }
  .luxury-footer::before { display: none; }
  .f-grid { grid-template-columns: 1fr; gap: 40px; }
  
  /* --- UPGRADED MOBILE NAVBAR (Premium Glass Sizing) --- */
  .navbar { 
    padding: 15px 5vw; 
  }
  .navbar.scrolled {
    top: 10px;
    width: 94%;           
    left: 3%;
    padding: 10px 20px;   /* Keeps icons from hitting the edges */
    border-radius: 30px;  /* Tighter, elegant curves for mobile */
  }
  
  /* Smooth logo scaling for mobile */
  .brand img { height: 55px; }
  .navbar.scrolled .brand img { height: 40px; }

  /* --- Existing Mobile Nav Drawer & Burger Menu --- */
  .nav-links { 
    position: fixed; top: 0; right: 0; height: 100svh; width: 85vw; 
    background: var(--peach-light); flex-direction: column; align-items: flex-start; 
    justify-content: flex-start; padding: 120px 40px; gap: 30px; 
    transform: translateX(100%); transition: transform .6s var(--ease); 
    box-shadow: -10px 0 50px rgba(160,40,60,.1); 
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; font-family: var(--display); letter-spacing: 2px;}
  
  .burger { display: flex; flex-direction: column; gap: 6px; z-index: 1000; width: 30px; }
  .burger span { height: 2px; width: 100%; background: var(--maroon); transition: all .3s; }
}
/* ============================================================
   LUXURY COLLECTION DRAWER
   ============================================================ */
.collection-drawer {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; justify-content: flex-end;
  visibility: hidden; opacity: 0;
  transition: visibility 0.4s, opacity 0.4s;
}
.collection-drawer.active {
  visibility: visible; opacity: 1;
}

.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(31, 11, 14, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.drawer-panel {
  position: relative; width: 100%; max-width: 500px;
  height: 100%; background: var(--peach-bg);
  overflow-y: auto; padding: 60px 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -20px 0 50px rgba(0,0,0,0.2);
}
.collection-drawer.active .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; font-size: 1.5rem;
  color: var(--maroon); display: flex; align-items: center;
  justify-content: center; transition: transform 0.3s;
}
.drawer-close:hover { transform: rotate(90deg) scale(1.1); }

.drawer-header { text-align: center; margin-bottom: 40px; }
.drawer-header h2 {
  font-family: var(--display); color: var(--maroon);
  font-size: 2rem; letter-spacing: 2px; text-transform: uppercase;
}

/* Products inside the drawer */
.drawer-grid { display: flex; flex-direction: column; gap: 30px; }
.d-card {
  background: #ffffff; border: 1px solid rgba(160, 40, 60, 0.1);
  display: flex; align-items: center; padding: 15px; gap: 20px;
  transition: all 0.3s;
}
.d-card:hover { border-color: var(--maroon); box-shadow: 0 10px 20px rgba(160, 40, 60, 0.08); }
.d-media {
  width: 100px; height: 130px; flex-shrink: 0;
  background: var(--peach-light); overflow: hidden;
}
.d-media img { width: 100%; height: 100%; object-fit: cover; }
.d-info { flex: 1; }
.d-info h4 { font-family: var(--heading); font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; }
.d-info .p-price { margin-bottom: 12px; justify-content: flex-start; }
.d-info .p-cta { padding: 10px; font-size: 0.75rem; text-align: center; }

@media (max-width: 600px) {
  .drawer-panel { padding: 50px 20px; }
  .d-card { flex-direction: column; text-align: center; padding: 20px; }
  .d-media { width: 100%; height: 250px; }
  .d-info .p-price { justify-content: center; }
}
/* ============================================================
   LUXURY SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(247, 230, 219, 0.95); /* Peach bg with slight transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 10vh;
  visibility: hidden; opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-overlay.active {
  visibility: visible; opacity: 1;
}

.search-close {
  position: absolute; top: 30px; right: 40px;
  background: none; border: none;
  font-size: 2rem; color: var(--maroon);
  cursor: pointer; transition: transform 0.3s;
}
.search-close:hover { transform: rotate(90deg) scale(1.1); }

.search-container {
  width: 100%; max-width: 800px; padding: 0 20px;
}

.search-header { text-align: center; margin-bottom: 40px; }

.search-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 2px solid var(--maroon);
  font-family: var(--display, 'Cinzel', serif);
  font-size: 2rem; color: var(--maroon);
  padding: 15px 0; text-align: center; outline: none;
  transition: border-color 0.3s;
}
.search-input::placeholder { color: rgba(160, 40, 60, 0.4); }

.search-results-grid {
  max-height: 60vh; overflow-y: auto; padding-bottom: 40px;
}
/* We reuse the .d-card styles from the Collection Drawer for the results! */