/* =========================================================================
 * shop.css — public storefront (customer-facing).
 * Extends the base app.css design tokens (--brand-primary, --brand-primary-rgb,
 * --font-sans, --surface-*, --text-*, --shadow-*). Loaded only by shopLayout.
 * ========================================================================= */

:root {
  --shop-serif: 'Playfair Display', Georgia, serif;
  --shop-ink: #0f172a;
  --shop-ink-soft: #4b5563;
  --shop-hairline: #e5e7eb;
  --shop-cream: #faf8f5;
}

.shop-body {
  background: #fff;
  color: var(--shop-ink);
}
.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 992px) {
  .shop-container { padding: 0 2rem; }
}

/* -------------------------------------------------------------------------
 * Top strip + header
 * ------------------------------------------------------------------------- */
.shop-topstrip {
  background: var(--shop-ink);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .5rem 0;
}
.shop-topstrip__link { color: #fff; text-decoration: underline; }

.shop-header {
  background: #fff;
  border-bottom: 1px solid var(--shop-hairline);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: saturate(180%) blur(8px);
}
.shop-header__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}
.shop-header__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--shop-ink);
}
.shop-header__brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}
.shop-header__brand-name {
  font-family: var(--shop-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.shop-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  gap: .5rem;
}
.shop-search .form-control {
  border-radius: 999px;
  padding-left: 1rem;
}
.shop-search .btn {
  border-radius: 999px;
  padding-left: 1rem; padding-right: 1rem;
}
.shop-search--mobile { padding-bottom: 1rem; }

.shop-header__nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.shop-header__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 8px;
  color: var(--shop-ink);
  text-decoration: none;
  font-weight: 500;
  transition: background .15s ease;
}
.shop-header__link:hover {
  background: var(--shop-cream);
  color: var(--brand-primary);
}
.shop-header__cart { position: relative; }
.shop-header__cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.shop-categories {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: 0 0 .75rem;
  scrollbar-width: none;
}
.shop-categories::-webkit-scrollbar { display: none; }
.shop-categories__link {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  color: var(--shop-ink-soft);
  text-decoration: none;
  font-size: .875rem;
  border: 1px solid var(--shop-hairline);
  white-space: nowrap;
  transition: all .15s ease;
}
.shop-categories__link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), .05);
}

/* -------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.shop-hero {
  background: linear-gradient(135deg, var(--shop-cream) 0%, #fff 60%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 992px) {
  .shop-hero { padding: 4.5rem 4rem; }
}
.shop-hero__inner { max-width: 620px; }
.shop-hero__eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: .75rem;
}
.shop-hero__title {
  font-family: var(--shop-serif);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--shop-ink);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.shop-hero__lede {
  color: var(--shop-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.shop-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.shop-hero__cta .btn {
  border-radius: 999px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* -------------------------------------------------------------------------
 * Section headers, product grid + card
 * ------------------------------------------------------------------------- */
