/* ============================================================
   YogaRises.com — Global Stylesheet
   Palette: white, soft green, light beige, light gray
   ============================================================ */

:root {
  --green: #7ba05b;
  --green-dark: #4a6b3a;
  --green-darker: #33502a;
  --beige: #f5f1e8;
  --beige-deep: #ece5d6;
  --gray-light: #f4f4f2;
  --gray-mid: #d9d9d4;
  --text: #2b3328;
  --text-soft: #5a6355;
  --white: #ffffff;
  --error: #b3261e;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 51, 40, 0.08);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--green-darker); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* Visible focus indicators (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-darker);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--beige { background: var(--beige); }
.section--gray { background: var(--gray-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--text-soft); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.15s ease;
  text-align: center;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--green-dark); }
.btn--outline:hover { background: var(--green-dark); color: #fff; }
.btn--light { background: #fff; color: var(--green-darker); border-color: #fff; }
.btn--light:hover { background: var(--beige); border-color: var(--beige); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-deep);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.3rem; color: var(--green-darker); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span em { font-style: normal; color: var(--green); }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; padding: 0.35rem 0.1rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green-dark); text-decoration: none; border-bottom: 2px solid var(--green); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); font-weight: 500; }
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--green-dark); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; padding: 0.4rem; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38, 51, 34, 0.62) 0%, rgba(38, 51, 34, 0.25) 60%, rgba(38, 51, 34, 0.05) 100%); }
.hero-content { max-width: 620px; padding: 5rem 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); margin-bottom: 1.8rem; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 700; color: #e6eedd; margin-bottom: 1rem; }

