
:root{--navy:#0e2247;--navy-2:#0b1a37;--accent:#0b5cab;--bg:#f7f9fc;--card:#fff;--line:#e7eef8;--text:#0f172a;--muted:#64748b}
*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Ubuntu,Arial;background:var(--bg);color:var(--text)}
a{color:var(--accent);text-decoration:none}
.page{min-height:100svh;display:flex;flex-direction:column}
header.top{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.top .row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;max-width:1200px;margin:0 auto}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy)}
.brand img{height:34px}
.actions{display:flex;gap:8px}
.badge{display:inline-flex;align-items:center;gap:6px;background:#eef4ff;color:#1e40af;border:1px solid #dbe6ff;border-radius:10px;padding:7px 12px}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:10px;padding:8px 14px}
.btn.ghost{background:#fff;color:var(--accent)}
.hamb{border:0;background:var(--navy);color:#fff;border-radius:10px;padding:8px 10px}
.drawer{position:fixed;left:0;top:0;bottom:0;width:300px;background:var(--navy);color:#e9efff;transform:translateX(-100%);transition:transform .25s ease;z-index:60;box-shadow:2px 0 24px rgba(0,0,0,.18)}
.drawer.open{transform:none}
.drawer .head{padding:14px;border-bottom:1px solid rgba(255,255,255,.12);display:flex;gap:10px;align-items:center}
.drawer .head img{height:26px;border-radius:6px}
.drawer nav .group{padding:10px 16px 4px;color:#b8c7ff;font-weight:700;opacity:.9;font-size:.9rem}
.drawer nav a{display:flex;align-items:center;gap:10px;color:#eef3ff;padding:12px 18px;border-top:1px solid rgba(255,255,255,.06)}
.drawer nav a:hover{background:rgba(255,255,255,.06)}
.drawer nav a[aria-current="page"]{background:rgba(255,255,255,.1);font-weight:700}
.ic{width:18px;text-align:center}
.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .25s;z-index:55}
.backdrop.show{opacity:1;pointer-events:auto}
main{flex:1}.container{max-width:1200px;margin:0 auto;padding:16px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.05)}.panel .p{padding:16px}
footer.site{background:#fff;border-top:1px solid var(--line);text-align:center;padding:14px;color:var(--muted)}
.grid{display:grid;gap:16px}.muted{color:var(--muted)}.chip{display:inline-block;border:1px solid var(--line);padding:6px 10px;border-radius:999px;background:#fff}
.card img{width:100%;height:150px;object-fit:cover;background:#0b1118;border-bottom:1px solid var(--line);border-top-left-radius:14px;border-top-right-radius:14px}
.hero-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:12px}@media (min-width:900px){.hero-grid{grid-template-columns:1.2fr .8fr}}
.carousel{position:relative;overflow:hidden;border-radius:14px}.carousel-track{display:flex;transition:transform .5s ease}
.carousel-slide{min-width:100%;height:260px;display:flex;align-items:center;justify-content:flex-start;color:#fff;background:#0b1a37}
.carousel-slide .inner{padding:26px;max-width:700px}.carousel .nav{position:absolute;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;width:100%;padding:0 8px;pointer-events:none}
.carousel button{pointer-events:auto;border:0;border-radius:10px;padding:8px 10px;background:rgba(255,255,255,.15);color:#fff}.carousel .dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.carousel .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);border:0}.carousel .dot.active{background:#fff}
.form fieldset{border:0;padding:0;margin:0}.form label{display:block;margin:.5rem 0 .25rem}.form input,.form textarea,.form select{width:100%;padding:10px;border-radius:10px;border:1px solid #d4deed;background:#fff}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left}




.tabs{display:flex;gap:10px;margin:6px 0 18px}
.tab-btn{background:#eef5ff;border:1px solid var(--line);color:var(--navy);padding:8px 14px;border-radius:999px;font-weight:600}
.tab-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}


.fb-news{max-width:720px;margin:0 auto}
.fb-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 4px 14px rgba(2,6,23,.06)}
.fb-card .title{display:none}


.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget iframe{width:100% !important}
.fb_iframe_widget iframe{border-radius:12px;}


.site-news{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px}
.site-news .item{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}
@media (max-width: 800px){.site-news{grid-template-columns:1fr}}



.page-title{
  text-align:center;
  margin-inline:auto;
}
.tabs{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:8px 0 16px;
}
.fb-card{
  max-width:980px;
  margin:16px auto;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  box-shadow:0 8px 24px rgba(2,6,23,.06);
}
.fb-card .fb-page{ margin:0 auto; }

@media (max-width: 680px){
  .page-title{ font-size:1.6rem; }
}



.catalog-layout{display:grid;grid-template-columns:280px 1fr;gap:16px}
@media (max-width: 992px){ .catalog-layout{grid-template-columns:1fr} }
.sidebar{position:sticky;top:84px;align-self:start;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.06);padding:12px}
.sidebar h3{margin:2px 0 8px}
.filter-group{border-top:1px dashed var(--line);padding-top:10px;margin-top:10px}
.filter-group:first-of-type{border-top:none;margin-top:0;padding-top:0}
.filter-list{display:flex;flex-direction:column;gap:8px}
.range{display:flex;gap:8px}
.range input{width:100%}
.help{font-size:12px;color:var(--muted)}
.sticky-spacer{height:1px}


.products-grid{display:grid;grid-auto-flow:row dense;gap:16px;grid-template-columns:repeat(auto-fill,minmax(260px,320px));justify-content:flex-start}
.product-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.06);overflow:hidden;display:flex;flex-direction:column;max-width:320px}
.product-card .thumb{
  width:100%;
  height:200px;
  background:#f4f6f8;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-card .thumb img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.product-card .body{padding:12px;display:flex;flex-direction:column;gap:8px}
.price{font-weight:700}
.badges{display:flex;gap:8px;flex-wrap:wrap}
.badge.outline{background:transparent;color:var(--navy);border:1px solid var(--line)}
.rating{font-size:13px;color:#f39c12}



.products-grid{
  display:grid;
  grid-auto-flow:row dense;
  gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(260px,320px));
  justify-content:flex-start;
  align-content:start;
}
.product-card{ width:100%; max-width:320px; }
.product-card .thumb{ aspect-ratio:4/3; width:100%; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }


.products-grid.single{ grid-template-columns:repeat(1, minmax(260px,320px)); max-width:320px; }



.sidebar{
  position:sticky; top:84px; align-self:start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 30px rgba(16,24,40,.06);
  padding: 14px;
}
.sidebar h3{ font-size:18px; margin:2px 0 10px }
.filter-group{ border-top:1px dashed var(--line); padding-top:12px; margin-top:12px }
.filter-group:first-of-type{ border-top:none; margin-top:0; padding-top:0 }
.filter-list{ display:flex; flex-direction:column; gap:10px }
.help{ font-size:12px; color:var(--muted) }
.range{ display:flex; gap:10px }
.range .input{ border-radius:10px }



.products-grid{
  display:grid;
  gap:16px;
  grid-auto-flow: row dense;
  justify-content:flex-start;
}

.products-grid{ grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px){  
  .products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px){  
  .products-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px){ 
  .products-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card{ background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 1px 2px rgba(16,24,40,.06); overflow:hidden; display:flex; flex-direction:column; }
.product-card .thumb{ aspect-ratio:4/3; width:100%; background:#f4f6f8; display:block }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover }
.product-card .body{ padding:12px; display:flex; flex-direction:column; gap:8px }



.chips-bar{ display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 14px; }
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border:1px solid var(--line); border-radius:999px;
  background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.06);
  cursor:pointer; user-select:none; font-size:14px;
}
.chip.active{ background: var(--navy); color:#fff; border-color: var(--navy); }
.chip .x{ font-weight:700; opacity:.9 }
.chip.clear{ background:transparent; border-style:dashed; }



.sidebar{
  position:sticky; top:84px; align-self:start;
  background: radial-gradient(1200px 300px at -200px -150px, rgba(64,128,255,.06), transparent 60%) , var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 6px 24px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.06);
  padding:16px 14px;
}
.sidebar h3{
  font-size:18px; display:flex; align-items:center; gap:8px;
}
.sidebar h3::before{
  content:''; width:6px; height:18px; border-radius:6px; background:var(--navy); opacity:.3;
}
.sidebar .input, .sidebar .select{
  background:#fff; border-radius:12px;
}
.filter-group{ border-top:1px dashed var(--line); padding-top:14px; margin-top:14px }
.filter-group:first-of-type{ border-top:none; margin-top:0; padding-top:0 }
.filter-list label{ display:flex; align-items:center; gap:8px }


.product-card{ display:flex; flex-direction:column; }
.product-card .body{ display:flex; flex-direction:column; gap:8px; height:100%; }
.product-card .meta{ min-height:44px; display:flex; gap:8px; flex-wrap:wrap; }
.product-card .title{ min-height:40px; display:flex; align-items:flex-start; }
.product-card .actions{ margin-top:auto; display:flex; gap:8px; }
.product-card .actions .btn{ flex:1 }



.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:4px 0 12px;flex-wrap:wrap}
.toolbar .left{display:flex;gap:10px;align-items:center}
.toolbar .right{display:flex;gap:10px;align-items:center}
.count{font-weight:600}


.product-card{transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease}
.product-card:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(16,24,40,.10); border-color:rgba(23,43,77,.2)}


.product-card .title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}


.rating-row{display:flex;align-items:center;gap:8px;font-size:13px}
.stars{letter-spacing:1px}
.stars::before{content:"★★★★★"; background:linear-gradient(90deg,#f39c12 var(--pct,80%),#ddd var(--pct,80%)); -webkit-background-clip:text; color:transparent}


.price{font-weight:700;font-size:22px}
.price .currency{font-size:.7em; vertical-align:top; margin-right:1px}
.price .minor{font-size:.6em; vertical-align:top}
.price .per{font-weight:400; font-size:.75em; color:var(--muted)}


.ship{font-size:12px; color:var(--muted)}


.product-card .actions{margin-top:auto; display:flex; gap:8px}
.btn-primary{background:#ffd814;border-color:#fcd200;color:#111}
.btn-primary:hover{background:#f7ca00;border-color:#f2c200}
.btn-link{background:transparent;border:0;color:var(--navy);text-decoration:underline;padding:8px 0}


.products-grid{gap:16px}


.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}
.toolbar .left{flex:1}
.toolbar .right{display:flex;align-items:center;gap:10px}
.searchbar{width:100%}
.searchbar .search-lg{width:100%; padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; font-size:15px; box-shadow:0 1px 2px rgba(16,24,40,.04)}
.searchbar .search-lg:focus{outline:0;border-color:#c9d8ff; box-shadow:0 0 0 4px rgba(11,92,171,.08)}
.product-card{border-radius:16px; box-shadow:0 6px 18px rgba(18,38,63,.06); overflow:hidden}
.product-card .thumb{border-bottom:1px solid var(--line)}
.product-card .body{gap:10px}
.product-card .badges{display:flex;gap:6px;flex-wrap:wrap}
.product-card .badge{border-radius:999px; padding:6px 10px; font-size:12px}
.product-card .badge.outline{background:#fff;border:1px solid #dce6ff;color:var(--accent)}
.muted{color:var(--muted)}


.btn{transition:box-shadow .2s ease, transform .02s ease}
.btn:active{transform:translateY(1px)}
.btn-solid{background:linear-gradient(180deg,#0b5cab,#0a53a4); color:#fff; border:1px solid #0a56a8; border-radius:14px; padding:10px 14px; font-weight:600; box-shadow:0 2px 0 rgba(0,0,0,.05)}
.btn-solid:hover{filter:brightness(1.03)}
.btn-solid:focus{outline:0; box-shadow:0 0 0 4px rgba(11,92,171,.15)}
.btn-outline{background:#fff; color:#0b5cab; border:1px solid #cfe0ff; border-radius:14px; padding:10px 14px; font-weight:600}
.btn-outline:hover{background:#f3f7ff}
.btn-outline:focus{outline:0; box-shadow:0 0 0 4px rgba(11,92,171,.12)}


.product-card .actions{margin-top:auto; display:flex; gap:8px; flex-wrap:wrap}
.product-card .actions .btn{padding:8px 12px; font-size:14px; border-radius:12px}
@media (max-width: 480px){
  .product-card .actions{gap:6px}
  .product-card .actions .btn{flex:1}
}


.hero-grid.no-aside{display:grid; grid-template-columns: 1fr; gap: 0}
.hero-grid.no-aside .panel{grid-column: 1 / -1}



.cms-inline-form textarea.cms-inline-textarea {
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(10,20,60,0.7);
  color: #fff;
}
.cms-inline-form .btn {
  align-self: flex-start;
}


/* Sidebar scroll fix for small screens */
.drawer nav{
  max-height:calc(100vh - 70px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

@media (max-width:768px){
  .drawer{
    width:280px;
  }
  .drawer nav{
    max-height:calc(100vh - 64px);
  }
}
