/* ============================================================
   Me — global styles
   Sister shop to LouRita. Same family aesthetic — warm cream +
   charcoal — with a deeper teal as the primary accent (the
   "Me" pair-tone from the LouRita & Me landing page).
   ============================================================ */

:root {
  --cream:    #faf5ec;
  --cream-2:  #f3ebda;
  --paper:    #fff;
  --ink:      #1f1a17;
  --ink-soft: #5a4f47;
  --line:     #e3d8c4;

  --accent:    #3f6b6a;        /* teal — Me primary */
  --accent-d:  #2c4f4e;
  --accent-2:  #9ab7b5;        /* soft hover */
  --gold:      #c69a4a;
  --terracotta:#c25a3e;        /* LouRita sister tone, used sparingly */

  --radius:   14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(31,26,23,.06);
  --shadow:    0 12px 32px rgba(31,26,23,.10);
  --shadow-lg: 0 24px 60px rgba(31,26,23,.16);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter",    "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.3; }

p { margin: 0 0 1em; }
a { color: var(--accent-d); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.container-narrow {
  width: min(740px, 92vw);
  margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__brand img {
  height: 44px;
  width: auto;
}
.nav__brand:hover { color: var(--accent-d); }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__cart:hover { background: var(--accent-d); color: var(--cream); }
.nav__cart-count {
  background: var(--accent);
  color: var(--cream);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 2px;
}

.nav__toggle {
  display: none;
  background: none; border: none;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 760px) {
  .nav__links, .nav__cart { display: none; }
  .nav__toggle { display: inline-block; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__cart { display: inline-flex; margin: 0 20px 20px; }
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 80px;
  text-align: center;
}
.hero__logo {
  display: block;
  margin: 0 auto 28px;
  max-width: min(380px, 60vw);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(31,26,23,.10));
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 14px;
}
.hero__title {
  margin: 0 auto 18px;
  max-width: 16ch;
}
.hero__sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero__cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s, background 0.12s, color 0.12s, border-color 0.12s;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: var(--cream);
}
.btn--primary:hover { background: var(--accent-d); color: var(--cream); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--small { padding: 8px 16px; font-size: 12px; }

/* ===== Section ===== */
section { padding: 60px 0; }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 12px;
}
.section-head h2 { margin: 0 0 10px; }
.section-head p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
}

/* ===== Product Grid ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  overflow: hidden;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product:hover .product__media img { transform: scale(1.04); }
.product__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cream);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product__badge--digital { background: var(--accent); color: var(--cream); }
.product__badge--free    { background: var(--gold); color: var(--cream); }

.product__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product__title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--ink);
}
.product__desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  flex: 1;
}
.product__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.product__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.product__price--free { color: var(--accent-d); font-style: italic; }

/* ===== Product detail ===== */
.detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 60px 0;
}
@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
}
.detail__media {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__body h1 { margin: 6px 0 16px; }
.detail__price {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent-d);
  margin: 0 0 24px;
}
.detail__desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 28px; }
.detail__buy { margin-top: 6px; }
.detail__paypal {
  margin-top: 18px;
  max-width: 360px;
  min-height: 48px;
}
.detail__meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.detail__meta dt { font-weight: 600; color: var(--ink); display: inline; }
.detail__meta dd { display: inline; margin: 0 16px 0 4px; }

/* ===== Featured + value props ===== */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-prop {
  text-align: center;
  padding: 0 12px;
}
.value-prop__icon { font-size: 28px; margin-bottom: 6px; }
.value-prop h3 { font-size: 18px; margin: 4px 0 6px; }
.value-prop p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===== Cart ===== */
.cart-page { padding: 60px 0; }
.cart {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) {
  .cart { grid-template-columns: 1fr; gap: 28px; }
}
.cart__items {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-row__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  object-fit: cover;
}
.cart-row__title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 4px;
}
.cart-row__meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.cart-row__price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}
.cart-row__remove {
  display: block;
  margin-top: 4px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.cart-row__remove:hover { color: var(--terracotta); }

.cart__summary {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  align-self: start;
  position: sticky;
  top: 80px;
}
.cart__summary h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 16px;
}
.cart__line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
}
.cart__total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 22px;
}
.cart__paypal {
  margin-top: 14px;
  min-height: 48px;
}
.cart__note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.5;
}

/* ===== Thanks page ===== */
.thanks {
  padding: 80px 0;
  text-align: center;
}
.thanks h1 { max-width: 18ch; margin: 0 auto 18px; }
.thanks__sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.thanks__list {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  max-width: 640px;
  margin: 0 auto 28px;
  overflow: hidden;
}
.thanks__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.thanks__item:last-child { border-bottom: none; }
.thanks__item img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream-2);
}
.thanks__item-title {
  font-family: var(--font-display);
  font-size: 17px;
}
.thanks__order {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 24px 0 0;
}

/* ===== About ===== */
.about-hero {
  text-align: center;
  padding: 80px 0 40px;
}
.about-hero img {
  max-width: 220px;
  margin: 0 auto 28px;
}
.about-body {
  max-width: 64ch;
  margin: 0 auto 60px;
  font-size: 17px;
  color: var(--ink);
}
.about-body p { margin-bottom: 1.2em; }
.about-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: var(--accent-d);
}

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 80px 0;
}
.cta-strip h2 { color: var(--cream); margin: 0 0 14px; }
.cta-strip p { color: rgba(250,245,236,0.7); max-width: 60ch; margin: 0 auto 28px; font-size: 17px; }
.cta-strip .btn--primary { background: var(--accent-2); color: var(--ink); }
.cta-strip .btn--primary:hover { background: var(--cream); color: var(--ink); }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 12px; }
.footer__brand p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.footer__col a {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer__col a:hover { color: var(--accent-d); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== Loading / empty states ===== */
.skeleton {
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--cream) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty h3 { font-size: 22px; margin-bottom: 8px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== PayPal config notice ===== */
.paypal-notice {
  background: #fff8e9;
  border: 1px solid #e8d3a0;
  color: #5a4f47;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.paypal-notice code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
