/* ============================================
   ETHNCA — Modern Indian Ethnic E-Commerce
   ============================================ */

:root {
    --cream: #ece5d3;
    --cream-dark: #e4dbc8;
    --cream-deep: #d8cdb4;
    --gold: #b8964e;
    --gold-light: #d4b06a;
    --gold-dark: #96763a;
    --dark: #1a1612;
    --dark-soft: #2f2921;
    --text: #3d352c;
    --text-light: #7a6e62;
    --white: #ffffff;
    --red-accent: #8b2020;

    --font-display: 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration:none; color:inherit; }
button { border:none; background:none; cursor:pointer; font-family:inherit; color:inherit; }
ul { list-style:none; }
img { display:block; max-width:100%; }

/* ---- Typography ---- */
h1,h2,h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: 1.5px; }
h4 { font-family: var(--font-serif); font-weight: 600; }

/* ---- Announcement Bar ---- */
.announcement-bar {
    background: var(--dark);
    color: var(--gold-light);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}
.announcement-bar .bar-sep { padding: 0 0.6rem; }
/* On narrow screens, drop the | separator and stack the two phrases on
   their own lines so neither one wraps mid-sentence. */
@media (max-width: 600px) {
    .announcement-bar p { line-height: 1.5; }
    .announcement-bar .bar-item { display: block; }
    .announcement-bar .bar-sep  { display: none; }
}

/* ---- Navbar ----
   Logo intentionally larger (160px) so the brand mark reads from a distance;
   navbar vertical padding tightened to keep the overall header height in
   check despite the bigger mark. */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 4%;
    background: rgba(236,229,211,0.97);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(184,150,78,0.15);
    backdrop-filter: blur(12px);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.06); }

.nav-left, .nav-right { display:flex; align-items:center; gap:1.25rem; flex:1; }
.nav-right { justify-content: flex-end; }

.nav-links { display:flex; gap:1.75rem; }
.nav-links a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}
.nav-links a::after {
    content:'';
    position:absolute;
    bottom:0; left:50%;
    width:0; height:1px;
    background: var(--gold);
    transition: all var(--transition);
    transform: translateX(-50%);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width:100%; }

