/* =========================================================
   Essence Soaps & Candles — store.css
   Styles for the storefront pages: shop, product detail, cart,
   checkout success, contact, and admin.
   Reuses the brand variables from styles.css (--amethyst, --plum,
   --heather, --stone, --cream, fonts, radii, shadows). styles.css
   loads first on every page, so the :root tokens are already defined;
   the fallbacks below keep store.css self-sufficient if loaded alone.
   ========================================================= */

:root {
  --amethyst:    #7E6BA6;
  --plum:        #4A3B63;
  --heather:     #B9A8D0;
  --warm-gray:   #8A8A8F;
  --stone:       #EDECEF;
  --charcoal:    #2C2C30;
  --cream:       #FAF8FB;
  --white:       #FFFFFF;
}

/* ----------------------------- Page shell ----------------------------- */
.page {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.page-narrow { max-width: 760px; }

/* ----------------------------- Breadcrumb ----------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--warm-gray);
  margin: 0 0 28px;
}
.breadcrumb a { color: var(--warm-gray); transition: color 0.25s var(--ease, ease); }
.breadcrumb a:hover { color: var(--amethyst); }
.breadcrumb .sep { color: var(--heather); }
.breadcrumb [aria-current="page"] { color: var(--plum); font-weight: 600; }

/* ----------------------------- Cart icon in header ----------------------------- */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--heather);
  color: var(--plum);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(74,59,99,0.06));
  transition: transform 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease), color 0.25s var(--ease, ease);
}
.cart-link:hover { transform: translateY(-2px); border-color: var(--amethyst); color: var(--amethyst); }
.cart-link svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amethyst), var(--plum));
  color: var(--white);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(74,59,99,0.30);
  transform: scale(0);
  transition: transform 0.3s var(--ease, cubic-bezier(0.22,1,0.36,1));
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: cartBump 0.45s var(--ease, ease); }
@keyframes cartBump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.35); } }

/* Header nav links pointing to the storefront pages use the same look */
.main-nav a.is-cta { color: var(--amethyst); font-weight: 600; }

/* ----------------------------- Page heads ----------------------------- */
.page-head { text-align: center; max-width: 660px; margin: 8px auto 44px; }
.page-head.left { text-align: left; margin-left: 0; }
.page-title { font-size: clamp(2.1rem, 4.6vw, 3.1rem); letter-spacing: 0.01em; }
.page-lede { color: var(--warm-gray); font-size: 1.05rem; margin: 14px auto 0; max-width: 580px; }
.page-head.left .page-lede { margin-left: 0; }

/* =========================================================
   SHOP / CATALOG (also used for "you may also like")
   ========================================================= */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 40px;
}
.filter-btn {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--heather);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.25s var(--ease, ease), color 0.25s var(--ease, ease), transform 0.25s var(--ease, ease);
}
.filter-btn:hover { transform: translateY(-2px); border-color: var(--amethyst); }
.filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--amethyst), var(--plum));
  color: var(--white);
  border-color: transparent;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.group-label {
  grid-column: 1 / -1;
  margin: 8px 0 -6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone);
}
.group-label h2 { font-size: 1.8rem; }
.group-label .group-meta { color: var(--warm-gray); font-size: 0.9rem; font-weight: 500; }

/* A catalog card is a link wrapping the same visual as the homepage card */
.shop-card {
  background: var(--white);
  border-radius: var(--radius, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(74,59,99,0.06));
  border: 1px solid rgba(185,168,208,0.28);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease, ease), box-shadow 0.35s var(--ease, ease);
}
.shop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md, 0 10px 30px rgba(74,59,99,0.10)); }
.shop-card:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 3px; }
.shop-card .card-swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--heather), var(--amethyst));
}
.shop-card .card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-card .card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  color: var(--plum);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.shop-card .card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.shop-card .card-name { font-family: var(--font-head, serif); font-size: 1.26rem; font-weight: 600; color: var(--plum); line-height: 1.15; overflow-wrap: anywhere; }
.shop-card .card-note { color: var(--warm-gray); font-size: 0.85rem; margin: 6px 0 14px; flex: 1; }
.shop-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-card .card-price { font-weight: 700; color: var(--amethyst); font-size: 0.96rem; }
.shop-card .card-view {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--plum);
  background: var(--stone);
  border-radius: 999px;
  padding: 7px 14px;
  transition: background 0.25s var(--ease, ease), color 0.25s var(--ease, ease);
}
.shop-card:hover .card-view { background: var(--amethyst); color: var(--white); }

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.pd-media {
  position: sticky;
  top: 92px;
}
.pd-hero {
  position: relative;
  border-radius: var(--radius-lg, 28px);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(74,59,99,0.14));
  background: linear-gradient(140deg, var(--heather), var(--amethyst));
  aspect-ratio: 1;
}
.pd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,0.88);
  color: var(--plum);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pd-info { padding-top: 4px; }
