/* ===========================================================
   TovarBiz theme — tobachka-style restyle of OpenCart 4
   (unique colors/logo; same layout language)
   =========================================================== */
:root{
  --tb-orange:#f0863f;
  --tb-orange-dark:#e0702a;
  --tb-dark:#303237;
  --tb-dark-2:#3c3f45;
  --tb-red:#e22b2b;
  --tb-text:#2b2b2b;
  --tb-muted:#7a7d83;
  --tb-line:#ececec;
  --tb-badge:#c3b1e1;
  --tb-green:#3fae54;
  --tb-radius:10px;
  --tb-shadow:0 4px 18px rgba(0,0,0,.08);
}

/* ---------- base ---------- */
body{
  font-family:"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--tb-text);
  background:#ffffff;
  background-image:linear-gradient(180deg,#fde7dd 0%,#fdeee7 220px,#ffffff 460px);
  background-repeat:no-repeat;
}
a{color:var(--tb-text);text-decoration:none;}
a:hover{color:var(--tb-orange);}
.container{max-width:1500px;}
main{min-height:50vh;}
h1,h2,h3,h4,h5{color:#222;}

/* ---------- top utility bar (slim) ---------- */
#top{background:transparent;padding:6px 0;font-size:13px;border:0;min-height:0;}
#top .list-inline-item a{color:var(--tb-muted);}
#top .list-inline-item a:hover{color:var(--tb-orange);}

/* ---------- HEADER ---------- */
.tb-header{position:relative;z-index:30;}
.tb-top-inner{
  display:flex;align-items:center;gap:24px;
  padding:14px 0 10px;
}
.tb-logo{flex:0 0 auto;}
.tb-logo img{height:54px;width:auto;display:block;}
.tb-logo a{
  font-size:40px;font-weight:800;letter-spacing:-1px;
  font-family:"Segoe UI",Arial,sans-serif;color:#1d1d1f;line-height:1;
  display:inline-flex;align-items:center;
}
.tb-logo a .accent{color:var(--tb-orange);}
.tb-logo a .flame{color:var(--tb-red);transform:rotate(-8deg);margin-right:2px;font-weight:900;}

.tb-search{flex:1 1 auto;}
.tb-search .input-group{margin:0!important;box-shadow:var(--tb-shadow);border-radius:var(--tb-radius);overflow:hidden;}
.tb-search .form-control{border:1px solid #e6e6e6;border-right:0;font-size:16px;padding:12px 16px;height:auto;}
.tb-search .btn{background:#fff;border:1px solid #e6e6e6;border-left:0;color:#444;padding:0 18px;}
.tb-search .btn:hover{color:var(--tb-orange);}

.tb-contacts{flex:0 0 auto;text-align:right;line-height:1.35;}
.tb-hours{font-size:13px;color:#6a6d72;letter-spacing:.3px;}
.tb-phone{font-size:22px;font-weight:800;color:var(--tb-red);white-space:nowrap;}
.tb-phone .code{color:#3a3a3a;font-weight:700;}
.tb-online{font-size:13px;color:#555;display:flex;align-items:center;gap:6px;justify-content:flex-end;margin-top:2px;}
.tb-online .dot{width:9px;height:9px;border-radius:50%;background:var(--tb-green);display:inline-block;box-shadow:0 0 0 3px rgba(63,174,84,.18);}
.tb-online a{width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:12px;}
.tb-online a.wa{background:#25d366;}
.tb-online a.tg{background:#2aabee;}

/* ---------- NAV ROW (catalog btn + orange info nav + cart) ---------- */
.tb-navrow{padding:4px 0 14px;}
.tb-navrow-inner{display:flex;align-items:stretch;gap:14px;}

.tb-catalog{position:relative;flex:0 0 300px;z-index:40;}
.tb-catalog-btn{
  width:100%;height:100%;min-height:50px;
  background:linear-gradient(180deg,var(--tb-dark-2),var(--tb-dark));
  color:#fff;border:0;border-radius:var(--tb-radius);
  display:flex;align-items:center;gap:12px;padding:0 18px;
  font-size:17px;font-weight:600;cursor:pointer;
}
.tb-catalog-btn .bars{font-size:15px;}
.tb-catalog-btn .caret{margin-left:auto;transition:transform .2s;}
.tb-catalog:hover .tb-catalog-btn .caret{transform:rotate(180deg);}

/* category dropdown panel (filled by {{ menu }}) */
.tb-catalog-menu{
  position:absolute;top:calc(100% + 6px);left:0;min-width:320px;
  background:#fff;border-radius:var(--tb-radius);box-shadow:var(--tb-shadow);
  border:1px solid #eee;padding:8px 0;display:none;
}
.tb-catalog:hover .tb-catalog-menu,.tb-catalog.tb-open .tb-catalog-menu{display:block;}
.tb-catalog-menu ul{list-style:none;margin:0;padding:0;}
.tb-catalog-menu>ul>li{position:relative;}
.tb-catalog-menu>ul>li>a{
  display:flex;align-items:center;justify-content:space-between;
  padding:11px 20px;font-size:15px;color:#2b2b2b;font-weight:500;
}
.tb-catalog-menu>ul>li>a:hover{background:#fdf1ea;color:var(--tb-orange);}
.tb-catalog-menu>ul>li.has-children>a::after{content:"\203A";color:#bbb;font-size:18px;}
/* flyout submenu */
.tb-submenu{
  position:absolute;top:0;left:100%;min-width:260px;background:#fff;
  box-shadow:var(--tb-shadow);border:1px solid #eee;border-radius:var(--tb-radius);
  padding:8px 0;display:none;
}
.tb-catalog-menu>ul>li:hover>.tb-submenu{display:block;}
.tb-submenu a{display:block;padding:9px 18px;font-size:14px;color:#444;}
.tb-submenu a:hover{background:#fdf1ea;color:var(--tb-orange);}

.tb-infonav{
  flex:1 1 auto;background:var(--tb-orange);border-radius:var(--tb-radius);
  display:flex;align-items:center;gap:6px;padding:0 14px;flex-wrap:wrap;
}
.tb-infonav a{
  color:#fff;font-weight:600;font-size:15px;padding:8px 14px;border-radius:6px;white-space:nowrap;
}
.tb-infonav a:hover{background:rgba(255,255,255,.18);color:#fff;}

.tb-cart{flex:0 0 240px;}
.tb-cart #header-cart>.btn,.tb-cart .btn-inverse,.tb-cart .dropdown>.btn{
  width:100%;min-height:50px;background:linear-gradient(180deg,var(--tb-dark-2),var(--tb-dark))!important;
  color:#fff!important;border:0!important;border-radius:var(--tb-radius)!important;
  display:flex;align-items:center;gap:10px;justify-content:flex-start;font-weight:600;
}
.tb-cart #header-cart>.btn:hover{background:var(--tb-dark)!important;}

/* hide the default category navbar (we render it inside catalog dropdown) */
#menu.navbar{display:none;}

/* ---------- breadcrumb ---------- */
#breadcrumb,.breadcrumb{background:transparent;padding-left:0;}
.breadcrumb{font-size:14px;}

/* ---------- HERO (admin-managed banner module) ---------- */
#content .carousel{max-width:730px;margin:10px auto 30px;border-radius:14px;overflow:hidden;box-shadow:var(--tb-shadow);}
#content .carousel .row{margin:0;}
#content .carousel [class^="col-"]{padding:0;}
#content .carousel img{width:100%;height:130px;object-fit:cover;object-position:center;display:block;}
@media (max-width:767px){#content .carousel{max-width:100%;}#content .carousel img{height:90px;}}

/* ---------- SECTION TITLES ---------- */
.tb-section{margin:34px 0;}
.tb-section-title{display:flex;align-items:center;gap:22px;margin-bottom:18px;}
.tb-section-title h2,.tb-section-title h3{font-size:30px;font-weight:800;margin:0;white-space:nowrap;}
.tb-section-title::after{content:"";flex:1 1 auto;height:2px;background:var(--tb-line);}

/* module heading fallback */
.module h3,.product-grid>h3{font-size:28px;font-weight:800;border-bottom:2px solid var(--tb-line);padding-bottom:12px;margin-bottom:18px;}

/* ---------- PRODUCT CARDS ---------- */
.product-thumb{
  position:relative;background:#fff;border:1px solid #f0f0f0;border-radius:14px;
  box-shadow:var(--tb-shadow);overflow:hidden;height:100%;display:flex;flex-direction:column;
  transition:transform .15s,box-shadow .15s;
}
.product-thumb:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,0,0,.12);}
.product-thumb .image{padding:18px;text-align:center;background:#fff;}
.product-thumb .image img{max-height:230px;object-fit:contain;}
.product-thumb .tb-badge{
  position:absolute;top:14px;left:14px;background:var(--tb-badge);color:#3b2d5a;
  font-size:12px;font-weight:700;padding:5px 14px;border-radius:20px;z-index:3;letter-spacing:.3px;
}
.product-thumb .tb-badge.new{background:#bfe3c4;color:#1f5b2c;}
.product-thumb .content{padding:0 18px 18px;display:flex;flex-direction:column;flex:1 1 auto;}
.product-thumb .description{flex:1 1 auto;}
.product-thumb h4{font-size:16px;font-weight:700;line-height:1.3;margin:4px 0 8px;}
.product-thumb h4 a{color:#222;}
.product-thumb h4 a:hover{color:var(--tb-orange);}
.product-thumb .description p{font-size:13px;color:var(--tb-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.product-thumb .price{font-size:22px;font-weight:800;color:#1d1d1f;margin:8px 0 12px;}
.product-thumb .price-old{font-size:15px;color:#aaa;text-decoration:line-through;font-weight:500;margin-left:6px;}
.product-thumb .price-tax{display:none;}
.product-thumb form .button{display:flex;gap:8px;}
.product-thumb .btn-buy{
  flex:1 1 auto;background:var(--tb-orange);color:#fff;border:0;border-radius:9px;
  padding:11px 10px;font-weight:700;font-size:15px;cursor:pointer;
}
.product-thumb .btn-buy:hover{background:var(--tb-orange-dark);}
.product-thumb .btn-1click{
  flex:0 0 auto;background:var(--tb-dark);color:#fff;border:0;border-radius:9px;
  padding:11px 14px;font-weight:600;font-size:14px;cursor:pointer;
}
.product-thumb .btn-1click:hover{background:#000;}
.product-thumb .btn-ico{flex:0 0 auto;background:#f3f3f3;border:0;border-radius:9px;width:44px;color:#666;}
.product-thumb .btn-ico:hover{background:#eee;color:var(--tb-orange);}

/* product listing grid spacing */
#product-category .product-thumb,#product-search .product-thumb{margin-bottom:0;}

/* ---------- left column category box ---------- */
.list-group-item.active,#column-left .list-group-item.active{background:var(--tb-orange);border-color:var(--tb-orange);}
#column-left .list-group-item a:hover{color:var(--tb-orange);}

/* ---------- buttons (global accent) ---------- */
.btn-primary{background:var(--tb-orange);border-color:var(--tb-orange);}
.btn-primary:hover{background:var(--tb-orange-dark);border-color:var(--tb-orange-dark);}
a.btn-primary,.buttons .btn-primary{background:var(--tb-orange);border-color:var(--tb-orange);}

/* ---------- FOOTER (slim, light — tobachka style) ---------- */
footer,.tb-footer{background:#fbe9df;color:#5a5a5a;margin-top:46px;padding:0;}
.tb-footer-contacts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding:18px 0 4px;font-size:14px;color:#4a4a4a;border-bottom:1px solid rgba(0,0,0,.06);}
.tb-footer-contacts span,.tb-footer-contacts a{display:inline-flex;align-items:center;gap:7px;color:#3a3a3a;}
.tb-footer-contacts a:hover{color:var(--tb-orange);}
.tb-footer-contacts i{color:var(--tb-orange);}
.tb-footer-bar{display:flex;align-items:center;justify-content:space-between;padding:20px 0;flex-wrap:wrap;gap:14px;}
.tb-footer-links{display:flex;gap:26px;flex-wrap:wrap;}
.tb-footer-links a{color:#3a3a3a;font-weight:600;font-size:15px;}
.tb-footer-links a:hover{color:var(--tb-orange);}
.tb-footer-social{display:flex;gap:12px;}
.tb-footer-social a{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff;}
.tb-footer-social a.tg{background:#2aabee;}
.tb-footer-social a.wa{background:#25d366;}
.tb-footer-copy{border-top:1px solid rgba(0,0,0,.08);padding:12px 0 16px;font-size:13px;color:#8a7d77;}

/* scroll-to-top */
.tb-totop{position:fixed;right:22px;bottom:96px;width:46px;height:46px;border-radius:12px;background:#9a9a9a;color:#fff;border:0;display:none;align-items:center;justify-content:center;font-size:18px;cursor:pointer;z-index:9998;box-shadow:0 6px 18px rgba(0,0,0,.2);}
.tb-totop:hover{background:#7d7d7d;}
.tb-totop.show{display:flex;}

/* ---------- ORDER SUCCESS: оплата через менеджера ---------- */
.tb-order-pay{background:#fff;border:2px solid var(--tb-orange);border-radius:14px;padding:22px 24px;margin:18px 0;box-shadow:var(--tb-shadow);}
.tb-order-pay h3{margin:0 0 8px;font-size:22px;}
.tb-order-pay p{color:#555;margin:0 0 16px;}
.tb-order-pay-btns{display:flex;gap:12px;flex-wrap:wrap;}
.tb-order-pay-btns a{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:10px;color:#fff;font-weight:700;font-size:15px;}
.tb-order-pay-btns a.tg{background:#2aabee;}
.tb-order-pay-btns a.wa{background:#25d366;}
.tb-order-pay-btns a.ph{background:var(--tb-dark);}
.tb-order-pay-btns a:hover{opacity:.9;color:#fff;}

/* ---------- купон за регистрацию ---------- */
.tb-register-promo{background:linear-gradient(90deg,#fff3ec,#ffe9dc);border:1px dashed var(--tb-orange);border-radius:12px;padding:14px 18px;margin:0 0 18px;font-size:16px;color:#5a3d2b;}
.tb-register-promo b{color:var(--tb-orange-dark);}

/* ---------- SUPPORT WIDGET ---------- */
.tb-support{position:fixed;right:22px;bottom:22px;z-index:9999;}
.tb-support-btn{
  width:62px;height:62px;border-radius:50%;background:var(--tb-orange);color:#fff;border:0;
  box-shadow:0 8px 24px rgba(240,134,63,.5);font-size:26px;cursor:pointer;display:flex;align-items:center;justify-content:center;
  animation:tbpulse 2.2s infinite;
}
@keyframes tbpulse{0%{box-shadow:0 0 0 0 rgba(240,134,63,.45);}70%{box-shadow:0 0 0 18px rgba(240,134,63,0);}100%{box-shadow:0 0 0 0 rgba(240,134,63,0);}}
.tb-support-panel{
  position:absolute;right:0;bottom:78px;width:320px;background:#fff;border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);overflow:hidden;display:none;
}
.tb-support.open .tb-support-panel{display:block;}
.tb-support-head{background:var(--tb-dark);color:#fff;padding:16px 18px;}
.tb-support-head b{font-size:16px;}
.tb-support-head .st{font-size:12px;color:#9fe0ab;display:flex;align-items:center;gap:6px;margin-top:3px;}
.tb-support-head .st .dot{width:8px;height:8px;border-radius:50%;background:var(--tb-green);display:inline-block;}
.tb-support-body{padding:16px 18px;font-size:14px;color:#444;}
.tb-support-body .msg{background:#f4f5f6;border-radius:12px;padding:10px 12px;margin-bottom:12px;}
.tb-support-body textarea{width:100%;border:1px solid #e2e2e2;border-radius:10px;padding:10px;font-size:14px;resize:none;}
.tb-support-body .send{width:100%;margin-top:10px;background:var(--tb-orange);color:#fff;border:0;border-radius:10px;padding:11px;font-weight:700;cursor:pointer;}
.tb-support-body .send:hover{background:var(--tb-orange-dark);}
.tb-support-body .send:disabled{opacity:.6;cursor:default;}
.tb-support-body #tbSupportContact{width:100%;margin-top:10px;border:1px solid #e2e2e2;border-radius:10px;padding:10px;font-size:14px;}
.tb-support-note{font-size:12px;margin-top:8px;color:#1c8a3b;}
.tb-support-note.err{color:#d33a2c;}
.tb-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;}
.tb-faq{margin-top:6px;}
.tb-faq details{border:1px solid #ececec;border-radius:10px;margin-bottom:10px;background:#fff;}
.tb-faq summary{cursor:pointer;padding:13px 40px 13px 16px;font-weight:600;color:#2c2c2c;list-style:none;position:relative;}
.tb-faq summary::-webkit-details-marker{display:none;}
.tb-faq summary::after{content:'+';position:absolute;right:16px;top:11px;color:var(--tb-orange);font-weight:700;font-size:20px;}
.tb-faq details[open] summary::after{content:'\2212';}
.tb-faq details[open] summary{border-bottom:1px solid #f1f1f1;}
.tb-faq details>div{padding:12px 16px;color:#555;line-height:1.55;}
.tb-support-chan{display:flex;gap:8px;margin-top:12px;}
.tb-support-chan a{flex:1;text-align:center;padding:9px;border-radius:10px;color:#fff;font-weight:600;font-size:13px;}
.tb-support-chan a.wa{background:#25d366;}
.tb-support-chan a.tg{background:#2aabee;}

/* ---------- responsive ---------- */
@media (max-width:991px){
  .tb-top-inner{flex-wrap:wrap;gap:12px;}
  .tb-search{order:3;flex-basis:100%;}
  .tb-contacts{margin-left:auto;}
  .tb-navrow-inner{flex-wrap:wrap;}
  .tb-catalog{flex-basis:100%;}
  .tb-cart{flex-basis:100%;}
  .tb-hero-text{max-width:100%;padding:30px;}
  .tb-hero-img{display:none;}
  .tb-logo a{font-size:32px;}
}
