/* ============================================
   Arte Orgánica — design system
   ============================================ */

:root{
  --primary:#6f8f4e;
  --primary-dark:#566f3d;
  --accent:#c17a52;
  --ink:#1e1c17;
  --body:#5c5a52;
  --cream:#faf7f1;
  --cream-2:#f3efe6;
  --border:#e6e0d3;
  --white:#ffffff;

  --font-head:'Fraunces', Georgia, serif;
  --font-body:'Inter', system-ui, sans-serif;

  --radius:14px;
  --radius-sm:8px;
  --shadow:0 18px 40px -22px rgba(30,28,23,.35);
  --shadow-lg:0 30px 70px -30px rgba(30,28,23,.45);

  --wrap:1180px;
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--body);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

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

a{ color:inherit; text-decoration:none; }

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);
  color:var(--ink);
  margin:0 0 .5em;
  line-height:1.2;
  letter-spacing:-0.01em;
}

p{ margin:0 0 1em; }

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 24px;
}

.section{ padding:72px 0; }
.section--tight{ padding:40px 0; }

.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:10px;
}

.section-head{
  text-align:center;
  max-width:560px;
  margin:0 auto 40px;
}
.section-head h2{ font-size:clamp(26px,3.4vw,38px); }
.section-head p{ color:var(--body); margin:0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:14px;
  letter-spacing:.02em;
  padding:13px 26px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn--primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px -10px rgba(111,143,78,.6);
}
.btn--primary:hover{ background:var(--primary-dark); transform:translateY(-2px); }