.pd-name { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.08; margin-bottom: 8px; }
.pd-tagline { color: var(--amethyst); font-size: 1.12rem; font-family: var(--font-head, serif); font-style: italic; margin: 0 0 18px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 0 0 24px; }
.pd-price { font-size: 1.9rem; font-weight: 700; color: var(--plum); font-family: var(--font-head, serif); }
.pd-price-note { color: var(--warm-gray); font-size: 0.86rem; }

.pd-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(126,107,166,0.12), rgba(185,168,208,0.20));
  border: 1px solid rgba(185,168,208,0.5);
  color: var(--plum);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 0 26px;
}
.pd-promo .promo-ico { font-size: 1rem; }

/* size + qty controls */
.pd-controls { display: grid; gap: 22px; margin: 0 0 26px; }
.pd-field-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 12px;
}
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt {
  cursor: pointer;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--heather);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 96px;
  text-align: center;
  transition: border-color 0.25s var(--ease, ease), background 0.25s var(--ease, ease), transform 0.2s var(--ease, ease);
}
.size-opt:hover { transform: translateY(-2px); border-color: var(--amethyst); }
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt .size-label { display: block; }
.size-opt .size-price { display: block; font-size: 0.8rem; font-weight: 500; color: var(--warm-gray); margin-top: 2px; }
.size-opt.selected {
  border-color: var(--amethyst);
  background: linear-gradient(135deg, rgba(126,107,166,0.10), rgba(185,168,208,0.18));
}
.size-opt.selected .size-price { color: var(--amethyst); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--heather);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}
.qty-stepper button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--plum);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease, ease), color 0.2s var(--ease, ease);
}
.qty-stepper button:hover { background: var(--stone); color: var(--amethyst); }
.qty-stepper button:disabled { opacity: 0.4; cursor: default; }
.qty-stepper input {
  width: 48px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
  background: transparent;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 30px; }
.pd-actions .btn { padding: 15px 34px; font-size: 1rem; }

.pd-section { margin: 0 0 26px; padding-top: 24px; border-top: 1px solid var(--stone); }
.pd-section h3 {
  font-family: var(--font-head, serif);
  font-size: 1.35rem;
  color: var(--plum);
  margin: 0 0 12px;
}
.pd-section p { color: var(--charcoal); margin: 0; }
.pd-list { display: grid; gap: 8px; }
.pd-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--charcoal);
  font-size: 0.96rem;
}
.pd-list li::before { content: "·"; color: var(--amethyst); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.benefit-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.benefit-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.5);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--plum);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(74,59,99,0.06));
}
.scent-note-box {
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.35);
  border-radius: var(--radius, 18px);
  padding: 18px 22px;
  color: var(--charcoal);
}
.scent-note-box .scent-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amethyst);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* "You may also like" */
.related { margin-top: 84px; }
.related h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); text-align: center; margin-bottom: 32px; }