.nav-logo {
    display:flex; flex-direction:column; align-items:center; gap:0;
    position: relative;
}
.logo-icon {
    width: 160px; height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.logo-text {
    display: none;
}

.nav-icons { display:flex; gap:1.2rem; align-items:center; }
/* Every nav-icon (button OR anchor) must be a positioned ancestor so the
   cart/wishlist count badges anchor to it. Without this, the .cart-btn
   anchor had no position, and the badge fell out to the viewport corner. */
.nav-icons > a, .nav-icons > button { position:relative; color:var(--text); transition: color var(--transition); display:inline-flex; align-items:center; }
.nav-icons > a:hover, .nav-icons > button:hover { color: var(--gold); }
.cart-count {
    position:absolute; top:-6px; right:-8px;
    background:var(--gold); color:var(--white);
    font-size:0.6rem; min-width:16px; height:16px; padding:0 4px;
    border-radius:999px; display:flex; align-items:center; justify-content:center;
    font-weight:600; line-height:1;
}
/* Hide the badge when the cart is empty — looks cleaner than a "0" pill. */
.cart-count:empty,
.cart-count[data-count="0"] { display:none; }

.hamburger { display:none; flex-direction:column; gap:5px; padding:4px; }
.hamburger span { width:22px; height:1.5px; background:var(--dark); transition: var(--transition); }

/* Mobile Menu */
.mobile-menu {
    position:fixed; top:0; left:-100%; width:85%; max-width:380px; height:100vh;
    background:var(--cream); z-index:200;
    transition: left 0.4s ease;
    padding: 2rem;
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu.open { left:0; }
.mobile-menu-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:3rem; }
.close-menu { font-size:2rem; color:var(--text); }
.mobile-menu ul li { margin-bottom:1.5rem; }
.mobile-menu ul a {
    font-family: var(--font-display);
    font-size:1.1rem; letter-spacing:2px; text-transform:uppercase;
    transition: color var(--transition);
}
.mobile-menu ul a:hover { color: var(--gold); }

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 92vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-slide {
    position:absolute; top:0; left:0; width:100%; height:100%;
    background-size:cover; background-position:center top;
    opacity:0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity:1; }
.hero-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to right, rgba(26,22,18,0.65) 0%, rgba(26,22,18,0.25) 50%, transparent 100%);
}
.hero-text {
    position:absolute; bottom:15%; left:5%;
    max-width: 580px;
    color: var(--white);
    z-index:2;
}
.hero-tag {
    display:inline-block;
    font-size:0.7rem; letter-spacing:4px; text-transform:uppercase;
    border: 1px solid rgba(255,255,255,0.4); padding:6px 18px;
    margin-bottom:1.2rem; font-weight:400;
}
.hero-text h1 {
    font-size: 3.5rem; line-height:1.15; margin-bottom:1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-text p {
    font-family: var(--font-serif);
    font-size:1.3rem; font-weight:400; opacity:0.9;
    margin-bottom:2rem;
}
.hero-dots {
    position:absolute; bottom:3rem; left:50%; transform:translateX(-50%);
    display:flex; gap:10px; z-index:5;
}
.dot {
    width:10px; height:10px; border-radius:50%;
    border:1px solid rgba(255,255,255,0.7);
    background:transparent;
    cursor:pointer; transition: var(--transition);
}
.dot.active { background:var(--white); }

/* ---- Buttons ---- */
.btn-gold {
    display:inline-block;
    background:var(--gold); color:var(--white);
    font-family: var(--font-display);
    font-size:0.75rem; font-weight:600;
    letter-spacing:3px; text-transform:uppercase;
    padding:1rem 2.5rem;
    transition: all var(--transition);
}
.btn-gold:hover { background:var(--gold-dark); transform:translateY(-2px); box-shadow:0 6px 20px rgba(184,150,78,0.35); }

.btn-outline {
    display:inline-block;
    border:1px solid var(--white); color:var(--white);
    font-family: var(--font-display);
    font-size:0.72rem; font-weight:500;
    letter-spacing:3px; text-transform:uppercase;
    padding:0.9rem 2.2rem;
    transition: all var(--transition);
}
.btn-outline:hover { background:var(--white); color:var(--dark); }

.btn-outline-sm {
    display:inline-block;
    border:1px solid var(--white); color:var(--white);
    font-size:0.68rem; font-weight:500;
    letter-spacing:2px; text-transform:uppercase;
    padding:0.6rem 1.5rem;
    transition: all var(--transition);
}
.btn-outline-sm:hover { background:var(--white); color:var(--dark); }

/* ---- Section Headers ---- */
.section-header {
    display:flex; justify-content:space-between; align-items:center;
    padding: 0 5%; margin-bottom:2rem;
}
.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark-soft);
}
.view-all {
    font-size:0.78rem; text-transform:uppercase; letter-spacing:2px;
    color:var(--gold); font-weight:500;
    transition: color var(--transition);
}
.view-all:hover { color:var(--gold-dark); }

/* ---- Horizontal Scroll Row ---- */
.scroll-row {
    display:flex;
    gap:1.5rem;
    overflow-x:auto;
    padding: 0 5% 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display:none; }

/* ---- Category Strip ---- */
.category-strip { padding:3.5rem 0; }
.cat-circle {
    flex-shrink:0;
    display:flex; flex-direction:column; align-items:center; gap:0.8rem;
    cursor:pointer;
    scroll-snap-align: start;
    transition: transform var(--transition);
    text-decoration: none;
    color: inherit;
}
.cat-circle:hover { transform: translateY(-5px); }
.cat-img {
    width:110px; height:110px;
    border-radius:50%;
    overflow:hidden;
    border:3px solid var(--gold-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cat-circle:hover .cat-img {
    border-color:var(--gold);
    box-shadow: 0 6px 25px rgba(184,150,78,0.3);
}
.cat-img img { width:100%; height:100%; object-fit:cover; }
.cat-circle span {
    font-size:0.78rem; letter-spacing:1.5px; text-transform:uppercase;
    font-weight:500; color:var(--text);
}

/* ---- Product Carousel ---- */
.product-carousel-section { padding:3rem 0 4rem; }
.product-scroll { gap:1.2rem; }

.product-card {
    flex-shrink:0;
    width: 300px;
    scroll-snap-align: start;
    transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-6px); }
.product-img {
    position:relative;
    width:100%; height:420px;
    overflow:hidden;
    background: var(--cream-dark);
    border-radius: var(--radius);
}
.product-img img {
    width:100%; height:100%; object-fit:cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }

.badge {
    position:absolute; top:12px; left:12px;
    font-size:0.6rem; letter-spacing:2px; text-transform:uppercase;
    padding:4px 12px; font-weight:600;
}
.badge.new { background:var(--dark); color:var(--cream); }
.badge.trending { background:var(--gold); color:var(--white); }

.wishlist-btn {
    position:absolute; top:12px; right:12px;
    width:36px; height:36px; border-radius:50%;
    background:rgba(255,255,255,0.85);
    display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; color:var(--text);
    backdrop-filter: blur(4px);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    z-index: 2;
}
.wishlist-btn:hover { background:var(--red-accent); color:var(--white); }
/* Saved state — solid red heart on a white pill */
.wishlist-btn.is-saved,
.wishlist-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--red-accent, #b53636);
    box-shadow: 0 2px 8px rgba(181, 54, 54, 0.18);
}
.wishlist-btn[disabled] { opacity: 0.6; cursor: wait; }