/* ---------- Cards / products ---------- */
.card { background: #fff; border: 1px solid var(--beige-deep); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43, 51, 40, 0.12); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--gray-light); }
.card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.card-body h3 a { color: var(--green-darker); }
.card-cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft); margin-bottom: 0.35rem; }
.card-price { font-weight: 700; color: var(--green-dark); font-size: 1.08rem; margin: 0.35rem 0 0.8rem; }
.card .btn { margin-top: auto; padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--beige); color: var(--green-darker); margin-bottom: 0.5rem; width: fit-content; }
.badge--out { background: #f3dedd; color: var(--error); }

/* ---------- Category tiles ---------- */
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow); }
.cat-tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform 0.35s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile-label { position: absolute; inset: auto 0 0 0; padding: 2rem 1.25rem 1.1rem; background: linear-gradient(180deg, transparent, rgba(38, 51, 34, 0.72)); color: #fff; font-weight: 700; font-size: 1.15rem; }
.cat-tile:hover { text-decoration: none; }

/* ---------- Feature / why choose ---------- */
.feature { text-align: center; padding: 1.6rem 1.2rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--beige-deep); }
.feature svg { width: 44px; height: 44px; margin-bottom: 0.9rem; }
.feature p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--green-darker); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: 3rem 2rem; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 1.6rem; }
.newsletter form { display: flex; gap: 0.6rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input[type="email"] { flex: 1 1 240px; padding: 0.8rem 1.1rem; border-radius: 999px; border: 2px solid transparent; }
.form-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.9rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--beige); padding: 3.5rem 0; text-align: center; }
.page-hero p { color: var(--text-soft); max-width: 640px; margin: 0 auto; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.2rem; align-items: start; }
.filters { background: var(--gray-light); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: 92px; }
.filters h2 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.filter-group { margin-bottom: 1.4rem; }
.filter-group legend, .filter-group > span { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.filter-group label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.92rem; padding: 0.18rem 0; color: var(--text-soft); }
.filters fieldset { border: none; margin: 0; padding: 0; }
.shop-toolbar { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.shop-toolbar input[type="search"] { flex: 1 1 220px; padding: 0.65rem 1rem; border: 1px solid var(--gray-mid); border-radius: 999px; }
.shop-toolbar select { padding: 0.65rem 1rem; border: 1px solid var(--gray-mid); border-radius: 999px; background: #fff; }
.results-count { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 1rem; }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--text-soft); }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-info .price { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); margin: 0.4rem 0 1rem; }
.product-meta { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.2rem; }
.product-meta span { display: inline-block; margin-right: 1.2rem; }
.stock { font-weight: 600; color: var(--green-dark); }
.stock--out { color: var(--error); }
.qty-row { display: flex; gap: 0.9rem; align-items: center; margin: 1.4rem 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--gray-mid); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: none; background: var(--gray-light); font-size: 1.2rem; }
.qty input { width: 56px; height: 42px; border: none; text-align: center; }
.details-block { margin-top: 2rem; }
.details-block details { border-bottom: 1px solid var(--beige-deep); padding: 0.4rem 0; }
.details-block summary { font-weight: 600; padding: 0.7rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.details-block summary::after { content: "+"; color: var(--green-dark); font-size: 1.2rem; }
.details-block details[open] summary::after { content: "−"; }
.details-block details div { padding: 0 0 1rem; color: var(--text-soft); }
.breadcrumbs { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.6rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: var(--gray-mid); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--beige-deep); }
.cart-item img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; }
.cart-item h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.cart-item .unit { color: var(--text-soft); font-size: 0.9rem; }
.cart-item-controls { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.link-btn { background: none; border: none; color: var(--green-dark); font-size: 0.88rem; text-decoration: underline; padding: 0; }
.cart-summary { background: var(--gray-light); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; padding: 0.45rem 0; color: var(--text-soft); }
.summary-row.total { border-top: 1px solid var(--gray-mid); margin-top: 0.6rem; padding-top: 0.9rem; font-weight: 800; color: var(--text); font-size: 1.15rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(123, 160, 91, 0.25); }
.form-field .field-error { color: var(--error); font-size: 0.82rem; display: none; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: var(--error); }
.form-field.invalid .field-error { display: block; }
.required { color: var(--error); }
fieldset.form-section { border: 1px solid var(--beige-deep); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; }
fieldset.form-section legend { font-weight: 700; padding: 0 0.6rem; color: var(--green-darker); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.payment-placeholder { background: var(--beige); border: 1px dashed var(--green); border-radius: 10px; padding: 1.2rem; color: var(--text-soft); font-size: 0.95rem; }
.order-success { background: #eef4e8; border: 1px solid var(--green); border-radius: var(--radius); padding: 2.2rem; text-align: center; }
.order-success h2 { margin-bottom: 0.8rem; }
.order-success p { max-width: 560px; margin: 0 auto 0.8rem; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--beige-deep); border-radius: 12px; margin-bottom: 0.8rem; }
.faq-item summary { padding: 1.05rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::after { content: "+"; color: var(--green-dark); font-size: 1.25rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 1.3rem 1.1rem; color: var(--text-soft); }

/* ---------- Content pages (legal etc.) ---------- */
.content-page { max-width: 780px; }
.content-page h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.content-page p, .content-page li { color: var(--text-soft); }
.updated { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info-box { background: var(--gray-light); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; }
.contact-info-box h3 { margin-bottom: 0.4rem; }
.map-placeholder { border: 1px dashed var(--gray-mid); border-radius: var(--radius); background: var(--beige); min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-soft); padding: 1.5rem; font-size: 0.95rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--beige-deep); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(43, 51, 40, 0.18); padding: 1.3rem 1.5rem;
}
.cookie-banner h2 { font-size: 1rem; margin-bottom: 0.3rem; }
.cookie-banner p { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 0.9rem; }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.5rem 1.2rem; font-size: 0.88rem; }
.cookie-prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; padding: 0.2rem 0; }
.cookie-prefs { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-darker); color: rgba(255, 255, 255, 0.82); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 0.9rem; }
.footer-brand img { width: 32px; height: 32px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.3rem 0; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.text-soft { color: var(--text-soft); }
.mt-2 { margin-top: 2rem; }
.alert { background: #eef4e8; border: 1px solid var(--green); border-radius: 10px; padding: 0.9rem 1.2rem; margin-bottom: 1.4rem; }
.alert--error { background: #f9e9e8; border-color: var(--error); color: var(--error); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .product-layout, .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
  .filters, .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--beige-deep);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .main-nav li { border-top: 1px solid var(--gray-light); }
  .main-nav a { display: block; padding: 0.85rem 0.2rem; }
  .hero { min-height: 62vh; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item > .line-total { grid-column: 2; }
}
