/* ============================================================
   RASHMÉ — Inner Pages CSS (Story, Products, Ingredients, Rituals, Contact)
   ============================================================ */

/* ── Shared Inner Hero ── */
.page-hero {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--beige);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero.dark {
  background: var(--black);
  color: var(--beige);
  border-bottom-color: rgba(245,240,232,0.08);
}
.page-hero.dark .label { color: rgba(245,240,232,0.35); }

.page-hero__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease) 0.7s both;
}

.page-hero h1 {
  animation: fadeUp 0.9s var(--ease) 0.85s both;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.page-hero__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
  animation: fadeUp 0.9s var(--ease) 1s both;
}

.page-hero.dark .page-hero__sub { color: rgba(245,240,232,0.45); }

/* ── Story Page ── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}
.story-block:last-child { border-bottom: none; }
.story-block--rev { direction: rtl; }
.story-block--rev > * { direction: ltr; }

.story-block__img {
  aspect-ratio: 4/5;
  background: var(--beige-dark);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.story-block__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.story-block__img:hover img { transform: scale(1.04); }

.story-block__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.story-block__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.story-block__heading em { font-style: italic; color: var(--muted); font-weight: 400; }
.story-line { width: 36px; height: 1px; background: var(--red); margin: 1.5rem 0; }
.story-block__body { font-size: 0.95rem; color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }

.pull-quote {
  padding: 6rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--beige);
}
.pull-quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--black);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.pull-quote__attr {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.values-section { padding: 8rem 0; background: var(--beige-dark); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.value-item {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: var(--beige); }
.value-item__num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--beige-mid);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.value-item__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.value-item__desc { font-size: 0.82rem; color: var(--muted); line-height: 1.75; }

/* ── Products Page ── */
.product-feature {
  padding: 8rem 0;
  background: var(--beige);
}
.product-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: start;
}

.product-img-main {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.product-img-box {
  aspect-ratio: 4/3;
  background: var(--beige-dark);
  position: relative;
  overflow: hidden;
}
.product-img-box img {
  width:100%; height:100%;
  object-fit: cover;
}
.product-img-badge {
  position: absolute;
  top: 2rem; left: 0;
  background: var(--red);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
}
.product-img-placeholder {
  width:100%; height:100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  gap: 0.4rem;
}
.product-img-placeholder small { font-size: 0.72rem; opacity: 0.5; font-style: normal; }

.product-detail__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1.25rem;
}
.product-detail__name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.product-detail__name em { font-style: italic; font-weight: 400; color: var(--muted); }
.product-detail__line { width: 36px; height: 1px; background: var(--red); margin: 1.5rem 0; }
.product-detail__desc { font-size: 0.98rem; color: var(--muted); line-height: 1.85; margin-bottom: 2rem; }

.product-perks {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}
.product-perk {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.product-perk::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.product-meta-item {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}
.product-meta-item:last-child { border-right: none; }
.product-meta-item dt {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.product-meta-item dd {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
}
.product-meta-item dd.red { color: var(--red); }

.product-actions { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

.product-note { font-size: 0.78rem; color: var(--muted); }

/* Benefits Grid */
.benefits-section { padding: 7rem 0; background: var(--beige-dark); border-top: 1px solid var(--border); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.benefit-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.benefit-item:hover { background: var(--beige); }
.benefit-item:nth-child(3n) { border-right: none; }
.benefit-item:nth-child(n+4) { border-bottom: none; }
.benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.benefit-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.benefit-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.75; }

/* FAQ */
.faq-section { padding: 7rem 0; background: var(--beige); }
.faq-list { max-width: 760px; margin: 4rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  gap: 1.5rem;
  transition: color var(--transition-fast);
}
.faq-q:hover { color: var(--red); }
.faq-icon {
  width: 26px; height: 26px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--black); color: var(--beige); border-color: var(--black); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { font-size: 0.9rem; color: var(--muted); line-height: 1.85; padding-bottom: 1.75rem; }

/* ── Ingredients Page ── */
.ingred-full-section { padding: 7rem 0; background: var(--beige); }

.ingred-full-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.ingred-full-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.ingred-full-item:hover { background: var(--beige-dark); }
.ingred-full-item:nth-child(3n) { border-right: none; }
.ingred-full-item:nth-child(n+7) { border-bottom: none; }

.ingred-full-item__origin {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.ingred-full-item__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.ingred-full-item__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}
.ingred-full-item__desc { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.purity-section { padding: 7rem 0; background: var(--black); color: var(--beige); }
.purity-section .label { color: rgba(245,240,232,0.35); }
.purity-section .display-md { color: var(--beige); }
.purity-section p { color: rgba(245,240,232,0.45); }

.purity-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(245,240,232,0.08);
  margin-top: 4rem;
}
.purity-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(245,240,232,0.08);
  transition: background 0.3s ease;
}
.purity-item:last-child, .purity-item:nth-child(3n) { border-right: none; }
.purity-item:hover { background: rgba(245,240,232,0.02); }
.purity-item__icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.purity-item__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--beige);
  margin-bottom: 0.5rem;
}
.purity-item__desc { font-size: 0.82rem; color: rgba(245,240,232,0.4); line-height: 1.75; }

