@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap");
:root {
  --navy: #12344d;
  --navy-2: #0b2539;
  --pink: #cc0050;
  --pink-2: #ef4f8a;
  --cream: #fbf7f2;
  --paper: #ffffff;
  --muted: #667085;
  --line: rgba(18, 52, 77, 0.12);
  --shadow: 0 24px 70px rgba(18, 52, 77, 0.14);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.8;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 15%, rgba(204, 0, 80, 0.08), transparent 27%),
    radial-gradient(circle at 88% 35%, rgba(18, 52, 77, 0.08), transparent 28%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82),
      rgba(251, 247, 242, 0.35)
    );
  z-index: -1;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}
.container {
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
}
.section-pad {
  padding: 30px 0;
}
.announcement {
  background: linear-gradient(90deg, var(--navy), var(--pink));
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand img {
  height: 58px;
  width: auto;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  color: rgba(18, 52, 77, 0.78);
}
.nav a {
  position: relative;
  transition: 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: 0.25s;
}
.nav a:hover {
  color: var(--pink);
}
.nav a:hover::after {
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #fff;
  box-shadow: 0 18px 36px rgba(204, 0, 80, 0.23);
}
.btn-soft {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
  box-shadow: 0 14px 30px rgba(18, 52, 77, 0.08);
}
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 76px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 0, 80, 0.09);
  color: var(--pink);
  border: 1px solid rgba(204, 0, 80, 0.14);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 900;
  font-size: 14px;
}
.presented {
  margin: 26px 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 900;
  font-size: 13px;
  direction: ltr;
  text-align: right;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -2px;
  color: var(--navy-2);
}
.hero h1 span {
  display: block;
  color: var(--pink);
  font-weight: 950;
}
.hero h1 small {
  display: block;
  font-size: clamp(24px, 3vw, 44px);
  color: var(--navy);
  letter-spacing: 0.5px;
  margin-top: 13px;
  direction: ltr;
  text-align: right;
}
.hero-subtitle {
  font-size: 20px;
  color: #3c5265;
  max-width: 620px;
  margin: 28px 0 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 650px;
}
.trust-row div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 14px 34px rgba(18, 52, 77, 0.06);
}
.trust-row strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
}
.trust-row span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.hero-visual {
  position: relative;
  min-height: 530px;
}
.hero-card {
  position: relative;
  border-radius: 38px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.68)
  );
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 36px auto auto -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(204, 0, 80, 0.12);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 1.12/1;
  object-fit: cover;
  border-radius: 28px;
  background: #fff;
}
.price-ribbon {
  position: absolute;
  right: 34px;
  bottom: 34px;
  background: rgba(18, 52, 77, 0.88);
  color: #fff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 14px 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}
.price-ribbon span {
  display: block;
  color: #ffd9e8;
  font-weight: 900;
}
.price-ribbon strong {
  display: block;
  font-size: 18px;
  direction: ltr;
  text-align: right;
}
.floating-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  box-shadow: 0 22px 45px rgba(18, 52, 77, 0.12);
}
.floating-one {
  top: 28px;
  left: 18px;
  color: var(--pink);
}
.floating-two {
  right: 4px;
  bottom: 54px;
  color: var(--navy);
}
.features {
  padding: 0 0 34px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(18, 52, 77, 0.07);
}
.feature-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(204, 0, 80, 0.09);
  color: var(--pink);
  border-radius: 50%;
  font-weight: 950;
}
.feature-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
}
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}
.section-heading h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
  margin: 16px 0 12px;
  color: var(--navy-2);
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(18, 52, 77, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(18, 52, 77, 0.1);
}
.product-media {
  position: relative;
  background: linear-gradient(135deg, #fff, #f7edf2);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--pink);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 12px 28px rgba(204, 0, 80, 0.24);
}
.product-body {
  padding: 20px;
}
.product-code {
  display: inline-block;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  direction: ltr;
}
.product-body h3 {
  margin: 7px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy-2);
}
.product-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  min-height: 3.4em;
}
.size-chips,
.color-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.size-chips span,
.color-chips span {
  border: 1px solid var(--line);
  background: #fbfbfc;
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 18px;
}
.price-row del {
  color: #98a2b3;
  font-weight: 800;
}
.price-row strong {
  color: var(--pink);
  font-size: 22px;
  font-weight: 950;
}
.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.card-actions .btn {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}
.product-cart-button {
  white-space: nowrap;
}
.product-card .details-btn {
  grid-column: 1 / -1;
  text-align: center;
}

