/*
Theme Name: Stoned Ape
Theme URI: https://stonedape.pt/
Author: Stoned Ape Portugal
Description: Tema de despedida e Coffee Shop privada da Stoned Ape.
Version: 1.2.0
Text Domain: stoned-ape
*/

:root {
  --stone-green: #003d2e;
  --stone-green-deep: #00271f;
  --stone-cream: #f4f0d8;
  --stone-paper: #fbfaf4;
  --stone-ink: #17372d;
  --stone-line: rgba(244, 240, 216, 0.2);
  --stone-radius: 22px;
  --stone-shadow: 0 28px 90px rgba(0, 26, 18, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone-paper);
  color: var(--stone-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.stone-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.stone-eyebrow {
  margin: 0;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.stone-header {
  position: relative;
  z-index: 5;
  inset: 0 0 auto;
  padding: 1.25rem 0;
  background: var(--stone-green);
  color: var(--stone-cream);
}
.home .stone-header { position: absolute; background: transparent; }
.stone-header__inner { display: flex; align-items: center; justify-content: space-between; }
.stone-brand { font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.stone-header__logout { font-size: .78rem; font-weight: 800; text-underline-offset: 4px; }

.stone-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: 640px;
  overflow: hidden;
  background: var(--stone-green);
  color: var(--stone-cream);
}
.stone-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem clamp(2rem, 4.5vw, 5rem) 5rem max(1rem, calc((100vw - 1180px) / 2));
  position: relative;
  z-index: 2;
}
.stone-hero__media {
  position: absolute;
  inset: 0 0 0 44%;
  min-height: 640px;
  background-image: var(--stone-hero-image, radial-gradient(circle at 72% 34%, #2d725d, var(--stone-green-deep) 62%));
  background-position: center;
  background-size: cover;
}
.stone-hero__media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 26%;
  background: linear-gradient(90deg, var(--stone-green), transparent);
}
.stone-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(0, 40, 30, .16));
}
.stone-hero h1 {
  max-width: 760px;
  margin: .8rem 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6.2vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .88;
  text-transform: uppercase;
}
.stone-hero__copy { max-width: 650px; margin: 0; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }
.stone-hero__notice { margin-top: 1rem; font-weight: 800; }
.stone-hero__link { display: inline-flex; margin-top: 2rem; gap: .65rem; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 6px; }
.stone-marquee { border-bottom: 1px solid rgba(12,61,45,.1); background: var(--stone-cream); color: var(--stone-green); }
.stone-marquee__inner { width: min(1500px, calc(100% - 2rem)); min-height: 54px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(.8rem,2vw,2rem); font-size: clamp(.76rem,.95vw,.96rem); font-weight: 900; letter-spacing: .035em; text-align: center; text-transform: uppercase; }
.stone-marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; }

.stone-farewell { padding: clamp(4rem, 10vw, 9rem) 0; }
.stone-farewell__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.stone-farewell h2, .stone-login-card h2, .stone-coffee h1 {
  margin: .8rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -.055em;
  line-height: .9;
}
.stone-farewell__copy { font-size: 1.08rem; line-height: 1.8; }
.stone-support { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid rgba(23, 55, 45, .18); }
.stone-support p { margin: .5rem 0; line-height: 1.65; }
.stone-support a { font-weight: 850; text-underline-offset: 4px; }
.stone-support__note { color: rgba(23, 55, 45, .7); font-size: .88rem; }

