/* ============================================================
   Studio Sammii — Main stylesheet
   Light mauve brand theme.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap");

:root {
  --bg:           #f7f3f8;
  --bg-raised:    #ede6f0;
  --bg-card:      #ffffff;
  --bg-hover:     #e8dff0;

  --border:       rgba(155, 130, 168, 0.18);
  --border-warm:  rgba(155, 130, 168, 0.4);

  --text:         #2d1f35;
  --text-muted:   #7a6080;
  --text-faint:   #b0a0b8;

  --brand:        #9b7eaa;
  --brand-light:  #c4a8d4;
  --brand-dark:   #6b4f7a;
  --brand-dim:    rgba(155, 126, 170, 0.12);
  --brand-glow:   rgba(155, 126, 170, 0.08);

  --radius:       6px;
  --radius-lg:    12px;
  --radius-pill:  100px;

  --font-sans:    "Jost", system-ui, sans-serif;


  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  --nav-bg:       rgba(247, 243, 248, 0.88);
  --max-w:        1200px;
  --gutter:       clamp(1.25rem, 5vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #1a1520;
    --bg-raised:    #221c28;
    --bg-card:      #271f2e;
    --bg-hover:     #2e2636;
    --border:       rgba(196, 168, 212, 0.12);
    --border-warm:  rgba(196, 168, 212, 0.28);
    --text:         #f0ecf5;
    --text-muted:   #c4b8ca;
    --text-faint:   #7a6080;
    --brand:        #c4a8d4;
    --brand-light:  #ddd0e8;
    --brand-dark:   #9b7eaa;
    --brand-dim:    rgba(196, 168, 212, 0.12);
    --brand-glow:   rgba(196, 168, 212, 0.06);
    --nav-bg:       rgba(26, 21, 32, 0.92);
  }

  .hero {
    background: linear-gradient(160deg, #1a1520 0%, #221c28 100%);
  }

  .hero::before {
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(155, 100, 180, 0.12) 0%, transparent 70%);
  }

  .notify-section {
    background: linear-gradient(180deg, #1a1520 0%, #221c28 100%);
  }

  .footer {
    background: #221c28;
  }
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100dvh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 300;
}

.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.text-brand  { color: var(--brand); }

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-studio {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__logo-sammii {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--brand-dark);
  transition: color 0.2s;
}

.nav__logo:hover .nav__logo-sammii {
  color: var(--brand);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover, .nav__link.active {
  color: var(--brand-dark);
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 12vw, 8rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-raised) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(196, 168, 212, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero__label {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
  background: var(--brand-dim);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-warm);
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--brand-dark);
  margin-bottom: 1.25rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero__sub {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 44ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Section header
   ---------------------------------------------------------- */
.section-header {
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
  margin-bottom: 2rem;
}

.section-header__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-header__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--text);
}

/* ----------------------------------------------------------
   Filter tabs
   ---------------------------------------------------------- */
.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-rows .filter-bar {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--border-warm);
  color: var(--brand-dark);
}

.filter-btn.active {
  background: var(--brand-dim);
  border-color: var(--border-warm);
  color: var(--brand-dark);
}

/* ----------------------------------------------------------
   Product grid & card
   ---------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: var(--border-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 126, 170, 0.12);
}

.product-card__image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.product-card:hover .product-card__image-wrap img { transform: scale(1.03); }

.product-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 2rem;
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.product-card__badge--coming-soon {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-warm);
  color: var(--brand-dark);
  backdrop-filter: blur(8px);
}

.product-card__badge--digital {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(100, 180, 160, 0.3);
  color: #4a9e88;
  backdrop-filter: blur(8px);
}

.product-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-card__brand {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.product-card__name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.product-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.15rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.product-card__price {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
}

.product-card__action {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}

.product-card:hover .product-card__action { color: var(--brand); }

/* ----------------------------------------------------------
   Empty state
   ---------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding-block: 4rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-dark);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107, 79, 122, 0.3);
}

.btn--outline {
  border: 1.5px solid var(--brand-dark);
  color: var(--brand-dark);
  background: transparent;
}

.btn--outline:hover {
  background: var(--brand-dim);
}

.btn--ghost {
  color: var(--text-muted);
}

.btn--ghost:hover { color: var(--brand-dark); }

.btn:disabled, .btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ----------------------------------------------------------
   Brands section
   ---------------------------------------------------------- */
.brands-section {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--border);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.brand-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.brand-card__name {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: var(--brand-dark);
}

.brand-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 38ch;
}

/* ----------------------------------------------------------
   Notify section
   ---------------------------------------------------------- */
.notify-section {
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%);
}

.notify-section__title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 300;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.notify-section__sub {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.notify-input::placeholder { color: var(--text-faint); }

.notify-input:focus {
  outline: none;
  border-color: var(--brand);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.footer__links { display: flex; gap: 1.5rem; }

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--brand-dark); }

/* ----------------------------------------------------------
   Skeleton
   ---------------------------------------------------------- */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-hover) 50%, var(--bg-raised) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

/* ----------------------------------------------------------
   Success page
   ---------------------------------------------------------- */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80dvh;
  gap: 1.5rem;
  padding: var(--gutter);
}

.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand-dim);
  border: 1.5px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.success-page h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--brand-dark);
}

.success-page p { color: var(--text-muted); max-width: 36ch; font-size: 0.9375rem; }

/* ----------------------------------------------------------
   Product detail
   ---------------------------------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (max-width: 640px) { .product-detail { grid-template-columns: 1fr; } }

.product-detail__image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-detail__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__info { display: flex; flex-direction: column; gap: 1.25rem; }

.product-detail__brand {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-detail__title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--brand-dark);
}

.product-detail__price { font-size: 1.375rem; font-weight: 700; color: var(--text); }

.product-detail__desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }

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

.tag {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-faint);
}

.product-detail__cta { margin-top: 0.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .nav__links { gap: 1.25rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav__links .nav__link:not(.nav__link--mobile-show) { display: none; }
}

/* ----------------------------------------------------------
   Layout: footer always at bottom
   ---------------------------------------------------------- */
body {
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ----------------------------------------------------------
   Cart drawer
   ---------------------------------------------------------- */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 199;
}
.cart-overlay.is-open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.cart-drawer__close {
  color: var(--text-muted);
  padding: 0.25rem;
  transition: color 0.2s;
  display: flex;
}
.cart-drawer__close:hover { color: var(--text); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-drawer__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}
.cart-drawer__total {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.875rem;
}
.cart-drawer__checkout {
  width: 100%;
  padding-block: 0.85rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-block: 3rem;
  color: var(--text-faint);
  font-size: 0.9375rem;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__opts {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: capitalize;
  margin-bottom: 0.4rem;
}
.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
}
.cart-item__qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.cart-item__qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.cart-item__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.cart-item__remove {
  color: var(--text-faint);
  padding: 0.2rem;
  flex-shrink: 0;
  transition: color 0.2s;
  display: flex;
}
.cart-item__remove:hover { color: var(--text-muted); }

/* Nav cart button */
.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem;
}
.nav-cart-btn:hover { color: var(--brand-dark); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  background: var(--brand);
  color: white;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding-inline: 3px;
  line-height: 1;
}

/* Toast */
.cart-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--brand-dark);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Colour variant image — always on white bg */
.variant-img-wrap {
  background: #fff;
  border-radius: 8px;
}