.shop-section { margin: 2.5rem 0; }
.shop-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.shop-section__title {
  font-family: var(--shop-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--shop-ink);
  margin: 0;
  letter-spacing: -.01em;
}
.shop-section__link {
  color: var(--shop-ink-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.shop-section__link:hover { color: var(--brand-primary); }

.shop-page-title {
  font-family: var(--shop-serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0 1.5rem;
  letter-spacing: -.01em;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}
.shop-card:hover { transform: translateY(-2px); color: inherit; }
.shop-card__media {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface-muted);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: .8rem;
}
.shop-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.shop-card:hover .shop-card__media img { transform: scale(1.03); }
.shop-card__media-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  font-size: 2rem;
}
.shop-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid var(--shop-hairline);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 600;
}
.shop-card__badge--muted { background: rgba(0,0,0,.7); color: #fff; border: 0; }
.shop-card__eyebrow {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shop-ink-soft);
  margin-bottom: .25rem;
}
.shop-card__title {
  font-weight: 600;
  color: var(--shop-ink);
  margin-bottom: .25rem;
  line-height: 1.35;
}
.shop-card__price {
  color: var(--shop-ink);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Product detail
 * ------------------------------------------------------------------------- */
.shop-breadcrumb {
  color: var(--shop-ink-soft);
  font-size: .875rem;
}
.shop-breadcrumb a {
  color: var(--shop-ink-soft);
  text-decoration: none;
}
.shop-breadcrumb a:hover { color: var(--brand-primary); }

.shop-gallery__main {
  aspect-ratio: 1/1;
  background: var(--surface-muted);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.shop-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shop-gallery__main--empty {
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  font-size: 4rem;
}
.shop-gallery__thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-gallery__thumbs::-webkit-scrollbar { display: none; }
.shop-gallery__thumb {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface-muted);
}
.shop-gallery__thumb.active { border-color: var(--brand-primary); }
.shop-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.shop-detail__eyebrow {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 600;
}
.shop-detail__title {
  font-family: var(--shop-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: .5rem 0 .5rem;
}
.shop-detail__price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--shop-ink);
  margin-bottom: 1.25rem;
}
.shop-detail__desc {
  color: var(--shop-ink-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.shop-detail__group { margin-bottom: 1.25rem; }
.shop-detail__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--shop-ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.shop-detail__swatches, .shop-detail__sizes {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.shop-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--shop-hairline);
  cursor: pointer;
  padding: 0;
  transition: outline-color .15s ease, transform .1s ease;
}
.shop-swatch:hover { transform: scale(1.05); }
.shop-swatch.is-active { outline-color: var(--brand-primary); outline-width: 2px; }
.shop-size {
  min-width: 46px;
  padding: .45rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--shop-hairline);
  background: #fff;
  color: var(--shop-ink);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.shop-size:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.shop-size.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}
.shop-detail__meta {
  padding: 1rem;
  background: var(--shop-cream);
  border-radius: 12px;
  font-size: .875rem;
  color: var(--shop-ink-soft);
  margin-top: 1.5rem;
}
.shop-detail__meta div { margin-bottom: .25rem; }
.shop-detail__perks {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--shop-hairline);
  font-size: .875rem;
  color: var(--shop-ink-soft);
}
.shop-detail__perks i {
  color: var(--brand-primary);
  margin-right: .35rem;
}

/* -------------------------------------------------------------------------
 * Cart + checkout
 * ------------------------------------------------------------------------- */
.shop-cart-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface-muted);
}
.shop-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-thumb__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
}

.shop-summary {
  position: sticky;
  top: 5.5rem;
}

/* -------------------------------------------------------------------------
 * Confirmation, empty state, auth
 * ------------------------------------------------------------------------- */
.shop-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #ecfdf5;
  color: #065f46;
  font-size: 1.75rem;
  margin: 0 auto;
}
.shop-empty {
  text-align: center;
  color: var(--shop-ink-soft);
  padding: 2.5rem 1rem;
}

.shop-auth {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.shop-auth__card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--shop-hairline);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, .08);
}
.shop-auth__title {
  font-family: var(--shop-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.shop-auth__lede { color: var(--shop-ink-soft); margin-bottom: 1.5rem; }
.shop-auth__alt {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--shop-ink-soft);
}
.shop-auth__alt a { color: var(--brand-primary); }
.shop-auth__divider {
  position: relative;
  text-align: center;
  color: var(--shop-ink-soft);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 1rem 0 1.25rem;
}
.shop-auth__divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--shop-hairline);
  z-index: 0;
}
.shop-auth__divider span {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0 .75rem;
}

/* -------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.shop-main { padding-bottom: 4rem; }
.shop-footer {
  background: var(--shop-ink);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.shop-footer h6 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}
.shop-footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  line-height: 2;
}
.shop-footer a:hover { color: #fff; }
.shop-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-family: var(--shop-serif);
  font-size: 1.25rem;
}
.shop-footer__brand img { height: 28px; }
.shop-footer__copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
}