/* ── Rituals Page ── */
.ritual-full-section { padding: 7rem 0; background: var(--beige); }

.ritual-full-step {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.ritual-full-step:last-child { border-bottom: none; }
.ritual-full-step__num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--beige-mid);
  line-height: 1;
  padding-top: 0.2rem;
}
.ritual-full-step__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.ritual-full-step__desc { font-size: 0.9rem; color: var(--muted); line-height: 1.85; }
.ritual-full-step__tip {
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--red);
  background: var(--beige-dark);
}
.ritual-full-step__tip-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.ritual-full-step__tip p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.tips-section { padding: 7rem 0; background: var(--beige-dark); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.tip-item {
  background: var(--beige-dark);
  padding: 2.5rem 2.5rem;
  display: flex;
  gap: 1.5rem;
  transition: background var(--transition);
}
.tip-item:hover { background: var(--beige); }
.tip-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--beige-mid);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.tip-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tip-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.frequency-section { padding: 7rem 0; background: var(--beige); }
.freq-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.freq-item {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  text-align: center;
}
.freq-item:last-child { border-right: none; }
.freq-item.featured { background: var(--black); color: var(--beige); }
.freq-item__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}
.freq-item.featured .freq-item__tag { color: rgba(245,240,232,0.35); }
.freq-item__freq {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.freq-item.featured .freq-item__freq { color: var(--beige); }
.freq-item.featured .freq-item__tag-red { color: var(--red); }
.freq-tag-red {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}
.freq-item__desc { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.freq-item.featured .freq-item__desc { color: rgba(245,240,232,0.4); }

/* ── Contact Page ── */
.contact-section { padding: 8rem 0; background: var(--beige); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-form-wrap {
  padding-right: 2rem;
}
.contact-form-wrap h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-form-wrap .sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 0;
  font-size: 0.92rem;
  color: var(--black);
  background: transparent;
  border-bottom: 1px solid var(--border-mid);
  transition: border-color var(--transition-fast);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--black);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--beige-mid); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

.contact-info {
  padding-top: 0.5rem;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 0; }
.contact-info-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-card-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--red);
}
.contact-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-card-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  display: block;
  margin-bottom: 0.15rem;
}
.contact-card-sub { font-size: 0.78rem; color: var(--muted); }

/* Founder Spotlight Card */
.contact-info-card--founder {
  background: linear-gradient(135deg, rgba(155, 28, 28, 0.04) 0%, rgba(245, 240, 232, 0.5) 100%);
  border: 1px solid rgba(155, 28, 28, 0.2);
  border-left: 3px solid var(--red);
  padding: 1.5rem 1.4rem;
  margin-top: 1.25rem;
  transition: all var(--transition);
}
.contact-info-card--founder:hover {
  background: linear-gradient(135deg, rgba(155, 28, 28, 0.08) 0%, rgba(245, 240, 232, 0.8) 100%);
  border-color: rgba(155, 28, 28, 0.35);
  box-shadow: 0 8px 24px rgba(155, 28, 28, 0.08);
  transform: translateY(-2px);
}
.contact-info-card--founder .contact-card-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(155, 28, 28, 0.25);
}
.contact-founder-content {
  flex: 1;
}
.contact-founder-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.25rem;
}
.contact-founder-name {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  line-height: 1.3;
  margin-bottom: 0.35rem !important;
}
.contact-founder-name a {
  color: var(--black) !important;
  text-decoration: none !important;
  transition: color var(--transition-fast);
}
.contact-founder-name a:hover {
  color: var(--red) !important;
}
.contact-founder-bio {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}
.contact-founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.contact-founder-link:hover {
  color: var(--red-dark);
}
.contact-founder-link svg {
  transition: transform var(--transition-fast);
}
.contact-founder-link:hover svg {
  transform: translateX(3px);
}

.form-success {
  display: none;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--red);
  margin-top: 1.5rem;
}
.form-success p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--black);
}

