/* ==========================================================================
   TLÖN — stylesheet
   Light, minimal boutique-shop look (matches the reference site's layout).
   Shared file: also meant to be linked from /pages/*.html and
   /products/*.html later as "../style.css".
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --text:       #1a1a1a;
  --muted:      #6b6b6b;
  --line:       #e2e2e2;
  --line-strong:#cfcfcf;
  --bg:         #ffffff;
  --bg-alt:     #fafafa;
  --accent:     #1a1a1a;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --maxw: 1200px;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button, input{ font-family: inherit; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Top bar — search (left) / cart (right)
   ========================================================================== */
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}
.icon-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.icon-link:hover{ color: var(--muted); }
.cart-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

/* ==========================================================================
   Site title
   ========================================================================== */
.site-title-wrap{
  text-align: center;
  padding: 1px 20px 36px;
}
.site-title{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 84px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-block;
}
.site-subtitle{
  margin: 4px 0 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Nav — sandwiched between two thin rule lines
   ========================================================================== */
.rule{
  border-top: 1px solid var(--line);
}
.nav-rule{
  width: calc(100% - 80px);
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.nav-inner{
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 6px 40px;
}
.site-nav a{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"]{
  border-bottom-color: var(--text);
}

/* ==========================================================================
   Products heading
   ========================================================================== */
.products-heading,
.page-heading{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  margin: 48px 0 32px;
}

/* ==========================================================================
   Pages text — for the about & contact pages
   ========================================================================== */

.page-copy{
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  padding-bottom: 80px;
}

.page-narrow{
  max-width: 720px;
  margin: 0 auto;
}

.page-copy p{
  margin: 0 0 20px;
}

/* ==========================================================================
   Product grid — 3 products, centered
   ========================================================================== */
.product-grid{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
  padding-bottom: 72px;
}
.product-card{
  width: 260px;
  text-align: center;
}
.product-image{
  display: block;
  width: 100%;
  height: 260px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  transition: opacity .2s ease;
}
.product-image:hover{ opacity: .85; }
.product-image svg{ width: 100%; height: 100%; display: block; }

.product-name{
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.product-name:hover{ color: var(--muted); }
.product-price{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-newsletter{
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}
.footer-newsletter h2{
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}
.footer-newsletter p{
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
}
.newsletter-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input[type="email"]{
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
}
.newsletter-form input[type="email"]::placeholder{ color: #9a9a9a; }
.newsletter-form button{
  border: none;
  border-radius: 2px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}
.newsletter-form button:hover{ background: #3a3a3a; }
.newsletter-msg{
  min-height: 16px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer{
  padding-top: 48px;
}
.site-footer > .nav-rule{
  margin-bottom: 28px;
}

.copyright{
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.copyright a{ color: var(--text); }
.copyright a:hover{ color: var(--muted); }

.payment-icons{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 40px;
}
.payment-icons li{
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px){
  .site-title{ font-size: 44px; }
  .nav-inner{ gap: 28px; }
  .wrap{ padding: 0 20px; }
  .topbar-inner{ padding: 14px 20px; }
  .product-grid{ gap: 32px; }
}

/* ==========================================================================
   Product detail page (e.g. products/alevosia.html)
   ========================================================================== */
.product-page{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 48px 0 90px;
}

/* --- Left: gallery --- */
.gallery-promo{ margin-bottom: 16px; }
.gallery-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.gallery-iso{ margin-bottom: 0; }

.img-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}
.gallery-promo .img-placeholder,
.gallery-iso .img-placeholder{ aspect-ratio: 16 / 10; }
.gallery-thumb .img-placeholder{ aspect-ratio: 1 / 1; }

/* --- Right: sticky info panel --- */
.product-info-sticky{
  position: sticky;
  top: 40px;
}

.product-page .product-name{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.product-page .product-effect{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.product-tagline{
  font-size: 15.5px;
  color: var(--text);
  margin: 0 0 22px;
}
.product-page .product-price{
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 22px;
}

.add-to-cart-btn{
  display: inline-block;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 14px 30px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}
.add-to-cart-btn:hover{ background: #3a3a3a; }

.cart-note{
  min-height: 18px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0 0;
}

.divider{
  border: none;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}

.product-tabs{
  display: flex;
  gap: 32px;
}
.tab-btn{
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.tab-btn[aria-selected="true"]{ color: var(--text); }
.tab-btn:hover{ color: var(--text); }

.tab-panel h2{
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.tab-panel p{
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 16px;
}
.tab-panel ul{ margin: 0; }
.tab-panel ul li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.tab-panel ul li::before{
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Responsive: stack columns, drop sticky --- */
@media (max-width: 900px){
  .product-page{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-info-sticky{
    position: static;
  }
}

/* ==========================================================================
   Product story section — scroll-driven pedal + card reveal
   ========================================================================== */
.story-section{
  background: var(--pedal-color, #2f5f86);
  color: #fff;
  margin-top: 60px;
}

.story-intro{
  padding: 90px 40px 60px;
  max-width: 840px;
  margin: 0 auto;
}
.story-title{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  margin: 0 0 20px;
}
.story-text{
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin: 0;
}

/* Tall scroll container — its height is the "scroll budget" for the animation.
   Increase/decrease 300vh to make the effect play out over more/less scrolling. */
.story-scroll{
  position: relative;
  height: 300vh;
}

.story-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.story-stage{
  position: relative;
  width: 100%;
  height: 72vh;
}

.story-pedal{
  position: absolute;
  top: 50%;
  left: 48%;
  width: 400px;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.story-pedal .img-placeholder{
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
}

.story-cards{
  position: absolute;
  top: 50%;
  right: 100px;
  width: 420px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.story-card{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .4s ease;
}
.story-card.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.story-card h3{
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.story-card p{
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin: 0;
  text-align: justify;
  hyphens: auto;
}

/* Mobile fallback: turn off the pin/animation entirely, just stack everything */
@media (max-width: 760px){
  .story-scroll{ height: auto; }
  .story-sticky{
    position: static;
    height: auto;
    overflow: visible;
    display: block;
  }
  .story-stage{ height: auto; padding: 40px 0; }
  .story-pedal{
    position: static;
    transform: none !important;
    margin: 0 auto 40px;
  }
  .story-pedal .img-placeholder{ aspect-ratio: 4 / 3; }
  .story-cards{
    position: static;
    width: 100%;
    transform: none;
    gap: 24px;
  }
  .story-card{
    opacity: 1 !important;
    transform: none !important;
  }

}