/* Make the entire product card clickable */
.product-card .details-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* Keep order and cart buttons working independently */
.product-card .card-actions .btn {
  position: relative;
  z-index: 2;
}
.details-btn {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 13px;
}
.story {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.58)
  );
}
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.story-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 38px;
  padding: 46px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.story-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(204, 0, 80, 0.28);
  left: -80px;
  bottom: -80px;
}
.story-panel .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd6e6;
  border-color: rgba(255, 255, 255, 0.16);
}
.story-panel h2 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.14;
}
.story-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  margin: 0 0 18px;
}
.check-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fff;
  font-weight: 800;
}
.check-list li::before {
  content: "✓";
  color: #fff;
  background: var(--pink);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 4px;
  font-size: 13px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.story-card img {
  width: 100%;
  border-radius: 28px;
  background: #f5f5f5;
  aspect-ratio: 1.3/1;
  object-fit: contain;
}
.size-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(18, 52, 77, 0.08);
  overflow: auto;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.size-table th,
.size-table td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.size-table th {
  background: rgba(18, 52, 77, 0.06);
  font-size: 16px;
  color: var(--navy);
}
.size-table td:first-child {
  font-weight: 950;
  color: var(--pink);
  font-size: 18px;
}
.cta-band {
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 38px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.cta-inner h2 {
  margin: 12px 0 4px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}
.cta-inner p {
  margin: 0;
  color: var(--muted);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.side-heading {
  text-align: right;
  margin: 0;
}
.faq-list {
  display: grid;
  gap: 12px;
}
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 16px 36px rgba(18, 52, 77, 0.06);
}
summary {
  cursor: pointer;
  font-weight: 950;
  font-size: 18px;
  color: var(--navy-2);
}
details p {
  margin: 12px 0 0;
  color: var(--muted);
}
.footer {
  padding: 46px 0;
  background: var(--navy);
  color: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 12px;
}
.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}
.footer-links a:hover {
  color: #ffd6e6;
}
.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 60;
  background: #25d366;
  color: #fff;
  min-width: 92px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.32);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 28, 0.68);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 34px;
  width: min(960px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}