.btn--buy{
  width:100%;
  background:var(--ink);
  color:var(--cream);
}
.btn--buy:hover{ background:#000; transform:translateY(-2px); }

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

.btn--sm{ padding:9px 18px; font-size:13px; }

/* ---------- header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(250,247,241,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 1px 0 var(--border), 0 16px 32px -26px rgba(30,28,23,.28);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:80px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__icon{
  width:40px; height:40px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  overflow:hidden;
  background:var(--cream-2);
  border:1px solid var(--border);
}
.brand__icon img{ width:100%; height:100%; object-fit:cover; }
.brand__word{
  font-family:var(--font-head);
  font-size:21px;
  font-weight:600;
  color:var(--ink);
  letter-spacing:-0.01em;
  white-space:nowrap;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:8px;
}
.site-nav a{
  font-size:14px;
  font-weight:600;
  color:var(--body);
  position:relative;
  padding:9px 16px;
  border-radius:999px;
  transition:color .2s ease, background-color .2s ease;
}
.site-nav a:hover{ color:var(--ink); background:var(--cream-2); }
.site-nav a.active{ color:var(--primary-dark); background:rgba(111,143,78,.12); }

.header-actions{ display:flex; align-items:center; gap:12px; }
.header-actions a{
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  border:1px solid var(--border);
  color:var(--ink);
  font-size:15px;
  transition:all .2s ease;
}
.header-actions a:hover{ border-color:var(--primary); color:var(--primary-dark); background:var(--cream-2); }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:0;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{
  width:22px; height:2px;
  background:var(--ink);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media(max-width:860px){
  .site-nav{
    position:fixed;
    top:80px; left:16px; right:16px;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow-lg);
    padding:10px;
    max-height:0;
    opacity:0;
    overflow:hidden;
    transition:max-height .3s ease, opacity .25s ease;
  }
  .site-nav.open{ max-height:400px; opacity:1; }
  .site-nav a{ width:100%; padding:14px 16px; border-radius:var(--radius-sm); }
  .site-nav a.active{ background:var(--primary); color:#fff; }
  .nav-toggle{ display:flex; }
}

/* ---------- hero ---------- */
.hero{
  padding:64px 0 0;
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:48px;
}
.hero__text h1{
  font-size:clamp(34px,5vw,58px);
  margin-bottom:.3em;
}
.hero__text p{
  font-size:17px;
  max-width:440px;
  margin-bottom:28px;
}
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero__pic{
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero__pic img{
  width:100%;
  height:auto;
  max-width:560px;
  filter:drop-shadow(0 30px 40px rgba(30,28,23,.18));
}

@media(max-width:860px){
  .hero__grid{ grid-template-columns:1fr; gap:32px; }
  .hero__text{ text-align:center; }
  .hero__text p{ margin-left:auto; margin-right:auto; }
  .hero__actions{ justify-content:center; }
}

/* ---------- category chips ---------- */
.categories{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.chip{
  padding:9px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--white);
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  transition:all .2s ease;
}
.chip:hover{ border-color:var(--primary); color:var(--primary); }
.chip.active{ background:var(--primary); border-color:var(--primary); color:#fff; }

/* ---------- product grid & card ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:26px;
}

.product-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }

.product-card__pic{
  aspect-ratio:1/1;
  background-size:cover;
  background-position:center;
  position:relative;
}
.product-card__tag{
  position:absolute;
  top:12px; left:12px;
  background:rgba(255,255,255,.92);
  color:var(--ink);
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:5px 10px;
  border-radius:999px;
}

.product-card{ height:100%; }

.product-card__body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.product-card__body h3{
  font-size:17px;
  margin:0;
  min-height:2.3em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card__price{
  font-family:var(--font-body);
  font-weight:700;
  color:var(--primary-dark);
  font-size:16px;
  margin:0;
}
.product-card .btn--buy{ margin-top:auto; }

/* ---------- banner ---------- */
.banner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.banner__pic{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
@media(max-width:760px){
  .banner{ grid-template-columns:1fr; }
}

/* ---------- breadcrumb / page header ---------- */
.page-head{
  background:var(--cream-2);
  padding:52px 0;
  text-align:center;
  border-bottom:1px solid var(--border);
}
.page-head h1{ font-size:clamp(28px,4vw,42px); margin-bottom:.2em; }
.page-head .crumbs{
  font-size:13px;
  color:var(--body);
}
.page-head .crumbs a{ color:var(--primary-dark); font-weight:600; }
.page-head .crumbs span{ opacity:.5; margin:0 6px; }

/* ---------- product detail ---------- */
.detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:flex-start;
}
.detail__gallery{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  aspect-ratio:1/1;
}
.detail__gallery img{ width:100%; height:100%; object-fit:cover; }

.detail__thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.detail__thumbs img{
  width:64px; height:64px;
  object-fit:cover;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  cursor:pointer;
}

.detail__info .price{
  font-size:24px;
  font-weight:700;
  color:var(--primary-dark);
  margin-bottom:14px;
}
.detail__meta{
  list-style:none;
  padding:0;
  margin:26px 0 0;
  border-top:1px solid var(--border);
}
.detail__meta li{
  padding:12px 0;
  border-bottom:1px solid var(--border);
  font-size:14px;
  display:flex;
  justify-content:space-between;
  gap:16px;
}
.detail__meta b{ color:var(--ink); }

.tabs{ margin-top:56px; }
.tabs__nav{
  display:flex;
  gap:8px;
  border-bottom:1px solid var(--border);
  margin-bottom:24px;
}
.tabs__nav button{
  background:none;
  border:0;
  padding:12px 18px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:14px;
  color:var(--body);
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
}
.tabs__nav button.active{ color:var(--ink); border-color:var(--primary); }
.tabs__panel{ display:none; max-width:720px; }
.tabs__panel.active{ display:block; }

/* ---------- demo notice (cart/checkout showcase pages) ---------- */
.demo-notice{
  background:var(--cream-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:16px 20px;
  font-size:14px;
  color:var(--body);
  margin-bottom:32px;
}
.demo-notice b{ color:var(--ink); }

/* ---------- cart table ---------- */
.cart-table-wrap{
  overflow-x:auto;
}
.cart-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
}
.cart-table th{
  text-align:left;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--body);
  padding:0 0 14px;
  border-bottom:1px solid var(--border);
}
.cart-table td{
  padding:18px 12px 18px 0;
  border-bottom:1px solid var(--border);
  font-size:15px;
}
.cart-table__item{ display:flex; align-items:center; gap:14px; }
.cart-table__item img{ width:64px; height:64px; object-fit:cover; border-radius:var(--radius-sm); }
.cart-table__item h6{ margin:0; font-family:var(--font-head); font-size:15px; }

.cart-summary{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
}
.cart-summary h4{ margin-bottom:16px; }
.cart-summary ul{ list-style:none; padding:0; margin:0 0 18px; }
.cart-summary li{
  display:flex; justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--border);
  font-size:14px;
}
.cart-summary li.total{ font-weight:700; color:var(--ink); font-size:16px; border-bottom:none; }

/* ---------- form ---------- */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.form-grid .full{ grid-column:1/-1; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:13px; font-weight:600; color:var(--ink); }
.field input,
.field textarea,
.field select{
  font-family:var(--font-body);
  font-size:14px;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:var(--white);
  color:var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus{ outline:2px solid var(--primary); outline-offset:1px; }
.field textarea{ resize:vertical; min-height:120px; }

@media(max-width:700px){
  .detail{ grid-template-columns:1fr; gap:32px; }
  .form-grid{ grid-template-columns:1fr; }
}

/* ---------- checkout / cart layout ---------- */
.checkout-layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:48px;
  align-items:start;
}
.cart-layout{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:32px;
  margin-top:36px;
  align-items:start;
}
@media(max-width:800px){
  .checkout-layout,
  .cart-layout{ grid-template-columns:1fr; }
}

/* ---------- blog ---------- */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:28px;
}
.blog-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
}
.blog-card__pic{ aspect-ratio:16/10; background-size:cover; background-position:center; }
.blog-card__body{
  padding:20px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.blog-card__meta{ font-size:12px; color:var(--body); margin-bottom:8px; }
.blog-card h3{
  font-size:18px;
  margin-bottom:8px;
  min-height:2.4em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.blog-card p{
  font-size:14px;
  margin-bottom:12px;
  min-height:2.6em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.blog-card a.read-more{
  font-size:13px;
  font-weight:700;
  color:var(--primary-dark);
  margin-top:auto;
}

/* ---------- blog post ---------- */
.post{ max-width:720px; margin:0 auto; }
.post__pic{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  margin-bottom:32px;
}
.post p{ font-size:16px; }
.post h3{ font-size:22px; margin-top:1.4em; }
.post__foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-top:40px;
  padding-top:24px;
  border-top:1px solid var(--border);
  font-size:14px;
}

/* ---------- footer ---------- */
.site-footer{
  background:var(--ink);
  color:rgba(250,247,241,.7);
  padding:56px 0 0;
  margin-top:80px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1.3fr;
  gap:40px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand__mark{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand__icon{
  width:36px; height:36px;
  flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
}
.footer-brand__icon img{ width:100%; height:100%; object-fit:cover; }
.footer-brand__word{
  font-family:var(--font-head);
  font-size:18px;
  font-weight:600;
  color:var(--cream);
}
.footer-brand p{ font-size:14px; max-width:280px; }
.footer-col h6{
  color:var(--cream);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:16px;
}
.footer-col a{
  display:block;
  font-size:14px;
  padding:6px 0;
  color:rgba(250,247,241,.7);
}
.footer-col a:hover{ color:var(--primary); }
.footer-newsletter form{ display:flex; gap:8px; margin:14px 0; }
.footer-newsletter input{
  flex:1;
  padding:11px 14px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  color:var(--cream);
  font-family:var(--font-body);
  font-size:13px;
}
.footer-newsletter input::placeholder{ color:rgba(250,247,241,.45); }
.footer-newsletter button{
  background:var(--primary);
  color:#fff;
  border:0;
  border-radius:var(--radius-sm);
  padding:0 18px;
  font-weight:600;
  font-size:13px;
  cursor:pointer;
}
.social{ display:flex; gap:10px; margin-top:14px; }
.social a{
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
  font-size:14px;
}
.social a:hover{ background:var(--primary); border-color:var(--primary); }

.footer-bottom{
  padding:20px 0;
  text-align:center;
  font-size:12px;
  color:rgba(250,247,241,.45);
}
.footer-bottom a{ color:rgba(250,247,241,.7); font-weight:600; }

@media(max-width:860px){
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
}

/* ---------- misc ---------- */
.mix-hidden{ display:none !important; }

::selection{ background:var(--primary); color:#fff; }
