
:root{--brand-blue:#0f172a;--brand-red:#ff3333;--brand-gray:#f8f9fa;--text-muted:#6b7280;--link-blue:#3b82f6;--border:#e5e7eb;--soft:#f9fafb}*{box-sizing:border-box}body{font-family:'Inter',sans-serif;color:#1d1d1f;background:#fff}a{text-decoration:none}.topbar{background:var(--brand-blue);color:#fff;font-size:13px}.topbar a{color:#fff;transition:opacity .2s}.topbar a:hover{opacity:.8}.topbar .link-blue{color:var(--link-blue)}.topbar i{color:#9ca3af;margin-right:4px}.main-header{padding:24px 0 16px;background:#fff}.logo-link{display:block;color:inherit}.logo-text{font-size:26px;font-weight:800;line-height:1;letter-spacing:-.5px}.logo-text .blue{color:var(--brand-blue)}.logo-text .red,.red{color:var(--brand-red)!important}.logo-subtitle{font-size:11px;color:var(--text-muted);margin-top:2px;display:block}.btn-catalog{background:var(--brand-blue);color:#fff;font-weight:500;padding:10px 24px;border-radius:6px;display:flex;align-items:center;gap:10px}.btn-catalog:hover{background:#1e293b;color:#fff}.search-input{border:1px solid var(--border);border-right:none;box-shadow:none!important;padding-left:16px}.search-input::placeholder{color:#9ca3af;font-size:14px}.btn-search{background:var(--brand-red);color:#fff;font-weight:500;padding:10px 32px;border-radius:0 6px 6px 0!important}.btn-search:hover{background:#e62e2e;color:#fff}.action-item{text-align:center;cursor:pointer;color:var(--brand-blue);transition:color .2s}.action-item:hover{color:var(--brand-red)}.action-icon{font-size:20px;margin-bottom:2px;position:relative}.action-text{font-size:12px}.cart-box{background:var(--brand-gray);border-radius:8px;padding:8px 16px;display:flex;align-items:center;gap:12px;color:var(--brand-blue)}.cart-box .icon-wrapper{position:relative}.cart-box .bi-cart2{font-size:22px;color:var(--brand-red)}.cart-box .badge{background:var(--brand-red);font-size:10px;padding:4px 6px;position:absolute;top:-5px;right:-8px;border:2px solid var(--brand-gray)}.cart-info .title{font-size:12px;font-weight:600;line-height:1.2}.cart-info .price{font-size:13px;font-weight:700;line-height:1.2}.nav-links{display:flex;gap:24px;justify-content:flex-end;margin-top:8px}.nav-links a{color:var(--brand-blue);font-size:13px;font-weight:500;transition:color .2s}.nav-links a:hover{color:var(--brand-red)}.features-bar{background:#f9fafb;border-bottom:1px solid #f3f4f6;padding:16px 0}.feature-item{display:flex;align-items:center;gap:12px}.feature-item i{font-size:24px;color:#9ca3af}.feature-text-title{font-size:13px;font-weight:600;color:var(--brand-blue);line-height:1.2}.feature-text-sub{font-size:11px;color:var(--text-muted);line-height:1.2;margin-top:2px}.catalog-wrap{position:relative}.catalog-panel{position:absolute;top:calc(100% + 12px);left:0;width:680px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,.15);padding:18px;z-index:50;display:none}.catalog-panel.is-open{display:block}.catalog-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.catalog-panel-head button{border:0;background:transparent;font-size:18px}.catalog-panel-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.catalog-panel-link{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:8px;padding:12px;border-radius:10px;color:var(--brand-blue);background:#f8fafc}.catalog-panel-link i{grid-row:span 2;font-size:21px;color:var(--brand-red)}.catalog-panel-link small{color:var(--text-muted);font-size:11px}.catalog-panel-link:hover{background:#f1f5f9}.mobile-menu-btn{width:42px;height:42px;border:0;border-radius:8px;background:var(--brand-blue);color:#fff;font-size:24px}.mobile-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:70;display:none}.mobile-drawer{position:fixed;top:0;left:-360px;width:340px;max-width:92vw;height:100dvh;background:#fff;z-index:80;transition:left .25s ease;padding:18px;overflow:auto}.drawer-open .mobile-backdrop{display:block}.drawer-open .mobile-drawer{left:0}.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:18px}.drawer-head button{border:0;background:#f3f4f6;border-radius:8px;width:40px;height:40px}.drawer-search{display:flex;gap:8px;margin-bottom:16px}.drawer-search input{flex:1;border:1px solid var(--border);border-radius:8px;padding:10px}.drawer-search button{border:0;background:var(--brand-red);color:#fff;border-radius:8px;padding:0 14px}.drawer-links{display:flex;flex-direction:column}.drawer-links a{padding:13px 0;border-bottom:1px solid #f3f4f6;color:var(--brand-blue);font-weight:500;display:flex;justify-content:space-between}.drawer-links span{color:var(--text-muted);font-weight:400}.section-padding,.section{padding-top:48px;padding-bottom:48px}.section-header,.section-head,.catalog-header,.brands-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px;gap:18px}.section-title,.catalog-header h2,.brands-header h2,.solutions-header h2{font-size:24px;font-weight:700;color:var(--brand-blue);margin:0}.link-view-all,.link-more{font-size:14px;color:var(--link-blue);font-weight:500;display:flex;align-items:center;gap:4px}.category-grid{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width:576px){.category-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width:992px){.category-grid{grid-template-columns:repeat(3,1fr)}}@media (min-width:1200px){.category-grid{grid-template-columns:repeat(5,1fr)}}.category-card{background:var(--brand-gray);border-radius:12px;padding:20px;position:relative;overflow:hidden;min-height:160px;display:block;transition:transform .3s,box-shadow .3s}.category-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(15,23,42,.08)}.category-card .title{color:var(--brand-blue);font-size:15px;font-weight:600;margin-bottom:4px;position:relative;z-index:2;line-height:1.2}.category-card .count{color:var(--text-muted);font-size:12px;position:relative;z-index:2}.category-card img{position:absolute;bottom:10px;right:10px;max-height:90px;max-width:110px;object-fit:contain;z-index:1}.promo-card-red{background:var(--brand-red)}@media (min-width:1200px){.promo-card-red{grid-column:span 2}}.promo-card-red .title{color:#fff;font-size:18px}.promo-card-red .count{color:rgba(255,255,255,.8)}.percent-bg{position:absolute;right:10px;bottom:-15px;font-size:100px;font-weight:800;color:rgba(255,255,255,.15);line-height:1;z-index:1}.promo-arrow{background:#fff;color:var(--brand-red);width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:24px;position:relative;z-index:2}.business-benefits{background:#f8fafc;border-radius:16px;padding:32px;margin-top:16px}.business-benefits .title{font-size:20px;font-weight:700;color:var(--brand-blue);margin-bottom:24px}.benefits-scroll-wrapper{display:flex;gap:20px;overflow-x:auto;padding-bottom:12px;scrollbar-width:none}.benefits-scroll-wrapper::-webkit-scrollbar{display:none}.benefit-col{flex:0 0 calc(50% - 10px)}@media (min-width:768px){.benefit-col{flex:0 0 calc(25% - 15px)}}@media (min-width:1200px){.benefit-col{flex:0 0 calc(12.5% - 18px)}}.benefit-box{display:flex;flex-direction:column;gap:12px}.benefit-box i{font-size:22px;color:var(--brand-blue)}.benefit-box .b-title{font-size:13px;font-weight:600;color:var(--brand-blue);line-height:1.2}.benefit-box .b-desc{font-size:11px;color:var(--text-muted);line-height:1.3}.catalog-section{padding-bottom:64px}.sort-select{border:1px solid var(--border);border-radius:6px;padding:8px 32px 8px 12px;font-size:13px;color:var(--brand-blue);background:#fff;cursor:pointer;box-shadow:none}.filter-sidebar{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px}.filter-block{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid #f3f4f6}.filter-block:last-child{margin:0;padding:0;border:0}.filter-title{font-size:15px;font-weight:600;color:var(--brand-blue);margin-bottom:16px}.form-check{margin-bottom:12px}.form-check-label{font-size:13px;color:#4b5563;cursor:pointer}.form-check-input:checked{background-color:var(--brand-blue);border-color:var(--brand-blue)}.price-range-inputs,.price-row{display:flex;align-items:center;gap:8px}.price-input-wrapper{position:relative;flex:1}.price-input-wrapper span{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:12px;color:#9ca3af}.price-range-inputs input,.field{width:100%;border:1px solid var(--border);border-radius:6px;padding:8px 8px 8px 24px;font-size:13px;outline:none;transition:border-color .2s}.field{padding:11px 12px}.price-range-inputs input:focus,.field:focus{border-color:var(--brand-blue)}.btn-apply-filter,.btn-blue{background:var(--brand-blue);color:#fff;font-weight:500;padding:10px;border-radius:6px;border:none;font-size:14px;transition:.2s}.btn-apply-filter:hover,.btn-blue:hover{background:#1e293b;color:#fff}.btn-orange{background:var(--brand-red);color:#fff;border:0}.btn-orange:hover{background:#e62e2e;color:#fff}.product-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:24px}.product-grid>.col{width:auto}@media (min-width:768px){.product-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width:1200px){.product-grid{grid-template-columns:repeat(3,1fr)}}.product-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;position:relative;display:flex;flex-direction:column;height:100%;transition:box-shadow .3s,transform .3s,border-color .3s}.product-card:hover{box-shadow:0 12px 24px rgba(15,23,42,.06);transform:translateY(-4px);border-color:#d1d5db}.product-badges{position:absolute;top:16px;left:16px;display:flex;flex-direction:column;gap:6px;z-index:2}.badge-hit{background:#f59e0b;color:#fff;font-size:10px;font-weight:700;padding:4px 8px;border-radius:4px;text-transform:uppercase;letter-spacing:.5px;width:fit-content}.badge-discount{background:var(--brand-red);color:#fff;font-size:11px;font-weight:700;padding:4px 8px;border-radius:4px;width:fit-content}.product-actions-top{position:absolute;top:16px;right:16px;display:flex;flex-direction:column;gap:8px;z-index:2}.btn-icon{background:transparent;border:none;color:#9ca3af;font-size:18px;padding:0;cursor:pointer;transition:color .2s}.btn-icon:hover,.btn-icon.is-active{color:var(--brand-red)}.product-image-link{display:block}.product-image{width:100%;height:180px;object-fit:contain;margin-bottom:20px}.product-meta{font-size:11px;color:var(--text-muted);margin-bottom:6px}.product-title{font-size:14px;font-weight:500;color:var(--brand-blue);line-height:1.4;margin-bottom:12px;flex-grow:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-title:hover{color:var(--link-blue)}.product-rating{display:flex;align-items:center;gap:4px;font-size:12px;color:#f59e0b;margin-bottom:16px}.reviews-count{color:var(--text-muted);margin-left:4px}.product-bottom{display:flex;justify-content:space-between;align-items:flex-end}.price-block{display:flex;flex-direction:column}.price-old{font-size:12px;color:#9ca3af;text-decoration:line-through;margin-bottom:2px;line-height:1}.price-current{font-size:20px;font-weight:700;color:var(--brand-blue);line-height:1}.btn-add-cart{background:var(--brand-gray);color:var(--brand-blue);border:none;width:44px;height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:20px;transition:.2s}.btn-add-cart:hover{background:var(--brand-red);color:#fff}.solutions-section{padding-bottom:64px}.solution-card{background:var(--brand-gray);border-radius:16px;padding:32px;display:flex;justify-content:space-between;align-items:center;transition:transform .3s,box-shadow .3s;position:relative;overflow:hidden;min-height:220px;height:100%}.solution-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px rgba(15,23,42,.08)}.solution-content{max-width:65%;z-index:2;position:relative;display:flex;flex-direction:column;height:100%}.solution-title{font-size:20px;font-weight:700;color:var(--brand-blue);margin-bottom:12px;line-height:1.2}.solution-desc{font-size:13px;color:var(--text-muted);line-height:1.5;margin-bottom:24px;flex-grow:1}.solution-arrow{width:44px;height:44px;background:#fff;color:var(--brand-blue);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 4px 12px rgba(0,0,0,.05);transition:.2s;margin-top:auto}.solution-card:hover .solution-arrow{background:var(--brand-blue);color:#fff}.solution-image{position:absolute;right:24px;bottom:0;max-height:85%;z-index:1;object-fit:contain}.brands-section{padding-bottom:64px}.brand-card{background:#fff;border:1px solid var(--border);border-radius:12px;height:90px;display:flex;align-items:center;justify-content:center;padding:20px;transition:.3s}.brand-card:hover{border-color:var(--brand-blue);box-shadow:0 8px 16px rgba(15,23,42,.06)}.brand-card img{max-width:100%;max-height:100%;object-fit:contain;filter:grayscale(100%);opacity:.5;transition:.3s}.brand-card:hover img{filter:grayscale(0);opacity:1}.main-footer{background:var(--brand-blue);color:#fff;padding-bottom:32px}.footer-stats-bar{background:#1e293b;padding:32px 0;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:48px}.stat-item{display:flex;flex-direction:column;gap:4px}.stat-number{font-size:28px;font-weight:700;color:#fff;line-height:1}.stat-label{font-size:13px;color:#9ca3af;line-height:1.4}.footer-title{font-size:15px;font-weight:600;color:#fff;margin-bottom:20px;text-transform:uppercase;letter-spacing:.5px}.footer-links{list-style:none;padding:0;margin:0}.footer-links li{margin-bottom:12px}.footer-links a{color:#9ca3af;font-size:14px;transition:color .2s}.footer-links a:hover{color:#fff}.footer-about{color:#9ca3af!important;font-size:13px;line-height:1.6}.footer-contact-item{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;color:#9ca3af;font-size:14px}.footer-contact-item i{color:var(--brand-red);font-size:16px;margin-top:2px}.phone-link{color:#fff;font-size:18px;font-weight:700;display:block;line-height:1.2}.social-links{display:flex;gap:12px;margin-top:20px}.social-btn{width:36px;height:36px;background:rgba(255,255,255,.05);color:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:.2s}.social-btn:hover{background:var(--brand-red);color:#fff}.footer-bottom{margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.08);font-size:13px;color:#6b7280;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.footer-bottom a{color:#6b7280}.footer-bottom a:hover{color:#9ca3af}.breadcrumbs{padding:20px 0 0;display:flex;gap:8px;font-size:13px;color:#9ca3af}.breadcrumbs a{color:var(--link-blue)}.content-card,.checkout-form,.order-summary,.summary,.order-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px}.layout{display:grid;grid-template-columns:280px 1fr;gap:24px}.catalog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.sort{display:flex;align-items:center;gap:10px}.pagination{display:flex;gap:8px;margin-top:28px}.page-link{padding:9px 13px;border:1px solid var(--border);border-radius:8px;color:var(--brand-blue)}.page-link.active{background:var(--brand-blue);color:#fff}.text-muted{color:var(--text-muted)!important}.cart-layout,.checkout-grid,.product-page{display:grid;grid-template-columns:1fr 360px;gap:24px}.cart-list{display:flex;flex-direction:column;gap:14px}.cart-item{background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px;display:grid;grid-template-columns:84px 1fr auto;gap:18px;align-items:center}.cart-photo{width:84px;height:84px;background:var(--brand-gray);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:26px}.qty{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.qty button{border:0;background:#f8f9fa;width:34px}.qty input{width:44px;border:0;text-align:center}.summary-row{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #f3f4f6}.summary-total{display:flex;justify-content:space-between;font-size:22px;font-weight:800;margin-top:16px;color:var(--brand-blue)}.cart-price{text-align:right;display:flex;flex-direction:column;gap:10px}.icon-square{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center}.product-page{grid-template-columns:48% 1fr}.product-gallery,.product-info{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px}.product-main-img{height:380px;background:var(--brand-gray);border-radius:14px;display:flex;align-items:center;justify-content:center}.product-main-img img{max-width:90%;max-height:90%;object-fit:contain}.thumbs{display:flex;gap:10px;margin-top:12px}.thumb{width:72px;height:72px;border:1px solid var(--border);border-radius:10px;background:#fff}.thumb img{max-width:100%;max-height:100%;object-fit:contain}.thumb.active,.thumb.is-active{border-color:var(--brand-blue)}.product-buy{display:flex;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap}.price-xl{font-size:32px}.tabs{display:flex;gap:8px;margin-top:24px}.tab{border:1px solid var(--border);background:#fff;border-radius:10px;padding:12px 18px;color:var(--brand-blue);font-weight:600}.tab.active{background:var(--brand-blue);color:#fff}.tab-panel{display:none;background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px;margin-top:12px}.tab-panel.active{display:block}.profile-grid{display:grid;grid-template-columns:260px 1fr;gap:24px}.profile-menu{background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;display:flex;flex-direction:column}.profile-menu a{padding:12px;border-radius:10px;color:var(--brand-blue)}.profile-menu a.active,.profile-menu a:hover{background:var(--brand-gray)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .full{grid-column:1/-1}.status{background:#dcfce7;color:#166534;border-radius:999px;padding:6px 12px;font-size:12px}.order-top{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}.empty-state{text-align:center;border:1px dashed var(--border);border-radius:16px;padding:48px;background:#fff}.alert-error{background:#fee2e2;color:#991b1b;border-radius:8px;padding:12px;margin-bottom:14px}.site-toast{position:fixed;right:24px;bottom:24px;background:#111827;color:#fff;border-radius:10px;padding:12px 16px;z-index:100;opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none}.site-toast.is-open{opacity:1;transform:translateY(0)}.mobile-bottom-nav{display:none}
@media (max-width:1199px){.header-actions{gap:18px!important}.action-text{display:none}.catalog-panel{width:600px}.product-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:991px){body{padding-bottom:70px}.topbar-left a:nth-child(n+2),.topbar-right a,.topbar-right span{display:none}.main-header{padding:14px 0}.header-row{align-items:center}.catalog-col,.nav-links,.header-actions .action-item{display:none!important}.cart-info{display:none}.site-search{margin-top:6px}.search-col{order:10;flex:0 0 100%}.features-bar .row{overflow-x:auto;flex-wrap:nowrap}.features-bar .col{min-width:210px}.section-padding,.section{padding-top:32px;padding-bottom:32px}.layout,.cart-layout,.checkout-grid,.product-page,.profile-grid{grid-template-columns:1fr}.filter-sidebar{display:none}.filter-sidebar.is-open,.sidebar.is-open{display:block}.catalog-head{flex-direction:column;align-items:flex-start}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;height:64px;background:#fff;border-top:1px solid var(--border);z-index:60;display:grid;grid-template-columns:repeat(4,1fr)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--brand-blue);font-size:11px}.mobile-bottom-nav i{font-size:20px}.cart-item{grid-template-columns:70px 1fr}.cart-price{grid-column:1/-1;flex-direction:row;justify-content:space-between;text-align:left}.solution-content{max-width:70%}.footer-bottom{align-items:flex-start}.footer-legal{flex-direction:column;gap:8px!important}}@media (max-width:575px){.logo-text{font-size:22px}.btn-search{padding:10px 18px}.category-grid,.product-grid{grid-template-columns:1fr}.business-benefits{padding:22px}.benefit-col{flex-basis:70%}.section-header,.section-head,.catalog-header,.brands-header{align-items:flex-start;flex-direction:column}.solution-card{padding:22px;min-height:190px}.solution-content{max-width:74%}.solution-title{font-size:18px}.solution-image{right:0;opacity:.65}.cart-box{padding:8px 10px}.footer-stats-bar{margin-bottom:32px}.product-main-img{height:280px}.tabs{overflow-x:auto}.tab{white-space:nowrap}.form-grid{grid-template-columns:1fr}}
.auth-box{max-width:430px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:0 12px 32px rgba(15,23,42,.06)}
.is-error{border-color:var(--brand-red)!important;background:#fff5f5!important}
/* Admin panel compatibility */
.admin-body{background:#f3f4f6;color:#111827}.admin-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.admin-sidebar{background:#0f172a;color:#fff;padding:22px;position:sticky;top:0;height:100vh}.admin-logo{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:20px;margin-bottom:26px}.logo-mark{width:36px;height:36px;border-radius:10px;background:#ff3333;color:#fff;display:inline-flex;align-items:center;justify-content:center}.admin-nav{display:flex;flex-direction:column;gap:6px}.admin-nav a{color:#cbd5e1;padding:12px;border-radius:10px;display:flex;align-items:center;gap:10px}.admin-nav a:hover,.admin-nav a.active{background:#1e293b;color:#fff}.admin-main{padding:24px;min-width:0}.admin-top{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px 20px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-top h1{margin:0;font-size:24px;color:#0f172a}.admin-top p{margin:4px 0 0;color:#6b7280}.admin-menu-toggle{display:none}.admin-grid-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.admin-card,.admin-panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px}.admin-card span{color:#6b7280;font-size:13px}.admin-card b{display:block;margin-top:8px;font-size:28px;color:#0f172a}.admin-panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.admin-panel-head h2{margin:0;font-size:20px}.table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:12px;border-bottom:1px solid #f3f4f6;text-align:left;white-space:nowrap}.admin-table th{font-size:12px;text-transform:uppercase;color:#6b7280}.status-pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px}.admin-form{display:grid;gap:14px}.admin-form label{display:grid;gap:6px;color:#374151;font-weight:600}.admin-form textarea{min-height:120px}.admin-actions{display:flex;gap:8px;align-items:center}.admin-login{min-height:100vh;display:grid;place-items:center;background:#f3f4f6;padding:20px}.admin-login-card{width:min(420px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:26px;box-shadow:0 16px 40px rgba(15,23,42,.08)}@media(max-width:900px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:fixed;left:-280px;top:0;bottom:0;width:260px;z-index:90;transition:left .25s}.admin-open .admin-sidebar{left:0}.admin-main{padding:14px}.admin-menu-toggle{display:inline-flex}.admin-grid-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.admin-grid-cards{grid-template-columns:1fr}.admin-top{align-items:flex-start}.admin-top h1{font-size:20px}}

/* Admin v2 */
.admin-alert{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;margin-bottom:16px;font-weight:600}.admin-alert-success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.admin-alert-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}.admin-muted{color:#6b7280;font-size:13px;margin:6px 0 0}.admin-form-wide{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.admin-form .full{grid-column:1/-1}.admin-form .check{display:flex;align-items:center;gap:10px;min-height:42px}.admin-form .check input{width:18px;height:18px}.admin-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-filter .field{min-width:210px}.admin-table-middle td{vertical-align:middle}.admin-entity{display:flex;align-items:center;gap:12px;min-width:260px}.admin-entity b{display:block;color:#111827;font-size:14px}.admin-entity small{display:block;color:#6b7280;margin-top:3px}.admin-thumb{width:48px;height:48px;border-radius:12px;background:#f3f4f6;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;color:#6b7280;flex:0 0 auto}.admin-thumb img{width:100%;height:100%;object-fit:cover}.btn-sm{padding:7px 10px;font-size:12px;border-radius:9px}.btn-danger-light{background:#fff1f2;color:#be123c;border:1px solid #ffe4e6}.btn-danger-light:hover{background:#ffe4e6;color:#9f1239}.status-ok{background:#dcfce7;color:#166534}.status-off{background:#f3f4f6;color:#6b7280}.admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.admin-top-title{flex:1}.admin-login-body{background:#f3f4f6}.admin-login-body .admin-login{width:min(430px,calc(100% - 32px));margin:8vh auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:28px;box-shadow:0 24px 60px rgba(15,23,42,.10);display:grid;gap:14px}.admin-login-body .admin-login h1{margin:0;color:#0f172a}.admin-login-body .admin-login p,.admin-login-body .admin-login small{color:#6b7280}.alert-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:12px;padding:12px}.field.is-error,.field:invalid:focus{border-color:#ef4444}@media(max-width:1100px){.admin-form-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.admin-form-wide{grid-template-columns:1fr}.admin-panel-head{align-items:flex-start;flex-direction:column}.admin-filter{width:100%}.admin-filter .field{width:100%;min-width:0}.admin-actions{min-width:260px}.admin-top{flex-wrap:wrap}}

/* Stage 1: real cart and checkout */
.cart-loading{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px;color:var(--text-muted)}
.cart-item-title{display:block;font-weight:700;color:var(--brand-blue);margin-bottom:5px}
.cart-item.is-unavailable{border-color:#fecaca;background:#fffafa}
.cart-stock-out{color:#b91c1c!important;font-weight:600}
.cart-summary-warning{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:13px;line-height:1.4}
.btn.is-disabled,.btn[aria-disabled="true"]{opacity:.5;pointer-events:none}
.qty button:disabled,.qty input:disabled{opacity:.45;cursor:not-allowed}
.btn-add-cart:disabled,.btn.btn-orange:disabled{opacity:.45;cursor:not-allowed}
.empty-state.compact{padding:24px 18px}
.checkout-summary-row span{padding-right:12px}
@media(max-width:575px){.cart-item{grid-template-columns:62px 1fr;gap:12px;padding:14px}.cart-photo{width:62px;height:62px}.qty input{width:48px}.cart-price{grid-column:1/-1}.summary,.order-summary,.checkout-form{padding:18px}}

/* Stage 2: server-side catalog pagination */
.catalog-range{font-size:13px;margin-top:3px}.pagination-wrap{margin-top:32px;display:flex;justify-content:center}.pagination-wrap .pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0}.pagination-wrap .page-link{min-width:42px;height:42px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--brand-blue);font-size:14px;font-weight:600;line-height:1;transition:border-color .2s,background .2s,color .2s}.pagination-wrap a.page-link:hover{border-color:var(--brand-blue);background:#f8fafc;color:var(--brand-blue)}.pagination-wrap .page-link.active{border-color:var(--brand-blue);background:var(--brand-blue);color:#fff}.pagination-wrap .page-link-wide{gap:6px;padding-left:15px;padding-right:15px}.pagination-wrap .page-gap{min-width:26px;text-align:center;color:var(--text-muted)}.category-catalog-head{margin-top:8px}.category-sort-form{margin:0}@media (max-width:575px){.pagination-wrap{justify-content:flex-start;overflow-x:auto;padding-bottom:4px}.pagination-wrap .pagination{justify-content:flex-start;flex-wrap:nowrap;min-width:max-content}.pagination-wrap .page-link{min-width:40px;height:40px}.pagination-wrap .page-link-wide span{display:none}.pagination-wrap .page-link-wide{padding:0;width:40px}.sort-select{width:100%!important;max-width:100%}.category-sort-form{width:100%}.category-catalog-head{align-items:stretch}}

/* Stage 3: полноценная карточка товара */
.product-detail-section{padding-top:28px}
.product-page-v2{grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);align-items:start;gap:28px}
.product-page-v2 .product-gallery{position:sticky;top:18px;min-width:0}
.product-page-v2 .product-main-img{height:520px;position:relative;overflow:hidden;background:#f8fafc;border:1px solid #eef2f7}
.product-page-v2 .product-main-img>img{width:100%;height:100%;max-width:94%;max-height:94%;object-fit:contain;transition:opacity .18s ease}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:rgba(255,255,255,.94);color:var(--brand-blue);display:grid;place-items:center;box-shadow:0 8px 24px rgba(15,23,42,.08);transition:.2s}
.gallery-nav:hover{background:var(--brand-blue);color:#fff;border-color:var(--brand-blue)}
.gallery-prev{left:14px}.gallery-next{right:14px}
.gallery-counter{position:absolute;right:14px;bottom:14px;z-index:3;background:rgba(15,23,42,.78);color:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;backdrop-filter:blur(8px)}
.product-page-v2 .thumbs{overflow-x:auto;padding:2px 1px 5px;scrollbar-width:thin;scroll-snap-type:x proximity}
.product-page-v2 .thumb{width:76px;height:76px;min-width:76px;padding:5px;overflow:hidden;scroll-snap-align:start;transition:border-color .18s,box-shadow .18s,transform .18s}
.product-page-v2 .thumb:hover{border-color:#94a3b8;transform:translateY(-1px)}
.product-page-v2 .thumb.active{border:2px solid var(--brand-blue);box-shadow:0 0 0 3px rgba(15,23,42,.05)}
.product-page-v2 .thumb img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.product-info-v2{min-width:0}
.product-info-v2 h1{font-size:34px;line-height:1.16;margin:10px 0 14px;color:var(--brand-blue);letter-spacing:-.02em}
.product-meta-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--text-muted);font-size:13px}
.product-meta-line a{color:var(--link-blue);font-weight:600}.meta-dot{color:#cbd5e1}
.product-info-row{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #eef2f7;color:#64748b;font-size:13px}
.product-info-row>span{display:inline-flex;align-items:center;gap:6px}
.product-info-row .product-rating{margin:0;color:#b45309}.product-rating-real i{color:#f59e0b}.product-no-reviews i{color:#94a3b8}
.product-lead{font-size:15px;line-height:1.65;color:#475569;margin:18px 0 0}
.product-quick-specs{margin-top:18px;border-top:1px solid #eef2f7;padding-top:14px}
.quick-spec-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(140px,1.2fr);gap:18px;padding:8px 0;border-bottom:1px dashed #e5e7eb;font-size:13px;align-items:start}
.quick-spec-row span{color:#64748b}.quick-spec-row b{color:#1f2937;font-weight:650;text-align:right;word-break:break-word}
.specs-link{border:0;background:transparent;padding:11px 0 0;color:var(--link-blue);font-weight:700;font-size:13px;display:inline-flex;gap:6px;align-items:center}
.product-purchase-card{margin-top:20px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:20px}
.product-price-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.product-price-row .price-old{font-size:14px;margin-bottom:6px}.product-price-row .price-xl{font-size:36px}
.product-discount{background:#fee2e2;color:#b91c1c;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:800}
.product-stock{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #e5e7eb}
.product-stock>i{font-size:19px;margin-top:1px}.product-stock span{display:flex;flex-direction:column;gap:2px}.product-stock b{font-size:14px}.product-stock small{font-size:12px;color:#64748b}
.product-stock-ok>i,.product-stock-ok b{color:#15803d}.product-stock-none>i,.product-stock-none b{color:#b91c1c}
.product-buy-v2{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px;margin-top:18px}.product-buy-v2 .product-add-main{min-height:50px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}.product-fav-main{width:48px;height:50px;padding:0;display:grid;place-items:center}
.product-tabs{margin-top:32px;border-bottom:1px solid var(--border);gap:0}.product-tabs .tab{border:0;border-radius:0;background:transparent;color:#64748b;padding:14px 18px;border-bottom:2px solid transparent}.product-tabs .tab:hover{color:var(--brand-blue)}.product-tabs .tab.active{background:transparent;color:var(--brand-blue);border-bottom-color:var(--brand-blue)}
.product-tab-panel{border:0;border-radius:0;margin-top:0;padding:28px 0;background:transparent}.product-tab-panel h2{font-size:22px;margin:0 0 18px;color:var(--brand-blue)}
.product-description{max-width:900px;white-space:normal;color:#374151;line-height:1.75;font-size:15px}
.product-spec-table{max-width:900px;border-top:1px solid #e5e7eb}.spec-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(180px,1.2fr);gap:24px;padding:13px 0;border-bottom:1px solid #eef2f7;align-items:start}.spec-row span{color:#64748b}.spec-row b{font-weight:650;color:#1f2937;word-break:break-word}
.product-delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-delivery-grid>div{border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;gap:12px;background:#fff}.product-delivery-grid i{font-size:23px;color:var(--brand-blue);flex:0 0 auto}.product-delivery-grid b{display:block;color:#1f2937;margin-bottom:5px}.product-delivery-grid p{margin:0;color:#64748b;font-size:13px;line-height:1.5}

@media(max-width:991px){
  .product-page-v2{grid-template-columns:1fr;gap:18px}
  .product-page-v2 .product-gallery{position:static}
  .product-page-v2 .product-main-img{height:440px}
  .product-info-v2 h1{font-size:30px}
  .product-delivery-grid{grid-template-columns:1fr}
}
@media(max-width:575px){
  .product-detail-section{padding-top:18px}
  .product-page-v2 .product-gallery,.product-info-v2{padding:14px}
  .product-page-v2 .product-main-img{height:320px;border-radius:12px}
  .gallery-nav{width:38px;height:38px}.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-counter{right:8px;bottom:8px}
  .product-page-v2 .thumb{width:64px;height:64px;min-width:64px}
  .product-info-v2 h1{font-size:25px;margin-top:8px}
  .product-lead{font-size:14px}
  .quick-spec-row{grid-template-columns:1fr;gap:3px}.quick-spec-row b{text-align:left}
  .product-purchase-card{padding:16px;margin-left:-2px;margin-right:-2px}.product-price-row .price-xl{font-size:30px}
  .product-buy-v2{grid-template-columns:minmax(0,1fr) 48px}
  .product-tabs{margin-top:22px;overflow-x:auto;scrollbar-width:none}.product-tabs::-webkit-scrollbar{display:none}.product-tabs .tab{padding:12px 13px}
  .product-tab-panel{padding:22px 0}.spec-row{grid-template-columns:1fr;gap:4px;padding:11px 0}.spec-row b{font-size:14px}
}

/* Stage 4: favorites and product comparison */
.saved-count-badge{position:absolute;top:-7px;right:-11px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--brand-red);color:#fff;font-size:10px;font-weight:800;line-height:18px;text-align:center;border:2px solid #fff}.saved-count-badge[hidden]{display:none!important}.mobile-nav-icon{position:relative;display:inline-flex}.saved-count-badge.mobile{top:-8px;right:-12px;border-color:#fff}.product-rating-empty{color:#9ca3af}.saved-page-header{align-items:center}.saved-loading{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:180px;color:var(--text-muted);border:1px dashed var(--border);border-radius:14px}.saved-empty{grid-column:1/-1}.saved-empty-icon{display:block;font-size:40px;color:#9ca3af;margin-bottom:12px}.saved-error{grid-column:1/-1;margin:0}.product-fav-main.is-active,.product-compare-main.is-active{color:var(--brand-red);border-color:#fecaca;background:#fff1f2}.product-buy-v2{grid-template-columns:minmax(0,1fr) 48px 48px}.product-compare-main{width:48px;height:50px;padding:0;display:grid;place-items:center}.compare-page{background:#fff}.compare-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.compare-toolbar>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.compare-diff-toggle{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--brand-blue);cursor:pointer;white-space:nowrap}.compare-diff-toggle input{width:17px;height:17px}.compare-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:#fff;scrollbar-width:thin}.compare-matrix{min-width:calc(170px + var(--compare-count) * 230px)}.compare-products-row,.compare-spec-row{display:grid;grid-template-columns:170px repeat(var(--compare-count),minmax(230px,1fr))}.compare-products-row{align-items:stretch;border-bottom:1px solid var(--border)}.compare-label-cell,.compare-spec-name{padding:18px;background:#f8fafc;color:var(--brand-blue);font-weight:700;border-right:1px solid var(--border)}.compare-label-cell{display:flex;align-items:flex-start}.compare-product{position:relative;padding:18px;border-right:1px solid var(--border);display:flex;flex-direction:column;min-width:0}.compare-product:last-child{border-right:0}.compare-remove{position:absolute;top:10px;right:10px;width:32px;height:32px;border:0;border-radius:50%;background:#f3f4f6;color:#6b7280;display:grid;place-items:center;z-index:2}.compare-remove:hover{background:#fee2e2;color:#b91c1c}.compare-product-image{height:150px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;padding:8px}.compare-product-image img{max-width:100%;max-height:100%;object-fit:contain}.compare-product-title{color:var(--brand-blue);font-size:13px;font-weight:600;line-height:1.4;min-height:54px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.compare-product-title:hover{color:var(--link-blue)}.compare-product-price{font-size:20px;font-weight:800;color:var(--brand-blue);margin:12px 0}.compare-cart-btn{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:7px}.compare-cart-btn:disabled{opacity:.5;cursor:not-allowed}.compare-spec-row{border-bottom:1px solid #eef0f3}.compare-spec-row:last-child{border-bottom:0}.compare-spec-value{padding:15px 18px;border-right:1px solid #eef0f3;font-size:13px;color:#374151;display:flex;align-items:center}.compare-spec-value:last-child{border-right:0}.compare-row-price .compare-spec-value{font-weight:800;color:var(--brand-blue)}.compare-empty{color:#9ca3af}.compare-specs.show-differences-only .compare-spec-row.is-same{display:none}.compare-spec-row.is-different .compare-spec-name{background:#f1f5f9}.btn-icon[data-compare].is-active{color:var(--brand-red)}
@media (max-width:991px){.saved-page-header{align-items:flex-start}.compare-toolbar{align-items:flex-start;flex-direction:column}.product-buy-v2{grid-template-columns:minmax(0,1fr) 48px 48px}}
@media (max-width:575px){.product-buy-v2{grid-template-columns:1fr 48px 48px}.compare-matrix{min-width:calc(140px + var(--compare-count) * 210px)}.compare-products-row,.compare-spec-row{grid-template-columns:140px repeat(var(--compare-count),minmax(210px,1fr))}.compare-label-cell,.compare-spec-name{padding:14px 12px;font-size:12px}.compare-product{padding:14px}.compare-product-image{height:130px}.compare-spec-value{padding:13px 14px;font-size:12px}.saved-empty{padding:36px 18px}}

/* Stage 5: customer account */
.alert-success{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;border-radius:12px;padding:12px 14px;margin-bottom:16px}.auth-lead{color:#64748b;font-size:14px;line-height:1.55;margin:10px 0 18px}.auth-fields{display:grid;gap:14px}.auth-fields label,.auth-register-grid label,.content-card label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#374151}.auth-primary{width:100%;margin-top:16px}.auth-divider{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:12px}.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#e5e7eb;flex:1}.auth-box-wide{max-width:680px}.auth-register-grid{margin-top:18px}.auth-bottom{text-align:center;color:#64748b;font-size:13px;margin:16px 0 0}.auth-bottom a{color:var(--link-blue);font-weight:700}.account-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.account-heading p{margin:6px 0 0;color:#64748b}.btn-sm-account{display:inline-flex;align-items:center;gap:7px}.account-content-stack{display:grid;gap:18px}.content-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px}.account-card-head h3,.order-detail-items h3,.order-detail-summary h3{margin:0;color:var(--brand-blue);font-size:18px}.account-card-head p{margin:6px 0 18px;color:#64748b;font-size:13px}.profile-menu a{display:flex;align-items:center;gap:9px}.account-orders{display:grid;gap:16px}.account-order-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px}.order-number{font-weight:800;color:var(--brand-blue);font-size:17px}.order-number:hover{color:var(--link-blue)}.order-card-grid{display:grid;grid-template-columns:160px 180px minmax(0,1fr);gap:18px;padding:14px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}.order-card-grid>div{display:grid;gap:4px}.order-card-grid span{font-size:12px;color:#64748b}.order-card-grid b{font-size:13px;color:#1f2937}.order-card-actions{padding-top:14px}.status-new{background:#eff6ff;color:#1d4ed8}.status-processing{background:#fff7ed;color:#c2410c}.status-delivered{background:#dcfce7;color:#166534}.status-cancelled{background:#f3f4f6;color:#6b7280}.account-empty i{font-size:42px;color:#94a3b8}.account-empty h3{margin:12px 0 6px;color:var(--brand-blue)}.account-empty p{color:#64748b}.order-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.order-detail-head p{margin:6px 0 0;color:#64748b}.order-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}.order-detail-items h3,.order-detail-summary h3{margin-bottom:18px}.order-detail-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #eef2f7}.order-detail-item:last-child{border-bottom:0}.order-detail-thumb{width:72px;height:72px;border-radius:10px;background:#f8fafc;border:1px solid #eef2f7;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#94a3b8}.order-detail-thumb img{width:100%;height:100%;object-fit:contain}.order-detail-product{display:flex;flex-direction:column;gap:5px;min-width:0}.order-detail-product a,.order-detail-product>b{color:var(--brand-blue);font-size:13px;font-weight:700}.order-detail-product span{font-size:12px;color:#64748b}.order-detail-summary{position:sticky;top:18px}.order-detail-summary hr{border:0;border-top:1px solid #e5e7eb;margin:14px 0}.order-detail-contact{display:grid;gap:3px;margin-bottom:12px}.order-detail-contact span{font-size:12px;color:#64748b}.order-detail-contact b{font-size:13px;font-weight:650;color:#1f2937;overflow-wrap:anywhere}.checkout-account-note{display:flex;align-items:flex-start;gap:8px;margin:8px 0 16px;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:13px;line-height:1.45}.checkout-account-note i{color:var(--brand-blue);font-size:16px}.checkout-account-note a{color:var(--link-blue);font-weight:700}
@media(max-width:991px){.order-detail-layout{grid-template-columns:1fr}.order-detail-summary{position:static}.order-card-grid{grid-template-columns:1fr 1fr}.order-card-grid>div:last-child{grid-column:1/-1}}
@media(max-width:575px){.account-heading{align-items:flex-start}.account-heading .btn-sm-account{display:none}.content-card,.account-order-card{padding:16px}.order-card-grid{grid-template-columns:1fr;gap:12px}.order-card-grid>div:last-child{grid-column:auto}.order-top{align-items:flex-start}.order-detail-head{align-items:flex-start;flex-direction:column}.order-detail-item{grid-template-columns:58px minmax(0,1fr);gap:10px}.order-detail-thumb{width:58px;height:58px}.order-detail-item>b{grid-column:2;text-align:left}.auth-box{padding:20px}.auth-register-grid{grid-template-columns:1fr}}


/* Stage 6: promotions, brands and service pages */
.catalog-promo-note{display:flex;align-items:center;gap:6px;margin-top:4px;color:#dc2626;font-size:13px;font-weight:600}.catalog-promo-note i{font-size:14px}.brand-directory-section{background:#f8fafc}.brand-directory-head{align-items:center}.brand-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.brand-directory-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;display:grid;grid-template-columns:110px 1fr;gap:18px;min-height:170px}.brand-directory-logo{height:88px;border:1px solid #eef2f7;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden}.brand-directory-logo img{max-width:84%;max-height:58px;object-fit:contain}.brand-directory-logo span{width:54px;height:54px;border-radius:14px;background:var(--brand-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800}.brand-directory-body h2{font-size:18px;margin:0 0 6px}.brand-directory-body h2 a{color:var(--brand-blue)}.brand-directory-meta{font-size:13px;color:var(--text-muted);margin-bottom:10px}.brand-directory-body p{font-size:13px;color:var(--text-muted);margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.brand-directory-link{font-size:13px;font-weight:700;color:var(--link-blue);display:inline-flex;align-items:center;gap:5px}.service-page-card{max-width:1040px;margin:0 auto}.service-page-card>h1{font-size:32px;margin-bottom:12px}.service-page-lead{font-size:16px;line-height:1.7;color:#4b5563;max-width:860px}.service-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}.service-step{border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;gap:14px}.service-step>span{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brand-blue);color:#fff;font-weight:800}.service-step b{color:var(--brand-blue)}.service-step p{font-size:13px;color:var(--text-muted);margin:5px 0 0;line-height:1.5}.service-page-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}.faq-list{margin-top:24px;border-top:1px solid var(--border)}.faq-item{border-bottom:1px solid var(--border)}.faq-item summary{list-style:none;cursor:pointer;padding:18px 0;font-weight:700;color:var(--brand-blue);display:flex;align-items:center;justify-content:space-between;gap:16px}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary i{transition:transform .2s}.faq-item[open] summary i{transform:rotate(180deg)}.faq-answer{padding:0 0 18px;color:#4b5563;line-height:1.65}.partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}.partner-card{border:1px solid var(--border);border-radius:14px;padding:22px}.partner-card>i{font-size:28px;color:var(--brand-red)}.partner-card h2{font-size:17px;color:var(--brand-blue);margin:14px 0 8px}.partner-card p{font-size:13px;color:var(--text-muted);line-height:1.55;margin:0}@media(max-width:991.98px){.brand-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-steps,.partner-grid{grid-template-columns:1fr}}@media(max-width:575.98px){.brand-directory-grid{grid-template-columns:1fr}.brand-directory-card{grid-template-columns:84px 1fr;padding:16px}.brand-directory-logo{height:72px}.brand-directory-head{align-items:flex-start}.service-page-card>h1{font-size:26px}.service-page-actions>.btn{width:100%}}

/* Stage 7: feedback */
.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.notification-status-sent{background:#dcfce7;color:#166534}.notification-status-failed{background:#fee2e2;color:#991b1b}.notification-status-pending{background:#fef3c7;color:#92400e}
.inquiry-message{white-space:pre-wrap;line-height:1.6;color:#334155}.inquiry-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:16px 0}.inquiry-meta>div{display:grid;gap:3px}.inquiry-meta span{font-size:12px;color:#64748b}.inquiry-meta b{overflow-wrap:anywhere}@media(max-width:700px){.inquiry-meta{grid-template-columns:1fr}}
.status-closed{background:#f3f4f6;color:#475569}

/* Stage 10: B2B checkout, organizations, invoices and order templates */
.checkout-customer-type{display:grid;gap:10px;margin:2px 0 8px}.checkout-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.checkout-type-options label{cursor:pointer;margin:0}.checkout-type-options input{position:absolute;opacity:0;pointer-events:none}.checkout-type-options span{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;align-items:center;padding:14px 15px;border:1px solid #e3e7ef;border-radius:14px;background:#fff;transition:.18s ease}.checkout-type-options i{grid-row:1/3;font-size:22px;color:#64748b}.checkout-type-options small{color:#64748b}.checkout-type-options input:checked+span{border-color:#2b2c86;box-shadow:0 0 0 2px rgba(43,44,134,.08);background:#f8f8ff}.checkout-type-options input:checked+span i{color:#2b2c86}
.b2b-checkout-fields{display:grid;gap:14px;padding:18px;border:1px solid #e4e8f0;border-radius:16px;background:#f8fafc;margin:6px 0}.b2b-checkout-fields[hidden]{display:none!important}.b2b-section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.b2b-section-head>div{display:grid;gap:3px}.b2b-section-head small{color:#64748b}.b2b-section-head a{font-size:13px;font-weight:700;text-decoration:none}.b2b-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.b2b-fields-grid .full{grid-column:1/-1}.b2b-bank-details{border-top:1px solid #e2e8f0;padding-top:12px}.b2b-bank-details summary{cursor:pointer;font-weight:700}.b2b-bank-details summary span{font-weight:500;color:#64748b}.b2b-bank-details[open] summary{margin-bottom:12px}.b2b-save-check{display:flex;align-items:center;gap:9px;font-weight:600}.b2b-save-check input{width:18px;height:18px;flex:0 0 auto}
.checkout-payment-options{display:grid;gap:10px;margin:6px 0 4px}.checkout-payment-options>label{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;cursor:pointer}.checkout-payment-options>label[hidden]{display:none!important}.checkout-payment-options input{margin-top:4px}.checkout-payment-options span{display:grid;gap:2px}.checkout-payment-options small{color:#64748b}.checkout-success-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.org-list{display:grid;gap:12px}.org-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.org-card-title{font-size:16px;font-weight:800;margin-bottom:4px}.org-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.org-card-actions form{margin:0}
.template-card{display:grid;gap:14px}.template-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.template-card-head h3{margin:0}.template-card-head p{margin:4px 0 0;color:#64748b}.template-items{display:flex;flex-wrap:wrap;gap:7px}.template-items span{padding:6px 9px;border-radius:999px;background:#f1f5f9;font-size:12px}.template-items .is-unavailable{text-decoration:line-through;opacity:.55}.template-actions,.order-detail-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.template-actions form,.order-detail-actions form{margin:0}.order-detail-actions{margin:-4px 0 18px}.order-template-inline{display:flex;gap:8px;align-items:center}.order-template-inline .field{width:190px;min-height:40px}.order-repeat-link{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;color:#2b2c86;font-weight:700;text-decoration:none;cursor:pointer}.order-repeat-link:hover{text-decoration:underline}.order-card-actions{display:flex!important;gap:16px!important;align-items:center!important;flex-wrap:wrap!important}.order-card-actions form{margin:0}
.cart-template-save{margin-top:14px;padding:14px;border:1px solid #e3e7ef;border-radius:14px;background:#f8fafc;display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,260px) auto;gap:10px;align-items:center}.cart-template-save>div{display:grid;gap:2px}.cart-template-save small{color:#64748b}.cart-templates-link{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px;color:#2b2c86;font-weight:700;text-decoration:none}
@media(max-width:768px){.checkout-type-options,.b2b-fields-grid{grid-template-columns:1fr}.b2b-section-head,.org-card,.template-card-head{display:grid}.org-card-actions{justify-content:flex-start}.order-template-inline{width:100%;display:grid;grid-template-columns:1fr}.order-template-inline .field{width:100%}.cart-template-save{grid-template-columns:1fr}.checkout-success-actions{display:grid}.checkout-success-actions .btn{width:100%}.order-detail-actions>.btn,.order-detail-actions>form{width:100%}.order-detail-actions>form .btn{width:100%}}

/* Stage 11: управляемый контент главной и CMS */
.site-notice{background:#fff3cd;color:#5c4711;border-bottom:1px solid #f4dda2;font-size:13px;font-weight:600}
.site-notice .container{min-height:38px;display:flex;align-items:center;justify-content:center;gap:9px;text-align:center}
.site-notice i{color:#d97706;font-size:15px}
.home-hero{padding:34px 0 18px;background:linear-gradient(180deg,#f8fafc 0,#fff 100%)}
.home-hero-card{position:relative;overflow:hidden;min-height:390px;border-radius:24px;background:linear-gradient(135deg,#0f172a 0%,#182746 62%,#243657 100%);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:stretch;box-shadow:0 24px 70px rgba(15,23,42,.12)}
.home-hero-card:before{content:"";position:absolute;width:440px;height:440px;border-radius:50%;right:-150px;top:-220px;background:rgba(255,255,255,.055)}
.home-hero-card:after{content:"";position:absolute;width:270px;height:270px;border-radius:50%;right:260px;bottom:-190px;background:rgba(255,51,51,.14)}
.home-hero-copy{position:relative;z-index:2;padding:58px 56px;color:#fff;display:flex;flex-direction:column;justify-content:center}
.home-hero-badge{width:max-content;max-width:100%;display:flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.07);font-size:12px;font-weight:700;letter-spacing:.02em;margin-bottom:20px;color:#dbeafe}
.home-hero-copy h1{font-size:clamp(34px,4.2vw,58px);line-height:1.02;letter-spacing:-.045em;font-weight:800;margin:0 0 20px;max-width:780px}
.home-hero-copy p{font-size:17px;line-height:1.65;color:#cbd5e1;max-width:700px;margin:0 0 30px}
.home-hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.home-hero-actions .btn{min-height:48px;padding:12px 19px;border-radius:10px;display:inline-flex;gap:10px;align-items:center;justify-content:center;font-weight:700}
.home-hero-actions .btn-light{background:#fff;color:#0f172a;border:1px solid rgba(255,255,255,.15)}
.home-hero-visual{position:relative;z-index:2;margin:32px 32px 32px 0;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(255,255,255,.065);backdrop-filter:blur(8px);padding:28px;display:flex;flex-direction:column;justify-content:center;gap:26px}
.hero-visual-mark{width:110px;height:110px;border-radius:28px;background:#fff;color:#0f172a;display:grid;place-items:center;font-size:52px;box-shadow:0 20px 50px rgba(0,0,0,.14)}
.hero-visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hero-visual-grid span{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.08);color:#e2e8f0;font-size:13px;font-weight:600}
.hero-visual-grid i{color:#fb7185;font-size:17px}
.home-product-grid{margin-bottom:52px}
.solution-icon{position:absolute;right:26px;bottom:22px;width:108px;height:108px;border-radius:28px;background:#fff;color:#94a3b8;display:grid;place-items:center;font-size:52px;box-shadow:0 10px 24px rgba(15,23,42,.06);transform:rotate(-4deg)}
.solution-card:hover .solution-icon{color:var(--brand-blue);transform:rotate(0deg) scale(1.03);transition:.25s}
.brand-card-fallback{font-weight:800;font-size:15px;line-height:1.15;text-align:center;color:#64748b;letter-spacing:-.02em;max-width:100%;overflow-wrap:anywhere}
.brand-card:hover .brand-card-fallback{color:var(--brand-blue)}
.cms-public-page{max-width:940px;margin:0 auto}
.cms-public-page h1{margin-bottom:24px}
.cms-public-content{font-size:16px;line-height:1.8;color:#374151;white-space:normal}
.admin-content-stats .admin-card small{display:block;color:#64748b;margin-top:5px;font-size:12px}
.admin-form-footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cms-editor{font-family:'Manrope',system-ui,sans-serif;line-height:1.65;resize:vertical}
.content-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.content-health-item{display:flex;flex-direction:column;gap:3px;padding:16px;border:1px solid #e5e7eb;border-radius:14px;background:#fafbfc;color:#0f172a;transition:.2s}
.content-health-item:hover{border-color:#c7d2fe;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.06)}
.content-health-item b{font-size:25px;line-height:1.1}.content-health-item span{color:#64748b;font-size:13px}
@media(max-width:991px){.home-hero-card{grid-template-columns:1fr;min-height:0}.home-hero-copy{padding:42px 34px}.home-hero-visual{margin:0 24px 24px;min-height:220px;flex-direction:row;align-items:center}.hero-visual-mark{flex:0 0 92px;width:92px;height:92px;font-size:42px}.hero-visual-grid{flex:1}.content-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.site-notice .container{justify-content:flex-start;text-align:left;padding-top:8px;padding-bottom:8px}.home-hero{padding-top:18px}.home-hero-card{border-radius:18px}.home-hero-copy{padding:32px 22px}.home-hero-copy h1{font-size:34px}.home-hero-copy p{font-size:15px;line-height:1.55}.home-hero-actions{display:grid;grid-template-columns:1fr;width:100%}.home-hero-actions .btn{width:100%}.home-hero-visual{display:none}.solution-icon{width:78px;height:78px;font-size:36px;right:16px;bottom:16px}.content-health-grid{grid-template-columns:1fr 1fr}}

/* Stage 12: legal documents + consent UI */
.legal-consents{display:grid;gap:10px;margin:4px 0 8px}.legal-check{display:flex!important;align-items:flex-start;gap:10px;font-size:13px;line-height:1.45;color:#475569}.legal-check input{width:18px;height:18px;min-width:18px;margin-top:1px;accent-color:#0f172a}.legal-check a{color:#2563eb;text-decoration:underline;text-underline-offset:2px}.legal-document{max-width:980px;margin:0 auto}.legal-document h1{margin-bottom:8px}.legal-document-meta{font-size:13px;color:#64748b;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.legal-document .cms-public-content{white-space:normal;line-height:1.7;color:#334155}.footer-seller-details{display:grid;gap:3px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:rgba(255,255,255,.72)}.footer-seller-details b{color:#fff;font-size:13px}.footer-legal{flex-wrap:wrap}.admin-form .legal-check{color:inherit}
@media (max-width:767px){.legal-document{padding:20px}.footer-legal{gap:10px!important}.legal-check{font-size:12px}}

/* Product card cart control — modern add icon + inline quantity stepper */
.product-cart-control{display:flex;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px;flex:0 0 auto}
.product-cart-control .btn-add-cart{width:44px;height:44px;border-radius:12px;background:#f3f4f6;color:var(--brand-blue);border:1px solid transparent;box-shadow:none;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.product-cart-control .btn-add-cart i{font-size:20px;line-height:1}
.product-cart-control .btn-add-cart:hover:not(:disabled){background:#fff;color:var(--brand-red);border-color:#fecaca;transform:translateY(-1px)}
.product-cart-control .btn-add-cart:focus-visible,.product-card-qty button:focus-visible{outline:3px solid rgba(255,51,51,.18);outline-offset:2px}
.product-cart-control .btn-add-cart:disabled{opacity:.45;transform:none}
.product-card-qty{height:44px;display:grid;grid-template-columns:36px 38px 36px;align-items:center;background:#fff;border:1px solid #dfe3e8;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(15,23,42,.06)}
.product-card-qty[hidden]{display:none!important}
.product-card-qty button{height:42px;border:0;background:transparent;color:var(--brand-blue);display:flex;align-items:center;justify-content:center;font-size:15px;transition:background .15s ease,color .15s ease}
.product-card-qty button:hover:not(:disabled){background:#f3f4f6;color:var(--brand-red)}
.product-card-qty button:disabled{color:#c7cdd4;cursor:not-allowed}
.product-card-qty [data-card-cart-value]{min-width:38px;text-align:center;font-size:14px;font-weight:700;color:var(--brand-blue);font-variant-numeric:tabular-nums;user-select:none}
@media(max-width:575px){.product-cart-control .btn-add-cart,.product-card-qty{height:46px}.product-cart-control .btn-add-cart{width:46px}.product-card-qty{grid-template-columns:38px 40px 38px}.product-card-qty button{height:44px}.product-card-qty [data-card-cart-value]{min-width:40px}}


/* UX Stage: text add-to-cart controls + checkout v2 */
.product-cart-control{min-width:118px}
.product-cart-control .btn-add-cart{width:auto;min-width:118px;height:44px;padding:0 18px;border-radius:10px;background:var(--brand-blue);color:#fff;border:1px solid var(--brand-blue);font-size:13px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;box-shadow:none}
.product-cart-control .btn-add-cart span{display:block}
.product-cart-control .btn-add-cart:hover:not(:disabled){background:#1e293b;color:#fff;border-color:#1e293b;transform:translateY(-1px)}
.product-cart-control .btn-add-cart:disabled{background:#f3f4f6;color:#9ca3af;border-color:#e5e7eb;opacity:1}
.product-cart-control .product-card-qty{width:118px;grid-template-columns:36px 46px 36px;box-shadow:none}

.checkout-section{background:#f8fafc;padding-top:30px;padding-bottom:72px;min-height:60vh}
.checkout-container{max-width:1180px}
.checkout-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:4px 0 26px}
.checkout-page-head h1{margin:4px 0 7px;color:var(--brand-blue);font-size:36px;line-height:1.1;letter-spacing:-.035em;font-weight:800}
.checkout-page-head p{margin:0;color:#64748b;font-size:15px}
.checkout-eyebrow{display:block;color:var(--brand-red);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.checkout-back-cart{display:inline-flex;align-items:center;gap:7px;color:var(--brand-blue);font-size:13px;font-weight:700;white-space:nowrap;padding:10px 0}
.checkout-back-cart:hover{color:var(--brand-red)}
.checkout-page-error{display:flex;gap:10px;align-items:flex-start;margin:-6px 0 20px;border:1px solid #fecaca;background:#fff;color:#991b1b;padding:14px 16px;border-radius:12px}
.checkout-page-error i{font-size:18px;line-height:1.3}
.checkout-grid-v2{grid-template-columns:minmax(0,1fr) 380px;gap:22px;align-items:start}
.checkout-form-v2{padding:0;border:0;background:transparent;display:grid;gap:14px}
.checkout-block{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px;box-shadow:0 1px 2px rgba(15,23,42,.025)}
.checkout-block-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.checkout-block-head>div{min-width:0;flex:1}
.checkout-block-head h2{margin:0;color:var(--brand-blue);font-size:18px;line-height:1.25;font-weight:800;letter-spacing:-.015em}
.checkout-block-head p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}
.checkout-block-icon{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#f1f5f9;color:var(--brand-blue);display:grid;place-items:center;font-size:17px}
.checkout-block-head-small{margin-bottom:12px}
.checkout-account-note{margin:0 0 14px;background:#f8fafc;border:1px solid #eef2f7}
.checkout-customer-type{margin:0}
.checkout-type-options{gap:10px}
.checkout-type-options span{min-height:72px;padding:13px 14px;border-radius:12px;background:#fff}
.checkout-type-options input:checked+span{border-color:var(--brand-blue);box-shadow:0 0 0 2px rgba(15,23,42,.06);background:#f8fafc}
.checkout-type-options input:checked+span i{color:var(--brand-red)}
.checkout-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.checkout-fields-grid .full{grid-column:1/-1}
.checkout-fields-grid label,.checkout-field-label{display:grid;gap:7px;color:#374151;font-size:13px;font-weight:650;margin:0}
.checkout-fields-grid label>span,.checkout-field-label>span{display:block}
.checkout-fields-grid em{font-style:normal;color:var(--brand-red)}
.checkout-form-v2 .field{min-height:46px;padding:11px 13px;border-radius:10px;border-color:#dfe3e8;background:#fff;font-size:14px;box-shadow:none}
.checkout-form-v2 textarea.field{min-height:88px;resize:vertical;line-height:1.45}
.checkout-form-v2 .field:focus{border-color:#94a3b8;box-shadow:0 0 0 3px rgba(15,23,42,.05)}
.checkout-form-v2 .field.is-error{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.08)}
.checkout-b2b-block{margin:0;background:#fff}
.checkout-b2b-block .b2b-section-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start}
.checkout-b2b-block .b2b-section-head>a{align-self:center;color:var(--link-blue);font-size:12px}
.checkout-b2b-block .b2b-fields-grid label{font-size:13px;color:#374151;font-weight:650}
.checkout-payment-options{gap:9px;margin:0}
.checkout-payment-options>label{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:14px 15px;border-radius:12px;margin:0;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.checkout-payment-options>label:hover{border-color:#cbd5e1;background:#fafafa}
.checkout-payment-options>label:has(input:checked){border-color:var(--brand-blue);box-shadow:0 0 0 2px rgba(15,23,42,.05);background:#f8fafc}
.checkout-payment-options input{margin:0;width:17px;height:17px;accent-color:var(--brand-blue)}
.checkout-payment-options span{gap:3px}
.checkout-payment-options span b{color:var(--brand-blue);font-size:13px}
.checkout-payment-options small{font-size:12px;line-height:1.4}
.checkout-payment-options>label>i{color:#94a3b8;font-size:13px}
.checkout-block-comment textarea{width:100%}
.checkout-submit-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px 22px;display:grid;gap:15px}
.checkout-submit-card .legal-consents{margin:0;gap:11px}
.checkout-submit-card .legal-check{font-size:12px;color:#64748b}
.checkout-submit-button{width:100%;min-height:52px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:800}
.checkout-submit-button:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed}
.checkout-submit-note{display:flex;align-items:flex-start;justify-content:center;gap:7px;color:#64748b;font-size:11px;line-height:1.4;text-align:center}
.checkout-submit-note i{color:#16a34a;font-size:15px}
.checkout-summary-v2{position:sticky;top:18px;padding:22px;border-radius:16px;box-shadow:0 8px 30px rgba(15,23,42,.05)}
.checkout-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid #eef2f7}
.checkout-summary-head span{display:block;color:#94a3b8;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:3px}
.checkout-summary-head h2{margin:0;color:var(--brand-blue);font-size:18px;font-weight:800}
.checkout-summary-head a{color:var(--link-blue);font-size:12px;font-weight:700;padding-top:5px}
.checkout-summary-items{padding:6px 0 2px}
.checkout-summary-v2 .checkout-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;padding:12px 0;border-bottom:1px solid #f1f5f9;font-size:12px}
.checkout-summary-v2 .checkout-summary-row span{color:#475569;line-height:1.45;min-width:0;overflow-wrap:anywhere}
.checkout-summary-v2 .checkout-summary-row b{color:var(--brand-blue);white-space:nowrap;font-size:12px}
.checkout-summary-v2 .cart-loading{border:0;padding:18px 0;background:transparent;font-size:12px}
.checkout-total{margin-top:10px;padding-top:16px;border-top:1px solid #e5e7eb;font-size:14px;align-items:flex-end}
.checkout-total b{font-size:25px;line-height:1;color:var(--brand-blue)}
.checkout-summary-trust{display:flex;gap:8px;align-items:flex-start;margin-top:16px;padding:11px 12px;background:#f8fafc;border-radius:10px;color:#64748b;font-size:11px;line-height:1.45}
.checkout-summary-trust i{color:#16a34a;font-size:15px;flex:0 0 auto}
.checkout-success{max-width:680px;margin:36px auto;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:44px;text-align:center;box-shadow:0 12px 40px rgba(15,23,42,.06)}
.checkout-success-icon{width:64px;height:64px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;background:#ecfdf5;color:#16a34a;font-size:32px}
.checkout-success-kicker{color:#16a34a;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800}
.checkout-success h1{margin:6px 0 10px;color:var(--brand-blue);font-size:30px;font-weight:800;letter-spacing:-.025em}
.checkout-success>p{color:#64748b;line-height:1.6;margin:0 auto;max-width:540px}
.checkout-success-warning{margin:16px auto!important;text-align:left;color:#991b1b!important}
.checkout-success-actions{margin-top:22px}

@media(max-width:991px){
  .checkout-section{padding-top:24px;padding-bottom:48px}
  .checkout-grid-v2{grid-template-columns:1fr}
  .checkout-summary-v2{position:static;order:-1}
  .checkout-page-head{align-items:flex-start}
}
@media(max-width:700px){
  .checkout-page-head{display:grid;gap:10px;margin-bottom:18px}
  .checkout-page-head h1{font-size:30px}
  .checkout-page-head p{font-size:13px}
  .checkout-back-cart{padding:0}
  .checkout-fields-grid{grid-template-columns:1fr}
  .checkout-fields-grid .full{grid-column:auto}
  .checkout-block,.checkout-submit-card,.checkout-summary-v2{padding:17px;border-radius:14px}
  .checkout-block-head{margin-bottom:15px}
  .checkout-block-icon{width:36px;height:36px;flex-basis:36px}
  .checkout-block-head h2{font-size:16px}
  .checkout-b2b-block .b2b-section-head{grid-template-columns:36px minmax(0,1fr)}
  .checkout-b2b-block .b2b-section-head>a{grid-column:2}
  .checkout-type-options{grid-template-columns:1fr}
  .checkout-type-options span{min-height:64px}
  .checkout-summary-v2 .checkout-summary-row{gap:10px}
  .checkout-success{padding:30px 20px;margin:18px auto}
  .checkout-success h1{font-size:25px}
}
@media(max-width:575px){
  .product-bottom{align-items:flex-end;gap:10px}
  .product-cart-control{min-width:112px}
  .product-cart-control .btn-add-cart{min-width:112px;height:46px;padding:0 14px}
  .product-cart-control .product-card-qty{width:112px;grid-template-columns:34px 44px 34px;height:46px}
  .checkout-section{padding-top:18px;padding-bottom:34px}
  .checkout-page-head h1{font-size:27px}
  .checkout-summary-v2{padding:15px}
  .checkout-summary-head{padding-bottom:12px}
  .checkout-summary-items{max-height:230px;overflow:auto}
  .checkout-submit-button{min-height:50px}
}


/* UX Stage 3: product-card + checkout visual polish */
/* Explicit width resets the old icon-only mobile rule kept for backwards compatibility. */
.product-cart-control .btn-add-cart{width:118px;max-width:100%}
.product-card .product-bottom{gap:14px}
.product-card .price-block{min-width:0}
.product-card .price-current{overflow-wrap:anywhere}

.checkout-summary-items{max-height:min(420px,calc(100vh - 285px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}
.checkout-summary-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #f1f5f9}
.checkout-summary-item:last-child{border-bottom:0}
.checkout-summary-thumb{width:52px;height:52px;border:1px solid #eef2f7;border-radius:10px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}
.checkout-summary-thumb img{width:100%;height:100%;object-fit:contain;padding:5px}
.checkout-summary-copy{min-width:0;display:grid;gap:4px}
.checkout-summary-title{color:var(--brand-blue);font-size:12px;font-weight:650;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.checkout-summary-title:hover{color:var(--link-blue)}
.checkout-summary-meta{color:#94a3b8;font-size:11px;line-height:1.2}
.checkout-summary-price{color:var(--brand-blue);font-size:12px;font-weight:800;white-space:nowrap;align-self:center}
.checkout-summary-count{display:inline-block;margin-left:5px;color:#94a3b8;font-size:11px;font-weight:600;vertical-align:middle}
.checkout-form-v2 input.field,.checkout-form-v2 select.field{height:48px}
.checkout-form-v2 input::placeholder,.checkout-form-v2 textarea::placeholder{color:#9ca3af}
.checkout-payment-options>label{min-height:64px}
.checkout-submit-card{box-shadow:0 1px 2px rgba(15,23,42,.02)}

@media(max-width:700px){
  .checkout-section{background:#f6f8fb}
  .checkout-container{padding-left:12px;padding-right:12px}
  .checkout-page-head{padding:0 3px}
  .checkout-block,.checkout-submit-card,.checkout-summary-v2{border-radius:12px;padding:16px}
  .checkout-block{box-shadow:none}
  .checkout-summary-items{max-height:250px}
  .checkout-summary-item{grid-template-columns:46px minmax(0,1fr) auto;gap:9px;padding:10px 0}
  .checkout-summary-thumb{width:46px;height:46px;border-radius:9px}
  .checkout-summary-title{font-size:11.5px}
  .checkout-summary-price{font-size:11.5px}
  .checkout-form-v2 input.field,.checkout-form-v2 select.field{height:50px}
  .checkout-form-v2 textarea.field{min-height:96px}
  .checkout-payment-options>label{padding:13px;min-height:62px}
  .checkout-submit-card .legal-check{line-height:1.5}
}
@media(max-width:575px){
  .product-cart-control .btn-add-cart{width:112px;min-width:112px}
  .product-card .product-bottom{gap:10px}
  .checkout-page-head h1{font-size:26px}
  .checkout-page-head p{line-height:1.5}
  .checkout-summary-items{max-height:218px}
  .checkout-summary-v2 .checkout-total b{font-size:23px}
}
@media(max-width:359px){
  .product-cart-control{min-width:104px}
  .product-cart-control .btn-add-cart{width:104px;min-width:104px;padding-left:10px;padding-right:10px;font-size:12px}
  .product-cart-control .product-card-qty{width:104px;grid-template-columns:32px 40px 32px}
  .checkout-summary-item{grid-template-columns:42px minmax(0,1fr)}
  .checkout-summary-thumb{width:42px;height:42px}
  .checkout-summary-price{grid-column:2;justify-self:start}
}
/* Product detail: use the same persistent cart quantity control as product cards. */
.product-detail-cart-control{min-width:0;width:100%}
.product-detail-cart-control .product-add-main{width:100%;min-height:50px;margin:0}
.product-detail-cart-control .product-detail-cart-qty{width:100%;height:50px;grid-template-columns:50px minmax(56px,1fr) 50px;border-radius:10px;border-color:#d9dee5;box-shadow:none}
.product-detail-cart-control .product-detail-cart-qty button{height:48px;font-size:18px}
.product-detail-cart-control .product-detail-cart-qty [data-card-cart-value]{font-size:16px;font-weight:800}
@media(max-width:575px){
  .product-detail-cart-control .product-add-main,.product-detail-cart-control .product-detail-cart-qty{height:50px;min-height:50px}
  .product-detail-cart-control .product-add-main{width:100%;min-width:0;padding-left:16px;padding-right:16px;font-size:14px}
  .product-detail-cart-control .product-detail-cart-qty{width:100%;grid-template-columns:48px minmax(48px,1fr) 48px}
  .product-detail-cart-control .product-detail-cart-qty button{height:48px}
}


/* SMS registration / required account completion */
.registration-section{background:#f6f8fb;min-height:calc(100vh - 260px)}
.registration-shell{max-width:520px;margin:0 auto}
.registration-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:32px;box-shadow:0 14px 40px rgba(15,23,42,.06)}
.registration-step{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:18px}
.registration-icon{width:54px;height:54px;border-radius:16px;background:#f8fafc;color:var(--brand-blue);display:grid;place-items:center;font-size:25px;margin-bottom:18px;border:1px solid #eef2f7}
.registration-icon-success{background:#ecfdf5;color:#16a34a;border-color:#d1fae5}
.registration-card .section-title{font-size:29px;letter-spacing:-.025em;margin-bottom:9px}
.registration-card .auth-lead{font-size:14px;line-height:1.6;color:#64748b;margin:0 0 22px}
.registration-phone-form{display:grid;gap:14px}
.registration-phone-form label{display:grid;gap:7px;color:#374151;font-size:13px;font-weight:700}
.registration-phone-input{height:52px;font-size:17px!important;padding-left:14px!important;letter-spacing:.01em}
.registration-phone-form .auth-primary{min-height:52px;border-radius:10px;font-weight:800}
.registration-login-button{width:100%;margin-top:10px;min-height:48px;display:flex;align-items:center;justify-content:center}
.registration-service-note{display:flex;gap:10px;align-items:flex-start;padding:13px 14px;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.45;margin-bottom:16px}
.registration-service-note i{font-size:16px;flex:0 0 auto}
.registration-change-phone{display:inline-flex;align-items:center;gap:7px;margin-top:18px;color:var(--link-blue);font-size:13px;font-weight:700}
.registration-privacy{margin:18px 0 0;color:#94a3b8;font-size:11px;line-height:1.45}
.idigital-widget-host{min-height:150px;border:1px solid #eef2f7;border-radius:16px;padding:14px;background:#fbfcfe;overflow:hidden}
.idigital-widget-host input,.idigital-widget-host select{max-width:100%;border-radius:10px!important}
.idigital-widget-host button{border-radius:10px!important;min-height:44px}

.account-setup-section{position:relative;background:#f6f8fb;min-height:calc(100vh - 180px);overflow:hidden}
.account-setup-backdrop{min-height:560px}
.account-setup-blurred{filter:blur(3px);opacity:.32;pointer-events:none;user-select:none}
.account-setup-blurred .profile-menu span{display:flex;gap:10px;align-items:center;padding:12px 14px;color:#64748b;border-radius:10px}
.account-setup-overlay{position:fixed;inset:0;z-index:1200;background:rgba(15,23,42,.48);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;overflow:auto}
.account-setup-modal{width:min(100%,560px);background:#fff;border-radius:22px;padding:30px;box-shadow:0 24px 80px rgba(15,23,42,.24);margin:auto;display:grid;gap:14px}
.account-setup-check{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#ecfdf5;color:#16a34a;font-size:27px;margin-bottom:2px}
.account-setup-kicker{color:#16a34a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.account-setup-modal h1{font-size:27px;color:var(--brand-blue);font-weight:800;letter-spacing:-.025em;margin:0}
.account-setup-modal>p{color:#64748b;font-size:13px;line-height:1.55;margin:0 0 2px}
.account-setup-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:4px}
.account-setup-fields label{display:grid;gap:7px;color:#374151;font-size:13px;font-weight:700}
.account-setup-fields .field{min-height:48px;border-radius:10px;padding:11px 13px}
.account-setup-consents{margin:2px 0 0;gap:10px}
.account-setup-consents .legal-check{font-size:11px;line-height:1.5;color:#64748b}
.account-setup-submit{min-height:52px;border-radius:10px;font-weight:800;width:100%;margin-top:2px}
.account-setup-lock{display:flex;justify-content:center;align-items:center;gap:6px;color:#94a3b8;font-size:11px;text-align:center}
.account-setup-lock i{font-size:13px}

@media(max-width:767px){
  .registration-section{padding-top:22px;padding-bottom:34px}
  .registration-card{padding:22px 18px;border-radius:16px}
  .registration-card .section-title{font-size:25px}
  .idigital-widget-host{padding:10px;border-radius:13px}
  .account-setup-overlay{padding:10px;align-items:start}
  .account-setup-modal{border-radius:17px;padding:22px 17px;margin:12px auto}
  .account-setup-modal h1{font-size:24px}
  .account-setup-fields{grid-template-columns:1fr}
  .account-setup-fields .field{min-height:50px}
}
.checkout-account-contact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:stretch;margin-bottom:14px}
.checkout-account-contact>div{display:grid;gap:4px;padding:12px 13px;border:1px solid #e8edf3;border-radius:11px;background:#f8fafc;min-width:0}
.checkout-account-contact span{color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.checkout-account-contact b{color:var(--brand-blue);font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.checkout-account-contact>a{display:flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:11px;border:1px solid #e5e7eb;color:var(--link-blue);font-size:12px;font-weight:700;background:#fff;white-space:nowrap}
.checkout-address-only{grid-template-columns:1fr}
@media(max-width:767px){.checkout-account-contact{grid-template-columns:1fr}.checkout-account-contact>a{min-height:44px}}


/* Checkout inline registration — Stage 6 */
.checkout-registration-flow{display:grid;gap:12px}
.checkout-registration-inline{padding:28px}
.checkout-registration-progress{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:start;gap:10px;margin:0 0 28px;padding-bottom:22px;border-bottom:1px solid #eef2f7}
.checkout-registration-progress>span{display:grid;justify-items:center;gap:7px;min-width:54px;color:#94a3b8}
.checkout-registration-progress>span b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f1f5f9;border:1px solid #e2e8f0;color:#64748b;font-size:12px;font-style:normal;font-weight:800;transition:.2s ease}
.checkout-registration-progress>span em{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.055em;font-style:normal;font-weight:800}
.checkout-registration-progress>span.is-active{color:var(--brand-blue)}
.checkout-registration-progress>span.is-active b{background:#eff6ff;border-color:#bfdbfe;color:var(--link-blue)}
.checkout-registration-progress>span.is-done{color:#16a34a}
.checkout-registration-progress>span.is-done b{background:#ecfdf5;border-color:#bbf7d0;color:#16a34a}
.checkout-registration-progress>i{height:2px;background:#e2e8f0;margin-top:16px;border-radius:999px}
.checkout-registration-progress>span.is-done+i{background:#86efac}
.checkout-registration-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px}
.checkout-registration-icon{width:46px;height:46px;flex:0 0 46px;border-radius:13px;background:#f1f5f9;border:1px solid #e2e8f0;color:var(--brand-blue);display:grid;place-items:center;font-size:21px}
.checkout-registration-icon-success{background:#ecfdf5;border-color:#bbf7d0;color:#16a34a}
.checkout-registration-heading>div{min-width:0}
.checkout-registration-kicker{display:block;margin:0 0 4px;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.checkout-registration-kicker-success{color:#16a34a}
.checkout-registration-heading h2{margin:0;color:var(--brand-blue);font-size:23px;line-height:1.2;font-weight:800;letter-spacing:-.025em}
.checkout-registration-heading p{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.5}
.checkout-registration-form{display:grid;gap:14px}
.checkout-registration-form>label,.checkout-registration-fields label{display:grid;gap:7px;color:#374151;font-size:12px;font-weight:750}
.checkout-registration-form>label>span,.checkout-registration-fields label>span{font-weight:750}
.checkout-registration-form .field{min-height:50px;border-radius:10px;padding:11px 13px}
.checkout-registration-phone{font-size:17px!important;letter-spacing:.01em}
.checkout-registration-code{font-size:21px!important;letter-spacing:.22em;text-align:center;max-width:210px}
.checkout-registration-submit{min-height:52px;border-radius:10px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.checkout-inline-login{margin-top:18px;text-align:center;color:#64748b;font-size:12px}
.checkout-inline-login a{color:var(--link-blue);font-weight:800}
.checkout-existing-login{width:100%;margin-top:10px;display:flex;align-items:center;justify-content:center;min-height:46px}
.checkout-registration-error{display:flex;align-items:flex-start;gap:8px;margin:0 0 18px}
.checkout-registration-error i{font-size:16px;flex:0 0 auto}
.checkout-test-mode-note{display:flex;gap:10px;align-items:flex-start;padding:13px 14px;margin:0 0 16px;border-radius:12px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:12px;line-height:1.45}
.checkout-test-mode-note i{font-size:16px;flex:0 0 auto}
.checkout-idigital-widget{margin-top:4px}
.checkout-verified-phone{display:flex;align-items:center;gap:8px;margin:-4px 0 18px;padding:11px 13px;border-radius:11px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:12px}
.checkout-verified-phone i{font-size:16px}.checkout-verified-phone span{font-weight:800}.checkout-verified-phone b{margin-left:auto;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.checkout-registration-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.checkout-registration-consents{margin:2px 0 0;gap:10px}
.checkout-registration-consents .legal-check{font-size:11px;line-height:1.5}
.checkout-registration-footnote{display:flex;align-items:flex-start;gap:9px;padding:11px 14px;color:#64748b;font-size:11px;line-height:1.45}
.checkout-registration-footnote i{color:#16a34a;font-size:16px;flex:0 0 auto}
@media(max-width:767px){
  .checkout-registration-inline{padding:19px 17px;border-radius:14px}
  .checkout-registration-progress{gap:7px;margin-bottom:22px;padding-bottom:18px}
  .checkout-registration-progress>span{min-width:44px}
  .checkout-registration-progress>span b{width:31px;height:31px}
  .checkout-registration-progress>span em{font-size:9px}
  .checkout-registration-progress>i{margin-top:15px}
  .checkout-registration-heading{gap:11px;margin-bottom:18px}
  .checkout-registration-icon{width:41px;height:41px;flex-basis:41px;border-radius:11px;font-size:19px}
  .checkout-registration-heading h2{font-size:20px}
  .checkout-registration-heading p{font-size:12px}
  .checkout-registration-fields{grid-template-columns:1fr}
  .checkout-registration-form .field{min-height:52px}
  .checkout-registration-code{max-width:none}
  .checkout-registration-footnote{padding:7px 3px 0}
  .checkout-registration-grid .checkout-summary-v2{order:0}
}

/* Stage 7: checkout-first account creation. Registration never blocks the checkout form. */
.checkout-account-note-auto{background:#f0fdf4;border-color:#dcfce7;color:#475569}
.checkout-account-note-auto>i{color:#16a34a}
.checkout-account-note-auto b{color:#166534}
.checkout-account-note-auto span{min-width:0}
.checkout-modal-open{overflow:hidden}
.checkout-finish-overlay[hidden]{display:none!important}
.checkout-finish-overlay{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.52);backdrop-filter:blur(5px);overflow:auto}
.checkout-finish-modal{position:relative;width:min(100%,520px);background:#fff;border:1px solid rgba(226,232,240,.9);border-radius:22px;padding:30px;box-shadow:0 28px 90px rgba(15,23,42,.26)}
.checkout-finish-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:0;border-radius:50%;background:#f8fafc;color:#64748b;display:grid;place-items:center;transition:.18s ease}
.checkout-finish-close:hover{background:#eef2f7;color:#0f172a}
.checkout-finish-step{display:grid;gap:13px}
.checkout-finish-step[hidden]{display:none!important}
.checkout-finish-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#eff6ff;border:1px solid #dbeafe;color:var(--link-blue);font-size:25px;margin-bottom:2px}
.checkout-finish-icon-success{background:#ecfdf5;border-color:#bbf7d0;color:#16a34a}
.checkout-finish-kicker{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.085em;font-weight:850;color:#64748b}
.checkout-finish-kicker-success{color:#16a34a}
.checkout-finish-modal h2{margin:0;padding-right:34px;color:var(--brand-blue);font-size:27px;line-height:1.18;font-weight:850;letter-spacing:-.028em}
.checkout-finish-modal p{margin:0;color:#64748b;font-size:13px;line-height:1.55}
.checkout-finish-phone{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:7px;padding:9px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a;font-size:15px;font-weight:800;letter-spacing:.015em}
.checkout-finish-phone:before{content:"\F4E7";font-family:"bootstrap-icons";color:var(--brand-blue);font-size:15px}
.checkout-finish-error{margin:0}
.checkout-finish-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.checkout-finish-code-row .field{min-height:50px}
.checkout-finish-code-row .btn{min-height:50px;padding-inline:20px;font-weight:800;border-radius:10px}
.checkout-finish-passwords{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:2px}
.checkout-finish-passwords label{display:grid;gap:7px;color:#374151;font-size:12px;font-weight:750}
.checkout-finish-passwords .field{min-height:50px;border-radius:10px}
.checkout-finish-submit{width:100%;min-height:52px;border-radius:10px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:2px}
.checkout-finish-trust{display:flex;align-items:center;justify-content:center;gap:6px;color:#94a3b8;font-size:11px;text-align:center}
.checkout-finish-trust i{font-size:12px}
.checkout-finish-modal .checkout-test-mode-note{margin:0}
.checkout-finish-modal .idigital-widget-host{margin-top:2px}
.order-created-banner{display:flex;align-items:flex-start;gap:13px;margin:0 0 22px;padding:16px 18px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:14px;color:#166534}
.order-created-banner-icon{width:36px;height:36px;flex:0 0 36px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#16a34a;font-size:20px}
.order-created-banner b{display:block;font-size:14px;line-height:1.35;margin:1px 0 4px}
.order-created-banner p{margin:0;color:#3f6212;font-size:12px;line-height:1.5}

@media(max-width:767px){
  .checkout-finish-overlay{padding:10px;align-items:end}
  .checkout-finish-modal{width:100%;border-radius:20px 20px 14px 14px;padding:24px 17px calc(18px + env(safe-area-inset-bottom));max-height:calc(100dvh - 16px);overflow:auto}
  .checkout-finish-close{top:12px;right:12px}
  .checkout-finish-modal h2{font-size:23px}
  .checkout-finish-icon{width:48px;height:48px;border-radius:14px;font-size:22px}
  .checkout-finish-code-row{grid-template-columns:1fr}
  .checkout-finish-code-row .btn{width:100%}
  .checkout-finish-passwords{grid-template-columns:1fr}
  .checkout-finish-passwords .field{min-height:52px}
  .checkout-finish-submit{min-height:54px}
  .order-created-banner{padding:14px;gap:11px}
}

/* Stage 8: optional checkout email + recipient identity hint */
.checkout-fio-field{align-self:start}
.checkout-field-help{display:block;margin-top:7px;font-size:12px;line-height:1.45;color:var(--muted,#6b7280);font-weight:400}
.checkout-fields-grid label>span>small{font-size:11px;font-weight:500;color:var(--muted,#6b7280);margin-left:4px}
@media(max-width:640px){.checkout-field-help{font-size:11px;line-height:1.4}}


/* Stage 9: post-purchase account completion */
html.account-setup-open{overflow:hidden}
.account-setup-overlay-global{z-index:1600}
.account-setup-modal-compact{width:min(100%,500px)}
.account-setup-fields-single{grid-template-columns:1fr}
.account-setup-fields-single label{grid-column:1/-1}
@media(max-width:640px){
  .account-setup-overlay-global{padding:10px;align-items:end}
  .account-setup-modal-compact{width:100%;margin:0 auto;border-radius:20px 20px 14px 14px;padding:24px 17px calc(18px + env(safe-area-inset-bottom));max-height:calc(100dvh - 16px);overflow:auto}
}

/* Stage 10: checkout form layout stabilization */
.checkout-form-v2{min-width:0}
.checkout-form-v2 .checkout-block{overflow:visible}
.checkout-form-v2 .checkout-fields-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:16px;
  row-gap:16px;
  align-items:start;
}
.checkout-form-v2 .checkout-fields-grid>label,
.checkout-form-v2 .checkout-field-label,
.checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label{
  display:grid;
  grid-template-rows:auto auto;
  align-content:start;
  gap:7px;
  min-width:0;
  margin:0;
  color:#374151;
  font-size:13px;
  font-weight:650;
  line-height:1.35;
}
.checkout-form-v2 .checkout-fields-grid>label>span,
.checkout-form-v2 .checkout-field-label>span{
  min-height:18px;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px;
}
.checkout-form-v2 .checkout-fields-grid>label:has(input[name="email"]){grid-column:1/-1}
.checkout-form-v2 .checkout-fields-grid>label:has(input[name="email"]) .field{max-width:none}
.checkout-form-v2 .field,
.checkout-form-v2 input.field,
.checkout-form-v2 select.field,
.checkout-form-v2 textarea.field{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  border:1px solid #d8dee8;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:14px;
  line-height:1.35;
  box-shadow:none;
}
.checkout-form-v2 input.field,
.checkout-form-v2 select.field{height:50px;padding:0 14px}
.checkout-form-v2 textarea.field{min-height:104px;padding:13px 14px;resize:vertical}
.checkout-form-v2 select.field{padding-right:38px}
.checkout-form-v2 .field:hover{border-color:#c7d0dc}
.checkout-form-v2 .field:focus{border-color:#94a3b8;box-shadow:0 0 0 3px rgba(15,23,42,.055);outline:0}
.checkout-form-v2 .field::placeholder{color:#a0a8b5;opacity:1}
.checkout-form-v2 .checkout-field-help{margin-top:0;padding-top:1px;color:#7a8493;font-size:11px;line-height:1.45;font-weight:400}

/* Company details: balanced three-column row for identifiers, full-width long fields. */
.checkout-form-v2 .checkout-b2b-block .b2b-fields-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:14px;
  row-gap:16px;
  align-items:start;
}
.checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>.full{grid-column:1/-1}
.checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label:has(input[name="company_name"]),
.checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label:has(textarea){grid-column:1/-1}
.checkout-form-v2 .checkout-b2b-block .b2b-bank-details .b2b-fields-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding-top:2px;
}
.checkout-form-v2 .checkout-b2b-block .b2b-bank-details .b2b-fields-grid>.full{grid-column:1/-1}
.checkout-form-v2 .b2b-bank-details{
  margin-top:2px;
  padding-top:14px;
}
.checkout-form-v2 .b2b-bank-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:0 2px;
  color:#0f172a;
  font-size:13px;
  line-height:1.35;
}
.checkout-form-v2 .b2b-bank-details summary span{font-size:11px;white-space:nowrap}

/* Buyer type and payment cards should align independently of copy length. */
.checkout-form-v2 .checkout-type-options{align-items:stretch}
.checkout-form-v2 .checkout-type-options label{display:block;min-width:0;height:100%}
.checkout-form-v2 .checkout-type-options label>span{height:100%;min-height:78px}
.checkout-form-v2 .checkout-payment-options{display:grid;gap:10px}
.checkout-form-v2 .checkout-payment-options>label{
  width:100%;
  min-width:0;
  min-height:68px;
  padding:14px 16px;
}
.checkout-form-v2 .checkout-payment-options>label span{min-width:0}
.checkout-form-v2 .checkout-payment-options>label span b,
.checkout-form-v2 .checkout-payment-options>label span small{display:block}

/* Prevent consent text and controls from causing horizontal overflow. */
.checkout-submit-card,.checkout-submit-card .legal-consents,.checkout-submit-card .legal-check{min-width:0}
.checkout-submit-card .legal-check>span{min-width:0;overflow-wrap:anywhere}
.checkout-submit-card .legal-check input{margin-top:2px}

@media(max-width:900px){
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label:has(input[name="company_ogrn"]){grid-column:1/-1}
}
@media(max-width:700px){
  .checkout-form-v2 .checkout-fields-grid,
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid,
  .checkout-form-v2 .checkout-b2b-block .b2b-bank-details .b2b-fields-grid{grid-template-columns:1fr;gap:14px}
  .checkout-form-v2 .checkout-fields-grid>label,
  .checkout-form-v2 .checkout-fields-grid>label:has(input[name="email"]),
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>.full,
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label:has(input[name="company_ogrn"]),
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label:has(input[name="company_name"]),
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid>label:has(textarea),
  .checkout-form-v2 .checkout-b2b-block .b2b-bank-details .b2b-fields-grid>.full{grid-column:auto}
  .checkout-form-v2 input.field,.checkout-form-v2 select.field{height:52px}
  .checkout-form-v2 textarea.field{min-height:104px}
  .checkout-form-v2 .checkout-type-options label>span{min-height:68px}
  .checkout-form-v2 .checkout-payment-options>label{min-height:66px;padding:14px}
}
@media(max-width:420px){
  .checkout-block,.checkout-submit-card,.checkout-summary-v2{padding:15px}
  .checkout-block-head{gap:10px}
  .checkout-block-head p{font-size:12px}
  .checkout-form-v2 .checkout-fields-grid,
  .checkout-form-v2 .checkout-b2b-block .b2b-fields-grid{gap:13px}
  .checkout-form-v2 .field{font-size:16px} /* prevents iOS zoom on focus */
  .checkout-form-v2 .b2b-bank-details summary{align-items:flex-start;flex-direction:column;justify-content:center;gap:2px;padding:6px 0}
}

/* Promo codes */
.cart-promocode{margin:14px 0 4px;padding:14px;border:1px solid #e7eaf0;border-radius:14px;background:#f8fafc}
.cart-promocode-title{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:14px;font-weight:800;color:#111827}
.cart-promocode-title i{font-size:17px;color:var(--orange,#e52b0e)}
.cart-promocode-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.cart-promocode-form .field{min-width:0;height:44px;text-transform:uppercase;font-weight:700;letter-spacing:.035em}
.cart-promocode-form .btn{height:44px;white-space:nowrap}
.cart-promocode-result{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;font-size:12px;line-height:1.4}
.cart-promocode-result.is-success{color:#16803c}.cart-promocode-result.is-error{color:#b42318}
.cart-promocode-result button{border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.cart-discount-row{color:#16803c}.cart-discount-row b{color:#16803c}.cart-discount-row span b{font-size:12px;letter-spacing:.03em}
.checkout-summary-v2 .cart-discount-row{margin-top:10px;padding-top:12px;border-top:1px dashed #d8dde7}
@media(max-width:520px){.cart-promocode-form{grid-template-columns:1fr}.cart-promocode-form .btn{width:100%}.cart-promocode{padding:12px}}

/* Stage 13: delivery admin */
.delivery-admin-inline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}.delivery-admin-inline .wide{grid-column:span 2}.delivery-admin-inline label{display:flex;flex-direction:column;gap:7px}.delivery-admin-inline .checkline{flex-direction:row;align-items:center;padding-bottom:12px}.admin-switch-row{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #e8ebf1}.admin-switch-row span{display:flex;flex-direction:column;gap:4px}.admin-switch-row small{color:#718096;font-weight:400}.admin-switch-row input{width:20px;height:20px}.admin-row-actions{display:flex;gap:7px;align-items:flex-start;flex-wrap:wrap}.admin-row-actions form{margin:0}.admin-row-actions details{position:relative}.admin-row-actions summary{list-style:none;cursor:pointer}.admin-inline-edit{position:absolute;right:0;top:42px;z-index:20;width:360px;max-width:80vw;background:#fff;border:1px solid #e5e9f0;border-radius:14px;padding:14px;box-shadow:0 16px 44px rgba(15,23,42,.16)}.admin-inline-edit label{display:flex;gap:7px;align-items:center}.admin-city-autocomplete{position:relative}.admin-city-results{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;background:#fff;border:1px solid #dfe4ec;border-radius:12px;box-shadow:0 14px 36px rgba(15,23,42,.14);max-height:260px;overflow:auto;padding:5px}.admin-city-results button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:8px;cursor:pointer}.admin-city-results button:hover{background:#f3f6fa}@media(max-width:900px){.delivery-admin-inline{grid-template-columns:1fr 1fr}.delivery-admin-inline .wide{grid-column:1/-1}}@media(max-width:600px){.delivery-admin-inline{grid-template-columns:1fr}.delivery-admin-inline .wide{grid-column:auto}.admin-inline-edit{position:fixed;left:12px;right:12px;top:80px;width:auto;max-width:none}}

/* Stage 15: cart UX + favorites + contextual recommendations */
.cart-layout{align-items:start}
.cart-layout>.summary{position:sticky;top:18px;align-self:start;border-radius:18px;box-shadow:0 10px 32px rgba(15,23,42,.05)}
.cart-delivery-note{max-width:185px;text-align:right;font-size:12px;line-height:1.35;color:#475569}
.cart-list{gap:12px}
.cart-item{grid-template-columns:96px minmax(0,1fr) minmax(300px,360px);gap:18px;padding:18px;border-radius:18px;align-items:center;transition:border-color .18s ease,box-shadow .18s ease}
.cart-item:hover{border-color:#d8dee8;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.cart-photo{width:96px;height:96px;border-radius:14px;overflow:hidden;border:1px solid #eef2f7;background:#f8fafc}
.cart-photo img{width:100%;height:100%;object-fit:contain;padding:7px}
.cart-item-info{min-width:0}
.cart-item-title{font-size:14px;line-height:1.42;margin:0;color:#111827;font-weight:750;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cart-item-title:hover{color:var(--link-blue)}
.cart-item-meta{margin-top:7px;color:#64748b;font-size:11.5px;line-height:1.35}
.cart-unit-price{display:flex;align-items:baseline;gap:8px;margin-top:13px}
.cart-unit-price span{color:#94a3b8;font-size:11px}
.cart-unit-price b{color:#334155;font-size:13px;font-weight:750;white-space:nowrap}
.cart-item-controls{display:grid;grid-template-columns:minmax(116px,1fr) minmax(104px,auto) 82px;gap:14px;align-items:end;min-width:0}
.cart-control-label{display:block;color:#94a3b8;font-size:10.5px;font-weight:650;margin-bottom:7px;line-height:1}
.cart-qty{height:42px;width:116px;max-width:100%;display:grid;grid-template-columns:34px minmax(38px,1fr) 34px;border-radius:10px;background:#fff}
.cart-qty button{width:auto;height:40px;color:#334155;font-size:18px;transition:background .16s ease,color .16s ease}
.cart-qty button:hover:not(:disabled){background:#f1f5f9;color:#111827}
.cart-qty input{width:100%;min-width:0;font-weight:750;color:#0f172a;font-size:13px;background:#fff;-moz-appearance:textfield}
.cart-qty input::-webkit-inner-spin-button,.cart-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.cart-line-cell b{display:block;color:#0f172a;font-size:16px;line-height:42px;font-weight:850;white-space:nowrap}
.cart-item-actions{height:42px;display:flex;align-items:center;justify-content:flex-end;gap:7px}
.cart-item-action{width:38px;height:38px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#64748b;display:grid;place-items:center;font-size:16px;cursor:pointer;transition:.16s ease}
.cart-item-action:hover{border-color:#cbd5e1;background:#f8fafc;color:#0f172a}
.cart-item-action[data-fav].is-active{background:#fff1f2;border-color:#fecdd3;color:#e11d48}
.cart-item-action.is-remove:hover{background:#fff1f2;border-color:#fecaca;color:#dc2626}
.cart-item.is-unavailable .cart-unit-price b,.cart-item.is-unavailable .cart-line-cell b{color:#9f1239}

.cart-recommendations{margin-top:42px;padding-top:4px}
.cart-recommendations-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}
.cart-recommendations-kicker{display:block;color:#94a3b8;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.075em;margin-bottom:4px}
.cart-recommendations-head h2{margin:0;color:#0f172a;font-size:21px;font-weight:800;letter-spacing:-.02em}
.cart-recommendations-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.cart-recommend-card{position:relative;min-width:0;background:#fff;border:1px solid #e7eaf0;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.cart-recommend-card:hover{border-color:#d6dce6;box-shadow:0 10px 26px rgba(15,23,42,.055);transform:translateY(-2px)}
.cart-recommend-card[hidden]{display:none!important}
.cart-recommend-media{position:relative;background:#f8fafc;aspect-ratio:1.25/1;overflow:hidden}
.cart-recommend-image{display:block;width:100%;height:100%}
.cart-recommend-image img{width:100%;height:100%;object-fit:contain;padding:14px}
.cart-recommend-fav{position:absolute;top:10px;right:10px;width:34px;height:34px;border:1px solid #e5e7eb;border-radius:10px;background:rgba(255,255,255,.94);color:#64748b;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 10px rgba(15,23,42,.05)}
.cart-recommend-fav.is-active{background:#fff1f2;border-color:#fecdd3;color:#e11d48}
.cart-recommend-body{padding:13px;display:flex;flex-direction:column;gap:7px;flex:1;min-height:0}
.cart-recommend-category{color:#94a3b8;font-size:10px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-recommend-title{color:#111827;font-size:12.5px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px}
.cart-recommend-title:hover{color:var(--link-blue)}
.cart-recommend-footer{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:auto;padding-top:3px}
.cart-recommend-price{color:#0f172a;font-size:15px;font-weight:850;white-space:nowrap}
.cart-recommend-cart{min-width:104px}
.cart-recommend-cart .btn-add-cart{width:104px;min-width:104px;height:40px;padding:0 11px;font-size:11.5px;border-radius:9px}
.cart-recommend-cart .product-card-qty{width:104px;height:40px;grid-template-columns:31px 42px 31px}
.cart-recommend-cart .product-card-qty button{height:38px}

@media(max-width:1199px){
  .cart-item{grid-template-columns:86px minmax(0,1fr) minmax(286px,330px)}
  .cart-photo{width:86px;height:86px}
  .cart-item-controls{grid-template-columns:112px minmax(96px,auto) 78px;gap:10px}
  .cart-qty{width:112px}
  .cart-recommendations-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:991px){
  .cart-layout>.summary{position:static;top:auto}
  .cart-item{grid-template-columns:78px minmax(0,1fr);padding:16px;gap:14px}
  .cart-photo{width:78px;height:78px}
  .cart-item-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(112px,1fr) minmax(110px,1fr) auto;padding-top:13px;border-top:1px solid #f1f5f9}
  .cart-qty{width:118px}
  .cart-line-cell b{line-height:42px}
  .cart-recommendations{margin-top:32px}
}
@media(max-width:575px){
  .cart-item{grid-template-columns:68px minmax(0,1fr);padding:14px;border-radius:14px;gap:12px}
  .cart-photo{width:68px;height:68px;border-radius:11px}
  .cart-photo img{padding:5px}
  .cart-item-title{font-size:13px}
  .cart-item-meta{font-size:10.5px;margin-top:5px}
  .cart-unit-price{margin-top:9px}
  .cart-unit-price span{font-size:10px}
  .cart-unit-price b{font-size:12px}
  .cart-item-controls{grid-template-columns:minmax(0,1fr) minmax(96px,auto);gap:10px 12px;align-items:end}
  .cart-qty-cell{min-width:0}
  .cart-qty{width:116px;max-width:100%;grid-template-columns:33px minmax(38px,1fr) 33px}
  .cart-line-cell{justify-self:end;text-align:right}
  .cart-line-cell b{font-size:15px}
  .cart-item-actions{grid-column:1/-1;height:auto;justify-content:flex-end;padding-top:1px}
  .cart-item-action{width:40px;height:40px}
  .cart-delivery-note{max-width:150px;font-size:11px}
  .cart-recommendations-head h2{font-size:19px}
  .cart-recommendations-grid{display:flex;overflow-x:auto;gap:12px;margin-left:-12px;margin-right:-12px;padding:0 12px 8px;scroll-snap-type:x proximity;scrollbar-width:none}
  .cart-recommendations-grid::-webkit-scrollbar{display:none}
  .cart-recommend-card{flex:0 0 218px;scroll-snap-align:start}
  .cart-recommend-media{aspect-ratio:1.18/1}
  .cart-recommend-body{padding:12px}
  .cart-recommend-footer{gap:7px}
  .cart-recommend-price{font-size:14px}
  .cart-recommend-cart{min-width:96px}
  .cart-recommend-cart .btn-add-cart{width:96px;min-width:96px;padding:0 8px;font-size:11px}
  .cart-recommend-cart .product-card-qty{width:96px;grid-template-columns:29px 38px 29px}
}

/* Stage 20: verified product reviews */
.product-reviews-panel{scroll-margin-top:110px}
.reviews-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.reviews-heading h2{margin:3px 0 5px;font-size:26px;letter-spacing:-.025em;color:#0f172a}
.reviews-heading p{margin:0;color:#64748b;font-size:13px}
.reviews-kicker{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#94a3b8}
.reviews-score{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 10px;min-width:145px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:15px;background:#fff}
.reviews-score>b{grid-row:1/3;font-size:34px;line-height:1;color:#0f172a;letter-spacing:-.04em}
.reviews-score>span{color:#f59e0b;font-size:14px;letter-spacing:1px;white-space:nowrap}.reviews-score>small{font-size:10.5px;color:#64748b}
.review-flash{margin-bottom:16px}
.review-eligibility{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid #e7eaf0;background:#f8fafc;border-radius:15px;margin-bottom:20px}
.review-eligibility>i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#fff;color:var(--link-blue);font-size:18px;border:1px solid #e5e7eb;flex:0 0 auto}
.review-eligibility>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.review-eligibility b{font-size:13px;color:#0f172a}.review-eligibility span{font-size:11.5px;color:#64748b;line-height:1.45}
.review-write-card{border:1px solid #e2e8f0;border-radius:17px;background:#fff;margin-bottom:24px;overflow:hidden}.review-write-card>summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px}.review-write-card>summary::-webkit-details-marker{display:none}.review-write-card>summary>span{display:flex;align-items:center;gap:9px;color:#0f172a;font-size:13px}.review-write-card>summary>span i{color:#f59e0b;font-size:17px}.review-write-card>summary>i{transition:transform .18s ease}.review-write-card[open]>summary>i{transform:rotate(180deg)}
.review-form{padding:0 18px 18px;border-top:1px solid #f1f5f9}.review-own-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:16px}.review-own-status small{font-size:11px;color:#64748b}
.review-status{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.review-status.is-pending{background:#fff7ed;color:#c2410c}.review-status.is-published{background:#ecfdf5;color:#047857}.review-status.is-rejected{background:#fff1f2;color:#be123c}.review-status.is-hidden{background:#f1f5f9;color:#475569}
.review-rating-field{border:0;padding:16px 0 7px;margin:0}.review-rating-field legend{font-size:11px;font-weight:750;color:#475569;margin-bottom:7px}.review-star-input{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}.review-star-input input{position:absolute;opacity:0;pointer-events:none}.review-star-input label{font-size:31px;line-height:1;color:#dbe1ea;cursor:pointer;transition:.12s ease}.review-star-input label:hover,.review-star-input label:hover~label,.review-star-input input:checked~label{color:#f59e0b}.review-star-input input:focus-visible+label{outline:2px solid #2563eb;outline-offset:2px;border-radius:5px}
.review-comment-field{display:block}.review-comment-field>span,.review-existing-media>span{display:block;font-size:11px;font-weight:750;color:#475569;margin-bottom:7px}.review-comment-field textarea{resize:vertical;min-height:118px}.review-comment-field>small{display:block;text-align:right;font-size:10px;color:#94a3b8;margin-top:5px}
.review-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.review-upload-box{position:relative;min-height:82px;border:1px dashed #cbd5e1;border-radius:14px;padding:14px;display:flex;align-items:center;gap:12px;background:#f8fafc;cursor:pointer}.review-upload-box:hover{border-color:#94a3b8;background:#f1f5f9}.review-upload-box>i{font-size:22px;color:#64748b}.review-upload-box>span{display:flex;flex-direction:column;gap:3px}.review-upload-box b{font-size:12px;color:#0f172a}.review-upload-box small{font-size:10px;color:#64748b;line-height:1.35}.review-upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer}
.review-file-preview,.review-edit-media-grid{display:flex;gap:8px;overflow-x:auto;padding:10px 1px 3px;scrollbar-width:thin}.review-file-preview-item,.review-edit-media-item{position:relative;flex:0 0 90px;width:90px}.review-file-preview-item img,.review-file-preview-item video,.review-edit-media-item img,.review-edit-media-item video{display:block;width:90px;height:72px;object-fit:cover;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc}.review-file-preview-item>i,.review-edit-media-item>i{position:absolute;left:34px;top:24px;color:#fff;font-size:22px;text-shadow:0 1px 5px rgba(0,0,0,.45)}.review-file-preview-item>span{display:block;margin-top:4px;font-size:9px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.review-edit-media-item>span{display:flex;align-items:center;gap:4px;font-size:9px;color:#64748b;margin-top:5px}.review-existing-media{margin-top:14px}
.review-form-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px}.review-form-foot p{margin:0;font-size:10.5px;color:#64748b;line-height:1.4}.review-delete-form{padding:0 18px 18px}.review-delete-form button{border:0;background:none;color:#dc2626;padding:0;font-size:11px;cursor:pointer}.review-delete-form button:hover{text-decoration:underline}
.reviews-empty{border:1px dashed #dbe2ea;border-radius:15px;padding:28px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;color:#64748b}.reviews-empty i{font-size:25px;color:#94a3b8}.reviews-empty b{font-size:13px;color:#334155}.reviews-empty span{font-size:11px}.reviews-list{display:grid;gap:12px}
.review-card{border:1px solid #e7eaf0;border-radius:16px;background:#fff;padding:17px 18px}.review-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.review-author{display:flex;align-items:center;gap:10px}.review-avatar{width:38px;height:38px;border-radius:50%;background:#eef2ff;color:#3730a3;display:grid;place-items:center;font-size:13px;font-weight:850}.review-author>div{display:flex;flex-direction:column;gap:2px}.review-author b{font-size:12.5px;color:#0f172a}.review-author small{font-size:9.5px;color:#64748b}.review-author small i{color:#16a34a}.review-card-rating{color:#f59e0b;font-size:14px;letter-spacing:1px;white-space:nowrap}.review-media-strip{display:flex;gap:7px;margin-top:14px;overflow-x:auto;padding-bottom:2px}.review-media-thumb{position:relative;flex:0 0 74px;width:74px;height:58px;border:0;padding:0;border-radius:9px;overflow:hidden;background:#f1f5f9;cursor:pointer}.review-media-thumb img,.review-media-thumb video{width:100%;height:100%;object-fit:cover;display:block}.review-media-thumb>span{position:absolute;inset:0;display:grid;place-items:center;background:rgba(15,23,42,.18);color:#fff;font-size:22px}.review-comment{font-size:12.5px;line-height:1.62;color:#334155;margin-top:13px;white-space:normal}.review-shop-reply{margin-top:14px;padding:13px 14px;border-left:3px solid #2b2c86;border-radius:0 11px 11px 0;background:#f8fafc}.review-shop-reply>div{display:flex;align-items:center;gap:6px}.review-shop-reply>div i{color:#2b2c86}.review-shop-reply>div b{font-size:10.5px;color:#0f172a;letter-spacing:.02em}.review-shop-reply>div small{font-size:9px;color:#94a3b8;margin-left:auto}.review-shop-reply p{margin:7px 0 0;font-size:11.5px;line-height:1.55;color:#475569}.review-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:14px;padding-top:11px;border-top:1px solid #f1f5f9}.review-card>footer>span{font-size:10px;color:#94a3b8}.review-votes{display:flex;gap:6px}.review-votes button{height:30px;min-width:48px;padding:0 9px;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#64748b;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;cursor:pointer}.review-votes button b{font-size:10px}.review-votes button:hover:not(:disabled),.review-votes button.is-active{border-color:#c7d2fe;background:#eef2ff;color:#3730a3}.review-votes button:disabled{opacity:.55;cursor:not-allowed}
.review-media-modal{position:fixed;z-index:10050;inset:0;background:rgba(3,7,18,.88);display:grid;place-items:center;padding:28px}.review-media-modal-content{max-width:min(980px,92vw);max-height:88vh;display:grid;place-items:center}.review-media-modal img,.review-media-modal video{display:block;max-width:100%;max-height:86vh;border-radius:12px;background:#000}.review-media-close{position:fixed;right:22px;top:20px;width:42px;height:42px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:18px;display:grid;place-items:center;cursor:pointer}.review-media-open{overflow:hidden}

/* Account reviews */
.account-review-pending-grid,.account-review-list{display:grid;gap:10px}.account-review-product{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid #e7eaf0;border-radius:13px}.account-review-product-img{width:58px;height:58px;border-radius:10px;background:#f8fafc;overflow:hidden}.account-review-product-img img{width:100%;height:100%;object-fit:contain;padding:4px}.account-review-product>div{display:flex;flex-direction:column;gap:4px;min-width:0}.account-review-product>div a{color:#0f172a;font-size:12px;line-height:1.35}.account-review-product>div small{font-size:9.5px;color:#64748b}.account-review-card{border:1px solid #e7eaf0;border-radius:14px;padding:15px}.account-review-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.account-review-card-head>div{display:flex;flex-direction:column;gap:5px}.account-review-card-head a{color:#0f172a;font-size:12.5px}.account-review-stars{color:#f59e0b;font-size:12px;letter-spacing:1px}.account-review-media{display:flex;gap:7px;margin-top:12px;overflow-x:auto}.account-review-media a{position:relative;flex:0 0 70px;width:70px;height:54px;border-radius:8px;overflow:hidden;background:#f1f5f9}.account-review-media img,.account-review-media video{width:100%;height:100%;object-fit:cover}.account-review-media i{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:20px;background:rgba(15,23,42,.16)}.account-review-comment{margin:12px 0 0;font-size:11.5px;line-height:1.55;color:#475569}.account-review-moderation{margin-top:10px;padding:9px 11px;border-radius:9px;background:#fff1f2;color:#9f1239;font-size:10.5px}.account-review-reply{margin-top:11px}.account-review-actions{display:flex;align-items:center;gap:7px;margin-top:13px;padding-top:11px;border-top:1px solid #f1f5f9}.account-review-actions form{margin:0}.account-review-actions small{margin-left:auto;color:#94a3b8;font-size:9.5px}

/* Admin review moderation */
.review-admin-detail{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.7fr);gap:24px}.review-admin-main,.review-admin-side{min-width:0}.review-admin-rating{color:#f59e0b;font-size:18px;letter-spacing:1px}.review-admin-media{display:flex;gap:9px;overflow-x:auto;margin-top:14px}.review-admin-media a{position:relative;flex:0 0 104px;width:104px;height:82px;border-radius:10px;overflow:hidden;background:#f1f5f9}.review-admin-media img,.review-admin-media video{display:block;width:100%;height:100%;object-fit:cover}.review-admin-media a>span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(15,23,42,.18);font-size:22px}.review-admin-comment{margin-top:16px;color:#334155;font-size:13px;line-height:1.65;white-space:normal}.review-admin-side{border-left:1px solid var(--admin-line);padding-left:22px}

@media(max-width:767px){
  .reviews-heading{align-items:stretch;flex-direction:column;gap:13px}.reviews-heading h2{font-size:22px}.reviews-score{width:max-content}.review-eligibility{align-items:flex-start;flex-wrap:wrap}.review-eligibility .btn{margin-left:52px}.review-upload-grid{grid-template-columns:1fr}.review-form-foot{align-items:stretch;flex-direction:column}.review-form-foot .btn{width:100%}.review-card{padding:14px}.review-card>header{flex-direction:column}.review-card-rating{padding-left:48px;margin-top:-8px}.review-card>footer{justify-content:space-between}.review-media-thumb{flex-basis:68px;width:68px;height:54px}.account-review-product{grid-template-columns:52px minmax(0,1fr)}.account-review-product-img{width:52px;height:52px}.account-review-product>.btn{grid-column:1/-1;width:100%}.account-review-card-head{flex-direction:column;gap:8px}.account-review-actions{flex-wrap:wrap}.account-review-actions small{width:100%;margin-left:0}.review-admin-detail{grid-template-columns:1fr}.review-admin-side{border-left:0;border-top:1px solid var(--admin-line);padding-left:0;padding-top:20px}
}

/* Catalog/category listing UX — scoped public catalog controls */
.catalog-header h1{font-size:24px;font-weight:700;color:var(--brand-blue);margin:0}.catalog-header-category{align-items:flex-end}.catalog-filter-layout{grid-template-columns:300px minmax(0,1fr);align-items:start}.catalog-results{min-width:0}.catalog-filter-sidebar{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;padding:20px;scrollbar-width:thin}.filter-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.filter-sidebar-head>div{display:flex;flex-direction:column;gap:2px}.filter-sidebar-head span{font-size:11px;line-height:1.2;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}.filter-sidebar-head b{font-size:18px;line-height:1.25;color:var(--brand-blue)}.filter-sidebar-close{width:40px;height:40px;border:0;border-radius:10px;background:var(--brand-gray);color:var(--brand-blue);display:inline-flex;align-items:center;justify-content:center;font-size:18px}.catalog-filter-sidebar .filter-block{margin-bottom:20px;padding-bottom:20px}.catalog-filter-sidebar .filter-title{display:block;margin-bottom:10px;font-size:13px;font-weight:700}.catalog-filter-sidebar .field{min-height:44px;border-radius:10px;background:#fff}.catalog-filter-sidebar .price-range-inputs{align-items:stretch}.catalog-filter-sidebar .price-input-wrapper{display:block}.catalog-filter-sidebar .price-range-inputs input{height:44px;border-radius:10px;padding-left:30px;background:#fff}.filter-actions{display:grid;gap:10px}.filter-actions .btn-apply-filter{min-height:44px;border-radius:10px;font-weight:650}.filter-reset-link{min-height:40px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;color:var(--text-muted);font-size:13px;font-weight:600}.filter-reset-link:hover{background:var(--brand-gray);color:var(--brand-blue)}.filter-category-hint{display:flex;align-items:flex-start;gap:9px;margin:-4px 0 20px;padding:12px;border-radius:10px;background:var(--brand-gray);color:var(--text-muted);font-size:12px;line-height:1.45}.filter-category-hint i{margin-top:1px;color:var(--brand-blue)}.catalog-results-head{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}.catalog-results-meta{display:flex;flex-direction:column;gap:2px}.catalog-results-meta>b{font-size:16px;color:var(--brand-blue)}.catalog-results-meta>span,.catalog-results-meta>small{font-size:12px;color:var(--text-muted);font-weight:500}.catalog-sort-control{min-width:250px;height:46px;display:grid;grid-template-columns:20px auto minmax(110px,1fr);align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--brand-blue);cursor:pointer}.catalog-sort-control>i{font-size:15px}.catalog-sort-control>span{font-size:12px;color:var(--text-muted);font-weight:600}.catalog-sort-control>select{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--brand-blue);font:inherit;font-size:13px;font-weight:650;cursor:pointer}.catalog-active-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-2px 0 18px}.catalog-filter-chip{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--brand-gray);color:#475569;font-size:12px;font-weight:600}.catalog-active-filters>a{font-size:12px;font-weight:650;color:var(--link-blue);padding:6px 4px}.catalog-filter-mobile-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid var(--border);border-radius:11px;background:#fff;color:var(--brand-blue);font-size:14px;font-weight:700}.catalog-filter-mobile-button b{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--brand-blue);color:#fff;font-size:11px}.catalog-filter-backdrop{display:none}.catalog-empty-filtered{margin-top:12px}.catalog-category-select{padding-left:12px}

@media (max-width:991px){body.catalog-filter-open{overflow:hidden}.catalog-filter-layout{grid-template-columns:1fr}.catalog-filter-sidebar{display:block;position:fixed;z-index:96;top:0;bottom:0;left:0;width:min(380px,92vw);max-height:none;border:0;border-radius:0 16px 16px 0;padding:20px;transform:translateX(-102%);transition:transform .22s ease;box-shadow:0 22px 60px rgba(15,23,42,.18);overflow-y:auto}.catalog-filter-sidebar.is-open{transform:translateX(0)}.catalog-filter-backdrop{display:block;position:fixed;z-index:95;inset:0;border:0;background:rgba(15,23,42,.42);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.catalog-filter-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}.catalog-results-head{flex-direction:row;align-items:center}.catalog-sort-control{min-width:235px}.catalog-filter-mobile-button{align-self:flex-start}}
@media (max-width:575px){.catalog-header h1{font-size:22px}.catalog-header-category{align-items:stretch}.catalog-filter-mobile-button{width:100%}.catalog-results-head{align-items:stretch;gap:12px}.catalog-results-meta{padding-top:2px}.catalog-sort-control{width:100%;min-width:0;grid-template-columns:20px auto minmax(0,1fr)}.catalog-active-filters{margin-bottom:14px}.catalog-filter-chip{max-width:100%;white-space:normal}.catalog-filter-sidebar{width:94vw}.catalog-filter-sidebar .price-range-inputs{display:grid;grid-template-columns:1fr 1fr}}

/* Category listing UX Stage 1.1 — boolean review/rating filters */
.filter-boolean-block{display:grid;gap:6px}.catalog-boolean-filter{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:10px;padding:10px;border-radius:10px;cursor:pointer;transition:background .18s ease}.catalog-boolean-filter:hover{background:var(--brand-gray)}.catalog-boolean-filter>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.catalog-boolean-check{width:22px;height:22px;border:1.5px solid #cbd5e1;border-radius:6px;background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#fff;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.catalog-boolean-check i{font-size:15px;line-height:1;opacity:0;transform:scale(.75);transition:opacity .15s ease,transform .15s ease}.catalog-boolean-filter>input:checked+.catalog-boolean-check{background:var(--brand-blue);border-color:var(--brand-blue)}.catalog-boolean-filter>input:checked+.catalog-boolean-check i{opacity:1;transform:scale(1)}.catalog-boolean-filter>input:focus-visible+.catalog-boolean-check{box-shadow:0 0 0 3px rgba(15,23,42,.12)}.catalog-boolean-copy{min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:1px}.catalog-boolean-copy strong{font-size:13px;line-height:1.35;color:var(--brand-blue);font-weight:700}.catalog-boolean-copy small{font-size:11px;line-height:1.35;color:var(--text-muted);font-weight:500}
