/* ==========================================================================
   DERMAPROF — Standard Clean Skincare E-commerce Stylesheet
   Inspired by modern clinical DTC standards (The Ordinary / Rhode / Naturium):
   generous whitespace, 4-column clean product grid, minimal card text,
   single sans-serif hierarchy, native top-layer dialogs & drawer.
   ========================================================================== */

:root {
  --bg-page: #fbfbfa;
  --bg-card: #f4f4f1;
  --bg-soft: #efefe9;
  --bg-dark: #181818;
  --ink: #1a1a1a;
  --ink-2: #595959;
  --ink-3: #858585;
  --ink-inv: #f7f7f5;
  --line: rgba(26, 26, 26, 0.11);
  --line-strong: rgba(26, 26, 26, 0.28);
  --accent: #1a1a1a;
  --accent-warn: #8f3f26;
  --accent-valid: #1f6343;
  --accent-error: #b32d22;
  --accent-error-bg: #fbeceb;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.container {
  width: min(1360px, 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1360px, 100% - 72px);
  }
}

/* ==========================================================================
   Announcement Bar & Header
   ========================================================================== */

.promo-bar {
  background-color: var(--bg-dark);
  color: var(--ink-inv);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(251, 251, 250, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand-logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (max-width: 959px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
    gap: 10px 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    white-space: nowrap;
  }
}

@media (min-width: 960px) {
  .main-nav {
    gap: 28px;
  }
}

.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-2);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-link {
  background: none;
  border: 0;
  padding: 6px 4px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-link:hover {
  opacity: 0.7;
}

.cart-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: var(--bg-soft);
  color: var(--ink);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:hover {
  background-color: var(--ink);
  color: var(--ink-inv);
}

.btn:active {
  transform: scale(0.98);
}

.btn-solid {
  background-color: var(--ink);
  color: var(--ink-inv);
}

.btn-solid:hover {
  background-color: #333333;
  border-color: #333333;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 12.5px;
}

/* ==========================================================================
   Clean Standard Split Hero
   ========================================================================== */

.hero {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding-block: 40px;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    padding-block: 0;
    min-height: 540px;
  }
}

.hero-text {
  max-width: 460px;
}

.hero-kicker {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero-visual {
    min-height: 540px;
  }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* ==========================================================================
   Section Framing & Standard 4-Column Product Grid
   ========================================================================== */

.section {
  padding-block: 64px;
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.section-link {
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

.section-link:hover {
  opacity: 0.65;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px 22px;
  }
}

.product-card-slot {
  container-type: inline-size;
  display: flex;
}

.p-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.p-img-box {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 14px;
}

.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms var(--ease);
}

.p-card:hover .p-img-box img {
  transform: scale(1.03);
}

.p-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(251, 251, 250, 0.92);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 8px;
}

.p-tag--warn {
  color: var(--accent-warn);
}

.p-title-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.p-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.p-title-btn:hover .p-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-benefit {
  margin: 4px 0 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-meta-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.p-price {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.p-price-old {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.p-sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.size-link {
  background: none;
  border: 0;
  padding: 0 0 1px;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.size-link:hover {
  color: var(--ink);
}

.size-link.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.p-add-btn {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  background-color: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}

.p-add-btn:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inv);
}

.p-add-btn:active {
  transform: scale(0.98);
}

/* Container query adaptation for wide standalone slots */
@container (min-width: 480px) {
  .p-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
  }

  .p-img-box {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Clean Editorial Split Banner (Home)
   ========================================================================== */

.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-soft);
}

@media (min-width: 900px) {
  .editorial-media {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-copy {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .editorial-copy {
    padding: 56px;
  }
}

.editorial-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.editorial-copy p {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ==========================================================================
   Catalog Filter Toolbar (Clean Horizontal Line, No Heavy Box)
   ========================================================================== */

.page-header {
  padding-block: 36px 24px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 20px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tab-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.input-clean,
.select-clean {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-page);
  font-size: 13px;
}

.concern-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
}

.pill-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pill-btn.is-active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inv);
}

/* ==========================================================================
   Routine Builder & Guide Pages
   ========================================================================== */

.routine-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 960px) {
  .routine-layout {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

.routine-step {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.step-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.routine-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background-color: var(--bg-page);
  text-align: left;
  cursor: pointer;
}

.routine-option:hover {
  border-color: var(--ink);
}

.routine-option.is-selected {
  border-color: var(--ink);
  background-color: var(--bg-card);
}

.routine-option img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-card);
}

