/* assets/css/style.css */

:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --red:#e11d2e;
  --shadow: 0 12px 30px rgba(2,6,23,.08);
  --radius:16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:18px;
}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
}
.brand-badge{
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:12px;
  background:var(--bg);
}
.brand-title{font-size:18px}

.header-search{
  flex:1;
  display:flex;
  gap:10px;
}
.header-search input{
  flex:1;
  border:1px solid var(--border);
  border-radius:999px;
  padding:12px 14px;
  outline:none;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
}
.pill .count{
  background:var(--text);
  color:#fff;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
}
.pill.active{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  border:1px solid transparent;
  text-decoration:none;
  cursor:pointer;
}
.btn-red{
  background:var(--red);
  color:#fff;
}
.btn-red:hover{filter:brightness(.95)}

/* Tabs */
.top-tabs{
  display:flex;
  gap:10px;
  margin:10px 0 18px;
}
.tab{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--text);
  font-weight:700;
}
.tab.active{
  border-color:var(--text);
}

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:18px;
}
.sidebar{
  position:sticky;
  top:16px;
  align-self:start;
}
.filter-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.filter-box summary{
  padding:14px 16px;
  cursor:pointer;
  font-weight:800;
  list-style:none;
}
.filter-body{padding:10px 16px 16px}

.cat-list{margin:10px 0 0; padding:0; list-style:none}
.cat-list li{margin:6px 0}
.cat-link{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  font-weight:650;
}
.cat-link:hover{background:var(--bg)}
.cat-link.active{background:var(--text); color:#fff}
.level-1 .cat-link{padding-left:18px; font-weight:600; color:var(--muted)}
.level-2 .cat-link{padding-left:26px}
.level-3 .cat-link{padding-left:34px}

/* Grid cards */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative; top:auto}
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 640px){
  .grid{grid-template-columns: 1fr}
  .header-row{flex-wrap:wrap}
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.card-img{
  display:block;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
}
.card-img img{
  width:100%;
  height:210px;
  object-fit:contain;
  display:block;
  background:#fff;
}
.brand-logo{
  display:flex;
  justify-content:center;
  margin-top:-2px;
}
.brand-logo img{
  height:22px;
  object-fit:contain;
  opacity:.95;
}
.brand-logo.big img{height:34px}

.model{
  margin:0;
  text-align:center;
  font-size:16px;
  letter-spacing:.2px;
}
.muted{
  margin:0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  min-height:36px;
}
.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}
.price{
  font-size:18px;
  font-weight:900;
}

/* Product page */
.breadcrumb{
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-weight:650;
  margin:8px 0 14px;
}
.breadcrumb a{
  color:var(--muted);
  text-decoration:none;
}
.breadcrumb a:hover{text-decoration:underline}

.product-wrap{
  display:grid;
  grid-template-columns: 520px 1fr;
  gap:18px;
}
@media (max-width: 980px){
  .product-wrap{grid-template-columns:1fr}
}

.product-left, .product-right{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.product-left{padding:16px}
.product-img{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.product-img img{
  width:100%;
  height:420px;
  object-fit:contain;
  display:block;
}
.product-right{padding:16px}
.product-title{
  margin:8px 0 6px;
  font-size:28px;
}
.product-sub{
  color:var(--muted);
  font-weight:650;
  margin-bottom:10px;
}
.product-price{
  font-size:24px;
  font-weight:950;
  margin:10px 0 12px;
}

.buy-row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin:8px 0 16px;
}
.qty{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-weight:700;
}
.qty input{
  width:120px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
}

.specs{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin:10px 0 16px;
}
.spec{
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  background:var(--bg);
}
.spec span{
  display:block;
  color:var(--muted);
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.spec b{
  display:block;
  margin-top:4px;
  font-size:15px;
}

.section-title{
  margin:14px 0 8px;
  font-size:18px;
}
.bullets{
  margin:0;
  padding-left:18px;
  color:var(--text);
  line-height:1.6;
}
.empty{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}

/* Pagination */
.pagination{
  display:flex;
  gap:8px;
  margin:18px 0 10px;
}
.page{
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
}
.page.active{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}

/* Actions inside product cards (Add + View) */
.card-actions{
  display:flex;
  gap:10px;
}
.card-actions .btn{
  padding:10px 12px;
}

/* Outline стил САМО за "Виж" в картите */
.card-actions .btn:not(.btn-red){
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.card-actions .btn:not(.btn-red):hover{
  background:var(--bg);
}

/* Product page text like screenshot (Brand/Model + bullets) */
.product-brand{
  font-size:28px;
  font-weight:900;
  margin:0 0 6px;
}
.product-model{
  font-size:22px;
  font-weight:800;
  color:var(--muted);
  margin:0 0 10px;
}
.product-short{
  font-size:14px;
  color:var(--muted);
  line-height:1.45;
  margin:0 0 14px;
}

/* Bullets list on product page */
.product-bullets{
  margin:0;
  padding-left:18px;
  color:var(--text);
  line-height:1.7;
}
.product-bullets li{
  margin:4px 0;
}
/* --- Cart page --- */
.cart-page{max-width:1200px;margin:0 auto;padding:18px}
.cart-header{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
  margin:8px 0 14px;
}
.cart-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cart-count{color:var(--muted);font-weight:800}

.cart-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
}
@media (max-width: 980px){
  .cart-grid{grid-template-columns:1fr}
}

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

.cart-row{
  display:grid;
  grid-template-columns: 90px 1fr 180px 150px 110px;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-top:1px solid var(--border);
}
.cart-row:first-child{border-top:0}

@media (max-width: 980px){
  .cart-row{
    grid-template-columns: 90px 1fr;
    grid-auto-rows:auto;
  }
  .cart-row-qty, .cart-row-line, .cart-row-actions{grid-column: 1 / -1}
  .cart-row-qty{justify-self:start}
}

.cart-img{
  width:86px;height:86px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  object-fit:contain;
  display:block;
}
.cart-img--ph{display:block}

.cart-row-title{font-weight:900}
.cart-row-price{color:var(--muted);font-weight:750}

.qty-control{display:flex;align-items:center;gap:8px}
.qty-btn{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}
.qty-btn:hover{background:var(--bg)}
.qty-input{
  width:90px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  text-align:center;
  font-weight:900;
}

.cart-actions{
  display:flex;
  gap:10px;
  padding:14px;
  border-top:1px solid var(--border);
  background:var(--bg);
  flex-wrap:wrap;
}

/* Summary */
.cart-summary .summary-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.summary-card h3{margin:4px 0 10px}
.summary-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;border-bottom:1px dashed var(--border);
}
.summary-total{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 0 6px;
  font-size:18px;
  font-weight:950;
}
.btn-block{width:100%}

/* Extra button variants (ползваме ги в cart.php) */
.btn-ghost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover{background:var(--bg)}
.btn-secondary{
  background:var(--text);
  color:#fff;
}
.btn-secondary:hover{filter:brightness(.95)}
/* ===== CART helpers (safe) ===== */

.product-thumb{
  width:70px;
  height:70px;
  object-fit:contain;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}

.product-thumb--ph{
  width:70px;
  height:70px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fafafa;
}

.qty{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.qty-input{
  width:110px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  text-align:center;
  font-weight:700;
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.product-ph{
  width:100%;
  aspect-ratio: 1 / 1;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fafafa;
}
/* Product placeholder (no image) */
.product-ph{
  width:100%;
  aspect-ratio: 1 / 1;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fafafa;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

/* camera body */
.product-ph::before{
  content:"";
  width:46%;
  height:32%;
  border:2px solid #cfd6df;
  border-radius:12px;
  background:#fff;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

/* lens + small flash */
.product-ph::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:18%;
  height:18%;
border:2px solid #cfd6df;
  border-radius:999px;
  background:transparent;
  box-shadow:
    /* flash dot */
    22px -18px 0 -10px #cfd6df;
}
.cat-section-title{
  margin-top: 10px;
  font-weight: 700;
}
/* ===================== CATEGORY MENU (FINAL, COMPACT) ===================== */

/* Accordion container */
.filter-box {
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  margin-bottom:10px;
  padding:0;
}

/* Главни категории: КАМЕРИ / АКСЕСОАРИ */
.filter-box summary {
  cursor:pointer;
  list-style:none;
  font-size:14px;
  font-weight:800;
  color:var(--text);
  padding:8px 12px;
  background:#f8fafc;
  display:flex;
  align-items:center;
}

.filter-box summary::-webkit-details-marker {
  display:none;
}

.filter-box summary::after {
  content:"▸";
  margin-left:auto;
  font-size:12px;
  transition:transform .15s ease;
}

.filter-box[open] summary::after {
  transform:rotate(90deg);
}

/* Подкатегории: HD-TVI / IP */
.cat-sub {
  margin:6px 0 2px 10px;
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
}

/* Линкове: 2MP / 4MP / PTZ / DVR / NVR */
.cat-link {
  display:block;
  padding:4px 8px;
  margin:1px 0 1px 18px;
  border-radius:6px;
  font-size:13px;
  line-height:1.25;
  color:var(--text);
  font-weight:600;
}

.cat-link:hover {
  background:var(--bg);
}

.cat-link.active {
  background:var(--text);
  color:#fff;
}

/* Малка дистанция между секциите */
.filter-box + .filter-box {
  margin-top:12px;
}


/* ===== Accordion Categories ===== */

.filter-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
  margin-bottom: 12px;
}

.filter-box summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.filter-box summary::-webkit-details-marker {
  display: none;
}

.filter-box summary::after {
  content: "▾";
  float: right;
  transition: transform 0.2s ease;
}

.filter-box[open] summary::after {
  transform: rotate(180deg);
}

/* Подкатегории */
.cat-sub {
  margin: 10px 0 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
}

/* Линкове */
.cat-link {
  display: block;
  padding: 6px 10px;
  margin: 2px 0 2px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
}

.cat-link:hover {
  background: #f1f5f9;
}

.cat-link.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
}
/* ================= CATEGORY MENU (ACCORDION – FINAL) ================= */

/* Контейнер */
.filter-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:6px;
}

/* Главни категории: КАМЕРИ / АКСЕСОАРИ */
.filter-box summary{
  cursor:pointer;
  list-style:none;
  font-size:15px;
  font-weight:800;
  color:var(--text);
  padding:10px 12px;
  border-radius:10px;
  background:#f8fafc;
  display:flex;
  align-items:center;
}

.filter-box summary::-webkit-details-marker{display:none}

.filter-box summary::after{
  content:"▾";
  margin-left:auto;
  transition:transform .2s ease;
  font-size:13px;
}

.filter-box[open] summary::after{
  transform:rotate(180deg);
}

/* Подкатегории: HD-TVI / IP */
.cat-sub{
  margin:10px 0 4px 10px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
}

/* Линкове: 2MP / 4MP / PTZ / DVR / NVR */
.cat-link{
  display:block;
  padding:8px 12px;
  margin:4px 0 4px 18px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  color:var(--text);
}

.cat-link:hover{
  background:#f1f5f9;
}

.cat-link.active{
  background:var(--text);
  color:#fff;
}

/* Малко разстояние между акордeоните */
.filter-box + .filter-box{
  margin-top:12px;
}
/* Active category highlight */
.cat-link.active{
  background: var(--text);
  color:#fff;
  font-weight:700;
  position:relative;
}

.cat-link.active::before{
  content:"";
  position:absolute;
  left:-6px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:70%;
  background:var(--red);
  border-radius:4px;
}
@media (max-width: 768px){
  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    top:auto;
  }

  .filter-box{
    border-radius:12px;
  }

  .cat-link{
    padding:8px 10px;
    font-size:14px;
  }

  .cat-sub{
    margin-left:8px;
  }
}
/* Product description bullets */
.product-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
}
.product-bullets li {
  margin: 6px 0;
  line-height: 1.4;
}
.brand-logo{
  height: 22px;
  width: auto;
  display: block;
  margin: 0 0 8px 0;
}
.card-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

