/* ==========================================================
   Shared components (all store pages) — loaded after style.css
   ========================================================== */
:root { --green-btn: #0f4a26; --green-btn-hover: #0b3a1d; }

/* Top bar link + logo tagline */
.topbar__inner a { color: #fff; }
.topbar__inner a:hover { color: #ffd2e2; }
.topbar .bi-whatsapp { color: #4ade80; }
.logo__tag { font-family: var(--sans); font-size: 9.5px; letter-spacing: .18em; color: #6a5d61; margin-top: 4px; }

/* Brand logo: pink emblem (assets/img/logo-mark.png) + script name, as in the Comfort Wellness artwork */
.logo__mark { width: auto; height: 58px; object-fit: contain; }
.logo__top { font-family: "Great Vibes", cursive; font-size: 34px; line-height: .95; color: #e8278d; letter-spacing: 0; white-space: nowrap; }
.logo__bottom { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #e8278d; margin-top: 3px; white-space: nowrap; }
@media (max-width: 768px) {
  .logo__mark { width: auto; height: 44px; }
  .logo__top { font-size: 26px; }
  .logo__bottom { font-size: 8px; letter-spacing: .18em; }
}
/* Footer brand column is narrow: let the name wrap onto two lines instead of running into Quick Links */
.footer__brand .logo { align-items: center; max-width: 100%; }
.footer__brand .logo__text { min-width: 0; }
.footer__brand .logo__top { white-space: normal; }
.footer__brand .logo__bottom { white-space: normal; }
.footer__brand .logo__tag { letter-spacing: .08em; }
@media (max-width: 480px) {
  .logo { gap: 6px; }
  .logo__mark { height: 40px; }
  .logo__top { font-size: 22px; line-height: .85; white-space: normal; width: 5ch; }
  .logo__bottom { display: none; }
}

/* Categories dropdown */
.nav { align-items: center; }
.nav__dropdown { position: relative; }
.nav__drop-btn { background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 500; color: inherit; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav__drop-btn i { font-size: 11px; transition: transform .25s; }
.nav__dropdown.open .nav__drop-btn i { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 16px); left: -18px; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s; z-index: 120; }
.nav__dropdown.open .nav__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1025px) {
  .nav__dropdown:hover .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
}
.nav__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.nav__menu a:hover { background: var(--pink-soft); color: var(--maroon); }
.nav__menu-all { color: var(--maroon); font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; }

/* Cart button with total */
.cart-btn { width: auto; padding: 0 8px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; }
.cart-btn .badge { left: 20px; right: auto; }
.cart-total { font-size: 13px; font-weight: 600; font-family: var(--sans); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(20, 10, 14, .45); opacity: 0; visibility: hidden; transition: .3s; z-index: 140; }
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* Breadcrumbs */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 18px 0; }
.breadcrumb a:hover { color: var(--maroon); }
.breadcrumb i { font-size: 10px; }
.breadcrumb span:last-child { color: var(--ink); }

/* Product grid & card */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pgrid--6 { grid-template-columns: repeat(6, 1fr); }
.pgrid--5 { grid-template-columns: repeat(5, 1fr); }
.pcard { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; border: 1px solid #f1e8e2; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard__img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f5ede5; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pbadge { position: absolute; top: 10px; left: 10px; background: #c8102e; color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.pbadge--out { top: auto; bottom: 10px; background: #3d3437; }
.pcard__wish { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 15px; box-shadow: 0 3px 10px rgba(0, 0, 0, .1); transition: background .2s, color .2s, transform .2s; z-index: 2; }
.pcard__wish:hover { transform: scale(1.1); color: var(--pink); }
.pcard__wish.active { background: var(--pink); color: #fff; }
.pcard__body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.pcard__name { font-family: var(--sans); font-size: 13.5px; font-weight: 500; line-height: 1.35; min-height: 36px; margin-bottom: 4px; }
.pcard__name a:hover { color: var(--maroon); }
.pcard__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stars { color: #f5a623; display: inline-flex; gap: 2px; font-size: 13px; letter-spacing: 0; }
.pcard__price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 12px; }
.pcard__price strong { font-size: 15px; font-weight: 700; }
.pcard__price strong.sale { color: #c8102e; }
.pcard__price del { font-size: 12px; color: var(--muted); }
.pcard__short { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.btn-cart { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 8px; background: var(--green-btn); color: #fff; font-size: 13px; font-weight: 500; padding: 10px 12px; transition: background .2s; }
.btn-cart:hover { background: var(--green-btn-hover); }
.btn-cart.added { background: var(--pink); }
.btn-cart:disabled { background: #b9b2b4; cursor: not-allowed; }
.pcard--list { flex-direction: row; }
.pcard--list .pcard__img { width: 220px; flex-shrink: 0; }
.pcard--list .pcard__body { padding: 18px 20px; }
.pcard--list .pcard__name { font-size: 16px; min-height: 0; }
.pcard--list .btn-cart { width: auto; align-self: flex-start; padding: 10px 26px; }

/* Buttons extra */
.btn--green { background: var(--green-btn); color: #fff; }
.btn--green:hover { background: var(--green-btn-hover); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn--wa { border-color: #25d366; color: var(--green-btn); background: #fff; }
.btn--wa i { color: #25d366; }
.btn--wa:hover { background: #effcf3; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; }
.req { color: #c8102e; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 14px; padding: 12px 14px; border: 1px solid #ddd3cf; border-radius: 8px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122, 18, 54, .1); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: #c8102e; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M1.6 4.6a.6.6 0 0 1 .85 0L8 10.15l5.55-5.55a.6.6 0 1 1 .85.85l-6 6a.6.6 0 0 1-.85 0l-6-6a.6.6 0 0 1 0-.85z'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--maroon); cursor: pointer; flex-shrink: 0; }
.form-msg { font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg--error { background: #fde4e7; color: #a3122f; }
.form-msg--ok { background: #e3f4e6; color: #1b7a33; }

/* Trust bar (shop/product/checkout) */
.trustbar { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-bottom: 1px solid var(--line); }
.trustbar__item { display: flex; align-items: center; gap: 14px; padding: 20px 16px; justify-content: center; }
.trustbar__item + .trustbar__item { border-left: 1px solid var(--line); }
.trustbar__item > i { font-size: 30px; color: var(--green-mid); }
.trustbar__item strong { display: block; font-size: 13.5px; font-weight: 500; }
.trustbar__item span { display: block; font-size: 12px; color: var(--muted); }

/* Footer extras */
.footer__news p { font-size: 13px; color: #4a4044; margin-bottom: 14px; }
.footer__form { display: flex; gap: 8px; }
.footer__form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #ddd3cf; border-radius: 6px; font: inherit; font-size: 13px; }
.footer__form input:focus { outline: 0; border-color: var(--maroon); }
.footer__form button { border: 0; border-radius: 6px; background: var(--maroon); color: #fff; font-weight: 600; padding: 0 18px; }
.footer__form button:hover { background: var(--pink); }
.footer__form.error input { border-color: #c8102e; animation: shake .4s; }
.footer__bar { background: #0f3d22; color: #e9f1ea; }
.footer__bar .bi-heart-fill { color: #ff4d6d; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); z-index: 210; transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { bottom: 90px; }

/* Toast extras */
.toast a { color: #ffd2e2; font-weight: 600; text-decoration: underline; margin-left: 8px; }
.toast.show { pointer-events: auto; }
.toast--error { background: #a3122f; }

/* Modal */
.cw-modal { position: fixed; inset: 0; background: rgba(20, 10, 14, .5); display: grid; place-items: center; padding: 16px; z-index: 400; opacity: 0; transition: opacity .25s; }
.cw-modal.show { opacity: 1; }
.cw-modal__box { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 30px; box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform .25s; }
.cw-modal__box--wide { max-width: 760px; }
.cw-modal.show .cw-modal__box { transform: none; }
.cw-modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream-2); font-size: 14px; }
.cw-modal h3 { font-family: var(--serif); font-size: 26px; color: var(--green); margin-bottom: 10px; padding-right: 30px; }

/* Empty state */
.empty { text-align: center; padding: 50px 20px; }
.empty > i { font-size: 48px; color: var(--maroon); opacity: .8; }
.empty h3 { font-family: var(--serif); font-size: 26px; margin: 10px 0 6px; color: var(--green); }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* Status pills */
.pill { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill--delivered, .pill--resolved, .pill--paid, .pill--active { background: #e3f4e6; color: #1b7a33; }
.pill--processing, .pill--in-progress { background: #fff1d6; color: #a86a00; }
.pill--pending, .pill--unpaid, .pill--open, .pill--awaiting-payment { background: #fdf3d8; color: #9a6b00; }
.pill--shipped { background: #e1edff; color: #1f57c3; }
.pill--cancelled, .pill--refunded, .pill--inactive { background: #fde4e7; color: #c8102e; }

@media (max-width: 1180px) {
  .pgrid--6, .pgrid--5 { grid-template-columns: repeat(3, 1fr); }
  .cart-total { display: none; }
  .footer__grid--5 { grid-template-columns: 1fr 1fr 1fr; }
  .trustbar { grid-template-columns: repeat(3, 1fr); }
  .trustbar__item:nth-child(n+4) { display: none; }
}
@media (max-width: 1024px) {
  .nav__dropdown { width: 100%; }
  .nav__drop-btn { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__menu { position: static; box-shadow: none; padding: 0 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; }
  .nav__dropdown.open .nav__menu { display: block; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .logo__tag { display: none; }
  .pgrid, .pgrid--6, .pgrid--5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__name { font-size: 13px; }
  .btn-cart { font-size: 12px; padding: 9px 8px; gap: 6px; }
  .pcard--list { flex-direction: column; }
  .pcard--list .pcard__img { width: 100%; }
  .footer__grid--5 { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: 1 / -1; }
  .trustbar { grid-template-columns: 1fr 1fr; }
  .trustbar__item { justify-content: flex-start; padding: 14px; }
  .trustbar__item:nth-child(3) { display: flex; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .wa-float { width: 50px; height: 50px; font-size: 25px; right: 16px; bottom: 16px; }
  .to-top { right: 19px; bottom: 78px; }
  .cw-modal__box { padding: 24px 20px; }
}
@media (max-width: 400px) {
  .header__actions .icon-btn[aria-label="My account"] { display: none; }
}
.nav__link, .nav__drop-btn { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1025px) { .nav { gap: 22px; } .search { width: 170px; } .header__inner { gap: 20px; } }

[hidden] { display: none !important; }
@media (max-width: 1024px) {
  .nav { visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
  .nav.open { visibility: visible; transition: transform .35s ease; }
}

/* Hero: entrance animation that doesn't depend on any library */
.hero__content > * { animation: heroIn .8s ease-out both; }
.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero: keep the photo next to the text on wide screens */
@media (min-width: 1300px) {
  .hero__media { right: max(0px, calc((100vw - 1240px) / 2 - 40px)); }
  .hero__media img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 30%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 30%, #000 88%, transparent 100%);
  }
}
@media (min-width: 1360px) {
  .hero__media img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 30%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 30%, #000 92%, transparent 100%); }
}

/* Clip sideways overflow (e.g. the off-canvas menu) without making <body> a scroll container */
html { overflow-x: clip; }

/* Hero: transparent cut-out model photo (no edge masking needed) */
.hero__media--cutout { top: 28px; bottom: 0; aspect-ratio: 1086 / 1448; max-width: 52%; }
.hero__media--cutout picture { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.hero__media--cutout img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; -webkit-mask-image: none !important; mask-image: none !important; filter: drop-shadow(0 18px 30px rgba(92, 11, 39, .18)); }
.hero__glow { position: absolute; z-index: 0; left: 8%; right: 2%; bottom: 6%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(214, 36, 110, .22) 0%, rgba(122, 18, 54, .12) 42%, rgba(251, 233, 239, 0) 70%); }
@media (max-width: 768px) {
  .hero__media--cutout { top: auto; height: 440px; width: 100%; max-width: none; aspect-ratio: auto; padding-top: 16px; }
  .hero__media--cutout img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 14%) !important; mask-image: linear-gradient(0deg, transparent 0%, #000 14%) !important; }
  .hero__glow { left: 12%; right: 12%; bottom: 4%; }
}
@media (max-width: 480px) { .hero__media--cutout { height: 380px; } }

/* Hero: studio photo on a dark background, shown as a rounded framed picture beside the text */
.hero__media--photo { top: 40px; bottom: 40px; right: max(24px, calc((100vw - 1240px) / 2 + 24px)); aspect-ratio: 900 / 1333; max-width: 44%; }
.hero__media--photo picture { display: block; width: 100%; height: 100%; }
.hero__media--photo img { border-radius: 24px; object-position: 50% 28%; -webkit-mask-image: none !important; mask-image: none !important; box-shadow: 0 24px 50px rgba(92, 11, 39, .22); }
@media (max-width: 1100px) and (min-width: 769px) {
  .hero__media--photo { max-width: 38%; }
  .hero__content { max-width: 54%; }
}
@media (max-width: 768px) {
  .hero__media--photo { position: relative; top: auto; bottom: auto; right: auto; align-self: stretch; width: auto; max-width: none; aspect-ratio: auto; height: 460px; margin: 16px 16px 0; }
}
@media (max-width: 480px) { .hero__media--photo { height: 420px; } }

/* About section without a photo: text and benefit list side by side */
.about__inner { grid-template-columns: 1.25fr 1fr; gap: 56px; }
@media (max-width: 768px) { .about__inner { grid-template-columns: 1fr; gap: 0; } }

/* Homepage promo banners with full-scene photos: image fills the card, text sits on the photo's empty left side */
.promo--photo { min-height: 300px; }
.promo--photo .promo__img { left: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; -webkit-mask-image: none !important; mask-image: none !important; }
.promo--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.promo--photo.promo--dark::before { background: linear-gradient(90deg, rgba(82, 10, 36, .92) 0%, rgba(92, 11, 39, .7) 32%, rgba(92, 11, 39, 0) 58%); }
.promo--photo.promo--light::before { background: linear-gradient(90deg, rgba(251, 244, 238, .95) 0%, rgba(251, 244, 238, .8) 34%, rgba(251, 244, 238, 0) 60%); }
.promo--photo .promo__body { max-width: 50%; }
@media (max-width: 1024px) and (min-width: 481px) { .promo--photo { min-height: 320px; } .promo--photo .promo__body { max-width: 52%; } }
@media (max-width: 480px) {
  .promo--photo { min-height: 400px; justify-content: flex-start; }
  .promo--photo .promo__body { padding: 26px 22px 0; max-width: 100%; }
  .promo--photo .promo__img { position: absolute; height: 100%; object-position: 72% bottom; }
  .promo--photo.promo--dark::before { background: linear-gradient(180deg, rgba(82, 10, 36, .95) 0%, rgba(92, 11, 39, .8) 42%, rgba(92, 11, 39, 0) 68%); }
  .promo--photo.promo--light::before { background: linear-gradient(180deg, rgba(251, 244, 238, .97) 0%, rgba(251, 244, 238, .85) 42%, rgba(251, 244, 238, 0) 68%); }
}
/* Feminine Care photo: products sit nearer the centre, so the photo is anchored right and faded into the cream card */
@media (min-width: 481px) {
  .promo--photo.promo--light { background: linear-gradient(90deg, #fbf4ee 0%, #f9ece6 100%); }
  .promo--photo.promo--light .promo__img { left: auto; width: 74%; object-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%) !important; mask-image: linear-gradient(90deg, transparent 0%, #000 22%) !important; }
  .promo--photo.promo--light::before { background: linear-gradient(90deg, rgba(251, 244, 238, .9) 0%, rgba(251, 244, 238, .55) 36%, rgba(251, 244, 238, 0) 52%); }
  .promo--photo.promo--light .promo__body { max-width: 46%; }
}
@media (min-width: 1025px) { .promo--photo.promo--light .promo__img { width: 64%; } .promo--photo.promo--light .promo__body { max-width: 44%; } }
@media (max-width: 1024px) and (min-width: 481px) { .promo--photo .promo__body { max-width: 44%; } }