.product-info { padding:1rem 0.3rem 0; }
.product-info h4 {
    font-size:1.05rem; font-weight:500;
    margin-bottom:0.3rem; color:var(--dark-soft);
}
.product-price {
    font-family: var(--font-sans);
    font-size:0.95rem; font-weight:600; color:var(--dark);
    margin-bottom:0.2rem;
}
.product-tag {
    font-size:0.7rem; text-transform:uppercase; letter-spacing:1.5px;
    color:var(--text-light); font-weight:400;
}

/* ---- Editorial Banner ---- */
.editorial-banner {
    display:grid; grid-template-columns:1fr 1fr;
    height:550px; margin:1rem 0;
}
.editorial-left, .editorial-right {
    position:relative;
    background-size:cover; background-position:center top;
    display:flex; align-items:flex-end;
    padding:3rem;
}
.editorial-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(26,22,18,0.7) 0%, transparent 60%);
}
.editorial-text {
    position:relative; z-index:2; color:var(--white);
}
.editorial-text span {
    font-size:0.68rem; letter-spacing:3px; text-transform:uppercase;
    opacity:0.8; display:block; margin-bottom:0.5rem;
}
.editorial-text h2 {
    font-size:2rem; line-height:1.2; margin-bottom:1.5rem;
}

/* ---- Occasion Grid ---- */
.occasion-section { padding:4rem 0; }
.occasion-grid {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap:0.8rem;
    padding:0 5%;
}
.occasion-card {
    position:relative;
    height:350px;
    background-size:cover; background-position:center top;
    display:flex; align-items:flex-end; justify-content:center;
    padding:2rem;
    overflow:hidden;
    cursor:pointer;
    transition: transform var(--transition);
    text-decoration: none;
    color: inherit;
}
.occasion-card:hover { transform: scale(1.02); }
.occasion-card.large { grid-column: span 2; grid-row: span 2; height:100%; }
.occasion-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(26,22,18,0.65) 0%, rgba(26,22,18,0.1) 50%);
    transition: background var(--transition);
}
.occasion-card:hover .occasion-overlay {
    background: linear-gradient(to top, rgba(26,22,18,0.75) 0%, rgba(26,22,18,0.2) 50%);
}
.occasion-text {
    position:relative; z-index:2; text-align:center; color:var(--white);
}
.occasion-text h3 {
    font-size:1.5rem; margin-bottom:1rem; letter-spacing:3px;
}

/* ---- Bridal Banner ---- */
.bridal-banner {
    position:relative;
    height:70vh; min-height:500px;
    display:flex; align-items:center; justify-content:center;
    text-align:center; overflow:hidden;
    margin:1rem 0;
}
.bridal-bg {
    position:absolute; inset:0;
    background-size:cover; background-position:center top;
}
.bridal-overlay {
    position:absolute; inset:0;
    background: rgba(26,22,18,0.55);
}
.bridal-content {
    position:relative; z-index:2;
    max-width:650px; padding:2rem;
    color:var(--white);
}
.bridal-content h2 {
    font-size:3rem; line-height:1.2; margin: 1rem 0;
}
.bridal-content p {
    font-family:var(--font-serif);
    font-size:1.15rem; opacity:0.9;
    margin-bottom:2rem;
}

