/* PlayPrinto — soft modern kids boutique */
:root {
  --bg: #f9f8f3;
  --bg-soft: #f3f0e8;
  --white: #ffffff;
  --ink: #2c2a26;
  --muted: #7a756c;
  --muted-2: #a39e94;
  --border: #ebe6dc;
  --border-strong: #ddd6c8;
  --orange: #e8896b;
  --accent: #e8896b;
  --cta: #5c6b3a;
  --cta-hover: #4a5630;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(44, 42, 38, 0.07);
  --shadow-sm: 0 4px 16px rgba(44, 42, 38, 0.05);
  --shadow-card: 0 8px 28px rgba(44, 42, 38, 0.08);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8896b, #f0a888);
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(232, 137, 107, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  transition: 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* Intro */
.shop-intro {
  padding: 2.25rem 0 0.75rem;
}

.shop-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  line-height: 1.65;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1.5rem 0 1.75rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.15s ease;
  box-shadow: var(--shadow-sm);
}

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

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  box-shadow: none;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-bottom: 3.5rem;
}

.pack-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(235, 230, 220, 0.8);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 42, 38, 0.1);
}

.pack-card__art {
  position: relative;
  aspect-ratio: 1.12 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}

/* Soft solid / gentle gradient — no stripes */
.pack-art-bg {
  position: absolute;
  inset: 0;
  /* Fallback for browsers without color-mix */
  background: var(--pack-color, #e8896b);
  background:
    radial-gradient(ellipse 80% 70% at 70% 30%, color-mix(in srgb, var(--pack-color, #e8896b) 28%, white), transparent 70%),
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--pack-color, #e8896b) 55%, white) 0%,
      color-mix(in srgb, var(--pack-color, #e8896b) 78%, #f9f8f3) 55%,
      color-mix(in srgb, var(--pack-color, #e8896b) 45%, #f3f0e8) 100%
    );
}

.pack-card__title-overlay {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  right: 1.15rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--ink);
  z-index: 2;
  max-width: 70%;
}

.pack-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  min-width: auto;
  width: auto;
  height: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  box-shadow: 0 4px 14px rgba(44, 42, 38, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Centered premium physical card mock */
.sample-card {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 44%;
  max-width: 158px;
  aspect-ratio: 0.72 / 1;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(44, 42, 38, 0.06);
  box-shadow:
    0 2px 4px rgba(44, 42, 38, 0.04),
    0 14px 32px rgba(44, 42, 38, 0.14);
  z-index: 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sample-card__media {
  flex: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fdfaf6 0%, #f7f3ec 100%);
  font-size: 2.55rem;
  padding: 0.65rem;
}

.sample-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sample-card__label {
  padding: 0.5rem 0.4rem 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  background: white;
  border-top: 1px solid #f0ebe3;
}

.pack-card__body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.pack-card__body h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pack-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pack-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cta);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease;
}

.pack-card__cta:hover {
  color: var(--cta-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pack-card.is-hidden {
  display: none;
}

/* Product detail */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  padding: 1.75rem 0 2rem;
  align-items: center;
}

.product-hero__art {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1.05 / 1;
  box-shadow: var(--shadow);
  border: 1px solid rgba(235, 230, 220, 0.9);
  background: var(--bg-soft);
}

.product-hero__art > .pack-card__art {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.product-hero__art .pack-card__title-overlay {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 55%;
}

.product-hero__art .sample-card {
  width: 40%;
  max-width: 200px;
  top: 55%;
  transform: translate(-50%, -50%) rotate(-2.5deg);
}

.product-hero__art .pack-badge {
  left: 1.4rem;
  bottom: 1.4rem;
  font-size: 0.74rem;
  padding: 0.55rem 0.9rem;
}

.product-hero__info h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 700;
}

.product-hero__meta {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-hero__desc {
  margin: 0 0 1.25rem;
  color: #5a554c;
  font-size: 1.02rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--bg-soft);
  color: #5a554c;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: var(--cta);
  color: white;
  box-shadow: 0 6px 18px rgba(92, 107, 58, 0.28);
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

.price-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pricing */
.price-block {
  margin: 0.15rem 0 0.35rem;
}

.price-block--detail {
  margin: 0 0 1.1rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.price-sale {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.price-block--detail .price-sale {
  font-size: 1.75rem;
}

.price-list {
  font-size: 0.92rem;
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}

.price-block--detail .price-list {
  font-size: 1.05rem;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.price-meta {
  margin-top: 0.2rem;
}

.price-per {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.price-block--detail .price-per {
  font-size: 0.88rem;
}

/* Sample gallery on product page */
.sample-gallery {
  padding: 0.25rem 0 2rem;
}

.sample-gallery h2 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 600;
}

.sample-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sample-gallery__item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sample-gallery__frame {
  position: relative;
  aspect-ratio: 1.4 / 1;
  background: #faf8f4;
  display: grid;
  place-items: center;
  padding: 0.55rem;
}

.sample-gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.sample-gallery__side {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(44, 42, 38, 0.08);
}

.sample-gallery__item figcaption {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.sample-card--photo {
  aspect-ratio: 1.4 / 1;
  width: 52%;
  max-width: 200px;
}

.sample-card--photo .sample-card__media {
  padding: 0.35rem;
  background: white;
}

.sample-card--photo .sample-card__media img {
  object-fit: contain;
  border-radius: 8px;
}

.product-hero__art .sample-card--photo {
  width: 48%;
  max-width: 240px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 1.25rem 0 0.35rem;
}

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

.whats-inside {
  padding: 0.5rem 0 3.5rem;
}

.whats-inside h2 {
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 600;
}

.inside-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.inside-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.inside-row__label {
  font-weight: 700;
  color: var(--pack-color, var(--accent));
}

.inside-row__items {
  color: var(--ink);
  font-size: 0.98rem;
}

/* Static pages */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.prose {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.6rem 1.75rem;
  margin-bottom: 3rem;
}

.prose h2 {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #5a554c;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.35rem;
  margin-bottom: 3rem;
}

.form-card,
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.5rem 1.6rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--cta) 45%, var(--border));
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--cta);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.25rem 1rem;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Admin */
.admin-body {
  background: var(--bg);
}

.admin-wrap {
  width: min(100% - 2rem, 1100px);
  margin: 1.5rem auto 3rem;
}

.admin-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.08);
}

.badge-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f3f4f6;
}

.badge-pill.on {
  background: #dcfce7;
  color: #166534;
}

.badge-pill.off {
  background: #fee2e2;
  color: #991b1b;
}

.login-box {
  max-width: 400px;
  margin: 10vh auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-danger {
  background: #fee2e2;
  color: #991b1b;
}

.btn-danger:hover {
  background: #fecaca;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
}

.thumb-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .inside-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .sample-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    min-width: 160px;
  }
  .nav.is-open {
    display: flex;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .site-header {
    position: relative;
  }
  .pack-card__title-overlay {
    max-width: 60%;
  }
}

/* Cart link + badge */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
  transition: 0.15s ease;
}

.cart-link:hover,
.cart-link.has-items {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.cart-link__icon {
  display: inline-flex;
  color: var(--cta);
}

.cart-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.cart-link__label {
  display: none;
}

@media (min-width: 641px) {
  .cart-link__label {
    display: inline;
  }
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .header-actions {
    order: 3;
    margin-left: 0;
  }
  .nav {
    order: 2;
    justify-content: center;
  }
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  font-size: 0.86rem;
}

.pack-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.pack-card__add {
  width: 100%;
}

.product-buy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.qty-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qty-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.qty-field input,
.cart-row__qty input {
  width: 4.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  text-align: center;
  background: var(--white);
}

.alert-warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 0.25s ease;
  z-index: 80;
  pointer-events: none;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-layout,
.checkout-layout,
.success-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 0.85rem 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.cart-row__swatch {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.cart-row__info h2 {
  margin: 0;
  font-size: 1rem;
}

.cart-row__price {
  margin-top: 0.2rem;
  font-weight: 600;
}

.cart-row__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.qty-btn:hover {
  background: var(--white);
}

.cart-row__line {
  font-weight: 800;
  min-width: 4.5rem;
  text-align: right;
}

.cart-row__remove {
  grid-column: 2 / -1;
  justify-self: start;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0;
}

.cart-row__remove:hover {
  color: #b91c1c;
}

.cart-summary-card .btn {
  width: 100%;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.checkout-actions .btn {
  width: 100%;
}

.checkout-actions .btn.is-disabled,
.checkout-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .success-layout {
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 48px 1fr;
  }
  .cart-row__qty,
  .cart-row__line {
    grid-column: 2;
    justify-self: start;
  }
  .cart-row__line {
    text-align: left;
  }
}
