:root{
  --blue:#00a9e8;
  --blue-deep:#007bc2;
  --bg:#ffffff;
  --bg-soft:#f7f8fa;
  --panel:#ffffff;
  --panel-strong:#f1f3f5;
  --text:#111318;
  --muted:#686d77;
  --line:#e0e3e8;
  --header:rgba(255,255,255,.94);
  --button:#111318;
  --button-text:#ffffff;
  --shadow:0 18px 55px rgba(18,25,38,.09);
}

html[data-theme="dark"]{
  --bg:#08090b;
  --bg-soft:#0e1014;
  --panel:#12151a;
  --panel-strong:#181c22;
  --text:#f6f7f9;
  --muted:#9ca3ad;
  --line:#272c34;
  --header:rgba(8,9,11,.94);
  --button:#ffffff;
  --button-text:#0a0b0d;
  --shadow:0 20px 60px rgba(0,0,0,.3);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden;background:var(--bg)}
body{
  margin:0;
  min-width:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,Tahoma,sans-serif;
  line-height:1.55;
  transition:background-color .22s ease,color .22s ease;
}
body.ltr{text-align:left}
body.rtl{text-align:right}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--header);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.header-inner{
  width:min(1260px,92vw);
  min-height:78px;
  margin:auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.brand-logo{
  width:66px;
  height:66px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 66px;
  padding:4px;
  background:#ffffff;
  box-shadow:
    0 12px 30px rgba(16,24,40,.12),
    0 0 0 1px rgba(17,19,24,.08);
}
html[data-theme="dark"] .brand-logo{
  background:#0f1216;
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.07);
}
.brand-name{
  font-family:"Trebuchet MS","Avenir Next","Segoe UI",Arial,sans-serif;
  font-size:18px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
  line-height:1;
}
.main-nav{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:22px;
  color:var(--muted);
  font-size:14px;
}
.rtl .main-nav{justify-self:start}
.main-nav a:hover{color:var(--text)}
.lang-switch{
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 12px;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.theme-toggle{
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--panel);
  color:var(--text);
  cursor:pointer;
  font-size:19px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.theme-toggle .sun{display:none}
html[data-theme="dark"] .theme-toggle .moon{display:none}
html[data-theme="dark"] .theme-toggle .sun{display:inline}
.menu-toggle{
  display:none;
  border:0;
  background:transparent;
  padding:8px;
}
.menu-toggle span{
  display:block;
  width:24px;
  height:2px;
  margin:5px 0;
  background:var(--text);
}

.hero{
  position:relative;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 82% 24%,rgba(0,169,232,.11),transparent 28%),
    var(--bg);
}
.hero-inner{
  width:min(1260px,92vw);
  min-height:600px;
  margin:auto;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(430px,.95fr);
  align-items:center;
  gap:55px;
  padding:72px 0;
}
.eyebrow{
  color:var(--blue-deep);
  font-size:12px;
  font-weight:900;
  letter-spacing:.2em;
  text-transform:uppercase;
}
html[data-theme="dark"] .eyebrow{color:#42c6f4}
.hero h1{
  margin:15px 0 22px;
  max-width:760px;
  font-size:clamp(54px,6vw,92px);
  line-height:.94;
  letter-spacing:-.05em;
}
.hero p{
  max-width:610px;
  margin:0;
  color:var(--muted);
  font-size:18px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:32px;
}
.btn{
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  border:1px solid var(--line);
}
.btn.primary{
  background:var(--button);
  color:var(--button-text);
  border-color:var(--button);
}
.btn.secondary{background:var(--panel)}

.hero-visual{
  min-width:0;
  height:430px;
  position:relative;
  border-radius:30px;
  overflow:hidden;
  border:1px solid var(--line);
  background:
    linear-gradient(135deg,rgba(0,169,232,.08),transparent 45%),
    var(--panel-strong);
  box-shadow:var(--shadow);
}
.hero-logo-wrap{
  position:absolute;
  top:24px;
  left:24px;
  width:86px;
  height:86px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.14);
  z-index:4;
}
.rtl .hero-logo-wrap{left:auto;right:24px}
.hero-logo-wrap img{width:100%;height:100%;object-fit:cover}
.hero-products{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:10px;
  padding:35px 25px 15px;
}
.hero-product{
  width:31%;
  height:78%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-product img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 22px 25px rgba(0,0,0,.2));
}
.hero-product-1,
.hero-product-3{
  height:66%;
  opacity:.93;
}
.hero-product-1{transform:rotate(-3deg)}
.hero-product-3{transform:rotate(3deg)}

.catalog-section{
  width:min(1260px,92vw);
  margin:auto;
  padding:100px 0 65px;
}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:36px;
  margin-bottom:34px;
}
.section-heading h2,
.about-card h2{
  margin:8px 0;
  font-size:clamp(40px,4.5vw,64px);
  line-height:1;
  letter-spacing:-.045em;
}
.section-heading p{margin:0;color:var(--muted);max-width:620px}
.catalog-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.filters{display:flex;gap:7px}
.filters a{
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:14px;
}
.filters a.active{
  background:var(--button);
  color:var(--button-text);
  border-color:var(--button);
}
.search-box input{
  width:220px;
  height:40px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  padding:0 15px;
  outline:none;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.product-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--panel);
  transition:.2s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}