/* ако .card-img няма фиксирана височина, сложи така: */
.card-img{
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand-logo{
  max-width:120px;
  height:auto;
  object-fit:contain;
  display:block;
}
.brand-logo{
  display:block;
  margin:10px auto 0 auto; /* център */
  max-width:110px;
  max-height:40px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.product-sort {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.product-sort a {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
}
.product-sort a.active {
  background: #111;
  color: #fff;
}
.btn-sort{
  display:inline-block;
  padding:6px 12px;
  border:1px solid #ddd;
  border-radius:6px;
  background:#fff;
  font-size:14px;
  text-decoration:none;
  margin-bottom:10px;
}

.btn-sort:hover{
  background:#f3f3f3;
}
/* ===== Admin panel ===== */
.admin-wrap{max-width:420px;margin:60px auto;padding:0 14px}
.admin-card{background:#fff;border-radius:16px;padding:22px;box-shadow:0 10px 25px rgba(0,0,0,.08)}
.admin-container{max-width:1100px;margin:22px auto;padding:0 14px}
.admin-topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#111;color:#fff}
.admin-link{color:#fff;text-decoration:none;margin-left:12px}
.admin-link:hover{text-decoration:underline}
.admin-muted{opacity:.8}
.admin-label{display:block;margin:12px 0 6px;font-weight:600}
.admin-input,.admin-textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:12px}
.admin-btn{margin-top:14px;padding:10px 14px;border:0;border-radius:12px;background:#111;color:#fff;cursor:pointer}
.admin-btn:hover{opacity:.92}
.admin-alert{background:#ffe6e6;border:1px solid #ffb3b3;padding:10px 12px;border-radius:12px;margin:12px 0}
.admin-ok{background:#e8fff0;border:1px solid #a8f0c2;padding:10px 12px;border-radius:12px;margin:12px 0}
.admin-search{display:flex;gap:10px;align-items:center;margin:14px 0}
.admin-table{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.06)}
.admin-tr{display:grid;grid-template-columns:90px 100px 1fr 140px 110px 160px;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid #f0f0f0}
.admin-th{background:#f7f7f7;border-top:none;font-weight:700}
.admin-thumb img{width:70px;height:50px;object-fit:contain;background:#fafafa;border-radius:10px;border:1px solid #eee}
.admin-actions{display:flex;gap:10px;align-items:center}
.admin-link-danger{background:none;border:0;color:#ffdddd;cursor:pointer;padding:0}
.admin-form{background:#fff;border-radius:16px;padding:16px;box-shadow:0 10px 25px rgba(0,0,0,.06)}
.admin-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}
.admin-preview{margin-top:10px}
.admin-preview img{max-width:100%;height:90px;object-fit:contain;background:#fafafa;border-radius:12px;border:1px solid #eee}
/* ===================== ADMIN PANEL (modern) ===================== */
body { margin: 0; }

.admin-layout{
  display:flex;
  min-height:100vh;
  background:#f4f6f8;
}

.admin-sidebar{
  width:280px;
  background:#111827;
  color:#fff;
  padding:16px 14px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  border-right:1px solid rgba(255,255,255,.06);
}

.admin-sidebar h3{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
}

.admin-cat-ul{
  list-style:none;
  margin:0;
  padding:0 0 0 10px;
}

.admin-cat-ul li{ margin:2px 0; }

.admin-cat-ul a{
  display:block;
  padding:7px 10px;
  border-radius:10px;
  color:rgba(255,255,255,.86);
  text-decoration:none;
  font-size:14px;
}

.admin-cat-ul a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.admin-cat-ul a.active{
  background:rgba(255,255,255,.12);
  color:#fff;
  font-weight:700;
}

.admin-main{
  flex:1;
  padding:18px;
}

.admin-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  margin-bottom:14px;
}

.admin-link{
  color:#111827;
  text-decoration:none;
  margin-left:12px;
  font-weight:600;
}

.admin-link:hover{ text-decoration:underline; }

.admin-muted{ color:#6b7280; }

.admin-container{ max-width:1200px; }

.admin-search{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0 14px;
}

.admin-input{
  width:100%;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}

.admin-btn{
  padding:10px 14px;
  border:0;
  border-radius:12px;
  background:#111827;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.admin-btn:hover{ opacity:.93; }

.admin-table{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.admin-tr{
  display:grid;
  grid-template-columns:90px 100px 1fr 140px 110px 180px;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-top:1px solid #f1f5f9;
}

.admin-th{
  background:#f8fafc;
  border-top:none;
  font-weight:800;
}

.admin-thumb img{
  width:72px;
  height:52px;
  object-fit:contain;
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:12px;
}

.admin-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.admin-link-danger{
  background:none;
  border:0;
  color:#ef4444;
  cursor:pointer;
  font-weight:700;
  padding:0;
}

.admin-form{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}
.mini-desc{
  margin-top:6px;
  font-size:13px;
  line-height:1.25;
  opacity:.8;
}


.sort-bar .filters-form{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
}

/* НЕ пипаме .btn глобално, за да не пребоядисаме btn-red */
.sort-bar input.btn,
.sort-bar select.btn{
  height:38px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #ddd;
  background:#fff;
  /* важно: select НЕ трябва да е flex */
  display:inline-block;
  appearance:auto;
}

.sort-bar input.btn{ min-width:220px; }

/* линковете/бутоните да са подредени, без да им чупим цветовете */
.sort-bar a.btn,
.sort-bar button.btn{
  height:38px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
/* FIX: make sure nothing blocks the filters row */
.sort-bar,
.sort-bar *{
  pointer-events:auto;
}

.sort-bar{
  position:relative;
  z-index:5;
}

/* select must not be flex */
.sort-bar select.btn{
  display:inline-block !important;
  appearance:auto !important;
}


/* === Fix price button size === */
.sort-bar .btn-red{
  height: 42px;
  padding: 0 16px;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* dropdown-ите да са със същата височина */
.filters-form select.btn{
  height: 42px;
}
/* ===== PRODUCTS: FILTER BAR (FINAL) ===== */

.sort-bar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 18px;
  position:relative;
  z-index:5;
}

.sort-bar .filters-form{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
}

/* НЕ пипаме .btn глобално */
.sort-bar a.btn,
.sort-bar button.btn{
  height:38px;
  padding:0 14px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.sort-bar select.btn{
  height:38px;
  padding:0 38px 0 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  display:inline-block !important;
  appearance:auto !important;
}

/* ЧЕРВЕНИЯТ БУТОН "Цена" – нормален размер (да не е огромен) */
.sort-bar .btn-red{
  height:38px;
  padding:0 14px;
  min-width:0;       /* това ти оправя "скапа" */
  font-size:14px;
}

@media (max-width: 640px){
  .sort-bar{gap:8px}
  .sort-bar .filters-form{width:100%}
  .sort-bar select.btn{min-width:160px}
}
/* ===== Price pill button ===== */
.sort-price{
  border-radius:999px;
  padding:10px 16px;
  height:40px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.sort-price .sort-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.sort-price .sort-ico{
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  font-weight:900;
  line-height:1;
}
/* ===== Sticky filters row ===== */
.sort-sticky{
  position: sticky;
  top: 10px;              /* ако header-а ти е по-висок, кажи и го вдигаме */
  z-index: 50;
  margin: 10px 0 18px;
}

.sort-sticky .sort-bar{
  margin: 0;              /* да не се удвоява */
  background: rgba(245,247,251,.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px;
  box-shadow: var(--shadow);
}
/* ================================
   Sticky filters (products page)
================================ */

.products-page {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.filters {
  position: sticky;
  top: 20px; /* разстояние от горе */
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* мобилно – НЕ sticky */
@media (max-width: 992px) {
  .filters {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
/* Admin top tabs */
.admin-tabs{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  margin:0 0 14px 0;
  border-bottom:1px solid #e5e5e5;
}

.admin-tab{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border:1px solid #e5e5e5;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  color:#222;
  background:#fff;
}

.admin-tab.active{
  border-color:#d33;
}


/* ================================
   HOME SLIDER – PREMIUM HERO
================================ */

/* container */
.home-slider{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#111;
  height:720px;
  margin:18px 0 28px;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}

@media (max-width: 768px){
  .home-slider{ height:460px; }
}

/* track */
.home-slider-track{
  display:flex;
  height:100%;
  width:100%;
  transform:translateX(0);
  will-change:transform;
  transition:transform .8s cubic-bezier(.22,.61,.36,1);
}

/* slide */
.home-slide{
  flex:0 0 100%;
  height:100%;
  position:relative;
}

.home-slide-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
}

/* dark elegant overlay (NO ugly gray block) */
.home-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.25) 55%,
      rgba(0,0,0,0) 78%
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,.55),
      rgba(0,0,0,0) 55%
    );
  pointer-events:none;
  z-index:2;
}

/* ================================
   TEXT CARD (CENTER LEFT)
================================ */
.home-slide-overlay{
  position:absolute;
  left:32px;
  top:50%;
  transform:translateY(-50%);
  max-width:520px;

  padding:26px 28px;
  color:#fff;

  background:rgba(0,0,0,.45);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;

  box-shadow:
    0 22px 44px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08);

  z-index:3;
  pointer-events:none;
}

/* allow clicks on buttons */
.home-slide-overlay a,
.home-slide-overlay button{
  pointer-events:auto;
}

/* text styles */
.home-slide-overlay h2{
  margin:0 0 10px;
  font-size:36px;
  line-height:1.12;
  text-shadow:0 10px 24px rgba(0,0,0,.35);
}

.home-slide-overlay h3{
  margin:0 0 10px;
  font-size:18px;
  opacity:.95;
}

.home-slide-overlay p{
  margin:0 0 14px;
  font-size:15px;
  line-height:1.45;
  opacity:.95;
}

/* mobile overlay */
@media (max-width: 768px){
  .home-slide-overlay{
    left:16px;
    right:16px;
    top:auto;
    bottom:16px;
    transform:none;
    max-width:none;
    padding:18px;
  }

  .home-slide-overlay h2{ font-size:22px; }
  .home-slide-overlay h3{ font-size:15px; }
}

/* ================================
   ARROWS
================================ */
.home-slider-prev,
.home-slider-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border-radius:999px;
  border:0;
  cursor:pointer;

  background:rgba(255,255,255,.14);
  backdrop-filter:blur(6px);

  color:#fff;
  font-size:30px;
  line-height:54px;

  box-shadow:0 12px 26px rgba(0,0,0,.25);
  z-index:6;
}

.home-slider-prev{ left:16px; }
.home-slider-next{ right:16px; }

.home-slider-prev:hover,
.home-slider-next:hover{
  background:rgba(255,255,255,.22);
}

/* ================================
   DOTS
================================ */
.home-slider-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  display:flex;
  gap:8px;
  justify-content:center;
  z-index:6;
}

.home-slider-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:rgba(255,255,255,.35);
  box-shadow:0 6px 14px rgba(0,0,0,.22);
}

.home-slider-dot.is-active{
  background:rgba(255,255,255,.95);
}

/* ================================
   HOME SLIDER HARD RESET (fix overrides)
================================ */
.home-slider,
.home-slider *{
  box-sizing: border-box;
}

.home-slider{
  display:block !important;
}

.home-slider-track{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:0 !important;
  width:100% !important;
  height:100% !important;
}

.home-slide{
  flex: 0 0 100% !important;
  width:100% !important;
  height:100% !important;
  position:relative !important;
}

.home-slide-img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  display:block !important;
}

.home-slide-overlay{
  position:absolute !important;
  z-index: 7 !important;
}
.home-section-title{
  font-size: 22px;
  margin: 22px 0 14px;
}

.home-cats-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}

.home-cat-card{
  position:relative;
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:#111;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  min-height: 220px;
  text-decoration:none;
  color:#fff;
}

.home-cat-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
}

.home-cat-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.10) 55%, rgba(0,0,0,0));
}

.home-cat-meta{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:16px 16px 18px;
  z-index:2;
}

.home-cat-title{
  font-weight:800;
  font-size:18px;
  margin:0 0 4px;
}

.home-cat-subtitle{
  opacity:.9;
  font-size:14px;
}

@media (max-width: 900px){
  .home-cats-grid{ grid-template-columns: 1fr; }
  .home-cat-card{ min-height: 200px; }
}
.admin-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
@media (max-width: 1100px){ .admin-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px){ .admin-grid{ grid-template-columns: 1fr; } }

.admin-thumb{
  width:100%;
  height:170px;
  border-radius:14px;
  overflow:hidden;
  background:#f3f4f6;
}
.admin-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* ===== ADMIN: homepage builder layout ===== */
.admin-page{max-width:1200px;margin:0 auto;padding:0 14px}
.admin-title{font-size:26px;margin:10px 0 16px}
.admin-section{margin:14px 0 22px}
.admin-section-title{font-size:18px;margin:0 0 12px}

.admin-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}

.admin-form label{display:block;margin:0 0 6px;font-weight:700;color:var(--text)}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea,
.admin-form input[type="file"]{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  outline:none;
}

.admin-form textarea{resize:vertical; min-height:86px}

.admin-form-row{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.admin-form-col{flex:1; min-width:220px}
.admin-form-col-small{min-width:160px; flex:0 0 160px}

.admin-form-actions{
  flex:0 0 180px;
  min-width:180px;
}

.admin-form button[type="submit"]{
  width:100%;
  height:42px;
  border:0;
  border-radius:12px;
  background:var(--text);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.admin-form button[type="submit"]:hover{filter:brightness(.95)}

@media (max-width:720px){
  .admin-form-actions{flex:1; min-width:220px}
  .admin-form-col-small{flex:1; min-width:220px}
}
.admin-item-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.admin-mini-actions{
  display:flex;
  gap:8px;
  margin:0;
}

.admin-btn-mini{
  border:1px solid var(--border);
  background:#fff;
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}
.admin-btn-mini:hover{ filter:brightness(.98); }
.admin-btn-mini.danger{
  border-color:#f3b1b1;
  color:#b42318;
  background:#fff5f5;
}
/* ===== Homepage category cards ===== */
.home-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.home-section-title {
  text-align: center;
  margin: 18px 0 16px;
  letter-spacing: 0.5px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: .85;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .home-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .home-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .home-cards { grid-template-columns: 1fr; }
}

/* голяма първа карта като на снимката */
.home-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 820px) {
  .home-card.is-featured { grid-column: auto; grid-row: auto; }
}

.home-card {
  position: relative;
  display: block;
  background: #fff;
  border: 2px solid #e23b3b;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.home-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transition: transform .28s ease;
}

/* overlay */
.home-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  padding: 14px;
  text-align: center;
}

.home-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(3px);
}

.home-card:hover .home-card-overlay { opacity: 1; }
.home-card:hover .home-card-media img { transform: scale(1.06); }

.home-card-title {
  padding: 12px 12px 14px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  color: #d61f1f;
  font-size: 13px;
  line-height: 1.15;
}

.home-card-subtitle {
  display: block;
  margin-top: 4px;
  color: #222;
  font-weight: 800;
  opacity: .9;
  font-size: 12px;
}

/* ===== Home tech section ===== */
.home-tech {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 14px 34px;
}

.home-tech-title {
  text-align: center;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .85;
  margin: 10px 0 18px;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tech-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.tech-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.03);
  border-radius: 12px;
  padding: 10px;
  min-height: 92px;
}

.tech-logo img {
  width: 100%;
  max-width: 110px;
  height: auto;
  object-fit: contain;
}

.tech-body h4 {
  margin: 2px 0 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.tech-body p {
  margin: 0;
  line-height: 1.45;
  opacity: .92;
}

.tech-body a {
  color: #d61f1f;
  font-weight: 800;
  text-decoration: none;
}

.tech-body a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .tech-card { grid-template-columns: 1fr; }
  .tech-logo { min-height: 70px; }
  .tech-logo img { max-width: 140px; }
}
/* admin mini actions: buttons aligned */
.admin-mini-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.admin-btn-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:32px;
  padding:0 12px;
  line-height:1;
  font-size:14px;
  border-radius:10px;
  text-decoration:none;
  white-space:nowrap;
}

/* ако имаш различни стилове за a и button – уеднаквяване */
.admin-mini-actions a.admin-btn-mini,
.admin-mini-actions button.admin-btn-mini{
  vertical-align:middle;
}

/* ако бутоните ти "подскачат" заради border */
.admin-btn-mini,
.admin-btn-mini.danger{
  box-sizing:border-box;
}
.home-trust.modern{
  margin: 36px 0;
}

.home-trust-title{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .8;
}

.home-trust-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-trust-item{
  position: relative;
  padding: 22px 20px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-trust-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.home-trust-line{
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #c40000, #ff3b3b);
  border-radius: 3px;
  margin-bottom: 14px;
}


.home-trust-item h4{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.home-trust-item p{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}

@media (max-width: 900px){
  .home-trust-grid{
    grid-template-columns: 1fr;
  }
}


/* ===== HOME INTRO ===== */
.home-section-intro{
  max-width: 820px;
  margin: -6px auto 22px;
  text-align: center;

  font-size: 16px;
  line-height: 1.7;
  color: #444;
  padding: 0 14px;
}

.home-section-intro strong{
  color: #111;
  font-weight: 800;
}

@media (max-width: 900px){
  .home-section-intro{
    font-size: 14px;
    margin: -6px auto 18px;
  }
}

/* ===== HOME CARDS (clean) ===== */
.home-card{
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.home-card:hover{
  border-color: #e60012;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  transform: translateY(-4px);
}

.home-card-media{
  padding: 18px;
}

.home-card-media img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Overlay: прозрачно (не плътно), модерно */
.home-card-overlay{
  background: rgba(230, 0, 18, .85);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}

.home-card:hover .home-card-overlay{
  opacity: 1;
}

/* CTA button */
.home-card-cta{
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.85);
  background: transparent;
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;

  transition: background .2s ease, color .2s ease;
}

.home-card:hover .home-card-cta{
  background: #fff;
  color: #e60012;
}

/* Card title: чисто (НЕ червено), с червен акцент */
.home-card-title{
  margin-top: 14px;
  text-align: center;

  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: #1f1f1f;
}

.home-card-title::after{
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 8px auto 0;
  background: #e60012;
  border-radius: 2px;
}

.home-card-subtitle{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: #555;
}

/* ===== Homepage category cards (FINAL – square card incl. text, no crop) ===== */
.home-sections{
  max-width:1200px;
  margin:0 auto;
  padding:20px 14px 40px;
}

.home-cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}

@media (max-width:1100px){ .home-cards{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:820px){ .home-cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:520px){ .home-cards{ grid-template-columns: 1fr; } }

/* Голямата (featured) – 2x2 */
.home-card.is-featured{
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width:820px){
  .home-card.is-featured{ grid-column:auto; grid-row:auto; }
}

/* ✅ ЦЕЛИЯТ card е квадратен (вкл. текста вътре) */
.home-card{
  position:relative;
  display:block;
  aspect-ratio: 1 / 1;

  background:#fff;
  border:1px solid rgba(230,0,18,.45);
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;

  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  border-color: rgba(230,0,18,.75);
}

/* Зоната за снимката заема целия квадрат */
.home-card-media{
  position:absolute;
  inset:0;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}

/* ✅ БЕЗ РЯЗАНЕ */
.home-card-media img{
  width:100%;
  height:100%;
  object-fit:contain;   /* важно: не режем */
  display:block;
  transform: scale(1.06);
  transition: transform .25s ease;
}

.home-card:hover .home-card-media img{
  transform: scale(1.10);
}

/* Overlay (черно-прозрачно както искаш) */
.home-card-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  transition: opacity .22s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  text-align:center;
}

.home-card:hover .home-card-overlay{ opacity:1; }

.home-card-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.6);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  background: rgba(255,255,255,.10);
}

/* ✅ Текстът е ВЪТРЕ в квадрата (долу), без бели празнини */
.home-card-title{
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  padding:12px 12px 14px;
  text-align:center;

  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
  line-height:1.15;
  color:#fff;

  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.10) 70%, rgba(0,0,0,0));
}