.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}
.modal-gallery {
  display: grid;
  gap: 12px;
}
.modal-gallery > img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 24px;
  background: #f6f7f9;
}
.modal-thumbs {
  display: flex;
  gap: 10px;
  overflow: auto;
}
.modal-thumbs button {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 72px;
}
.modal-thumbs button.active {
  border-color: var(--pink);
}
.modal-thumbs img {
  width: 72px;
  height: 88px;
  object-fit: cover;
}
.modal-info {
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-info h3 {
  font-size: 34px;
  line-height: 1.2;
  margin: 10px 0;
  color: var(--navy-2);
}
.modal-info p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.modal-price {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 22px 0;
}
.modal-price del {
  color: #98a2b3;
  font-weight: 850;
  font-size: 18px;
}
.modal-price strong {
  color: var(--pink);
  font-size: 30px;
  font-weight: 950;
}
.product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0;
  color: var(--muted);
}
.product-meta strong {
  color: var(--navy);
}
.modal-order {
  margin-top: 24px;
  align-self: flex-start;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  color: var(--muted);
}
@media (max-width: 1024px) {
  .hero-grid,
  .story-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: auto;
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .side-heading {
    text-align: center;
    margin: 0 auto 10px;
  }
}
@media (max-width: 720px) {
  .hero-visual {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .story .story-card {
    display: none;
  }

  .product-card .product-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .size-table {
    min-width: 0;
    table-layout: fixed;
  }

  .size-table th,
  .size-table td {
    padding: 12px 6px;
    font-size: 12px;
  }
  .container {
    width: min(100% - 24px, var(--container));
  }
  .section-pad {
    padding: 20px 0;
  }
  .announcement {
    font-size: 12px;
  }
  .header-inner {
    min-height: 70px;
    gap: 10px;
  }
  .brand img {
    height: 46px;
  }
  .nav {
    display: none;
  }
  .header-cta {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero h1 {
    font-size: 58px;
    letter-spacing: -1px;
  }
  .hero h1 small {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .trust-row {
    grid-template-columns: 1fr;
  }
  .hero-card {
    border-radius: 30px;
    padding: 10px;
  }
  .hero-card img {
    border-radius: 22px;
    aspect-ratio: 1/1;
  }
  .price-ribbon {
    right: 22px;
    bottom: 22px;
    border-radius: 18px;
  }
  .floating-card {
    display: none;
  }
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .story-panel {
    padding: 26px;
    border-radius: 26px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .section-heading p {
    font-size: 16px;
  }
  .cta-inner {
    display: block;
    padding: 26px;
    border-radius: 28px;
  }
  .cta-inner .btn {
    width: 100%;
    margin-top: 22px;
  }
  .footer-inner {
    display: block;
    text-align: center;
  }
  .footer-logo {
    margin-inline: auto;
  }
  .footer-links {
    justify-content: center;
    margin-top: 18px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .modal-info h3 {
    font-size: 28px;
  }
  .modal-content {
    border-radius: 24px;
  }
  .whatsapp-float {
    left: 12px;
    bottom: 12px;
    height: 48px;
    min-width: 86px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.35);
}
#heroBadge:empty {
  display: none;
}

/* =========================
   Order form
   ========================= */
body.order-modal-open {
  overflow: hidden;
}

.product-order-button {
  appearance: none;
  font: inherit;
}

button.whatsapp-float {
  border: 0;
  font: inherit;
}

.order-modal-backdrop[hidden] {
  display: none !important;
}

.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 25, 43, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.order-modal-backdrop.is-open {
  opacity: 1;
}

.order-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(18, 52, 77, 0.12);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
  transform: none;
  transition: none;
}

.order-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 52, 77, 0.08);
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.order-modal-head {
  padding-left: 42px;
}

.order-modal-kicker {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.order-modal-head h2 {
  margin: 4px 0 4px;
  color: var(--navy-2);
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.2;
}

.order-modal-head p {
  margin: 0;
  color: var(--muted);
}

.order-product-summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.order-product-summary img {
  width: 92px;
  height: 104px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
}

.order-product-summary div {
  display: grid;
  gap: 3px;
}

.order-product-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-product-summary strong {
  color: var(--navy-2);
  font-size: 20px;
}

.order-product-summary b {
  color: var(--pink);
  font-size: 18px;
}

.order-form {
  display: grid;
  gap: 15px;
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}

.order-form label > span {
  font-size: 14px;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(18, 52, 77, 0.2);
  border-radius: 13px;
  background: #fff;
  color: var(--navy-2);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.order-form textarea {
  min-height: 84px;
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(204, 0, 80, 0.09);
}

.order-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.order-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 17px;
  background: rgba(204, 0, 80, 0.06);
  border: 1px solid rgba(204, 0, 80, 0.12);
}

.order-total-row div {
  display: grid;
}

.order-total-row span,
.order-total-row small {
  color: var(--muted);
}

.order-total-row strong {
  color: var(--pink);
  font-size: 20px;
}

.order-form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
  color: #b42318;
}

.order-form-message.success {
  color: #067647;
}

/* Checkout-only inline field guidance; does not affect the layout when valid. */
.order-form .order-field-error {
  display: block;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.order-form [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.order-submit-button {
  width: 100%;
  border: 0;
}

.order-success {
  padding: 30px 0 6px;
  text-align: center;
}

.order-success > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #dcfae6;
  color: #067647;
  font-size: 36px;
  font-weight: 900;
}

.order-success h3 {
  margin: 0;
  font-size: 30px;
}

.order-success p {
  color: var(--muted);
  font-size: 18px;
}

.order-success .btn {
  margin: 5px;
}

@media (max-width: 640px) {
  .order-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .order-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 26px 26px 0 0;
    padding: 25px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .order-form-grid,
  .order-choice-grid {
    grid-template-columns: 1fr;
  }

  .order-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-choice-grid label:last-child {
    grid-column: 1 / -1;
  }

  .order-total-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================
   Home footer
   ========================= */

.home-footer {
  padding: 56px 0 24px;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 64px;
  align-items: start;
}

.home-footer-brand {
  max-width: 420px;
}

.home-footer-brand .footer-logo {
  margin-bottom: 18px;
}

.home-footer-brand p {
  max-width: 360px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.home-footer-social {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  color: #fff;
}

.home-footer-social:hover {
  color: #ffd6e6;
}

.home-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.home-footer-column h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.home-footer-column a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.home-footer-column a:hover {
  color: #fff;
  transform: translateX(-3px);
}

.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: 42px;
  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.home-footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.home-footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .home-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .home-footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .home-footer {
    padding: 42px 0 20px;
  }

  .home-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-footer-brand {
    grid-column: auto;
  }

  .home-footer-column {
    align-items: center;
  }

  .home-footer-brand {
    text-align: center;
    margin-inline: auto;
  }

  .home-footer-brand p {
    margin-inline: auto;
  }

  .home-footer-social {
    justify-content: center;
  }

  .home-footer-bottom {
    flex-direction: column;
    text-align: center;
    margin-top: 32px;
  }
}

/* =========================
   Policy trust strip
   ========================= */

.policy-strip {
  padding-top: 42px;
}

.policy-strip-head {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.policy-strip-head h2 {
  margin: 10px 0 10px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

.policy-strip-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.policy-quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.policy-quick-links a {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;

  padding: 18px;

  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;

  text-align: center;

  box-shadow: 0 12px 32px rgba(18, 52, 77, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.policy-quick-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 0, 80, 0.25);
  box-shadow: 0 18px 38px rgba(18, 52, 77, 0.09);
}

.policy-quick-links strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
}

.policy-quick-links span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .policy-quick-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .policy-quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .policy-quick-links a:last-child {
    grid-column: 1 / -1;
  }
}

/* =========================
   Home page vertical rhythm
   ========================= */

/* Hero → Products */
.hero {
  padding-bottom: 42px;
}

.products-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

/* Products → Story */
.story {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Story → Size Guide */
.sizes {
  padding-top: 64px;
  padding-bottom: 48px;
}

/* Size Guide → CTA */
.cta-band {
  padding-top: 36px;
  padding-bottom: 36px;
}

/* CTA → FAQ */
.faq {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* FAQ → Important Info */
.policy-strip {
  padding-top: 40px;
  padding-bottom: 56px;
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 28px;
  }

  .products-section {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .story {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .sizes {
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .cta-band {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .faq {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .policy-strip {
    padding-top: 32px;
    padding-bottom: 44px;
  }
}

.order-submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: grayscale(0.15);
}

.product-sizes-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.product-size-guide-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  font: inherit;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(204, 0, 80, 0.08);
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.product-size-guide-link:hover {
  background: rgba(204, 0, 80, 0.14);
}

@media (max-width: 720px) {
  .product-size-guide-link {
    font-size: 11px;
    padding: 5px 8px;
  }
}

.product-info-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.product-info-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 52, 77, 0.025);
}

.product-info-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(204, 0, 80, 0.08);
  font-size: 16px;
}

.product-info-card > div {
  display: grid;
  gap: 2px;
}

.product-info-card strong {
  color: var(--navy);
  font-size: 13px;
}

.product-info-card > div > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .product-info-grid {
    gap: 8px;
    margin-top: 14px;
  }

  .product-info-card {
    padding: 9px 11px;
    border-radius: 13px;
  }

  .product-info-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .product-info-card strong,
  .product-info-card > div > span {
    font-size: 12px;
  }
}
/* =========================
   Product page - Mobile summary
   ========================= */

.product-mobile-summary {
  display: none;
}

@media (max-width: 720px) {
  .product-mobile-summary {
    display: grid;
    gap: 7px;
    padding: 2px 2px 8px;
    text-align: right;
  }

  .product-mobile-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(204, 0, 80, 0.09);
    color: var(--pink);
    font-size: 11px;
    font-weight: 900;
  }

  .product-mobile-summary h1 {
    margin: 0;
    color: var(--navy-2);
    font-size: 26px;
    line-height: 1.25;
  }

  .product-mobile-price {
    color: var(--pink);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.45;
  }

  .product-mobile-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
  }

  .product-mobile-trust span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(18, 52, 77, 0.06);
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
  }
}

/* Product page - Floating order button */
#productFloatWhatsApp {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(204, 0, 80, 0.28);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

#productFloatWhatsApp.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

/* Product page - Mobile floating order button */
@media (max-width: 720px) {
  #productFloatWhatsApp {
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 24px);
    height: 50px;
    padding: 0 18px;

    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));

    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    color: #fff;

    border: 0;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;

    box-shadow: 0 12px 30px rgba(204, 0, 80, 0.28);
  }
  /* Hide duplicated product heading on mobile */
  .modal-info #productBadge,
  .modal-info #productCode,
  .modal-info #productTitle,
  .modal-info .modal-price {
    display: none;
  }

  .modal-info {
    padding-top: 4px;
  }
}

