/* GroundedHer Shop — self-hosted fonts, no photos (CSS-only covers, matching groundedher.com). */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}

:root {
  --sand: #F3EEE7;
  --oat: #E3D8CC;
  --sage: #C9D7C1;
  --rose: #D8B4A6;
  --rose-deep: #C08D7B;
  --rose-ink: #A97561;
  --earth: #4A3D36;
  --earth-soft: #7A5C48;
  --white: #FFFDFB;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;

  --content-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--earth-soft);
  background: var(--sand);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--earth);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
em { font-family: var(--font-heading); font-style: italic; font-weight: 500; }

p { margin: 0 0 1.1em; }

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.shop-header { background: var(--sand); border-bottom: 1px solid var(--oat); }
.shop-header .site-container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.shop-logo { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; color: var(--earth); }
.shop-logo img { height: 40px; width: auto; display: block; }
.shop-footer .shop-logo img { height: 34px; margin: 0 auto 10px; }
.shop-nav { display: flex; align-items: center; gap: 26px; }
.shop-nav a { font-size: 0.88rem; color: var(--earth-soft); }
.shop-nav a:hover { color: var(--earth); }
.cart-btn { background: none; border: none; cursor: pointer; color: var(--earth); font-size: 1.3rem; position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -10px; background: var(--rose-deep); color: #fff;
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; border-radius: 999px;
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: all .15s; }
.btn-rose { background: var(--rose-deep); color: #fff; }
.btn-rose:hover { background: var(--rose-ink); }
.btn-ink { background: var(--earth); color: #fff; }
.btn-ink:hover { opacity: .85; }
.btn-outline { background: transparent; border-color: var(--earth); color: var(--earth); }
.btn-outline:hover { background: var(--earth); color: #fff; }
.btn:disabled, .btn[disabled] { background: var(--oat); color: var(--earth-soft); cursor: default; }
.btn:disabled:hover { background: var(--oat); }

/* hero */
.shop-hero { padding: 56px 0 8px; text-align: center; }
.shop-eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-ink); font-weight: 600; margin-bottom: 12px; }
.mw-680 { max-width: 680px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

section { padding: 48px 0; }

/* product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white); border: 1px solid var(--oat); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-cover {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
.product-cover::before {
  content: ""; position: absolute; inset: -20% -20%; opacity: .5; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 60%);
}
.product-cover-label {
  position: relative; font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: var(--earth);
}
.cover-sand { background: linear-gradient(155deg, var(--oat), var(--sand)); }
.cover-sage { background: linear-gradient(155deg, var(--sage), var(--sand)); }
.cover-rose { background: linear-gradient(155deg, var(--rose), var(--oat)); }

.product-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card-meta { font-size: .78rem; color: var(--rose-ink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.product-card-body h3 { margin-bottom: 6px; }
.product-card-body p { font-size: .92rem; margin-bottom: 14px; flex: 1; }
.product-card-price { font-weight: 600; color: var(--earth); margin-bottom: 12px; }
.coming-soon-note { font-size: .82rem; color: var(--earth-soft); font-style: italic; margin-top: 6px; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .product-cover { aspect-ratio: 3 / 4; border-radius: 14px; }
.product-meta { font-size: .85rem; color: var(--rose-ink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.product-price { font-size: 1.5rem; color: var(--earth); font-weight: 600; margin-bottom: 18px; }
.product-detail ul { padding-left: 1.3em; }
.product-detail li { margin-bottom: .5em; }
.format-note { font-size: .85rem; font-style: italic; color: var(--earth-soft); margin-top: 22px; }

section.section-alt { background: var(--oat); }
.badges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 8px 0; }
.badge { text-align: center; font-size: .85rem; color: var(--earth-soft); }
.badge-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }

/* cart drawer */
#cart-drawer {
  position: fixed; top: 0; right: -420px; width: 380px; max-width: 92vw; height: 100vh;
  background: var(--white); box-shadow: -8px 0 30px rgba(74,61,54,.15); z-index: 200; transition: right .25s ease;
  display: flex; flex-direction: column; padding: 28px 24px;
}
#cart-drawer.open { right: 0; }
#cart-overlay { position: fixed; inset: 0; background: rgba(74,61,54,.3); z-index: 190; display: none; }
#cart-overlay.open { display: block; }
.cart-close { align-self: flex-end; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--earth); }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--oat); gap: 10px; }
.cart-item-remove { background: none; border: none; color: var(--rose-ink); cursor: pointer; font-size: .8rem; padding: 0; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; padding: 18px 0; font-size: 1.1rem; color: var(--earth); }
.cart-empty { color: var(--earth-soft); font-size: .9rem; padding: 20px 0; }

/* footer */
.shop-footer { background: var(--oat); padding: 44px 0 28px; }
.shop-footer .site-container { text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .82rem; margin-bottom: 16px; }
.footer-support { font-size: .82rem; color: var(--earth-soft); margin-bottom: 6px; }
.footer-copy { font-size: .76rem; color: var(--rose-ink); margin-top: 14px; }