/* ── Responsive for inner pages ── */
@media (max-width: 1024px) {
  .product-feature__grid { gap: 4rem; }
  .story-block { gap: 4rem; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid .value-item:nth-child(2n) { border-right: none; }
  .values-grid .value-item:nth-child(n+3) { border-bottom: none; }
  .values-grid .value-item { border-bottom: 1px solid var(--border); }
  .ingred-full-grid { grid-template-columns: repeat(2,1fr); }
  .ingred-full-item:nth-child(2n) { border-right: none; }
  .ingred-full-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .purity-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .page-hero { min-height: 50vh; }
  .story-block { grid-template-columns: 1fr; gap: 3rem; }
  .story-block--rev { direction: ltr; }
  .product-feature__grid { grid-template-columns: 1fr; }
  .product-img-main { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .contact-form-wrap { padding-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid, .ingred-full-grid, .purity-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item, .ingred-full-item, .purity-item { border-right: none !important; }
  .ritual-full-step { grid-template-columns: 60px 1fr; gap: 2rem; }
  .ritual-full-step__tip { grid-column: 2; }
  .tips-grid { grid-template-columns: 1fr; }
  .freq-grid { grid-template-columns: 1fr; }
  .freq-item { border-right: none; border-bottom: 1px solid var(--border); }
  .freq-item:last-child { border-bottom: none; }
  .product-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ritual-full-step { grid-template-columns: 1fr; }
  .ritual-full-step__num { font-size: 3rem; }
  .ritual-full-step__tip { grid-column: 1; }
}

/* ============================================================
   RASHMÉ — LUXURY CHECKOUT MODAL
   ============================================================ */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.checkout-modal.open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.checkout-modal__dialog {
  position: relative;
  width: 92%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FAF7F2;
  border: 1px solid rgba(229, 223, 215, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 2.25rem 2rem;
  z-index: 1;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

.checkout-modal.open .checkout-modal__dialog {
  transform: translateY(0) scale(1);
}

.checkout-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: #FFF;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}

.checkout-modal__close:hover {
  background: var(--black);
  color: #FFF;
  transform: rotate(90deg);
}

.checkout-modal__header {
  margin-bottom: 1.5rem;
  text-align: left;
  padding-right: 2rem;
}

.checkout-modal__kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.checkout-modal__title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin: 0 0 0.4rem 0;
}

.checkout-modal__desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Mini Product Summary inside Checkout */
.checkout-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #FFF;
  border: 1px solid var(--border-mid);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.checkout-summary__img-wrap {
  width: 58px;
  height: 64px;
  background: #F4EFEA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.checkout-summary__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.checkout-summary__details {
  flex: 1;
  min-width: 0;
}

.checkout-summary__item-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.2;
}

.checkout-summary__item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.checkout-summary__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary__price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
}

.checkout-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-mid);
  background: #FFF;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #F0EAE1;
}

.qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  user-select: none;
}

/* Phone input prefix */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: #FFF;
  border: 1px solid var(--border-mid);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.phone-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(139, 30, 30, 0.15);
}

.phone-prefix {
  padding: 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-right: 1px solid var(--border-mid);
  background: #F8F5F0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.phone-input-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 0.75rem !important;
  box-shadow: none !important;
}

/* Payment Method Cards */
.checkout-payment-section {
  margin: 1.25rem 0 1rem 0;
}

.payment-section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-mid);
  background: #FFF;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.payment-option.selected {
  border-color: var(--red);
  background: #FDF9F7;
  box-shadow: 0 0 0 1px var(--red);
}

.payment-option input[type="radio"] {
  accent-color: var(--red);
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
}

.payment-option__content {
  flex: 1;
}

.payment-option__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.payment-option__desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.payment-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #B23B3B;
  background: rgba(178, 59, 59, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Order Breakdown / Calculation */
.checkout-calc {
  background: #F4EFEA;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0 1.5rem 0;
  border: 1px solid var(--border-mid);
}

.checkout-calc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.checkout-calc__free {
  font-weight: 700;
  color: #1E6B3B;
  letter-spacing: 0.05em;
}

.checkout-calc__divider {
  height: 1px;
  background: var(--border-mid);
  margin: 0.5rem 0;
}

.checkout-calc__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.checkout-calc__amount {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--red);
}

/* Checkout Submit Button */
.checkout-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--red);
  color: #FFF;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.checkout-submit-btn:hover:not(:disabled) {
  background: #6E1616;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 30, 30, 0.25);
}

.checkout-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.checkout-lock-icon {
  flex-shrink: 0;
}

.checkout-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.checkout-trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Order Error Banner */
.order-alert-error {
  background: #FDF2F2;
  border-left: 3px solid #D32F2F;
  color: #B71C1C;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Checkout Success View */
.checkout-success-view {
  text-align: center;
  padding: 1rem 0;
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(30, 107, 59, 0.1);
  color: #1E6B3B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  border: 1px solid rgba(30, 107, 59, 0.25);
}

.checkout-success__title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--black);
  margin: 0.25rem 0 0.75rem 0;
}

.checkout-success__desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 auto 1.5rem auto;
  max-width: 420px;
}

.order-id-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #FFF;
  border: 1px dashed var(--red);
  padding: 0.85rem 1.75rem;
  margin-bottom: 1.5rem;
}

.order-id-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.order-id-code {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-top: 0.25rem;
}

.order-success-details {
  background: #FFF;
  border: 1px solid var(--border-mid);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.order-detail-row:last-child {
  border-bottom: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.order-address-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkout-dispatch-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

@media (max-width: 580px) {
  .checkout-modal__dialog {
    padding: 1.75rem 1.25rem;
    width: 95%;
  }
  .checkout-modal__title {
    font-size: 1.6rem;
  }
}