/* Product cards - Prices by size */

.price-row:has(.card-size-prices) {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.price-row .card-size-prices {
  display: grid;
  gap: 3px;
  width: 100%;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 900;
  text-align: right;
}

.price-row .card-size-prices > span {
  display: block;
}

.price-row .card-size-prices bdi {
  white-space: nowrap;
}

/* Keep product card buttons aligned */

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .card-actions {
  margin-top: auto;
}

/* =========================
   Compact order form - mobile
   ========================= */
@media (max-width: 640px) {
  .order-modal {
    max-height: 96dvh;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .order-modal-close {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .order-modal-head {
    padding-left: 38px;
    margin-bottom: 6px;
  }

  .order-modal-kicker {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
  }

  .order-modal-head h2 {
    margin: 2px 0 0;
    font-size: 21px;
    line-height: 1.2;
  }

  .order-modal-head p {
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.35;
  }

  .order-product-summary {
    grid-template-columns: 48px 1fr;
    gap: 8px;
    margin: 6px 0 8px;
    padding: 6px 8px;
    border-radius: 14px;
  }

  .order-product-summary img {
    width: 48px;
    height: 52px;
    border-radius: 9px;
  }

  .order-product-summary span {
    font-size: 9px;
    line-height: 1.2;
  }

  .order-product-summary strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .order-product-summary b {
    font-size: 13px;
    line-height: 1.2;
  }

  .order-form {
    gap: 8px;
  }

  .order-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .order-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .order-choice-grid label:last-child {
    grid-column: auto;
  }

  .order-choice-grid input,
  .order-choice-grid select {
    padding-left: 7px;
    padding-right: 7px;
    text-align: center;
  }

  .order-choice-grid label > span {
    text-align: center;
    white-space: nowrap;
  }

  .order-form label {
    gap: 3px;
  }

  .order-form label > span {
    font-size: 12px;
  }

  .order-form input,
  .order-form select,
  .order-form textarea {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 14px;
  }

  .order-form textarea {
    min-height: 58px;
  }

  .order-total-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
  }

  .order-total-row div {
    flex: 1;
    text-align: center;
  }

  .order-total-row span {
    font-size: 10px;
  }

  .order-total-row strong {
    font-size: 15px;
  }

  .order-total-row small {
    font-size: 9px;
    line-height: 1.4;
  }

  .order-form-message {
    min-height: 0;
    font-size: 12px;
  }

  .order-submit-button {
    min-height: 46px;
    padding: 10px 16px;
  }

  .order-form textarea#orderNotes {
    min-height: 44px;
    height: 44px;
    resize: vertical;
  }
  .order-quantity-control {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    min-height: 42px;
    border: 1px solid #d8dde5;
    border-radius: 11px;
    overflow: hidden;
  }

  .order-quantity-control input {
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
  }

  .order-quantity-control button {
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
  }

  .order-quantity-note {
    display: block;
    margin-top: -2px;
    font-size: 10px;
    line-height: 1.5;
    color: #6b7280;
  }
  .order-quantity-note[hidden] {
    display: none !important;
  }
  .order-address-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Order form - Desktop
   ========================= */
@media (min-width: 641px) {
  .order-modal-backdrop {
    padding: 14px;
  }

  .order-modal {
    width: min(860px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 18px 28px 20px;
    border-radius: 24px;
  }

  .order-modal-close {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .order-modal-head {
    padding-left: 40px;
    margin-bottom: 8px;
  }

  .order-modal-kicker {
    font-size: 11px;
  }

  .order-modal-head h2 {
    margin: 1px 0;
    font-size: 27px;
    line-height: 1.15;
  }

  .order-modal-head p {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .order-product-summary {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    margin: 10px 0 12px;
    padding: 8px 12px;
    border-radius: 16px;
  }

  .order-product-summary img {
    width: 64px;
    height: 72px;
    border-radius: 11px;
  }

  .order-product-summary span {
    font-size: 10px;
  }

  .order-product-summary strong {
    font-size: 16px;
    line-height: 1.3;
  }

  .order-product-summary b {
    font-size: 15px;
  }

  .order-form {
    gap: 9px;
  }

  .order-form-grid {
    gap: 10px;
  }

  .order-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .order-form label {
    gap: 3px;
  }

  .order-form label > span {
    font-size: 12px;
  }

  .order-form input,
  .order-form select,
  .order-form textarea {
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 11px;
    font-size: 14px;
  }

  /* Quantity */
  .order-quantity-control {
    display: flex !important;
    width: 100%;
    height: 42px;
    min-height: 42px;
    align-items: stretch;
    border: 1px solid rgba(18, 52, 77, 0.2);
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
  }

  .order-quantity-control input {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    text-align: center;
    font-weight: 900;
    box-shadow: none !important;
  }

  .order-quantity-control button {
    flex: 0 0 38px;
    width: 38px;
    height: 40px;
    padding: 0;
    border: 0;
    background: rgba(18, 52, 77, 0.055);
    color: var(--navy);
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
  }

  .order-quantity-control button:hover {
    background: rgba(204, 0, 80, 0.09);
    color: var(--pink);
  }

  .order-quantity-note {
    margin: 3px 0 0;
    font-size: 10px;
  }

  .order-form textarea#orderNotes {
    min-height: 40px;
    height: 40px;
    padding: 7px 10px;
  }

  .order-total-row {
    padding: 9px 12px;
    gap: 10px;
    border-radius: 13px;
  }

  .order-total-row div {
    flex: 1;
    text-align: center;
  }

  .order-total-row span {
    font-size: 10px;
  }

  .order-total-row strong {
    font-size: 15px;
  }

  .order-total-row small {
    font-size: 9px;
  }

  .order-form-message {
    min-height: 0;
    margin: 0;
    font-size: 11px;
  }

  .order-submit-button {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 15px;
  }
  .order-address-grid {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .order-address-grid textarea {
    height: 42px;
    min-height: 42px;
    resize: none;
  }
}

.product-size-guide-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.product-size-guide-dialog::backdrop {
  background: rgba(7, 25, 43, 0.72);
  backdrop-filter: blur(6px);
}

.product-size-guide-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 52, 77, 0.08);
  color: var(--navy);
  font-size: 24px;
  cursor: pointer;
}

.product-size-guide-head {
  text-align: center;
  margin-bottom: 18px;
}

.product-size-guide-head span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.product-size-guide-head h2 {
  margin: 4px 0;
  color: var(--navy-2);
}

.product-size-guide-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .product-size-guide-dialog {
    width: calc(100% - 24px);
    padding: 20px 12px;
    border-radius: 20px;
  }

  .product-size-guide-dialog .size-table {
    font-size: 12px;
  }

  /* ترتيب Hero على الموبايل */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* يسمح بترتيب محتويات hero-copy مع الصورة */
  .hero-copy {
    display: contents;
  }

  /* البادج يفضل بحجمه الطبيعي */
  .hero-copy > .eyebrow {
    align-self: flex-start;
  }

  /* الزرين جنب بعض */
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 26px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* الصورة بعد الزرين */
  .hero-visual {
    display: block;
    order: 6;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 18px 0 0;
  }

  .hero-card img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
  }

  /* الكروت الثلاثة بعد الصورة وفي سطر واحد */
  .trust-row {
    order: 7;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }

  .trust-row div {
    padding: 12px 4px;
    border-radius: 16px;
    text-align: center;
  }

  .trust-row strong {
    font-size: 11px;
    line-height: 1.35;
  }

  .trust-row span {
    font-size: 9px;
    line-height: 1.35;
    margin-top: 4px;
  }
  /* رجّع محاذاة كلام الـ Hero لليمين */
  .hero-copy {
    text-align: right;
  }

  .hero-copy .presented,
  .hero-copy h1,
  .hero-copy h1 small,
  .hero-copy .hero-subtitle {
    width: 100%;
    text-align: right;
  }

  .hero-copy .hero-subtitle {
    margin-left: auto;
    margin-right: 0;
  }
  .hero {
    padding-top: 24px;
  }
}

/* =========================================================
   Shopping cart — 2026-10-17
   ========================================================= */
body.cart-open {
  overflow: hidden;
}

.cart-header-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.cart-header-button:hover,
.cart-header-button.has-items {
  border-color: rgba(204, 0, 80, 0.24);
  box-shadow: 0 10px 28px rgba(18, 52, 77, 0.1);
}
.cart-header-icon {
  font-size: 18px;
  line-height: 1;
}
.cart-header-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(7, 25, 43, 0.48);
  backdrop-filter: blur(3px);
}
.cart-backdrop[hidden],
.cart-modal-backdrop[hidden] {
  display: none !important;
}
.cart-drawer {
  position: fixed;
  z-index: 200;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(430px, 94vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -24px 0 70px rgba(7, 25, 43, 0.2);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}
.cart-drawer.is-open {
  transform: translateX(0);
}
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head span,
.cart-modal-head > span {
  display: block;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.cart-drawer-head h2,
.cart-modal-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}
.cart-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f6f7f9;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px 18px 22px;
}
.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item > img {
  width: 86px;
  height: 108px;
  object-fit: cover;
  border-radius: 15px;
  background: var(--cream);
}
.cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cart-item-info strong {
  font-size: 16px;
}
.cart-item-info > span {
  color: var(--muted);
  font-size: 13px;
}
.cart-item-info > b {
  color: var(--pink);
  font-size: 14px;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.cart-quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}