.stone-login-card {
  position: sticky;
  top: 2rem;
  border-radius: var(--stone-radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--stone-green);
  color: var(--stone-cream);
  box-shadow: var(--stone-shadow);
}
.stone-login-card h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.stone-login-card__copy { color: rgba(244, 240, 216, .78); line-height: 1.65; }
.stone-form__field { margin-top: 1rem; }
.stone-form label { display: block; margin-bottom: .45rem; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.stone-form input[type="text"], .stone-form input[type="password"], .stone-form input[type="email"] {
  width: 100%; min-height: 54px; border: 1px solid var(--stone-line); border-radius: 10px; padding: .85rem 1rem;
  background: rgba(255,255,255,.08); color: var(--stone-cream); outline: none;
}
.stone-form input:focus { border-color: var(--stone-cream); box-shadow: 0 0 0 3px rgba(244,240,216,.12); }
.stone-form__remember { display: flex; align-items: center; gap: .55rem; margin: 1rem 0; font-size: .86rem; }
.stone-button {
  min-height: 54px; border: 0; border-radius: 10px; padding: .9rem 1.3rem; display: inline-flex; align-items: center; justify-content: center;
  gap: .7rem; background: var(--stone-cream); color: var(--stone-green); cursor: pointer; font-size: .76rem; font-weight: 900;
  letter-spacing: .075em; text-decoration: none; text-transform: uppercase;
}
.stone-button--full { width: 100%; }
.stone-form__lost { display: inline-block; margin-top: 1rem; color: rgba(244,240,216,.72); font-size: .82rem; text-underline-offset: 4px; }
.stone-alert { margin: 1rem 0; border: 1px solid rgba(255,214,178,.42); border-radius: 10px; padding: .8rem 1rem; background: rgba(105,24,8,.35); font-size: .88rem; line-height: 1.45; }

.stone-coffee { min-height: 100svh; padding: 8rem 0 5rem; background: var(--stone-paper); }
.stone-coffee__intro { max-width: 780px; }
.stone-coffee__intro p { max-width: 630px; line-height: 1.7; }
.stone-categories { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.2rem 0; }
.stone-chip { border: 1px solid rgba(23,55,45,.18); border-radius: 999px; padding: .65rem .95rem; background: transparent; font-size: .76rem; font-weight: 800; text-decoration: none; }
.stone-products { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.stone-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(23,55,45,.13); border-radius: 18px; background: #fff; }
.stone-product__image { aspect-ratio: 1 / .88; overflow: hidden; background: #eeece3; }
.stone-product__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.stone-product:hover .stone-product__image img { transform: scale(1.025); }
.stone-product__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; }
.stone-product__meta { margin: 0; color: rgba(23,55,45,.6); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stone-product h2 { margin: .55rem 0; font-size: 1.1rem; line-height: 1.25; }
.stone-product__price { margin: auto 0 1rem; padding-top: 1rem; font-size: 1.1rem; font-weight: 900; }
.stone-product__form { margin: 0; }
.stone-product__sold { opacity: .58; }
.stone-empty { border: 1px dashed rgba(23,55,45,.25); border-radius: 18px; padding: 2rem; }
.stone-pagination { margin-top: 2rem; }
.stone-pagination ul { display: flex; justify-content: center; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.stone-pagination a, .stone-pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid rgba(23,55,45,.16); border-radius: 999px; text-decoration: none; }
.stone-pagination .current { background: var(--stone-green); color: var(--stone-cream); }
.stone-footer { padding: 2rem 0; background: var(--stone-green-deep); color: rgba(244,240,216,.7); font-size: .8rem; text-align: center; }

.stone-woo { min-height: 80svh; padding: clamp(3rem,7vw,6rem) 0; background: var(--stone-paper); }
.stone-woo .woocommerce-breadcrumb { margin: 0 0 2rem; color: rgba(23,55,45,.65); font-size: .78rem; }
.stone-woo .woocommerce-breadcrumb a { font-weight: 800; text-underline-offset: 4px; }
.stone-woo .woocommerce-notices-wrapper:empty { display: none; }
.stone-woo div.product { display: flow-root; }
.stone-woo div.product div.images,
.stone-woo div.product div.summary { margin-bottom: 3rem; }
.stone-woo div.product .product_title,
.stone-woo .woocommerce-products-header__title,
.stone-woo .wc-block-checkout__main h1 {
  color: var(--stone-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem,6vw,5.7rem);
  letter-spacing: -.05em;
  line-height: .92;
}
.stone-woo div.product p.price,
.stone-woo div.product span.price { color: var(--stone-green); font-size: 1.25rem; font-weight: 900; }
.stone-woo div.product form.cart .variations { margin: 1.8rem 0 1rem; }
.stone-woo div.product form.cart .variations th,
.stone-woo div.product form.cart .variations td { display: block; padding: .2rem 0; text-align: left; }
.stone-woo div.product form.cart select,
.stone-woo div.product form.cart input.qty { min-height: 50px; border: 1px solid rgba(23,55,45,.2); border-radius: 10px; padding: .7rem .9rem; background: #fff; }
.stone-woo .woocommerce div.product form.cart .button,
.stone-woo .woocommerce button.button,
.stone-woo .woocommerce a.button,
.stone-woo .wc-block-components-button {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: .9rem 1.35rem;
  background: var(--stone-green);
  color: var(--stone-cream);
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.stone-woo .woocommerce div.product form.cart .button:hover,
.stone-woo .woocommerce button.button:hover,
.stone-woo .woocommerce a.button:hover,
.stone-woo .wc-block-components-button:hover { background: var(--stone-green-deep); color: var(--stone-cream); }
.stone-woo div.product .woocommerce-tabs { clear: both; padding-top: 1rem; }
.stone-woo div.product .woocommerce-tabs ul.tabs { padding: 0; }
.stone-woo div.product .woocommerce-tabs ul.tabs::before { border-color: rgba(23,55,45,.16); }
.stone-woo div.product .woocommerce-tabs ul.tabs li { border: 0; background: transparent; }
.stone-woo div.product .woocommerce-tabs .panel { max-width: 850px; color: #35594d; font-size: 1rem; line-height: 1.75; }
.stone-woo .wc-block-checkout,
.stone-woo .wc-block-cart { margin: 0; }
.stone-woo .wc-block-components-sidebar-layout { align-items: start; }
.stone-woo .wc-block-components-sidebar { border-radius: 18px; padding: 1.4rem; background: #fff; box-shadow: 0 20px 60px rgba(0,48,35,.07); }
.stone-woo .wc-block-components-text-input input,
.stone-woo .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 9px; }
.stone-woo + .widget-area,
.stone-woo ~ .widget-area,
body.woocommerce .widget-area { display: none !important; }

@media (max-width: 860px) {
  .stone-hero { grid-template-columns: 1fr; min-height: auto; }
  .stone-hero__media { position: relative; inset: auto; min-height: min(72vw, 580px); order: -1; }
  .stone-hero__media::before { inset: auto 0 0; width: 100%; height: 32%; background: linear-gradient(0deg, var(--stone-green), transparent); }
  .stone-hero__content { padding: 4.5rem clamp(1.5rem,6vw,3.5rem) 5rem; }
  .stone-farewell__grid { grid-template-columns: 1fr; }
  .stone-login-card { position: static; }
  .stone-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .stone-shell { width: min(100% - 1.2rem, 1180px); }
  .stone-hero h1 { font-size: clamp(4rem, 22vw, 6.2rem); }
  .stone-marquee__inner { min-height: 58px; flex-wrap: wrap; gap: .3rem .7rem; padding: .7rem 0; }
  .stone-products { grid-template-columns: 1fr; }
}