/* ---- Lookbook Scroll ---- */
.lookbook-scroll { gap:1rem; }
.lookbook-card {
    flex-shrink:0;
    width:320px;
    position:relative;
    scroll-snap-align: start;
    overflow:hidden;
    cursor:pointer;
}
.lookbook-card img {
    width:100%; height:480px;
    object-fit:cover;
    transition: transform 0.6s ease;
}
.lookbook-card:hover img { transform: scale(1.05); }
.lookbook-caption {
    position:absolute; bottom:0; left:0; right:0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    padding:3rem 1.5rem 1.5rem;
    color:var(--white);
}
.lookbook-caption span {
    font-size:0.65rem; letter-spacing:3px; text-transform:uppercase;
    opacity:0.7;
}
.lookbook-caption p {
    font-family: var(--font-display);
    font-size:1.1rem; letter-spacing:1px; margin-top:0.3rem;
}

/* ---- Jewelry Section ---- */
.jewelry-section {
    display:flex; align-items:center;
    padding:5rem 5%;
    gap:5rem;
    background: var(--cream-dark);
}
.jewelry-image {
    flex:1;
    max-height:550px;
    overflow:hidden;
    border-radius: var(--radius);
}
.jewelry-image img { width:100%; height:100%; object-fit:cover; }
.jewelry-text {
    flex:1;
    max-width:500px;
}
.jewelry-text h2 {
    font-size:2.2rem; margin:0.8rem 0 1.2rem;
    color:var(--dark-soft);
}
.jewelry-text p {
    font-family:var(--font-serif);
    font-size:1.1rem; line-height:1.8; color:var(--text-light);
    margin-bottom:2rem;
}

/* ---- Our Story ---- */
.story-section {
    padding:6rem 5%;
    text-align:center;
    max-width:900px;
    margin:0 auto;
}
.story-swan {
    width:80px; margin:0 auto 1.5rem;
    mix-blend-mode:multiply;
    opacity:0.7;
}
.story-section h2 {
    font-size:2.2rem; margin-bottom:2rem; color:var(--dark-soft);
}
.story-section p {
    font-family:var(--font-serif);
    font-size:1.1rem; line-height:1.9;
    color:var(--text-light);
    margin-bottom:1.5rem;
}
.story-stats {
    display:flex; justify-content:center; gap:3rem;
    margin-top:3rem;
    padding-top:3rem;
    border-top:1px solid var(--cream-deep);
}
.story-stats div {
    display:flex; flex-direction:column; align-items:center;
}
.story-stats strong {
    font-family:var(--font-display);
    font-size:2rem; color:var(--gold);
}
.story-stats span {
    font-size:0.72rem; text-transform:uppercase; letter-spacing:1.5px;
    color:var(--text-light); margin-top:0.3rem;
}

/* ---- Newsletter ---- */
.newsletter {
    background:var(--cream-dark);
    color:var(--text);
    text-align:center;
    padding:5rem 5%;
}
.newsletter h2 {
    font-size:2rem; margin-bottom:0.8rem;
    color:var(--dark-soft);
}
.newsletter p {
    font-family:var(--font-serif);
    font-size:1.05rem; opacity:0.8;
    margin-bottom:2rem;
}
.newsletter-form {
    display:flex; gap:0;
    max-width:500px; margin:0 auto;
}
.newsletter-form input {
    flex:1; padding:1rem 1.5rem;
    border:none; background:var(--white);
    color:var(--text);
    font-family:var(--font-sans);
    font-size:0.9rem;
    outline:none;
    border:1px solid var(--cream-deep);
    transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color:var(--gold); }
.newsletter-form input::placeholder { color:var(--text-light); }
.newsletter-form .btn-gold { border:none; padding:1rem 2rem; }

/* ---- Footer ---- */
.footer {
    background:var(--cream-dark); color:var(--text);
    padding:5rem 5% 2rem;
    border-top:1px solid var(--cream-deep);
}
.footer-grid {
    display:grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap:3rem;
    margin-bottom:4rem;
}
.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1.1rem;
    mix-blend-mode: multiply;
    opacity: 0.92;
}
.footer-col h3 {
    font-size:1.5rem; letter-spacing:5px;
    color:var(--dark-soft);
    margin-bottom:0.8rem;
}
.footer-col p {
    font-size:0.85rem; line-height:1.7;
    margin-bottom:1.5rem;
}
.social-links { display:flex; gap:1rem; }
.social-links a {
    font-size:0.72rem; letter-spacing:2px; text-transform:uppercase;
    padding:6px 12px;
    border:1px solid var(--cream-deep);
    color:var(--text-light);
    transition: all var(--transition);
}
.social-links a:hover { border-color:var(--gold); color:var(--gold); }

