/* Compact Gulmahal header proportions from the supplied reference. */
:root {
  --wine: #5b1022;
  --wine-dark: #3c0b18;
  --cream: #f8efe8;
  --paper: #fffaf6;
  --sand: #efe1d6;
  --line: #eadbd3;
  --ink: #321f20;
}

.announcement,
.header {
  width: min(100%, 430px);
  margin-inline: auto;
}

.announcement {
  height: 13px;
  gap: 5px;
  background: #591020;
  color: #f1d9c4;
  font-size: 6px;
  letter-spacing: 0;
}

.announcement a { text-decoration: none; }

.header { background: #fffaf7; }

.header-main {
  width: 100%;
  height: 48px;
  padding: 0 8px;
  grid-template-columns: 38px 1fr 84px;
  background: #651328;
  border-bottom: 0;
}

.header-main .icon-btn {
  width: 28px;
  height: 32px;
  color: #fff8ed;
}

.header-main .icon-btn svg { width: 16px; height: 16px; }
.header-main .brand { color: #f3d9a6; }
.header-main .brand-flower { margin: 0; font-size: 16px; }
.header-main .brand-name { font-size: 17px; letter-spacing: .12em; }
.header-main .brand-caption { margin-top: 3px; color: #f8ead7; font-size: 4.5px; }
.header-actions { gap: 0; }
.header-actions .icon-btn { width: 27px; }
.header-actions .icon-btn:first-child { display: inline-flex; }
.header-actions .count {
  top: 0;
  right: 0;
  width: 12px;
  min-width: 12px;
  height: 12px;
  background: #e8c58d;
  color: #591020;
  font-size: 7px;
}
.menu-toggle { justify-self: start; }

.nav {
  width: 100%;
  height: 24px;
  gap: 0;
  justify-content: space-around;
  background: #fffaf7;
  border-bottom: 1px solid #eadbd3;
  font-size: 7px;
}

.nav a { white-space: nowrap; }
.nav a:hover::after { height: 1px; }

@media (max-width: 360px) {
  .nav { font-size: 6px; }
  .header-main { grid-template-columns: 30px 1fr 78px; padding-inline: 5px; }
  .header-main .brand-name { font-size: 15px; }
  .header-main .brand-caption { font-size: 4px; }
  .header-actions .icon-btn { width: 25px; }
}

@media (max-width: 600px) {
  .nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 6px 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fffaf7;
    box-shadow: 0 10px 24px #32121c20;
    font-size: 15px;
  }

  .nav.open { display: flex; }
  .nav a {
    display: flex;
    align-items: center;
    height: 42px;
    padding-left: 8px;
    border-bottom: 1px solid #eadbd3;
  }
}

/* Collection filters open as a left-side drawer instead of expanding the page. */
.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(30, 12, 17, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.filter-backdrop.open { opacity: 1; visibility: visible; }
.filter-panel {
  position: fixed;
  z-index: 41;
  inset: 0 auto 0 0;
  width: min(390px, 88vw);
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 25px 24px;
  overflow-y: auto;
  background: #fffdfa;
  box-shadow: 12px 0 36px #21091325;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
}
.filter-panel.open { transform: translateX(0); visibility: visible; }
.filter-panel-heading {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -25px 6px;
  padding: 19px 24px 16px;
  background: #fffdfa;
  border-bottom: 1px solid var(--line);
}
.filter-panel-heading h2 { margin: 0; color: var(--wine-dark); font: 500 23px var(--serif); }
.filter-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f5ece6; color: var(--wine); font-size: 24px; line-height: 1; }
.filter-group { display: grid; gap: 13px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.filter-group>b { margin-bottom: 2px; color: var(--ink); font-size: 14px; }
.filter-group label { display: flex; align-items: center; gap: 10px; color: #554744; font-size: 13px; }
.filter-group input { accent-color: var(--wine); width: 16px; height: 16px; margin: 0; }
.filter-clear { margin-top: 22px; min-height: 43px; border: 1px solid var(--wine); background: white; color: var(--wine); font-weight: 600; }
body.filter-open { overflow: hidden; }

@media (min-width: 601px) {
  .announcement,
  .header {
    width: 100%;
    margin-inline: 0;
  }

  .announcement {
    height: 32px;
    gap: 13px;
    background: var(--wine-dark);
    color: #fff5ed;
    font-size: 10px;
    letter-spacing: .04em;
  }

  .announcement a { text-decoration: underline; }
  .header { background: var(--paper); }

  .header-main {
    width: 100%;
    height: 80px;
    padding: 10px max(32px, calc((100% - 1320px) / 2));
    grid-template-columns: 1fr 2fr 1fr;
    background: var(--wine);
    border-bottom: 0;
  }

  /* Desktop already shows the full navigation row, so keep the menu toggle for mobile only. */
  .header-main .menu-toggle { visibility: visible; }

  .header-main .icon-btn {
    width: 40px;
    height: 40px;
    color: #fff8ed;
  }

  .header-main .icon-btn svg { width: 21px; height: 21px; }
  .header-main .brand { color: #f3d9a6; }
  .header-main .brand-flower { margin-bottom: 1px; font-size: 20px; }
  .header-main .brand-name { font-size: 25px; letter-spacing: .15em; }
  .header-main .brand-caption { margin-top: 5px; color: #f8ead7; font-size: 6px; }
  .header-actions { gap: 5px; }
  .header-actions .icon-btn { width: 40px; }
  .header-main .account-link { color: #f8ead7; }
  .header-actions .count {
    top: 0;
    right: 1px;
    width: auto;
    min-width: 15px;
    height: 15px;
    background: var(--wine);
    color: #fff;
    font-size: 9px;
  }

  .nav {
    width: 100%;
    height: 32px;
    gap: clamp(24px, 3vw, 40px);
    justify-content: center;
    padding-inline: 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .hero { background: #54101f; }
  .hero > img {
    left: auto;
    width: 56%;
    object-position: center 34%;
  }
  .hero-shade {
    background: linear-gradient(90deg, #4c101edb 0%, #4c101eab 36%, #4c101e20 67%, transparent 82%);
  }
}

@media (max-width: 600px) {
  .hero { background: #54101f; }
  .hero > img { left: 0; width: 100%; object-position: center 30%; }
}

.footer { background: linear-gradient(120deg, #3c0b18, #571021 55%, #3c0b18); }

/* Full-width branded footer based on the supplied Gulmahal reference. */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: 62px;
  padding-top: 34px;
  background: radial-gradient(ellipse at 50% 0%, #70182e 0, #4b0d1c 68%, #3d0917 100%);
  color: #f8eee4;
}
.footer::before,
.footer::after {
  content: '✿';
  position: absolute;
  top: 22px;
  color: #c99858;
  opacity: .16;
  font: 170px/1 Georgia, serif;
  pointer-events: none;
}
.footer::before { left: -22px; }
.footer::after { right: -22px; }
.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 24px 46px;
  padding-bottom: 20px;
}
.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-bottom: 19px;
  border-bottom: 1px solid #d6b17b55;
}
.footer-logo { align-items: center; color: #f3d59a; }
.footer-logo .brand-flower { font-size: 29px; color: #d2a65e; margin-bottom: 3px; }
.footer-logo .brand-name { font-size: 28px; letter-spacing: .18em; }
.footer-logo .brand-caption { color: #f8ead7; font-size: 7px; margin-top: 6px; }
.footer h4 { margin: 0 0 12px; color: #f3d59a; font: 500 14px var(--serif); }
.footer-about p, .footer-social p { max-width: 255px; margin: 0; color: #e4d2c9; font-size: 10px; line-height: 1.7; }
.footer-links a, .footer-policies a { display: block; margin: 7px 0; color: #e8d8ce; font-size: 10px; }
.footer-links a:hover, .footer-policies a:hover { color: #f3d59a; }
.footer-social .socials { margin-top: 12px; gap: 13px; }
.footer-social .socials a { color: #f3d59a; font-size: 15px; }
.newsletter { grid-column: 1 / -1; max-width: 520px; width: 100%; }
.newsletter h4 { margin-bottom: 10px; }
.newsletter form { display: flex; min-height: 38px; border: 1px solid #ead7c9; border-radius: 4px; overflow: hidden; }
.newsletter input { background: #fffaf7; color: #3b2021; padding: 0 13px; font-size: 10px; }
.newsletter button { width: 42px; background: #a41e43; color: white; }
.footer-benefits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 18px;
  border-top: 1px solid #d6b17b55;
}
.footer-benefits > div { display: flex; align-items: center; justify-content: center; gap: 9px; text-align: left; }
.footer-benefits span { color: #f0d39b; font-size: 24px; }
.footer-benefits b { color: #f8eee4; font-size: 9px; font-weight: 500; line-height: 1.45; }
.footer-bottom { position: relative; z-index: 1; border-color: #ffffff30; color: #e4d2c9; }

/* Product detail composition: gallery and buying controls above shared assurance and details. */
.product-detail { align-items: start; gap: clamp(24px, 4vw, 58px); }
.product-gallery { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
.gallery-thumbs button { border-radius: 5px; }
.gallery-main { border-radius: 7px; overflow: hidden; }
.product-info { padding: 4px 0 10px; }
.product-info h1 { font-size: clamp(25px, 2.3vw, 34px); }
.product-info .option-block { margin-top: 17px; }
.detail-price { gap: 9px; }
.detail-price del { color: #8b7e78; font-size: 12px; }
.detail-price span { margin-left: 0; padding: 5px 8px; border-radius: 4px; white-space: nowrap; letter-spacing: .02em; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-actions .btn { min-height: 43px; }
.detail-wishlist { display: block; margin: 10px auto 0; padding: 7px 12px; border: 0; background: transparent; color: var(--wine); font-size: 12px; }
.detail-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding: 16px 8px;
  border: 0;
  border-radius: 8px;
  background: #fbf1e8;
}
.detail-perks > div { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.detail-perks > div > span { color: var(--wine); font-size: 22px; }
.detail-perks b { color: var(--ink); font-size: 10px; font-weight: 600; }
.detail-perks small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.product-description { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.description-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #fffaf7; }
.description-tabs button { min-height: 48px; padding: 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #554744; font-size: 12px; font-weight: 600; }
.description-tabs button.active { border-bottom-color: var(--wine); color: var(--wine); }
.description-panel { min-height: 76px; padding: 14px 18px; }
.description-panel p { margin: 0; color: #514744; font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .footer-about p, .footer-social p { max-width: 100%; }
}
@media (max-width: 600px) {
  .footer { margin-top: 40px; padding-top: 26px; }
  .footer::before, .footer::after { font-size: 105px; top: 12px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding-bottom: 17px; }
  .footer-brand { padding-bottom: 16px; }
  .footer-logo .brand-name { font-size: 23px; }
  .footer-about, .footer-links, .footer-policies, .footer-social { min-width: 0; }
  .footer h4 { font-size: 12px; }
  .footer-about p, .footer-social p, .footer-links a, .footer-policies a { font-size: 9px; }
  .newsletter { grid-column: 1 / -1; }
  .footer-benefits { grid-template-columns: repeat(2, 1fr); gap: 15px 4px; }
  .footer-benefits > div { justify-content: flex-start; padding-left: 8px; }
  .footer-benefits span { font-size: 20px; }
  .footer-benefits b { font-size: 8px; }
  .footer-bottom { align-items: center; text-align: center; line-height: 1.5; }
}

@media (max-width: 600px) {
  .product-detail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 9px;
    padding-top: 5px;
  }
  .product-gallery { grid-template-columns: 31px minmax(0, 1fr); gap: 5px; max-height: none; }
  .gallery-thumbs { gap: 5px; }
  .gallery-thumbs button { height: 49px; border-radius: 3px; }
  .gallery-main { min-height: 300px; }
  .gallery-main .wish-btn { top: 7px; right: 7px; width: 27px; height: 27px; }
  .gallery-main .sale-badge { top: 7px; left: 7px; font-size: 7px; }
  .product-info { padding: 0 0 4px; }
  .product-info .eyebrow { margin-bottom: 5px; font-size: 7px; letter-spacing: .1em; }
  .product-info h1 { margin: 0 0 6px; font-size: 16px; line-height: 1.2; }
  .product-info .rating { font-size: 10px; }
  .product-info .rating span { font-size: 8px; }
  .detail-price { flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .detail-price strong { font-size: 16px; }
  .detail-price del { font-size: 9px; }
  .detail-price span { margin-left: 0; padding: 4px 6px; border-radius: 3px; font-size: 8px; white-space: nowrap; }
  .tax-note { margin-top: 3px; font-size: 8px; }
  .product-info .option-block { margin-top: 10px; font-size: 9px; }
  .swatches { gap: 6px; margin-top: 6px; }
  .swatches button { width: 22px; height: 22px; }
  .size-heading { margin-bottom: 5px; font-size: 9px; }
  .size-heading .text-link { font-size: 8px; }
  .sizes { gap: 4px; }
  .sizes button { min-width: 23px; height: 25px; padding: 0 3px; font-size: 8px; }
  .size-message { min-height: 12px; margin: 4px 0; font-size: 7px; }
  .detail-actions { grid-template-columns: 1fr; gap: 5px; }
  .detail-actions .btn { min-height: 30px; padding: 0 7px; font-size: 9px; }
  .detail-actions .btn span { font-size: 12px; }
  .detail-wishlist { margin-top: 4px; padding: 3px; font-size: 9px; }
  .detail-perks { grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 13px; padding: 10px 2px; }
  .detail-perks > div { flex-direction: column; gap: 3px; }
  .detail-perks > div > span { font-size: 18px; }
  .detail-perks b { font-size: 8px; }
  .detail-perks small { font-size: 7px; }
  .product-description { margin-top: 12px; }
  .description-tabs button { min-height: 39px; padding: 5px 2px; font-size: 8px; }
  .description-panel { min-height: 64px; padding: 10px; }
  .description-panel p { font-size: 9px; line-height: 1.55; }
}

/* Keep the compact category strip visible below the mobile masthead, like the reference. */
@media (max-width: 600px) {
  .nav,
  .nav.open {
    position: relative;
    inset: auto;
    z-index: 4;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(10px, 3vw, 15px);
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    background: #fffaf7;
    box-shadow: none;
    font-size: clamp(7px, 2.1vw, 8.5px);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
    height: 100%;
    padding: 0;
    border-bottom: 0;
  }
}

@media (min-width: 601px) {
  .nav.desktop-hidden { display: none; }
}