.home-card-subtitle{
  display:block;
  margin-top:4px;
  font-weight:800;
  opacity:.92;
  font-size:12px;
  color:#fff;
}

.home-card-title::after{ display:none; }
/* ===== FIX: readable text inside card ===== */
.home-card-title{
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.55) 55%,
    rgba(0,0,0,0) 100%
  ) !important;

  padding: 14px 12px 16px !important;
}

.home-card-title,
.home-card-subtitle{
  text-shadow: 0 2px 10px rgba(0,0,0,.75) !important;
}

.home-card-title{
  font-size: 14px !important;
}

.home-card-subtitle{
  font-size: 12px !important;
  opacity: 1 !important;
}
.home-card-title{ color:#fff !important; }
.home-card-title strong{ color:#e60012 !important; }
/* ===== CLEAN TEXT INSIDE CARD (NO SHADOW, NO DARK BAR) ===== */

.home-card-title{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;

  padding:10px 12px;
  border-radius:10px;

  background: rgba(255,255,255,.85);   /* светъл glass панел */
  backdrop-filter: blur(6px);

  text-align:center;
  font-weight:900;
  font-size:14px;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;

  color:#1f1f1f;                        /* чисто, четимо */
}

.home-card-subtitle{
  display:block;
  margin-top:4px;

  font-size:12px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;

  color:#555;
}

/* махаме старите ефекти */
/* ===== RED SOLID LABEL (clean) ===== */
.home-card-title{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  padding: 12px 14px;
  border-radius: 12px;

  background: #e60012;    /* плътно Hikvision червено */
  color: #fff;

  text-align: center;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  line-height: 1.15;

  /* махаме всякакви стари ефекти */
  box-shadow: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
}

.home-card-subtitle{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,.92);
}

.home-card-title::after{
  display: none !important;
}
.home-card-title{
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 18px 18px;
}
/* ===== HARD RESET FOR CARD TEXT ===== */

/* махаме ВСИЧКИ псевдо елементи */
.home-card *::before,
.home-card *::after{
  content: none !important;
}

/* намираме текста – какъвто и да е */
.home-card-title,
.home-card .card-title,
.home-card .title{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  background: #e60012 !important;   /* ПЛЪТНО ЧЕРВЕНО */
  color: #fff !important;

  padding: 14px 12px !important;
  margin: 0 !important;

  text-align: center !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;

  border-radius: 0 0 18px 18px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}

/* subtitle ако има */
.home-card-subtitle{
  color: rgba(255,255,255,.9) !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}
/* ===== FINAL CLEAN TEXT STYLE ===== */
/* БЕЛИ БУКВИ + ЧЕРЕН КОНТУР */

.home-card-title{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 12px 10px;
  margin: 0;

  background: #e60012;        /* плътно червено */
  color: #fff;               /* БЕЛИ букви */

  font-size: 14px;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.15;
  text-align: center;

  /* ЧЕРЕН КОНТУР */
  -webkit-text-stroke: 0.8px #000;
  text-stroke: 0.8px #000;

  /* fallback за всички браузъри */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;

  border-radius: 0 0 18px 18px;
}

.home-card-subtitle{
  display: block;
  margin-top: 4px;

  color: #fff;
  font-size: 12px;
  font-weight: 700;

  -webkit-text-stroke: 0.5px #000;
  text-stroke: 0.5px #000;

  text-shadow:
    -0.5px -0.5px 0 #000,
     0.5px -0.5px 0 #000,
    -0.5px  0.5px 0 #000,
     0.5px  0.5px 0 #000;
}

/* махаме ВСИЧКО старо */
.home-card-title::before,
.home-card-title::after{
  display: none !important;
}
/* ===== FINAL: BIG WHITE TEXT (NO GREYING) ===== */
.home-card-title{
  background: #e60012 !important;   /* плътно червено, без прозрачност */
  color: #ffffff !important;        /* ЧИСТО БЯЛО */

  font-size: 19px !important;       /* по-голям текст */
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  line-height: 1.2 !important;

  opacity: 1 !important;            /* да НЕ сивее */
  mix-blend-mode: normal !important;

  -webkit-text-stroke: 0.8px #000;  /* черен контур */
  text-stroke: 0.8px #000;

  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.home-card-subtitle{
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;

  opacity: 1 !important;
  mix-blend-mode: normal !important;

  -webkit-text-stroke: 0.5px #000;
  text-stroke: 0.5px #000;

  text-shadow:
    -0.5px -0.5px 0 #000,
     0.5px -0.5px 0 #000,
    -0.5px  0.5px 0 #000,
     0.5px  0.5px 0 #000;
}
.cart-mini{
  font-size: 13px;
  opacity: .75;
  margin-top: 4px;
  line-height: 1.25;
}
/* CHECKOUT (guest) layout */
.checkout-card form { margin-top: 12px; }
.checkout-card label { display:block; font-weight:600; margin:12px 0 6px; }

.checkout-card .input,
.checkout-card input[type="text"],
.checkout-card input[type="email"],
.checkout-card textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.checkout-grid .col-span-2 { grid-column: 1 / -1; }

.checkout-two{
  display: grid !important;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  margin-bottom: 28px;
}

.checkout-two > .card{
  height: 100%;
}

@media (max-width: 900px){
  .checkout-two{
    grid-template-columns: 1fr;
  }
}
/* ===== Checkout form – site style ===== */
.checkout-card{
  padding: 22px;
}

.checkout-card h3{
  margin: 0 0 8px;
}

.checkout-card .muted{
  margin-bottom: 14px;
}

/* labels */
.checkout-card label{
  display:block;
  font-weight: 700;
  margin: 12px 0 6px;
}

/* inputs / textarea */
.checkout-card .input,
.checkout-card input[type="text"],
.checkout-card input[type="email"],
.checkout-card input[type="tel"],
.checkout-card textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 1.2;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

.checkout-card textarea{
  resize: vertical;
  min-height: 110px;
}

/* focus */
.checkout-card .input:focus,
.checkout-card input:focus,
.checkout-card textarea:focus{
  border-color: rgba(220, 38, 38, .35);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

/* nicer spacing between rows */
.checkout-grid{
  margin-top: 8px;
}

/* form actions align */
.checkout-card .form-actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

/* make the primary button look consistent */
.checkout-card .btn.btn-red{
  border-radius: 999px;
  padding: 10px 16px;
}
.order-status{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.status-new{ background:#ffeaea; color:#b00000; }
.status-processing{ background:#fff3cd; color:#8a6d3b; }
.status-shipped{ background:#e6f6ea; color:#207544; }
/* ===== Admin order status pills ===== */
.order-status{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  line-height:1;
}

.status-new{
  background:#ffe8e8;
  color:#a80000;
}

.status-processing{
  background:#fff4d6;
  color:#8a5a00;
}

.status-completed{
  background:#e7f8ee;
  color:#0f6b2d;
}

.status-cancelled{
  background:#eee;
  color:#333;
}

/* бутони в една линия */
.admin-mini-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.admin-mini-actions form{ margin:0; }
/* ===================== FINAL FOOTER FIX (ONLY ONE) ===================== */

/* основа */
.site-footer{
  background: linear-gradient(135deg, #1c2329 0%, #11161a 100%);
  color: #e5e7eb;
  width: 100%;
  overflow: hidden;
  margin-top: 48px;            /* да не се лепи за продуктите */
}

/* подредба */
.footer-grid{
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(220px, 1fr) minmax(240px, 1fr);
  gap: 32px;
  padding: 26px 0;            /* не е висок */
  align-items: start;
}

/* важно: спира “рязане” в grid */
.footer-col{ min-width: 0; }

/* слоган */
.footer-slogan{
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  max-width: 520px;           /* да не се разлива */
  overflow-wrap: anywhere;    /* да не се реже */
}
.footer-slogan .accent{ color: #ff2d2d; }

/* заглавия */
.footer-col h4{
  color: #fff;
  font-size: 14px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* линкове – не лилави */
.site-footer a{
  color: #cfd6dd;
  text-decoration: none;
}
.site-footer a:hover{ color: #fff; }

/* списъци */
.footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li{ margin: 0 0 8px; }
.footer-col ul li a{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* долен ред – компактно и без изрязване */
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 14px;
  padding: 8px 0;
  color: #9aa3ab;
  font-size: 13px;
}
.footer-bottom p{
  margin: 0;
  line-height: 1.2;
  white-space: normal;        /* да не се реже на тесни екрани */
  overflow-wrap: anywhere;
}

/* TABLET */
@media (max-width: 1024px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
  /* последната колона да слезе долу и да не се реже */
  .footer-col:last-child{ grid-column: 1 / -1; }
  .footer-slogan{ font-size: 24px; max-width: 100%; }
}

/* MOBILE */
@media (max-width: 640px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  .footer-slogan{ font-size: 22px; }
  .footer-bottom{ text-align: center; }
}
/* ================= FINAL CLEAN FOOTER FIX ================= */

/* повече въздух вляво */
.footer-grid{
  padding-left: 24px;
}

/* махаме "35 години" и всички иконки */
.footer-badge,
.footer-brand,
.site-footer ul li::marker,
.site-footer ul li svg,
.site-footer ul li img {
  display: none !important;
}

/* чисти списъци – без точки */
.site-footer ul{
  list-style: none;
}

/* отместване на текста, за да не е залепен */
.footer-slogan{
  margin-top: 8px;
}

/* листове – без залепване */
.footer-col ul li{
  padding-left: 0;
  margin-bottom: 8px;
}

/* линковете да са чист текст */
.footer-col ul li a{
  gap: 0;
}
/* ================= HEADER FINAL (CLEAN) ================= */

/* layout */
.header-row{
  gap: 16px;
  align-items: center;
}

/* LOGO */
.site-header .brand{
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  height: 48px;                 /* не надува header-а */
}

.site-header .brand-logo{
  height: 60px;                 /* малко по-голямо от бутоните */
  width: auto;
  display: block;
  max-height: none;
}

/* MENU (strong contrast, единствен стил) */
.main-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.14);
  margin-left: 8px;
}

.main-nav a{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #111827;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  background: transparent;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

.main-nav a:hover{
  background: rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
  color: #0b1220;
}

.main-nav a.active{
  background: rgba(255, 45, 45, 0.14);
  border: 1px solid rgba(255, 45, 45, 0.35);
  color: #b30000;
}

/* responsive */
@media (max-width: 980px){
  .header-row{ flex-wrap: wrap; }
  .main-nav{
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .header-search{
    order: 4;
    width: 100%;
  }
}

/* =========================================================
   FIX (products.php + product.php) — FEATURE PNG badge + buttons
   Scoped, clean, no global overrides
   ========================================================= */

/* ---------- FEATURE BADGE: products.php (cards) ---------- */
/* работи с твоя HTML: <div class="prod-media"> ... <div class="prod-badge"><img ...></div> */
.grid .card .prod-media{
  position: relative;
}

/* контейнерът на badge-а */
.grid .card .prod-media .prod-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto !important;
  z-index: 6;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* самата PNG икона */
.grid .card .prod-media .prod-badge img{
  display: block;
  width: 90px;              /* смени на 80/100 ако искаш */
  height: auto;
  object-fit: contain;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
}

/* ---------- FEATURE BADGE: product.php (single product) ---------- */
/* работи с твоя HTML: <div class="product-img prod-media"> ... <div class="prod-badge"><img ...></div> */
.product-wrap .product-img.prod-media{
  position: relative;
  background: #fff;
}

/* махаме overlay-и ако някъде ги има */
.product-wrap .product-img.prod-media::before,
.product-wrap .product-img.prod-media::after{
  content: none !important;
  display: none !important;
}

/* голямата снимка да НЕ избледнява */
.product-wrap .product-img.prod-media > img{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* badge горе вдясно */
.product-wrap .product-img.prod-media .prod-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto !important;
  z-index: 6;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.product-wrap .product-img.prod-media .prod-badge img{
  display: block;
  width: 130px;            /* по-голямо на product.php */
  height: auto;
  object-fit: contain;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
}

/* ---------- product.php: бутони Назад + Количка (както бяха) ---------- */
/* НЕ пипаме .btn глобално — само в buy-row */
.product-wrap .buy-row .btn-back,
.product-wrap .buy-row .btn-cart{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 14px;

  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);

  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

/* леки икони (като “преди”) */
.product-wrap .buy-row .btn-back::before{ content:"←"; font-size:16px; }
.product-wrap .buy-row .btn-cart::before{ content:"🛒"; font-size:16px; }

.product-wrap .buy-row .btn-back:hover,
.product-wrap .buy-row .btn-cart:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,.08);
}

/* badge с брой в количката */
.product-wrap .buy-row .btn-cart{ position: relative; }
.product-wrap .buy-row .cart-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;
  padding: 0 7px;

  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;

  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
}

/* =========================
   Feature PNG overlay (products.php + product.php)
   ========================= */

/* контейнерът на снимката трябва да е relative */
.prod-media{
  position: relative;
}

/* самата feature PNG икона */
.prod-media .prod-feature{
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 5;

  width: 160px;     /* по-голяма */
  height: auto;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  pointer-events: none;
}

/* малко по-малка на телефон */
@media (max-width: 520px){
  .prod-media .prod-feature{ width: 90px; }
}


/* =========================
   product.php – back/cart buttons (само в buy-row)
   ========================= */

.buy-row .btn-back,
.buy-row .btn-cart{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 12px;

  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.buy-row .btn-back::before{ content:"←"; font-size:16px; }
.buy-row .btn-cart::before{ content:"🛒"; font-size:16px; }

.buy-row .btn-cart{ position: relative; }

.buy-row .cart-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;
  padding: 0 7px;

  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;

  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
}
.btn-stop{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}
.btn-stop:hover{ background:#fecaca; }

.btn-start{
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}
.btn-start:hover{ background:#bbf7d0; }

.btn-mini{
  padding:6px 10px;
  font-size:13px;
  border-radius:8px;
  font-weight:700;
}
/* ===== POLISH PACK: header + pills ===== */
.header-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;
}

.brand-logo{ height:44px; width:auto; }

.main-nav{
  display:flex;
  gap:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.main-nav a{
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  color:var(--text);
  text-decoration:none;
}

.main-nav a.active{
  background: rgba(225,29,46,.12);
  color: var(--red);
}

.header-search{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width: 260px;
  justify-content:center;
}

.header-search input{
  width: min(520px, 100%);
  border-radius:999px;
  border:1px solid var(--border);
  padding:12px 14px;
  background:#fff;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.pill{
  border-radius:999px;
  padding:10px 14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  text-decoration:none;
  color:var(--text);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.pill .count{
  margin-left:8px;
  background: rgba(225,29,46,.12);
  color: var(--red);
  border-radius:999px;
  padding:2px 8px;
  font-weight:900;
}

.pill-email{
  max-width: 240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pill-red{
  background: var(--red);
  color:#fff;
  border-color: transparent;
}

.pill-dark{
  background:#111827;
  color:#fff;
  border-color: transparent;
}

/* responsive: да не се чупи */
@media (max-width: 980px){
  .header-row{ flex-wrap:wrap; }
  .header-search{ order:3; width:100%; }
  .header-search input{ width:100%; }
}
/* ===== FIX: header buttons stacking ===== */
.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
}

.auth-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

.auth-actions .pill{
  white-space:nowrap;
}
/* ===============================
   HEADER — clean rebuild (override)
   =============================== */

/* редът */
.header-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 0;
  flex-wrap:nowrap;
}

/* лого */
.brand{ display:flex; align-items:center; }
.brand-logo{ height:42px; width:auto; }

/* меню – по-компактно */
.main-nav{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.main-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  line-height:1;
  color:var(--text);
  text-decoration:none;
}

.main-nav a.active{
  background: rgba(225,29,46,.12);
  color: var(--red);
}

/* search – център, да не раздува */
.header-search{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  justify-content:center;
  min-width: 280px;
}

.header-search input{
  width: min(460px, 100%);
  border-radius:999px;
  border:1px solid var(--border);
  padding:10px 14px;
  background:#fff;
}

/* actions вдясно */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

/* auth actions */
.auth-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

.auth-actions .pill,
.header-actions .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:999px;
  padding:9px 12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:900;
  text-decoration:none;
  line-height:1;
}

/* специални */
.pill-email{
  max-width: 220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pill .count{
  margin-left:8px;
  border-radius:999px;
  padding:2px 8px;
  font-weight:900;
  background: rgba(225,29,46,.12);
  color: var(--red);
}

.pill-red{
  background: var(--red) !important;
  color:#fff !important;
  border-color: transparent !important;
}

.pill-dark{
  background:#111827 !important;
  color:#fff !important;
  border-color: transparent !important;
}

/* ===== responsive: на 2 реда, без мазало ===== */
@media (max-width: 1080px){
  .header-row{ flex-wrap:wrap; }
  .main-nav{ order:2; }
  .header-actions{ order:3; margin-left:auto; }
  .header-search{ order:4; width:100%; justify-content:flex-start; }
  .header-search input{ width:100%; }
}
/* =========================
   CHECKOUT (clean)
   ========================= */

/* Payment options */
.pay-option{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 0;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

.pay-option input{
  transform: scale(1.3);
  accent-color: var(--red);
}

.card-logos{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-left:12px;
}

.card-logos img{
  height:28px;
  width:auto;
  display:block;
}

.checkout-total{
  font-size:18px;
  font-weight:900;
}

.checkout-right .checkout-card:last-child{
  border:2px solid var(--red);
  background:#fff6f7;
}

/* helper */
.is-hidden{ display:none !important; }

/* ===== 2-column page layout (left form + right summary) ===== */
.checkout-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap:24px;
  align-items:start;
}

@media (max-width: 980px){
  .checkout-layout{ grid-template-columns:1fr; }
}

.checkout-left,
.checkout-right{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* right column stays up while scrolling */
.checkout-right{
  position: sticky;
  top:16px;
  align-self:start;
}

/* ===== form grid inside the left card ===== */
.checkout-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}

@media (max-width: 680px){
  .checkout-grid{ grid-template-columns:1fr; }
}

/* spans */
.col-span-2{ grid-column: 1 / -1; }
/* payment badges */
.pay-badge{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.pay-bank{
  background: rgba(59,130,246,.15);
  color: #2563eb;
}

.pay-cash{
  background: rgba(16,185,129,.15);
  color: #047857;
}

.pay-store{
  background: rgba(234,179,8,.18);
  color: #92400e;
}
/* orders list – row highlight by status */
.table tr.row-status-new td{
  background: rgba(239,68,68,.08);
}

.table tr.row-status-processing td{
  background: rgba(245,158,11,.10);
}

.table tr.row-status-completed td{
  background: rgba(16,185,129,.10);
}

/* да не оцветява action колона ако искаш да остане чиста */
.table tr.row-status-new td.admin-mini-actions,
.table tr.row-status-processing td.admin-mini-actions,
.table tr.row-status-completed td.admin-mini-actions{
  background: transparent;
}
.pay-card{
  background: rgba(99,102,241,.15);
  color: #4338ca;
}
.pay-badge{
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  display:inline-block;
}

.pay-card{
  background: rgba(99,102,241,.15);
  color:#4338ca;
}

.pay-store{
  background: rgba(234,179,8,.18);
  color:#92400e;
}

.pay-cash{
  background: rgba(16,185,129,.15);
  color:#047857;
}
.pay-card{ background: rgba(99,102,241,.15); color:#4338ca; }
.pay-badge{
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  display:inline-block;
}

/* ===== Orders table row coloring (full width) ===== */
.table tbody tr.row-status-new td{
  background: rgba(225, 29, 46, .10);
}
.table tbody tr.row-status-processing td{
  background: rgba(245, 158, 11, .12);
}
.table tbody tr.row-status-completed td{
  background: rgba(34, 197, 94, .12);
}
.table tbody tr.row-status-cancelled td{
  background: rgba(148, 163, 184, .18);
}

/* keep text readable */
.table tbody tr.row-status-new td,
.table tbody tr.row-status-processing td,
.table tbody tr.row-status-completed td,
.table tbody tr.row-status-cancelled td{
  border-top-color: rgba(0,0,0,.04);
}

/* ===== Actions layout ===== */
.order-actions{
  text-align: right;
  white-space: nowrap;
}
.order-actions .btn{
  margin-left: 6px;
}
.mini-form{
  display:inline-block;
}

/* nicer mini buttons */
.btn.btn-mini{
  padding: 7px 10px;
  border-radius: 10px;
  font-weight: 700;
}
.btn-danger{
  background: #fff;
  border: 1px solid rgba(225, 29, 46, .35);
  color: #b91c1c;
}
.btn-danger:hover{
  border-color: rgba(225, 29, 46, .65);
}
/* Pending delivery acceptance coloring */
.pending-age-warn td {
  background: #fff7d6 !important;
}

.pending-age-danger td {
  background: #ffe1e1 !important;
}
/* ===== Stats title ===== */
.stats-title{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase; /* за всеки случай */
  margin-right: auto;        /* бута го вляво */
  white-space: nowrap;
}
/* ===== Order edit: add product card ===== */
.order-add-card{
  padding:16px;
}

.order-add-card h3{
  margin:0 0 10px 0;
  font-size:16px;
}

.order-add-card label{
  display:block;
  font-size:12px;
  font-weight:700;
  margin:0 0 6px 0;
  opacity:.85;
}

.order-add-card input[type="text"],
.order-add-card input[type="number"],
.order-add-card select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  outline:none;
  background:#fff;
}

.order-add-card input[type="text"]:focus,
.order-add-card input[type="number"]:focus,
.order-add-card select:focus{
  border-color:#b9c4ff;
  box-shadow:0 0 0 3px rgba(110,124,255,.15);
}

.order-add-card form{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.order-add-card form > div{
  min-width:220px;
}
/* ===== HOME SLIDER – full width, no distortion ===== */

.home-slider {
  width: 100%;
  overflow: hidden;
}

.home-slide {
  position: relative;
  width: 100%;
  height: 100vh;          /* пълен екран */
  min-height: 520px;     /* защита за малки екрани */
}

.home-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔑 КЛЮЧОВОТО */
  object-position: center;
  display: block;
}
/* ===== HOME SLIDER OVERRIDE (FINAL) ===== */
.home-slider{ width:100%; overflow:hidden; }
.home-slide{ height:520px !important; }

.home-slide-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;     /* <= пълни слайда */
  object-position:center !important;
  display:block !important;
}
/* ===== HOME SLIDER OVERRIDE (FINAL) ===== */
.home-slider{ width:100%; overflow:hidden; }
.home-slide{ height:520px !important; }

.home-slide-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;     /* <= пълни слайда */
  object-position:center !important;
  display:block !important;
}
/* ===== HOME SLIDER – CLEAN BANNER (no black area, no stretch) ===== */
.home-slider{
  width: 100%;
  overflow: hidden;
}

.home-slide{
  height: auto !important;   /* махаме фиксираната височина */
}

.home-slide-img{
  width: 100% !important;
  height: auto !important;   /* снимката определя височината */
  display: block;
  object-fit: contain;
}
.home-slider .swiper,
.home-slider .swiper-wrapper,
.home-slider .swiper-slide{
  height: auto !important;
}
/* ===== HOME SLIDER – CLEAN BANNER (fix black bottom + no neighbor slide) ===== */

.home-slider{
  width: 100%;
  overflow: hidden !important;  /* да не се вижда друг слайд отстрани */
}

/* при Swiper: забраняваме "peek" */
.home-slider .swiper,
.home-slider .swiper-wrapper,
.home-slider .swiper-slide{
  width: 100%;
  overflow: hidden !important;
}

/* махаме фиксирани височини/черни фонове */
.home-slider .swiper,
.home-slider .swiper-wrapper,
.home-slider .swiper-slide,
.home-slide{
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
}

/* снимката да определя височината */
.home-slide-img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* ако имаш долни точки/пагинация с черна лента – махаме я */
.home-slider .swiper-pagination{
  background: transparent !important;
}
/* ===== HOME SLIDER – CLEAN BANNER OVERRIDE (FINAL) ===== */

/* 1) спира "преливането" на другия слайд */
.home-slide{
  overflow: hidden !important;
}

/* 2) маха scale-а, който показва съседен слайд */
.home-slide-img{
  transform: none !important;
}

/* 3) маха тежкото почерняване отдолу (overlay) */
.home-slide::after{
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.30) 0%,
    rgba(0,0,0,.10) 55%,
    rgba(0,0,0,0) 78%
  ) !important;
}

/* 4) ако контейнерът е с черен фон – правим го прозрачен */
.home-slider{
  background: transparent !important;
}
/* ===== HOME CARDS – like image #2 (no bottom bar) ===== */

/* махаме overlay-лентата */
.home-card-title{
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;

  background: transparent !important;
  color: #e60012 !important;     /* горният надпис червен */

  padding: 12px 12px 6px !important;
  margin: 0 !important;

  text-align: center !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

/* долният надпис почти черен */
.home-card-subtitle{
  color: #222 !important;
  font-weight: 800 !important;
  margin-top: 4px !important;
}

/* ако има декоративна линия под заглавието – махаме */
.home-card-title::after{
  display: none !important;
}
/* ===== HOME CARDS – финален стил ===== */

/* Заглавие – червено */
.home-card-title,
.home-card .card-title,
.home-card .title{
  position: static !important;
  background: transparent !important;

  color: #e60012 !important;   /* червено */
  font-size: 16px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;

  padding: 14px 12px 6px !important;
  margin: 0 !important;
  text-align: center !important;
}

/* Подзаглавие – почти черно */
.home-card-subtitle{
  color: #1f1f1f !important;   /* почти черно */
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin-bottom: 12px !important;
}

/* Махаме всякакви overlay / ленти */
.home-card-title::after,
.home-card::before,
.home-card::after{
  display: none !important;
}
/* ===== FORCE HOME CARD TITLES VISIBLE (FINAL) ===== */

.home-card-title,
.home-card .card-title,
.home-card .title{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  position: relative !important;
  z-index: 5 !important;

  background: transparent !important;
  color: #e60012 !important;     /* заглавие червено */

  padding: 14px 12px 6px !important;
  margin: 0 !important;

  text-align: center !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

.home-card-subtitle{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  position: relative !important;
  z-index: 5 !important;

  background: transparent !important;
  color: #1f1f1f !important;     /* подзаглавие почти черно */

  text-align: center !important;
  font-weight: 800 !important;
  font-size: 14px !important;

  margin: 4px 0 12px !important;
}
/* ===== HOME CARD TITLES – BOTTOM, CLEAN, HIKVISION STYLE ===== */

.home-card{
  position: relative;
}

/* контейнерът за текст долу */
.home-card-text,
.home-card-content{
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 18px !important;   /* ⬅️ долу */
  z-index: 6 !important;

  text-align: center !important;
  background: transparent !important;
  padding: 0 !important;
}

/* ЗАГЛАВИЕ */
.home-card-title,
.home-card .card-title,
.home-card .title{
  display: block !important;
  margin: 0 0 6px 0 !important;

  color: #e30613 !important;      /* HIKVISION червено */
  background: none !important;

  font-weight: 900 !important;
  font-size: 16px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;

  text-shadow: none !important;   /* ❌ без ефекти */
  box-shadow: none !important;
}

/* ПОДЗАГЛАВИЕ */
.home-card-subtitle{
  display: block !important;
  margin: 0 !important;

  color: #1c1c1c !important;      /* почти черно */
  background: none !important;

  font-weight: 700 !important;
  font-size: 14px !important;

  text-shadow: none !important;   /* ❌ без ефекти */
  box-shadow: none !important;
}
/* ===============================
   HOME CARD – shift image down
   (titles stay on top)
   =============================== */

/* контейнерът на снимката */
.home-card-media{
  padding-top: 56px !important;   /* ⬅️ сваля снимката надолу */
}

/* самата снимка – без scale/ефекти */
.home-card-media img{
  transform: none !important;
}
/* ===============================
   PARTNERS MARQUEE (FINAL)
=============================== */

.partners-section{
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 14px;
  text-align: center;
}

.partners-title{
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111;
}

/* контейнер */
.logo-marquee{
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* пистата */
.logo-track{
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;

  animation: logo-scroll 28s linear infinite; /* ⬅️ бавно → средно */
}

/* отделно лого */
.logo-item{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img{
  height: 54px;              /* уеднаквена височина */
  width: auto;
  object-fit: contain;
  opacity: .9;
  filter: grayscale(0);
  transition: opacity .2s ease;
}

/* лек hover ефект */
.logo-item img:hover{
  opacity: 1;
}

/* еднопосочно движение → */
@keyframes logo-scroll{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-50%);
  }
}

/* мобилно – малко по-бавно */
@media (max-width: 768px){
  .logo-track{
    animation-duration: 36s;
    gap: 40px;
  }

  .logo-item img{
    height: 46px;
  }
}
/* =========================
   PARTNERS (logo marquee)
   ========================= */
.partners-section{
  max-width: 1200px;
  margin: 26px auto 10px;
  padding: 0 14px;
}

.partners-title{
  text-align:center;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #111827;
}

/* контейнер с “маска” */
.logo-marquee{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  padding: 12px 0;
}

/* fade краища (по избор, изглежда премиум) */
.logo-marquee::before,
.logo-marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 90px;
  z-index: 2;
  pointer-events:none;
}
.logo-marquee::before{
  left:0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}
.logo-marquee::after{
  right:0;
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}

.logo-track{
  display:flex;
  align-items:center;
  gap: 34px;
  width: max-content;
  padding: 6px 24px;
  animation: partners-marquee 30s linear infinite; /* бавно */
  will-change: transform;
}

.logo-item{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  height: 54px;              /* височина на реда */
}

.logo-item img{
  height: 42px;              /* реална височина на логото */
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display:block;
  filter: none;
  opacity: .95;
}

/* hover pause (ако искаш) */
.logo-marquee:hover .logo-track{
  animation-play-state: paused;
}

/* еднопосочно движение наляво */
@keyframes partners-marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* защото дублираме 2 пъти */
}

/* мобилно – малко по-бързо и по-малки лога */
@media (max-width: 640px){
  .logo-track{ animation-duration: 22s; gap: 22px; }
  .logo-item{ height: 46px; }
  .logo-item img{ height: 34px; max-width: 130px; }
  .logo-marquee::before, .logo-marquee::after{ width: 50px; }
}
/* ===== Partners logos – vivid & bigger ===== */

/* контейнер */
.partners-strip{
  margin-top: 32px;
  padding: 22px 0;
}

/* редът с логата */
.logo-marquee{
  overflow: hidden;
}

/* самите лога */
.logo-item img{
  height: 54px;              /* ⬅️ по-големи (беше ~40) */
  width: auto;
  object-fit: contain;

  opacity: 1 !important;     /* ❌ махаме избледняване */
  filter: none !important;   /* ❌ махаме gray/blur ефекти */

  /* ⬇️ леко усилване на цветовете */
  filter: saturate(1.25) contrast(1.05);

  transition: transform .25s ease;
}

/* лек hover (по желание) */
.logo-item:hover img{
  transform: scale(1.05);
}
/* ===== Scroll to top button (global) ===== */
.scroll-top-btn{
  position: fixed;
  left: 18px;          /* ⬅️ най-ляво (с малко въздух) */
  bottom: 18px;
  z-index: 9999;

  width: 52px;
  height: 52px;
  border-radius: 999px;

  border: 0;
  cursor: pointer;

  background: var(--red);   /* червено */
  color: #fff;              /* бяла стрелка */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 900;

  box-shadow: 0 12px 26px rgba(0,0,0,.18);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, filter .18s ease;
}

.scroll-top-btn.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover{ filter: brightness(.95); }

/* на много малки екрани да не пречи */
.scroll-top-btn{
  position: fixed;
  right: 18px;   /* ➜ ВДЯСНО */
  left: auto;    /* ➜ изключваме лявото */
  bottom: 18px;

  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 999px;

  border: 0;
  cursor: pointer;

  background: var(--red);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 900;

  box-shadow: 0 12px 26px rgba(0,0,0,.18);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, filter .18s ease;
}
/* ===== Section titles (unified) ===== */
.sec-title{
  margin: 26px 0 18px;
  text-align:center;
  font-weight: 950;
  font-size: 26px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111827;
}

.sec-title .sec-accent{
  color: var(--red);
}

@media (max-width: 720px){
  .sec-title{ font-size: 20px; letter-spacing: .10em; }
}
/* ===== Section titles – refined, thin, elegant ===== */
.sec-title{
  margin: 26px 0 18px;
  padding: 10px 0;

  text-align: center;
  text-transform: uppercase;

  font-size: 22px;              /* ⬅️ по-малко */
  font-weight: 800;             /* ⬅️ по-тънко */
  letter-spacing: .12em;        /* ⬅️ по-спокойно */

  color: #111827;
  border-bottom: 1px solid rgba(0,0,0,.06); /* ⬅️ МНОГО тънък бордер */
}

/* червената част */
.sec-title .sec-accent{
  color: var(--red);
  font-weight: 800;             /* същата дебелина */
}

/* мобилно */
@media (max-width: 720px){
  .sec-title{
    font-size: 18px;
    letter-spacing: .1em;
  }
}
/* Cart page container (fix full width) */
.cart-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
/* Quantity controls – clear + / - */
.qty{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty .btn{
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
}

.qty .btn[name="dec"]{
  background: #f1f1f1;
  color: #333;
}

.qty .btn[name="inc"]{
  background: #2e7dff;
  color: #fff;
}

.qty-input{
  width: 60px;
  height: 36px;
  text-align: center;
  font-weight: 600;
}
/* Vertical qty controls */
.qty.vertical{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qty.vertical .btn{
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 18px;
  border-radius: 6px;
}

/* PLUS (green, up) */
.qty.vertical .btn[name="inc"]{
  background: #2e7d32;
  color: #fff;
}

/* MINUS (red, down) */
.qty.vertical .btn[name="dec"]{
  background: #c62828;
  color: #fff;
}

.qty.vertical .qty-input{
  width: 60px;
  height: 34px;
  text-align: center;
  font-weight: 600;
}
/* Vertical qty controls – refined */
.qty.vertical{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qty.vertical .btn{
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  cursor: pointer;
}

/* PLUS */
.qty.vertical .btn[name="inc"]{
  background: #2e7d32;
  color: #fff;
}

/* MINUS */
.qty.vertical .btn[name="dec"]{
  background: #c62828;
  color: #fff;
}

.qty.vertical .btn:hover{
  transform: translateY(-1px);
}

.qty.vertical .qty-input{
  width: 52px;
  height: 32px;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}
/* FIX: qty number invisible */
.qty-input{
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #d0d7de !important;
}
/* nicer red button */
.btn.btn-red{
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
}
/* FORCE show qty number in cart */
.qty-input{
  -webkit-text-fill-color: #000 !important; /* важно за Chrome/Safari */
  color: #000 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: #fff !important;
  border: 1px solid #d0d7de !important;
}
/* FIX invisible number in qty input */
.qty.vertical .qty-input{
  line-height: 32px !important;   /* <<< ТОВА ЛИПСВАШЕ */
  padding: 0 !important;
  color: #000 !important;
  background: #fff !important;
}
/* Continue shopping button */
.btn-continue{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f4f6f8;
  color: #6a1b9a;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e1e5ea;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-continue:hover{
  background: #19ba49;
  color: #fff;
  border-color: #19ba49;
  transform: translateY(-1px);
}
.password-hint{
  display:block;
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
}
/* Captcha – make it obvious */
.captcha-wrap{ margin-top: 8px; }

.captcha-box{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.captcha-q{
  min-width: 140px;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f6f8;
  border: 1px solid #e1e5ea;
}

.captcha-input{
  max-width: 220px;
}

.captcha-hint{
  display:block;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}
/* ===== Toast notification ===== */
.toast{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(-10px);
  transition: all .3s ease;
}

.toast-success{
  background: #16a34a;
  color: #fff;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}
.in-cart-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:10px;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  font-size:13px;
  color:#111827;
  white-space:nowrap;
}
.btn-add{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.btn.is-loading{
  opacity:.75;
  pointer-events:none;
}
.btn.is-loading::after{
  content:"…";
  margin-left:6px;
}
.toast{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  padding: 12px 14px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}
.toast-success{ background:#0f5132; }
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.form-grid label{ display:flex; flex-direction:column; gap:6px; }
.form-grid input, .form-grid textarea{
  width:100%;
}
.form-full{ grid-column: 1 / -1; }

.captcha-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.captcha-q{
  display:inline-flex;
  min-width:72px;
  font-weight:700;
}

.form-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
  flex-wrap:wrap;
}

.map-wrap{
  margin-top:10px;
  width:100%;
  overflow:hidden;
  border-radius:16px;
}
.map-wrap iframe{
  height: 260px;
}

@media (max-width: 900px){
  .map-wrap iframe{
    height: 220px;
  }
}

/* ===== Contact form (contacts.php) ===== */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.form-grid label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:600;
}

.form-grid input,
.form-grid textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
  outline:none;
}

.form-grid textarea{ resize: vertical; min-height: 140px; }

.form-grid input:focus,
.form-grid textarea:focus{
  border-color: rgba(220, 38, 38, .55);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder{
  color: rgba(255,255,255,.0); /* няма placeholder? няма проблем */
}

/* full width rows */
.form-full{ grid-column: 1 / -1; }

/* captcha row */
.captcha-row{
  display:flex;
  align-items:stretch;
  gap:12px;
}

.captcha-q{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,.03);
  font-weight:800;
}

/* buttons row */
.form-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:14px;
  align-items:center;
  flex-wrap:wrap;
}

/* map */
.map-wrap{
  margin-top:14px;
  width:100%;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.15);
}

.map-wrap iframe{
  width:100%;
  height:360px;
  border:0;
  display:block;
}

/* make it mobile friendly */
@media (max-width: 820px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-actions{ justify-content:stretch; }
  .form-actions .btn{ width:100%; }
  .map-wrap iframe{ height:320px; }
}
/* ===== Contact page: form LEFT / map RIGHT ===== */
.contact-layout{
  display:grid;
  grid-template-columns: 1.1fr .9fr; /* формата малко по-широка */
  gap:24px;
  align-items:start;
}

/* картата да не лепи отгоре */
.contact-layout .map-wrap{
  margin-top:0;
}

/* mobile */
@media (max-width: 900px){
  .contact-layout{
    grid-template-columns: 1fr;
  }
}
/* Контакти – еднакви карти */
.contact-layout{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch; /* 🔴 това е важното */
}

.contact-layout > .card{
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Телефони – на един ред */
.contact-phones{
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 14px;
}

.contact-phones a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.card{
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
/* Контакти – стегнат текст */
.card h2{
  margin-bottom: 12px;
}

.card p{
  margin: 6px 0;
  line-height: 1.35;
}
/* Телефони – компактни */
.contact-phones{
  display: flex;
  gap: 12px;              /* ⬅️ по-малко разстояние */
  align-items: center;
  margin: 6px 0 8px;      /* ⬅️ свиваме вертикално */
}

.contact-phones a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  line-height: 1.2;       /* ⬅️ това е ключово */
}
/* Име на фирма */
.card .company-name{
  margin: 4px 0 6px;
  font-weight: 600;
}
/* ===== Contacts page polish ===== */
.contact-layout{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px){
  .contact-layout{ grid-template-columns: 1fr; }
}

.contact-layout > .card{
  height:100%;
  display:flex;
  flex-direction:column;
}

/* Заглавия – еднакъв ритъм */
.contact-layout .card h2{
  margin: 0 0 12px;
}

/* Фирма */
.contact-card .company-name{
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.25;
}

/* Редове: икона + текст */
.contact-rows{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-row{
  display:flex;
  align-items:flex-start;
  gap: 10px;
}

.contact-ico{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  flex: 0 0 34px;
  line-height: 1;
}

.contact-val{
  line-height: 1.25;
  padding-top: 6px; /* лека визуална центровка спрямо иконата */
}

/* Телефони – един до друг, компактно */
.contact-phones{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-phones a{
  display:inline-flex;
  align-items:center;
  font-weight: 700;
  text-decoration:none;
  line-height: 1.1;
}

/* Адрес – по-малък и приятен */
.contact-address{
  font-size: 14px;
  color: rgba(0,0,0,.78);
}

/* Карта */
.map-wrap{
  margin-top: auto; /* бутаме картата надолу да изравни височината красиво */
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.map-wrap iframe{
  width:100%;
  height: 320px;
  border:0;
  display:block;
}
.contact-email a{
  font-weight: 700;
  text-decoration: none;
  line-height: 1.1;
}
/* Hover акцент (телефони + имейл) */
.contact-phones a,
.contact-email a{
  color: inherit;
  transition: color .15s ease, opacity .15s ease;
}

.contact-phones a:hover,
.contact-email a:hover{
  color: var(--red, #e11d2e);
}
/* ===== GLOBAL CALL BUTTON ===== */
.global-call-btn{
  position: fixed;
  left: 18px;
  bottom: 18px;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #e11d2e;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 99999;

  transition: transform .15s ease, box-shadow .15s ease;
}

.global-call-btn:hover{
  transform: scale(1.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.32);
}

.global-call-btn:active{
  transform: scale(0.97);
}

/* Иконка */
.global-call-btn .call-icon{
  font-size: 22px;
  line-height: 1;
}

/* Малко по-нагоре на мобилни (да не пречи) */
@media (max-width: 768px){
  .global-call-btn{
    bottom: 80px;
  }
}
/* ===== GLOBAL CALL BUTTON (ICON ONLY) ===== */
.global-call-btn{
  position: fixed;
  left: 18px;
  bottom: 18px;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #e11d2e;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 99999;

  transition: transform .15s ease, box-shadow .15s ease;
}

.global-call-btn:hover{
  transform: scale(1.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.32);
}

.global-call-btn:active{
  transform: scale(0.97);
}

/* Иконка */
.global-call-btn .call-icon{
  font-size: 22px;
  line-height: 1;
}

/* Малко по-нагоре на мобилни (да не пречи) */
@media (max-width: 768px){
  .global-call-btn{
    bottom: 80px;
  }
}
/* Footer tree */
.footer-tree ul{
  margin: 8px 0 0 14px;
  padding: 0;
  list-style: none;
}
.footer-tree > li { margin-bottom: 10px; }
.footer-tree ul li { margin: 6px 0; opacity: .95; }
.footer-tree ul a { font-size: 14px; }
.footer-disabled{
  color: #9aa0a6;
  cursor: default;
  opacity: .7;
}
/* ===== Footer layout upgrade ===== */
.site-footer .footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* по-малко ширина за слогана да не бута */
.site-footer .footer-left{
  max-width: 380px;
}

/* линкове */
.site-footer .footer-col h4{
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}

.site-footer .footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col li{
  margin: 8px 0;
}

.site-footer .footer-col a{
  text-decoration: none;
  opacity: .92;
}
.site-footer .footer-col a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Footer tree (децата) */
.footer-tree ul{
  margin: 8px 0 0 14px;
  padding: 0;
  list-style: none;
}
.footer-tree > li{ margin-bottom: 10px; }
.footer-tree ul li{ margin: 6px 0; opacity: .95; }
.footer-tree ul a{ font-size: 14px; }

/* Disabled items */
.footer-disabled{
  color: #9aa0a6;
  cursor: default;
  opacity: .7;
}

/* Mobile: става на 1 колона */
@media (max-width: 900px){
  .site-footer .footer-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer .footer-left{
    max-width: none;
  }
}
/* Footer bottom row */
.footer-bottom-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom-links,
.footer-bottom-contacts{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-row a{
  text-decoration:none;
  opacity:.9;
}
.footer-bottom-row a:hover{
  opacity:1;
  text-decoration:underline;
}

.footer-bottom-row .sep{
  opacity:.4;
}
.footer-tree ul {
  margin-left: 14px;
  margin-top: 6px;
}

.footer-tree span {
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.footer-tree .disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #bbb;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}
.cat-sub-link{
  display:block;
  margin: 10px 0 6px;
  font-weight: 700;
  text-decoration: none;
}

.cat-sub-link.active{
  text-decoration: underline;
}
/* Parent camera categories (TVI-HD / IP) */
.cat-parent-box{
  display: block;
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 2px solid #e30613;
  border-radius: 10px;
  color: #e30613;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  transition: all .15s ease;
}

.cat-parent-box:hover{
  background: #e30613;
  color: #fff;
}

.cat-parent-box.active{
  background: #e30613;
  color: #fff;
}
/* ===== монтаж страница – дребни помощни стилове ===== */
.lead{
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.hr-accent{
  border: 0;
  border-top: 1px solid rgba(220, 0, 0, .55);
  margin: 16px 0;
}

.bullets-check{
  margin: 10px 0 0;
  padding-left: 18px;
}

.steps{
  margin: 10px 0 0;
  padding-left: 18px;
}

.contact-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 8px;
}

.small-muted{
  font-size: .92rem;
  opacity: .85;
  margin-top: 10px;
}
@media (max-width: 768px) {

  .sort-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .content {
    padding-top: 20px;
  }

  .floating-phone,
  .scroll-top-btn {
    bottom: 80px; /* да не закриват карти */
  }
}