.footer-col h4 {
    font-family:var(--font-sans);
    font-size:0.75rem; text-transform:uppercase;
    letter-spacing:2.5px; font-weight:600;
    color:var(--dark-soft);
    margin-bottom:1.5rem;
}
.footer-col ul li { margin-bottom:0.7rem; }
.footer-col ul a {
    font-size:0.85rem;
    color:var(--text-light);
    transition: color var(--transition);
}
.footer-col ul a:hover { color:var(--gold-dark); }

.footer-bottom {
    text-align:center; padding-top:2.5rem;
    border-top:1px solid var(--cream-deep);
}
.footer-bottom p {
    font-size:0.75rem; letter-spacing:1.5px; text-transform:uppercase;
    opacity:0.6;
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity:0; transform:translateY(35px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
    opacity:1; transform:translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .editorial-banner { grid-template-columns:1fr; height:auto; }
    .editorial-left, .editorial-right { height:400px; }
    .occasion-grid { grid-template-columns: 1fr 1fr; }
    .occasion-card.large { grid-column: span 2; height:350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display:none; }
    .hamburger { display:flex; }
    .hero-text h1 { font-size:2.2rem; }
    .hero { height:75vh; }
    .section-header h2 { font-size:1.4rem; }
    .product-card { width:240px; }
    .product-img { height:340px; }
    .lookbook-card { width:260px; }
    .lookbook-card img { height:380px; }
    .jewelry-section { flex-direction:column; gap:2.5rem; padding:3rem 5%; }
    .occasion-grid { grid-template-columns:1fr; }
    .occasion-card.large { grid-column: span 1; height:350px; }
    .bridal-content h2 { font-size:2rem; }
    .story-stats { flex-wrap:wrap; gap:2rem; }
    .newsletter-form { flex-direction:column; }
    .newsletter-form .btn-gold { width:100%; }
    .footer-grid { grid-template-columns:1fr; }
}

/* ============ Floating toast notifications ============ */
#etToastHost {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}
.et-toast {
  background: #1f1d1a;
  color: #fff8e6;
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body, sans-serif);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: auto;
  max-width: 320px;
  line-height: 1.4;
}
.et-toast--shown { opacity: 1; transform: translateY(0); }
.et-toast--success { background: #1d4f24; color: #e0f7e3; }
.et-toast--error   { background: #6a1818; color: #fde2e2; }
.et-toast--info    { background: #1f1d1a; color: #fff8e6; }

/* ============ Cart-count badge pulse ============ */
@keyframes cart-count-pulse {
  0%   { transform: scale(1);   }
  35%  { transform: scale(1.5); }
  100% { transform: scale(1);   }
}
.cart-count--pulse { animation: cart-count-pulse 480ms ease-out; transform-origin: center; }

/* ============ Cart row removal fade ============ */
.cart-item { transition: opacity 200ms ease, transform 200ms ease; }
.cart-item--removing { opacity: 0; transform: translateX(20px); pointer-events: none; }

/* qty buttons disabled state */
.qty-btn[disabled] { opacity: 0.35; cursor: not-allowed; }

/* ============ Live search overlay (opens from navbar search icon) ============ */
.search-overlay {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(20, 18, 16, 0.55);
  z-index: 1000;
  padding-top: 80px;
  animation: searchOverlayFade 180ms ease;
}
@keyframes searchOverlayFade { from { opacity: 0; } to { opacity: 1; } }

.search-overlay-inner {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--cream-deep, #e8dfd0);
}
.search-overlay-form .search-icon { color: var(--gold, #cda274); flex: none; }
.search-overlay-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-family: var(--font-serif, serif);
  color: var(--dark-soft, #1f1d1a);
  outline: none;
}
.search-overlay-form input::placeholder { color: #a89c87; }
.search-overlay-close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-light, #6b6360);
  padding: 0 0.4rem;
}
.search-overlay-close:hover { color: var(--dark-soft, #1f1d1a); }

.search-overlay-results {
  max-height: 60vh;
  overflow-y: auto;
}
.search-result {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  align-items: center;
  border-bottom: 1px solid #f4eee2;
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease;
}
.search-result:hover,
.search-result.is-focused { background: #fdf7e8; }
.search-result img {
  width: 56px; height: 72px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-info h4 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display, serif);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-info p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-light, #6b6360);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.search-result-price { font-weight: 600; color: var(--gold, #b88a45); font-size: 0.95rem; }

.search-result-empty,
.search-result-hint {
  padding: 1.4rem;
  text-align: center;
  color: var(--text-light, #6b6360);
  font-size: 0.9rem;
}

.search-see-all {
  display: block;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-display, serif);
  font-size: 0.85rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold, #b88a45);
  border-top: 1px solid var(--cream-deep, #e8dfd0);
  background: #fffbf2;
  text-decoration: none;
  cursor: pointer;
}
.search-see-all:hover { background: #fff5dc; }

@media (max-width: 600px) {
  .search-overlay { padding-top: 40px; }
  .search-overlay-form input { font-size: 1rem; }
}

/* ============ Modal — used by Bridal Appointment ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  animation: modalFade 200ms ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay[hidden] { display: none; }

.modal-dialog {
  background: #fff;
  width: 100%;
  max-width: 640px;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  padding: 2rem 2.25rem 1.75rem;
  position: relative;
  animation: modalSlide 220ms ease;
  margin: auto;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--text-light, #6b6360);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--dark-soft, #1f1d1a); }

.modal-header { margin-bottom: 1.4rem; }
.modal-header h2 {
  font-family: var(--font-display, serif);
  font-size: 1.55rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--dark-soft, #1f1d1a);
}
.modal-header p {
  font-size: 0.92rem;
  color: var(--text-light, #6b6360);
  margin: 0;
  line-height: 1.5;
}

.modal-form .form-row { display: flex; gap: 1rem; margin-bottom: 0.85rem; }
.modal-form .form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; margin-bottom: 0.85rem; }
.modal-form .form-group { display: flex; flex-direction: column; margin-bottom: 0.85rem; }
.modal-form .form-group:last-of-type { margin-bottom: 0; }
.modal-form label {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light, #6b6360);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.modal-form .req { color: #b54848; font-weight: 600; }
.modal-form input,
.modal-form select,
.modal-form textarea {
  border: 1px solid var(--cream-deep, #e8dfd0);
  background: #fff;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--dark-soft, #1f1d1a);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
  outline: none;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--gold, #cda274);
  box-shadow: 0 0 0 3px rgba(205, 162, 116, 0.15);
}
.modal-form textarea { resize: vertical; min-height: 70px; }

.modal-status {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  background: #f0f7ec;
  border: 1px solid #cbe3b9;
  color: #2f5d18;
}
.modal-status.is-error  { background: #fdecec; border-color: #f3b9b9; color: #7a1f1f; }
.modal-status.is-success { background: #f0f7ec; border-color: #cbe3b9; color: #2f5d18; }

.modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--cream-deep, #e8dfd0);
}
.modal-actions .btn-gold { padding: 0.7rem 1.6rem; min-width: 150px; }
.modal-actions .btn-outline-dark { padding: 0.7rem 1.2rem; }

@media (max-width: 540px) {
  .modal-dialog { padding: 1.5rem 1.25rem 1.25rem; }
  .modal-form .form-row.two-col { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-gold, .modal-actions .btn-outline-dark { width: 100%; }
}

/* ============ Homepage carousel skeletons ============ */
/* Circle skeletons in the "Shop by Category" strip */
.cat-circle.skeleton-circle {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}
.cat-circle.skeleton-circle::before {
  content: '';
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--cream-dark, #e4dbc8);
  position: relative;
  overflow: hidden;
  animation: skeletonShimmer 1.4s infinite;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  background-size: 200% 100%;
}
.cat-circle.skeleton-circle::after {
  content: '';
  display: block;
  width: 70%;
  height: 11px;
  border-radius: 3px;
  background: var(--cream-dark, #e4dbc8);
}

/* Product card skeleton — used in New Arrivals / Trending carousels */
.product-card.skeleton-product {
  flex: 0 0 240px;
  background: transparent;
  pointer-events: none;
}
.product-card.skeleton-product::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 4px;
  background: var(--cream-dark, #e4dbc8);
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
  margin-bottom: 0.8rem;
}
.product-card.skeleton-product::after {
  content: '';
  display: block;
  width: 60%;
  height: 12px;
  border-radius: 3px;
  background: var(--cream-dark, #e4dbc8);
}