.cart-quantity-control button {
  width: 40px;
  height: 38px;
  border: 0;
  background: #f7f8fa;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.cart-quantity-control input,
.cart-quantity-control span {
  width: 46px;
  height: 38px;
  border: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy);
  font-weight: 900;
  background: #fff;
  appearance: textfield;
}
.cart-quantity-control.compact button {
  width: 34px;
  height: 32px;
  font-size: 17px;
}
.cart-quantity-control.compact span {
  width: 36px;
  height: 32px;
  font-size: 13px;
}
.cart-remove {
  border: 0;
  background: transparent;
  color: #a52b2b;
  font-weight: 800;
  cursor: pointer;
}
.cart-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 5px;
}
.cart-subtotal-row strong {
  font-size: 20px;
}
.cart-footer small {
  display: block;
  color: var(--muted);
  margin-bottom: 13px;
}
.cart-checkout-button,
.cart-add-confirm {
  width: 100%;
}
.cart-empty {
  min-height: 58vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 30px;
}
.cart-empty > span {
  font-size: 44px;
}
.cart-empty h3 {
  margin: 8px 0 2px;
  font-size: 22px;
}
.cart-empty p {
  margin: 0;
  color: var(--muted);
}

.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 25, 43, 0.56);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}
.cart-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(7, 25, 43, 0.3);
  padding: 24px;
}
.cart-modal > .cart-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.cart-modal-head {
  padding-inline-end: 44px;
  margin-bottom: 18px;
}
.cart-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.cart-variant-product {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
  margin-bottom: 16px;
}
.cart-variant-product img {
  width: 88px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}
