:root{
  --primary:#8b5a2b;
  --secondary:#f5eee6;
  --accent:#3d2c1e;
  --white:#fff;
  --text:#2a211b;
  --muted:#6e6258;
  --border:#e6ddd5;
  --shadow:0 10px 30px rgba(61,44,30,.08);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.6;
}

a{
  text-decoration:none;
  color:var(--primary);
}

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

.container{
  width:min(1120px,92%);
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  z-index:50;
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:28px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--accent);
  min-width:0;
  flex:1 1 320px;
}

.logo-copy{
  min-width:0;
}

.logo-copy strong{
  display:block;
  font-size:15px;
  line-height:1.25;
}

.logo small{
  display:block;
  color:var(--muted);
  margin-top:2px;
  font-size:13px;
  line-height:1.45;
}

.logo-mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--secondary);
  font-size:24px;
  flex:0 0 46px;
}

.logo-img{
  width:46px;
  height:46px;
  object-fit:cover;
  border-radius:14px;
  flex:0 0 46px;
}

.nav-panel{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  flex:1 1 560px;
}

.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex-wrap:wrap;
  width:100%;
}

.menu-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex-wrap:wrap;
}

.main-nav a{
  color:var(--accent);
  font-weight:600;
}

.admin-link{
  flex:0 0 auto;
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  align-self:flex-end;
  border:1px solid var(--border);
  border-radius:999px;
  overflow:auto;
  max-width:100%;
  background:#fff;
}

.lang-switcher a{
  padding:9px 14px;
  background:#fff;
  white-space:nowrap;
}

.lang-switcher a.active{
  background:var(--primary);
  color:#fff;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  border:none;
  cursor:pointer;
  line-height:1.2;
  text-align:center;
  transition:.2s ease;
}

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

.btn-primary:hover{
  background:#75491f;
  color:#fff;
}

.btn-outline{
  border:1px solid var(--primary);
  color:var(--primary);
  background:#fff;
}

.btn-outline:hover{
  background:#f8f2eb;
  color:var(--accent);
}

.hero{
  padding:60px 0;
  background:linear-gradient(180deg,var(--secondary),#fff);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:34px;
  align-items:center;
}

.eyebrow{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  font-size:14px;
  color:var(--primary);
  font-weight:700;
}

.hero h1{
  font-size:48px;
  line-height:1.15;
  margin:16px 0 12px;
}

.hero p{
  font-size:18px;
  color:var(--muted);
  max-width:660px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.hero-card{
  background:#fff;
  padding:18px;
  border-radius:24px;
  box-shadow:var(--shadow);
}

.hero-card img{
  border-radius:18px;
  aspect-ratio:4/5;
  object-fit:cover;
}

.section{
  padding:64px 0;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.section h2{
  font-size:34px;
  margin:0;
}

.muted{
  color:var(--muted);
}

.grid{
  display:grid;
  gap:22px;
}

.products-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.card-body{
  padding:18px;
}

.product-card .thumb{
  aspect-ratio:4/4.3;
  object-fit:cover;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:var(--secondary);
  color:var(--primary);
  font-weight:700;
  font-size:12px;
}

.price{
  font-size:24px;
  font-weight:800;
  color:var(--accent);
}

.old-price{
  text-decoration:line-through;
  color:var(--muted);
  margin-left:10px;
}

.spec-list{
  padding-left:18px;
  margin:12px 0 0;
}

.spec-list li{
  margin:4px 0;
}

.two-col{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:32px;
}

.gallery-main{
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--border);
}

.gallery-main img{
  width:100%;
  aspect-ratio:4/4.4;
  object-fit:cover;
}

.thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
  gap:12px;
  margin-top:12px;
}

.thumbs img{
  border-radius:14px;
  border:2px solid transparent;
  aspect-ratio:1/1;
  object-fit:cover;
  cursor:pointer;
}

.thumbs img.active,
.thumbs img:hover{
  border-color:var(--primary);
}

.article-card img,
.video-card iframe{
  width:100%;
  border:0;
}

.article-card img{
  aspect-ratio:16/10;
  object-fit:cover;
}

.video-card iframe{
  aspect-ratio:16/9;
}

.article-content{
  font-size:17px;
}

.search-bar input,
.form-control,
textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  font:inherit;
}