/* =========================================================
   CART
   ========================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.cart-lines { display: grid; gap: 16px; }
.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.28);
  border-radius: var(--radius, 18px);
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(74,59,99,0.06));
}
.cart-thumb {
  width: 92px; height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--heather), var(--amethyst));
  flex-shrink: 0;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { min-width: 0; }
.cart-line-name { font-family: var(--font-head, serif); font-size: 1.18rem; font-weight: 600; color: var(--plum); line-height: 1.15; }
.cart-line-meta { color: var(--warm-gray); font-size: 0.84rem; margin-top: 3px; }
.cart-line-controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.cart-line .qty-stepper { transform: scale(0.92); transform-origin: left center; }
.cart-remove {
  background: none;
  border: none;
  color: var(--warm-gray);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.25s var(--ease, ease);
}
.cart-remove:hover { color: var(--plum); text-decoration: underline; }
.cart-line-right { text-align: right; }
.cart-line-total { font-weight: 700; color: var(--plum); font-size: 1.05rem; white-space: nowrap; }

.cart-summary {
  position: sticky;
  top: 92px;
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.35);
  border-radius: var(--radius-lg, 28px);
  padding: 28px 26px;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(74,59,99,0.10));
}
.cart-summary h2 { font-size: 1.6rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.96rem; color: var(--charcoal); }
.summary-row.discount { color: var(--amethyst); font-weight: 600; }
.summary-row.total {
  border-top: 1px solid var(--stone);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum);
}
.summary-note { color: var(--warm-gray); font-size: 0.8rem; margin: 4px 0 18px; }
.cart-summary .btn-primary { width: 100%; padding: 15px; font-size: 1rem; }
.cart-secure { text-align: center; color: var(--warm-gray); font-size: 0.78rem; margin: 14px 0 0; }
.cart-error {
  background: rgba(197,48,48,0.08);
  border: 1px solid rgba(197,48,48,0.25);
  color: #9B2C2C;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  margin: 0 0 16px;
}

/* Empty state (cart + admin + missing catalog) */
.empty-state {
  text-align: center;
  max-width: 460px;
  margin: 40px auto;
  padding: 48px 28px;
  background: var(--white);
  border: 1px dashed var(--heather);
  border-radius: var(--radius-lg, 28px);
}
.empty-state .empty-ico { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.empty-state h2 { font-size: 1.7rem; margin-bottom: 10px; }
.empty-state p { color: var(--warm-gray); margin: 0 0 22px; }

/* =========================================================
   SUCCESS
   ========================================================= */
.success-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 24px;
}
.success-mark {
  width: 92px; height: 92px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--amethyst), var(--plum));
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(74,59,99,0.14));
}
.success-mark svg { width: 44px; height: 44px; }
.success-wrap h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 14px; }
.success-wrap p { color: var(--warm-gray); font-size: 1.06rem; margin: 0 auto 12px; max-width: 480px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* =========================================================
   FORMS (contact)
   ========================================================= */
.form-card {
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.35);
  border-radius: var(--radius-lg, 28px);
  padding: 36px 34px;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(74,59,99,0.10));
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.field .req { color: var(--amethyst); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.25s var(--ease, ease), background 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237E6BA6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amethyst);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(126,107,166,0.16);
}
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn-primary { padding: 15px 36px; }
.form-msg { font-size: 0.94rem; font-weight: 600; }
.form-msg.ok { color: var(--amethyst); }
.form-msg.err { color: #9B2C2C; }
.form-status-card {
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.95rem;
  margin-top: 22px;
  display: none;
}
.form-status-card.show { display: block; }
.form-status-card.ok { background: rgba(126,107,166,0.10); border: 1px solid rgba(126,107,166,0.35); color: var(--plum); }
.form-status-card.err { background: rgba(197,48,48,0.08); border: 1px solid rgba(197,48,48,0.25); color: #9B2C2C; }

.contact-aside { display: grid; gap: 18px; align-content: start; }
.contact-info-card {
  background: linear-gradient(135deg, var(--plum), var(--amethyst));
  color: var(--cream);
  border-radius: var(--radius-lg, 28px);
  padding: 30px 28px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.contact-info-card p { color: rgba(250,248,251,0.86); font-size: 0.96rem; margin: 0 0 8px; }
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }

/* =========================================================
   ADMIN
   ========================================================= */
.admin-gate { max-width: 420px; margin: 60px auto; }
.admin-gate .form-card { padding: 32px 30px; }
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.admin-meta { color: var(--warm-gray); font-size: 0.9rem; }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 9px 18px !important; font-size: 0.84rem !important; }
.contacts-list { display: grid; gap: 16px; }
.contact-card {
  background: var(--white);
  border: 1px solid rgba(185,168,208,0.3);
  border-radius: var(--radius, 18px);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(74,59,99,0.06));
}
.contact-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.contact-card-name { font-family: var(--font-head, serif); font-size: 1.3rem; font-weight: 600; color: var(--plum); }
.contact-card-subject {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amethyst);
  background: rgba(126,107,166,0.10);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 4px;
}
.contact-card-when { color: var(--warm-gray); font-size: 0.82rem; white-space: nowrap; }
.contact-card-row { font-size: 0.92rem; color: var(--charcoal); margin: 4px 0; }
.contact-card-row a { color: var(--amethyst); font-weight: 600; }
.contact-card-msg {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stone);
  color: var(--charcoal);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2000;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--plum);
  color: var(--cream);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(74,59,99,0.14));
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease, ease), transform 0.35s var(--ease, ease);
}
.toast.in { opacity: 1; transform: translateY(0); }
.toast .toast-ico {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
}
.toast .toast-ico svg { width: 16px; height: 16px; }
.toast a { color: var(--heather); font-weight: 700; text-decoration: underline; pointer-events: auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .pd-media { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page { padding: 28px 18px 72px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-line-right { grid-column: 1 / -1; text-align: left; padding-top: 4px; border-top: 1px solid var(--stone); margin-top: 4px; }
  .shop-card .card-name { font-size: 1.12rem; }
}
@media (max-width: 420px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .pd-actions .btn { width: 100%; }
  .success-actions .btn { width: 100%; }
}

/* ============================================================
   Cart · Contact · Success · Admin  (appended)
   ============================================================ */
.page-title { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.6rem); color: var(--plum); font-weight: 600; margin: 6px 0 28px; }

/* ---- Cart ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-row { display: grid; grid-template-columns: 78px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--stone); }
.cart-thumb { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; background: var(--stone); }
.cart-row-info { display: flex; flex-direction: column; gap: 3px; }
.cart-row-name { font-family: var(--font-head); font-size: 1.18rem; color: var(--plum); text-decoration: none; font-weight: 600; }
.cart-row-name:hover { color: var(--amethyst); }
.cart-row-size { font-size: 0.82rem; color: var(--warm-gray); }
.cart-remove { align-self: flex-start; background: none; border: none; color: var(--warm-gray); font-size: 0.78rem; cursor: pointer; padding: 2px 0; text-decoration: underline; font-family: var(--font-body); }
.cart-remove:hover { color: var(--accent, #b14b4b); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--stone); border-radius: 999px; overflow: hidden; }
.cart-qty button { width: 30px; height: 32px; border: none; background: var(--cream); color: var(--plum); font-size: 1rem; cursor: pointer; }
.cart-qty button:hover { background: var(--stone); }
.cart-qty input { width: 38px; height: 32px; border: none; text-align: center; font-family: var(--font-body); font-size: 0.92rem; -moz-appearance: textfield; }
.cart-qty input::-webkit-outer-spin-button, .cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line { font-weight: 700; color: var(--charcoal); min-width: 64px; text-align: right; }
.cart-summary { background: var(--white); border: 1px solid rgba(185,168,208,0.3); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.cart-summary h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--plum); margin: 0 0 16px; }
.cs-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--charcoal); padding: 8px 0; }
.cs-discount { color: var(--amethyst); font-weight: 600; }
.cs-total { border-top: 1px solid var(--stone); margin-top: 6px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; color: var(--plum); }
.cart-checkout { width: 100%; margin-top: 16px; }
.cart-continue { width: 100%; margin-top: 10px; text-align: center; }
.cart-note { margin: 12px 0 0; font-size: 0.85rem; }
.cart-note.err { color: #b14b4b; }
.cart-secure { margin: 14px 0 0; text-align: center; font-size: 0.76rem; color: var(--warm-gray); }

/* ---- Contact ---- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro p { color: var(--charcoal); line-height: 1.7; }
.contact-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 10px; color: var(--charcoal); font-size: 0.94rem; }
.contact-form { background: var(--white); border: 1px solid rgba(185,168,208,0.3); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--plum); letter-spacing: 0.01em; }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 0.95rem; color: var(--charcoal); padding: 11px 13px; border: 1px solid var(--stone); border-radius: 10px; background: var(--cream); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amethyst); box-shadow: 0 0 0 3px rgba(126,107,166,0.15); }
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-status { margin: 14px 0 0; font-size: 0.9rem; padding: 10px 14px; border-radius: 10px; }
.form-status.ok { background: rgba(126,107,166,0.12); color: var(--plum); }
.form-status.err { background: rgba(177,75,75,0.1); color: #b14b4b; }

/* ---- Thank you ---- */
.thankyou { max-width: 560px; margin: 24px auto; text-align: center; padding: 16px; }
.ty-badge { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: linear-gradient(135deg, var(--amethyst), var(--plum)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-md); }
.ty-badge svg { width: 36px; height: 36px; }
.ty-lede { color: var(--charcoal); font-size: 1.05rem; line-height: 1.6; }
.ty-order { font-weight: 700; color: var(--amethyst); margin: 14px 0; letter-spacing: 0.02em; }
.ty-email { color: var(--warm-gray); font-size: 0.92rem; }
.ty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---- Admin ---- */
.admin { max-width: 880px; }
.admin-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.admin-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.admin-head h1 { font-family: var(--font-head); font-size: 1.7rem; color: var(--plum); margin: 0; }
.admin-sub { color: var(--warm-gray); font-size: 0.9rem; margin: 2px 0 0; }
.admin-gate { max-width: 420px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.admin-gate label { font-weight: 600; color: var(--plum); font-size: 0.85rem; }
.admin-gate-row { display: flex; gap: 10px; margin-top: 8px; }
.admin-gate-row input { flex: 1; padding: 11px 13px; border: 1px solid var(--stone); border-radius: 10px; font-family: var(--font-body); }
.admin-err { color: #b14b4b; font-size: 0.85rem; margin-top: 10px; }
.admin-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--stone); padding-bottom: 12px; }
.admin-tab { background: none; border: none; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--warm-gray); cursor: pointer; padding: 6px 4px; }
.admin-tab.active { color: var(--plum); }
.tab-count { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--stone); color: var(--plum); font-size: 0.72rem; margin-left: 4px; }
.admin-refresh { margin-left: auto; padding: 6px 14px; font-size: 0.82rem; }
.admin-card { background: var(--white); border: 1px solid var(--stone); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.admin-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-card-top strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum); }
.admin-amt { font-weight: 700; color: var(--amethyst); }
.admin-tag { background: var(--stone); color: var(--plum); font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.admin-meta { color: var(--warm-gray); font-size: 0.85rem; margin: 8px 0 0; }
.admin-meta a { color: var(--amethyst); }
.admin-items, .admin-msg { color: var(--charcoal); font-size: 0.9rem; margin: 10px 0 0; line-height: 1.5; }
.admin-empty { color: var(--warm-gray); text-align: center; padding: 40px; }

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .cart-row { grid-template-columns: 60px 1fr; grid-template-areas: "thumb info" "qty line"; row-gap: 10px; }
  .cart-thumb { width: 60px; height: 60px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ── prices: clean lining figures everywhere (Cormorant defaults to old-style) ── */
.pd-price, .pd-price-note, .card-price, .cart-line, .cs-line, .cs-line span, .cs-total,
.size-price, .admin-amt, .ty-order, .price, .money, .group-meta {
  font-family: var(--font-body) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
/* free-shipping progress bar */
.fs-bar { background: rgba(126,107,166,0.08); border:1px solid rgba(126,107,166,0.25); border-radius:12px; padding:12px 14px; margin-bottom:14px; font-size:0.85rem; color:var(--plum); }
.fs-bar.unlocked { background: rgba(126,107,166,0.16); font-weight:600; text-align:center; }
.fs-msg { margin-bottom:8px; }
.fs-track { height:7px; border-radius:999px; background:var(--stone); overflow:hidden; }
.fs-fill { height:100%; background:linear-gradient(90deg,var(--heather),var(--amethyst)); transition:width .4s ease; }