.cart-variant-product div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-variant-product span {
  color: var(--muted);
  font-size: 12px;
}
.cart-variant-product b {
  color: var(--pink);
}
.cart-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cart-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cart-choice-grid label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
}
.cart-choice-grid label > span {
  font-size: 13px;
}
.cart-choice-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(18, 52, 77, 0.18);
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  padding: 10px 12px;
  outline: none;
}
.cart-inline-message {
  min-height: 24px;
  margin: 10px 0;
  color: #a52b2b;
  font-weight: 700;
  font-size: 13px;
}
.product-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.product-purchase-actions .modal-order {
  margin: 0;
}
.modal-cart-add {
  min-height: 50px;
}

@media (max-width: 760px) {
  .cart-header-label {
    display: none;
  }
  .cart-header-button {
    padding-inline: 9px;
    gap: 4px;
  }
  .cart-header-count {
    min-width: 19px;
    height: 19px;
    font-size: 10px;
  }
  .cart-drawer {
    width: min(390px, 100vw);
  }
  .cart-modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .cart-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .cart-choice-grid {
    grid-template-columns: 1fr;
  }
  .cart-choice-grid {
    gap: 10px;
  }
  .product-purchase-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .product-purchase-actions {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 74px 1fr;
  }
  .cart-item > img {
    width: 74px;
    height: 94px;
  }
}

/* =========================
   Unified checkout: direct + cart
   ========================= */
.order-checkout-context[hidden] {
  display: none !important;
}

.order-direct-context,
.order-cart-context {
  min-height: 168px;
}

.order-direct-context .order-product-summary {
  margin-top: 0;
  margin-bottom: 10px;
}

.order-cart-context {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 7px 0;
}

.order-cart-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
}

.order-cart-summary-head span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.order-cart-summary-head strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.order-cart-items-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-cart-summary-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 74px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--cream);
}

.order-cart-summary-item img {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
  background: #fff;
}

.order-cart-summary-item div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-cart-summary-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--navy-2);
  font-size: 11px;
  line-height: 1.25;
}

.order-cart-summary-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-cart-summary-item b {
  color: var(--pink);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .order-direct-context,
  .order-cart-context {
    min-height: 135px;
  }

  .order-cart-context {
    align-content: start;
    padding-top: 3px;
  }

  .order-cart-items-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .order-cart-summary-item {
    display: block;
    min-height: 96px;
    padding: 5px;
    text-align: center;
  }

  .order-cart-summary-item img {
    width: 100%;
    height: 50px;
    margin-bottom: 3px;
    border-radius: 8px;
  }

  .order-cart-summary-item div {
    gap: 1px;
  }

  .order-cart-summary-item strong {
    min-height: 27px;
    font-size: 10px;
  }

  .order-cart-summary-item span {
    font-size: 8px;
  }

  .order-cart-summary-item b {
    font-size: 9px;
  }

  .order-cart-summary-head span {
    font-size: 11px;
  }

  .order-cart-summary-head strong {
    font-size: 9px;
  }
}

/* =========================
   V5 mobile checkout polish
   - Taller bottom sheet without becoming full-screen
   - Slightly more compact cart cards
   - More compact totals panel
   ========================= */