.product-image{
  position:relative;
  height:245px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:14px;
  background:var(--bg-soft);
}
.product-image img{width:100%;height:100%;object-fit:contain}
.size-badge{
  position:absolute;
  top:12px;
  right:12px;
  padding:5px 9px;
  border-radius:999px;
  background:#101318;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  font-size:11px;
  font-weight:900;
}
.rtl .size-badge{right:auto;left:12px}
.product-meta{padding:16px}
.product-flavor{font-size:12px;color:var(--blue-deep);margin-bottom:5px}
html[data-theme="dark"] .product-flavor{color:#55cbf4}
.product-meta h3{
  margin:0;
  min-height:44px;
  font-size:16px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.product-link{
  display:inline-block;
  margin-top:12px;
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.placeholder{font-size:46px;font-weight:900;color:var(--muted);opacity:.4}
.empty{
  padding:40px;
  border:1px dashed var(--line);
  border-radius:18px;
  text-align:center;
  color:var(--muted);
}

.about-section{
  width:min(1260px,92vw);
  margin:auto;
  padding:25px 0 95px;
}
.about-card{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:50px;
  align-items:center;
  padding:45px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.about-logo{
  width:220px;
  height:220px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,0,0,.15);
}
.about-logo img{width:100%;height:100%;object-fit:cover}
.about-copy p{
  margin:16px 0 0;
  max-width:760px;
  color:var(--muted);
  font-size:17px;
}
.company-facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:28px;
}
.company-facts>div{
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--bg-soft);
}
.company-facts span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:4px;
}
.company-facts strong{font-size:15px}

.product-page-wrap{
  width:min(1180px,92vw);
  margin:auto;
  padding:75px 0 95px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:55px;
  align-items:center;
}
.product-photo{
  min-height:460px;
  max-height:560px;
  border:1px solid var(--line);
  border-radius:25px;
  background:var(--bg-soft);
  padding:25px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-photo img{width:100%;height:100%;max-height:510px;object-fit:contain}
.product-info h1{
  margin:14px 0 10px;
  font-size:clamp(42px,5vw,70px);
  line-height:1;
  letter-spacing:-.04em;
}
.product-info h3{margin:0 0 20px;color:var(--muted)}
.product-info p{color:var(--muted)}
.inline-size{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#111318;
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.site-footer{
  border-top:1px solid var(--line);
  background:var(--bg-soft);
  padding:55px 0 22px;
}
.footer-grid{
  width:min(1260px,92vw);
  margin:auto;
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr;
  gap:48px;
}
.footer-brand{
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.footer-brand img{
  width:82px;
  height:82px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 82px;
}
.footer-grid h3,.footer-grid h4{margin-top:0}
.footer-grid p{color:var(--muted);margin-top:6px}
.footer-brand p{max-width:520px}
.footer-bottom{
  width:min(1260px,92vw);
  margin:38px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

/* Admin compatibility */
.loginbox,.formwrap{
  width:min(700px,92vw);
  margin:50px auto;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px;
}
label{display:block;margin:15px 0 6px;color:var(--text)}
input,textarea,select{
  width:100%;
  background:var(--panel);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:10px;
  padding:12px;
}
.check{display:flex;align-items:center;gap:10px}
.check input{width:auto}
.alert{background:#421818;color:#fff;padding:12px;border-radius:10px;margin:15px 0}
.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:14px}
table{width:100%;border-collapse:collapse;background:var(--panel)}
th,td{padding:13px;border-bottom:1px solid var(--line);white-space:nowrap}
body.ltr th,body.ltr td{text-align:left}
body.rtl th,body.rtl td{text-align:right}

@media(max-width:1050px){
  .header-inner{grid-template-columns:auto auto 1fr}
  .main-nav{
    order:3;
    grid-column:1/-1;
    justify-self:start;
    padding-bottom:12px;
  }
  .rtl .main-nav{justify-self:end}
  .hero-inner{grid-template-columns:1fr;min-height:auto}
  .hero-visual{max-width:760px;width:100%}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .section-heading{flex-direction:column;align-items:flex-start}
  .catalog-tools{justify-content:flex-start}
}

@media(max-width:760px){
  .header-inner{display:flex;min-height:72px}
  .brand-name{font-size:15px;letter-spacing:.14em}
  .brand-logo{width:50px;height:50px;flex-basis:50px;padding:3px}
  .main-nav{
    display:none;
    position:absolute;
    top:72px;
    left:4vw;
    right:4vw;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
  }
  .main-nav.open{display:flex}
  .main-nav a{padding:11px 10px}
  .menu-toggle{display:block}
  .header-actions{margin-left:auto}
  .rtl .header-actions{margin-left:0;margin-right:auto}
  .hero-inner{padding:55px 0}
  .hero-visual{height:360px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-card{grid-template-columns:1fr;padding:34px}
  .about-logo{width:150px;height:150px}
  .company-facts{grid-template-columns:1fr}
  .product-page-wrap{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}

@media(max-width:520px){
  .brand-name{font-size:13px;letter-spacing:.12em}
  .hero h1{font-size:48px}
  .hero p{font-size:16px}
  .hero-visual{height:300px;border-radius:22px}
  .hero-logo-wrap{width:62px;height:62px;top:16px;left:16px}
  .rtl .hero-logo-wrap{left:auto;right:16px}
  .hero-products{padding:28px 10px 10px}
  .catalog-tools{width:100%}
  .search-box{width:100%}
  .search-box input{width:100%}
  .product-grid{gap:10px}
  .product-image{height:175px;padding:8px}
  .product-meta{padding:12px}
  .product-meta h3{font-size:13px;min-height:50px}
  .footer-grid{grid-template-columns:1fr}
  .footer-brand{grid-column:auto}
}