.search-bar{
  margin-bottom:22px;
}

/* CTA FIX */
.cta-box{
  background:var(--accent);
  color:#fff;
  border-radius:28px;
  padding:34px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.cta-content{
  flex:1 1 520px;
}

.cta-content h2{
  margin:0 0 12px;
  font-size:clamp(28px,4vw,44px);
  line-height:1.15;
  color:#fff;
}

.cta-content p{
  margin:0;
  font-size:16px;
  color:rgba(255,255,255,.92);
  max-width:900px;
}

.cta-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

.btn-cta-light{
  min-width:220px;
  background:#fff;
  color:var(--primary) !important;
  border:1px solid #d8b48a;
}

.btn-cta-light:hover{
  background:#f8f2eb;
  color:var(--accent) !important;
}

.site-footer{
  background:#231a14;
  color:#f5eee6;
  padding-top:48px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:22px;
}

.footer-bottom{
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:24px;
}

.list-unstyled{
  padding:0;
  list-style:none;
  margin:0;
}

.admin-wrap{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:100vh;
}

.admin-sidebar{
  background:#1e1712;
  color:#fff;
  padding:24px;
  position:sticky;
  top:0;
  height:100vh;
}

.admin-sidebar a{
  display:block;
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:8px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active{
  background:rgba(255,255,255,.1);
}

.admin-main{
  padding:28px;
  background:#faf7f3;
}

.admin-card{
  background:#fff;
  border-radius:18px;
  padding:22px;
  box-shadow:var(--shadow);
  margin-bottom:24px;
}

.table-wrap{
  overflow:auto;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  border-bottom:1px solid var(--border);
  padding:12px;
  vertical-align:top;
  text-align:left;
}

.table img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:10px;
}

.flash{
  padding:12px 14px;
  border-radius:10px;
  background:#e9f9eb;
  color:#1d6f2b;
  margin-bottom:16px;
}

.admin-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.admin-form-grid .full{
  grid-column:1/-1;
}

.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,var(--secondary),#fff);
}

.login-box{
  width:min(430px,92%);
  background:#fff;
  border-radius:22px;
  padding:28px;
  box-shadow:var(--shadow);
}

.pill-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.product-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:12px 0;
}

.note{
  font-size:14px;
  color:var(--muted);
}

.empty{
  padding:24px;
  border:1px dashed var(--border);
  border-radius:18px;
  text-align:center;
  color:var(--muted);
}

@media (max-width:900px){
  .hero-grid,
  .two-col,
  .admin-wrap{
    grid-template-columns:1fr;
  }

  .admin-sidebar{
    position:relative;
    height:auto;
  }

  .hero h1{
    font-size:36px;
  }

  .nav-wrap{
    flex-direction:column;
    align-items:stretch;
    gap:16px;
  }

  .logo,
  .nav-panel{
    flex:1 1 auto;
    width:100%;
  }

  .main-nav,
  .menu-links{
    justify-content:flex-start;
  }

  .lang-switcher{
    align-self:flex-start;
  }

  .cta-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .cta-actions{
    width:100%;
  }

  .btn-cta-light{
    width:100%;
  }
}

@media (max-width:640px){
  .section h2{
    font-size:28px;
  }

  .hero{
    padding:42px 0;
  }

  .hero h1{
    font-size:30px;
  }

  .price{
    font-size:21px;
  }

  .site-header{
    position:sticky;
  }

  .nav-wrap{
    padding:12px 0;
  }

  .logo{
    align-items:flex-start;
  }

  .logo small{
    font-size:12px;
  }

  .main-nav{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .menu-links{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 14px;
    width:100%;
  }

  .menu-links a{
    text-align:center;
    padding:10px 8px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
  }

  .admin-link{
    width:100%;
  }

  .lang-switcher{
    width:100%;
    border-radius:16px;
  }

  .lang-switcher a{
    flex:1 0 auto;
    text-align:center;
    padding:10px 12px;
  }

  .cta-box{
    padding:26px 20px;
    border-radius:22px;
  }

  .cta-content h2{
    font-size:32px;
  }

  .cta-content p{
    font-size:15px;
  }
}

body.is-loading{
  cursor:progress;
  opacity:.96;
}

body.is-loading::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.35);
  z-index:999;
}