@media (max-width: 640px) {
  .order-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .order-modal {
    width: 100%;
    height: 96dvh;
    min-height: 96dvh;
    max-height: 96dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px 24px 0 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .order-modal-head {
    margin-bottom: 4px;
  }

  .order-cart-context {
    min-height: 116px;
    gap: 5px;
    padding: 2px 0 3px;
  }

  .order-cart-items-summary {
    gap: 4px;
  }

  .order-cart-summary-item {
    min-height: 82px;
    padding: 4px;
    border-radius: 12px;
  }

  .order-cart-summary-item img {
    height: 43px;
    margin-bottom: 2px;
    border-radius: 7px;
  }

  .order-cart-summary-item strong {
    min-height: 23px;
    font-size: 9.5px;
    line-height: 1.18;
  }

  .order-cart-summary-item span {
    font-size: 7.5px;
    line-height: 1.15;
  }

  .order-cart-summary-item b {
    font-size: 8.5px;
    line-height: 1.15;
  }

  .order-cart-summary-head {
    min-height: 16px;
  }

  .order-cart-summary-head span {
    font-size: 10.5px;
  }

  .order-cart-summary-head strong {
    font-size: 8.5px;
  }

  .order-total-row {
    gap: 6px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  .order-total-row span {
    font-size: 9px;
    line-height: 1.2;
  }

  .order-total-row strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .order-total-row small {
    font-size: 8px;
    line-height: 1.25;
  }
}

/* Feedback for previously saved cart items that are now sold out. */
.cart-stock-warning {
  display: block;
  color: #af3f3f;
  font-size: 12px;
  margin-top: 5px;
}
.cart-checkout-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

/* Checkout keyboard fix (2026-11-03): only while the mobile keyboard is visible.
   The original sheet layout is kept whenever the keyboard is closed. */
@media (max-width: 640px), (max-width: 900px) and (pointer: coarse) {
  .order-modal-backdrop.order-keyboard-visible {
    top: var(--order-visible-viewport-top, 0px);
    bottom: auto;
    height: var(--order-visible-viewport-height, 100dvh);
    min-height: 0;
  }

  .order-modal-backdrop.order-keyboard-visible .order-modal {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* Product-specific size guide — product page only; checkout remains untouched. */
.product-size-guide-link[hidden] {
  display: none !important;
}
.product-size-guide-link {
  margin-inline-start: auto;
}
.product-size-guide-dialog {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.guide-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #f5f5f7;
  margin: 10px 0 18px;
}
.guide-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 6px;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  color: var(--navy);
  cursor: pointer;
}
.guide-tabs button[aria-selected="true"] {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 1px 8px #07192b16;
}
.guide-panel[hidden] {
  display: none !important;
}
.guide-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin: 0 0 14px;
}
.guide-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.guide-input-grid label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}
.guide-input-grid input {
  border: 1px solid #dbe0e5;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
}
.guide-input-grid input:focus {
  border-color: var(--pink);
  outline: 2px solid #cc005022;
}
.guide-fit-options {
  margin: 15px 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.guide-fit-options legend {
  font-size: 13px;
  font-weight: 900;
  padding: 0 0 8px;
}
.guide-fit-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #fff8fb;
  border: 1px solid #f1d8e3;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.guide-fit-options input {
  accent-color: var(--pink);
}
.guide-find {
  width: 100%;
}
.guide-result {
  min-height: 16px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.8;
}
.guide-result:not(:empty) {
  padding: 14px;
  border-radius: 14px;
  background: #fff6fa;
  border: 1px solid #eed6df;
}
.guide-result strong {
  color: var(--navy);
}
.guide-result p {
  margin: 5px 0 10px;
}
.guide-result button,
.guide-table-select {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 900;
  font-size: 12px;
  background: var(--pink);
  color: #fff;
}
.guide-disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.guide-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}
.guide-table-wrap .size-table {
  font-size: 12px;
  min-width: 480px;
}
.guide-table-wrap .size-table th,
.guide-table-wrap .size-table td {
  white-space: nowrap;
}
.guide-table-wrap .size-table th {
  background: #fff1f6;
}
.guide-measure-tips {
  margin-top: 14px;
  border-top: 1px solid #eee;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--navy);
}
.guide-measure-tips summary {
  font-weight: 900;
  cursor: pointer;
}
.guide-measure-tips p {
  margin: 7px 0;
}
@media (max-width: 540px) {
  .product-size-guide-dialog {
    max-height: calc(100dvh - 20px);
    width: calc(100% - 18px);
    padding: 16px 10px;
  }
  .guide-input-grid {
    gap: 7px;
  }
  .guide-input-grid input {
    padding: 10px 8px;
  }
}

.guide-tabs.guide-tabs-table-only {
  grid-template-columns: 1fr;
}
.guide-tabs button[hidden] {
  display: none !important;
}

/* Size guide v3 — vertical measurements for every viewport, including narrow desktop dialogs. */
/* The old wide matrix is retained in markup for backwards compatibility, but never shown. */
.product-size-guide-dialog .guide-desktop-table {
  display: none;
}
.product-size-guide-dialog .guide-mobile-table {
  display: block;
  min-width: 0;
  width: 100%;
}
.product-size-guide-dialog .guide-table-wrap {
  overflow-x: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.product-size-guide-dialog .guide-size-chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}