.routine-summary {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  padding: 24px;
  position: sticky;
  top: 84px;
}

.routine-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.routine-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.compat-note {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 16px;
  background-color: var(--bg-page);
  border-left: 2px solid var(--ink);
}

.compat-note--warn {
  border-left-color: var(--accent-warn);
}

.faq-list {
  max-width: 780px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: 18px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--ink-3);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background-color: var(--bg-card);
  padding-block: 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-title {
  margin: 0 0 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ==========================================================================
   Modal PDP Dialog (<dialog closedby="any">) + Prevent Page Scroll
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(24, 24, 24, 0.52);
  backdrop-filter: blur(2px);
}

.pdp-dialog {
  width: min(920px, 100vw - 24px);
  max-height: min(90svh, 800px);
  padding: 0;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-page);
  color: var(--ink);
  margin: auto;
}

.pdp-shell {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pdp-shell {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.pdp-gallery {
  background-color: var(--bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-main-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-thumb-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-page);
  cursor: pointer;
}

.pdp-thumb-btn.is-active {
  border-color: var(--ink);
}

.pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.close-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.close-btn:hover {
  background: var(--ink);
  color: var(--ink-inv);
}

.pdp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v-chip {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 12.5px;
  cursor: pointer;
}

.v-chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inv);
}

.pdp-detail {
  border-top: 1px solid var(--line);
  padding-block: 10px;
}

.pdp-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.pdp-detail summary::-webkit-details-marker {
  display: none;
}

.pdp-detail p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.pdp-spec-line {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 0;
}

.pdp-bullets {
  margin: 10px 0 4px;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.pdp-inci {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.pdp-warn {
  margin: 8px 0 0;
  padding: 8px 10px;
  background-color: #faf3f0;
  border-left: 2px solid var(--accent-warn);
  font-size: 12.5px;
  color: var(--accent-warn);
  line-height: 1.5;
}

/* ==========================================================================
   Slide-Over Cart Drawer (<dialog> + scroll-snap + scroll-driven backdrop)
   ========================================================================== */

.Drawer {
  --drawer-width: min(27rem, 90dvw, 100dvw - 16px);
  --drawer-backdrop: 0;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #181818;
  opacity: calc(var(--drawer-backdrop) * 0.5);
  overflow: hidden;
  overscroll-behavior: contain;
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: 100% var(--drawer-width);
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::before {
  content: "";
  scroll-snap-align: start;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  background-color: var(--bg-page);
  color: var(--ink);
  border-left: 1px solid var(--line-strong);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-align: end;
  scrollbar-width: none;
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 0; }
    100% { --drawer-backdrop: 1; }
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-page);
  position: sticky;
  top: 0;
  z-index: 2;
}

.drawer-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.shipping-box {
  background-color: var(--bg-card);
  padding: 12px;
  font-size: 12.5px;
}

.progress-track {
  margin-top: 8px;
  width: 100%;
  height: 4px;
  background-color: rgba(26, 26, 26, 0.12);
}

.progress-fill {
  height: 100%;
  background-color: var(--ink);
  transition: width 240ms var(--ease);
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 56px;
  height: 68px;
  object-fit: cover;
  background-color: var(--bg-card);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.qty-box button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.qty-box span {
  min-width: 22px;
  text-align: center;
  font-size: 12px;
}

.bump-box {
  background-color: var(--bg-card);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Validation After Interaction (:user-invalid + fallback) */
.checkout-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-field {
  display: grid;
  gap: 4px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 500;
}

.form-hint {
  font-size: 11px;
  color: var(--ink-3);
}

.form-field input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-page);
  font-size: 13px;
}

.error-msg {
  display: none;
  font-size: 11.5px;
  color: var(--accent-error);
}

input:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--accent-error);
  background-color: var(--accent-error-bg);
}

input:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

input:is(:user-valid, .user-valid-fallback) {
  border-color: var(--accent-valid);
}

.order-confirmed {
  padding: 12px;
  border: 1px solid var(--accent-valid);
  background-color: #eef6f2;
  font-size: 13px;
}

.empty-state {
  padding: 36px 16px;
  background-color: var(--bg-card);
  font-size: 13.5px;
  color: var(--ink-2);
}