.product-size-guide-dialog .guide-size-choice {
  flex: 1 1 56px;
  min-width: 52px;
  border: 1px solid #e8d4dd;
  border-radius: 11px;
  padding: 10px 8px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.product-size-guide-dialog .guide-size-choice.is-selected {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}
.product-size-guide-dialog .guide-size-choice:disabled {
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f5f5f5;
  cursor: default;
}
.product-size-guide-dialog .guide-size-details {
  border: 1px solid #f0dfe6;
  border-radius: 16px;
  padding: 13px;
  background: #fff;
  min-width: 0;
}
.product-size-guide-dialog .guide-size-details > strong {
  display: block;
  margin-bottom: 10px;
}
.product-size-guide-dialog .guide-vertical-measurements {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.product-size-guide-dialog .guide-vertical-measurements th,
.product-size-guide-dialog .guide-vertical-measurements td {
  padding: 11px 7px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-size-guide-dialog .guide-vertical-measurements th {
  color: var(--navy);
  width: 67%;
  font-weight: 750;
  text-align: right;
}
.product-size-guide-dialog .guide-vertical-measurements td {
  color: var(--navy);
  font-weight: 850;
  text-align: left;
}
.product-size-guide-dialog .guide-mobile-choose {
  display: block;
  margin-top: 12px;
  width: 100%;
}
.product-size-guide-dialog .guide-mobile-choose:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Optional illustrated measuring guide, below the product's existing size table.
   Kept collapsed so it never distracts a customer who already knows her size. */
.product-size-guide-dialog .guide-measure-tips > summary {
  display: list-item;
  padding: 9px 4px;
  color: var(--navy);
  cursor: pointer;
}
.product-size-guide-dialog .guide-measure-tips > summary span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-inline-start: 8px;
}
.product-size-guide-dialog .guide-measure-lead,
.product-size-guide-dialog .guide-measure-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 10px 0;
}
.product-size-guide-dialog .guide-measure-illustrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 12px;
}
.product-size-guide-dialog .guide-measure-figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border-radius: 15px;
  background: #fffafd;
  border: 1px solid #f0dfe6;
}
.product-size-guide-dialog .guide-measure-figure[hidden] {
  display: none !important;
}
.product-size-guide-dialog .guide-measure-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 255px;
  object-fit: contain;
}
.product-size-guide-dialog .guide-measure-figure figcaption > strong {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  text-align: center;
}
.product-size-guide-dialog .guide-measure-figure ol {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--navy);
  font-size: 11px;
  line-height: 1.9;
}
.product-size-guide-dialog .guide-measure-figure li {
  padding-block: 2px;
}

/* Size guide illustrations on mobile */
@media (max-width: 640px) {
  .product-size-guide-dialog .guide-measure-illustrations {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-size-guide-dialog .guide-measure-figure img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}


/* Order registration success popup — isolated from the existing checkout layout. */
.order-success-popup[hidden] {
  display: none !important;
}

.order-success-popup {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(7, 25, 43, 0.52);
}

.order-success-popup-card {
  box-sizing: border-box;
  width: min(410px, 100%);
  max-height: min(90dvh, 620px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 25, 43, 0.32);
  text-align: center;
  color: var(--navy);
}

.order-success-popup-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #dcfae6;
  color: #067647;
  font-size: 34px;
  font-weight: 900;
}

.order-success-popup-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.5;
}

.order-success-popup-card p {
  margin: 0 0 14px;
  color: #536575;
  font-size: 15px;
  line-height: 1.9;
}

.order-success-popup-card .order-success-popup-number {
  color: var(--navy);
}

.order-success-popup-number strong {
  unicode-bidi: isolate;
  display: inline-block;
  color: var(--pink);
}

.order-success-popup-close {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .order-success-popup-card { padding: 22px 18px 18px; }
  .order-success-popup-card p { font-size: 14px; }
}

/* Femikidz 2026-11-20: restrained homepage rhythm and multi-message announcement. */
.announcement {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7px 14px;
}
.announcement[hidden] { display: none !important; }
.announcement-message {
  display: block;
  max-width: 100%;
  color: inherit;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  animation: announcement-appear 0.38s ease-out;
}
a.announcement-message:hover, a.announcement-message:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes announcement-appear {
  from { opacity: 0.3; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-message { animation: none; }
}
/* Categories are already inserted by the Worker above the products section. */
.homepage-category-links { padding: 16px 0 10px; }
.homepage-category-links h2 {
  text-align: center;
  margin: 0 0 12px;
  font-size: clamp(23px, 3.3vw, 34px);
  color: var(--navy);
}
.homepage-category-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.homepage-category-links nav a {
  display: inline-block;
  border: 1px solid #e5cad5;
  border-radius: 24px;
  padding: 9px 18px;
  background: #fff;
  color: #12344d;
  font-weight: 700;
}
.homepage-category-links nav a:hover { border-color: var(--pink); }
@media (max-width: 720px) {
  .announcement { min-height: 36px; font-size: 12px; }
  .hero { padding-bottom: 14px; }
  .homepage-category-links { padding-top: 12px; padding-bottom: 8px; }
  .homepage-category-links h2 { margin-bottom: 10px; font-size: 26px; }
  .homepage-category-links nav a { padding: 8px 15px; }
  .products-section { padding-top: 22px; }
  .products-section .section-heading { margin-bottom: 22px; }
  .products-section .section-heading h2 { font-size: clamp(28px, 7.5vw, 42px); margin-top: 10px; }
  .products-section .section-heading p { font-size: 16px; }
  .hero-visual { margin-top: 13px; }
  .hero .trust-row { margin-top: 8px; }
}
