:root{
    --blue:#2563eb;
    --blue-dark:#1d4ed8;
    --text:#111827;
    --muted:#667085;
    --line:#e5e7eb;
    --soft:#f8fafc;
    --danger:#ef4444;
    --success:#16a34a;
    --radius:16px;
    --shadow:0 12px 30px rgba(15,23,42,.06);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',Arial,sans-serif;background:#fff;color:var(--text)}
a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}button{border:0;cursor:pointer;transition:.25s ease}button:hover{transform:translateY(-1px)}img{max-width:100%;display:block}.container{width:min(100% - 32px,1280px);margin:auto}
/* header */
.topbar{padding:0 40px;border-bottom:1px solid #ddd;font-size:14px;font-weight:500}.topbar-mobile{display:none}.topbar-menu{height:48px;display:flex;align-items:center;justify-content:space-between}.left-menu,.right-menu{display:flex;align-items:center;gap:32px;list-style:none}.left-menu a:hover,.right-menu a:hover,.back-link:hover{color:var(--blue)}.burger-btn{width:42px;height:42px;border-radius:10px;background:var(--blue);color:#fff;font-size:18px}
.middle-header{height:92px;padding:0 40px;display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:30px;background:#fff}.logo{font-size:44px;font-weight:800;letter-spacing:-2px;transition:.25s}.logo span,.footer-logo span{color:var(--blue)}.logo:hover{transform:scale(1.03)}.catalog-btn,.checkout-btn,.success-btn,.empty-cart a{height:52px;padding:0 22px;border-radius:12px;background:var(--blue);color:#fff!important;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700}.catalog-btn:hover,.checkout-btn:hover,.success-btn:hover,.empty-cart a:hover{background:var(--blue-dark)}.search-box{height:56px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;overflow:hidden;transition:.25s}.search-box:focus-within,.catalog-controls input:focus,.catalog-controls select:focus,.checkout-form input:focus,.checkout-form select:focus,.checkout-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,99,235,.08)}.search-box input{flex:1;height:100%;border:0;outline:0;padding:0 18px;font-size:15px}.header-category-select{min-width:190px;height:100%;border:0;border-left:1px solid var(--line);padding:0 36px 0 16px;background:#fff;outline:0;font-weight:600;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23666' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.search-btn{width:64px;height:100%;background:var(--blue);color:#fff;font-size:18px}.header-right{display:flex;align-items:center;gap:34px}.compare,.cart{display:flex;align-items:center;gap:12px;transition:.25s}.compare:hover,.cart:hover{transform:translateY(-2px)}.compare i,.cart i{font-size:22px}.cart-info span,.compare span{font-weight:700}.cart-info p{font-size:14px;color:#555;margin-top:3px}.header-counter{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:5px;border-radius:999px;background:var(--blue);color:#fff;font-size:11px;font-weight:800}
/* home */
.hero-section{padding:28px 40px 0;display:flex;gap:18px;align-items:flex-start}.category-sidebar{width:300px;flex-shrink:0;border:1px solid #ececec;border-radius:14px;padding:10px 0;background:#fff}.category-item{height:42px;display:flex;align-items:center;gap:14px;padding:0 22px;transition:.2s}.category-item:hover{background:var(--soft)}.category-item i{width:18px;font-size:17px}.category-item span{font-size:15px;font-weight:600}.hero-right{flex:1;display:flex;flex-direction:column;gap:16px}.hero-banner{min-height:470px;padding:58px 70px;background:#eef4ff;border-radius:14px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.hero-content h1{font-size:52px;font-weight:800;line-height:1.15;margin-bottom:24px}.hero-content p{max-width:560px;font-size:20px;line-height:1.6;color:var(--muted);margin-bottom:30px}.hero-content button{height:58px;padding:0 26px;border-radius:12px;background:var(--blue);color:#fff;font-weight:700;font-size:16px}.features-row{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #ececec;border-radius:14px;overflow:hidden;background:#fff}.feature-box{min-height:92px;display:flex;align-items:center;gap:16px;padding:18px 24px;border-right:1px solid #ececec;transition:.2s}.feature-box:last-child{border-right:0}.feature-box:hover{background:#fafafa}.feature-box i{font-size:24px}.feature-box h4{font-size:16px;margin-bottom:5px}.feature-box p{font-size:14px;color:var(--muted)}.online-widget{margin:18px 40px 0;padding:14px 18px;display:inline-flex;align-items:center;gap:8px;border:1px solid #ececec;border-radius:999px;background:#fff;font-size:14px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.04)}.online-dot{width:9px;height:9px;border-radius:50%;background:var(--success);animation:onlinePulse 1.4s infinite}@keyframes onlinePulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}70%{box-shadow:0 0 0 8px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}.popular-categories{padding:42px 40px}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.section-header h2{font-size:32px;font-weight:800}.section-header a{color:var(--blue);font-weight:700}.categories-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}.popular-card{height:230px;border:1px solid #ececec;border-radius:16px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;transition:.25s}.popular-card:hover,.product-card:hover,.page-card:hover,.contact-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.popular-card img{width:120px;height:120px;object-fit:contain}.popular-card span{font-weight:700}
/* pages */
.simple-page,.catalog-page,.product-page,.cart-page,.checkout-page,.favorites-page,.contacts-page{padding:56px 40px 70px}.back-link{display:inline-block;margin-bottom:34px;color:var(--blue);font-size:15px;font-weight:800}.page-hero,.contacts-hero{max-width:760px;margin-bottom:40px}.page-hero span,.contacts-hero span,.product-category-label{display:inline-block;margin-bottom:12px;color:var(--blue);font-size:13px;font-weight:800;text-transform:uppercase}.page-hero h1,.contacts-hero h1{font-size:46px;line-height:1.1;margin-bottom:16px}.page-hero p,.contacts-hero p{font-size:18px;line-height:1.7;color:var(--muted)}.page-grid,.contacts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.page-card,.contact-card{padding:30px;border:1px solid #ececec;border-radius:16px;background:#fff;transition:.25s}.page-card h3,.contact-card h3{font-size:22px;margin-bottom:12px}.page-card p,.contact-card p,.contact-card a{font-size:15px;line-height:1.7;color:var(--muted)}.contact-card i{font-size:28px;color:var(--blue);margin-bottom:18px}
/* catalog/product */
.catalog-controls{display:flex;gap:14px;margin-bottom:28px}.catalog-controls input,.catalog-controls select,.checkout-form input,.checkout-form select,.checkout-form textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:0 18px;font-size:15px;outline:0}.catalog-controls input,.catalog-controls select{height:52px}.catalog-controls select{max-width:260px}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{position:relative;display:block;padding:22px;border:1px solid #ececec;border-radius:16px;background:#fff;transition:.25s}.product-card img{width:100%;height:180px;object-fit:contain;margin-bottom:16px}.product-card h3{font-size:17px;margin-bottom:8px}.product-card p{font-size:14px;line-height:1.6;color:var(--muted);margin-bottom:12px}.product-card strong{display:block;font-size:20px;font-weight:800;margin:14px 0}.product-card-btn,.compare-btn{width:100%;height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700}.product-card-btn{background:var(--blue);color:#fff}.compare-btn{margin-top:10px;background:#f3f4f6;color:var(--text)}.compare-btn:hover{background:var(--blue);color:#fff}.favorite-btn{position:absolute;top:14px;right:14px;z-index:5;width:42px;height:42px;border:1px solid #ececec;border-radius:50%;background:#fff;color:#111;display:flex;align-items:center;justify-content:center;font-size:18px}.favorite-btn.active,.favorite-btn:hover{background:var(--blue);color:#fff;border-color:var(--blue)}.product-variants-preview{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.product-variants-preview span{font-size:12px;font-weight:800;padding:6px 9px;border-radius:999px;background:#eef2ff;color:var(--blue)}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.product-detail-image{height:520px;border:1px solid #ececec;border-radius:20px;display:flex;align-items:center;justify-content:center;background:#fff}.product-detail-image img{width:80%;height:80%;object-fit:contain}.product-detail-info h1{font-size:42px;line-height:1.15;margin-bottom:20px}.product-detail-info p{font-size:17px;line-height:1.8;color:var(--muted);margin-bottom:22px}.product-detail-info strong{display:block;font-size:38px;margin-bottom:20px}.product-detail-info>button,.product-favorite-btn{width:260px;height:56px;border-radius:12px;font-size:16px;font-weight:700}.product-detail-info>button{background:var(--blue);color:#fff}.product-favorite-btn{margin-top:12px;border:1px solid var(--blue);background:#fff;color:var(--blue)}.product-stock,.cart-stock{color:var(--success)!important;font-weight:800}.variant-box{margin:20px 0}.variant-box h4{margin-bottom:12px}.variant-list{display:flex;flex-wrap:wrap;gap:10px}.variant-btn{min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font-weight:800}.variant-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}.product-not-found,.empty-cart{padding:34px;border:1px solid #ececec;border-radius:16px;background:#fff}.empty-cart h2,.product-not-found h1{margin-bottom:10px}.empty-cart p{color:var(--muted);margin-bottom:18px}
/* cart/checkout */
.cart-list{display:flex;flex-direction:column;gap:14px}.cart-item{display:grid;grid-template-columns:90px 1fr auto auto auto;align-items:center;gap:22px;padding:18px;border:1px solid #ececec;border-radius:16px;background:#fff}.cart-item img{width:90px;height:90px;object-fit:contain}.cart-item-info h3{font-size:17px;margin-bottom:6px}.cart-item-info p{font-size:14px;color:var(--muted);margin-bottom:6px}.cart-variant{color:var(--blue)!important;font-weight:800}.cart-quantity{display:flex;align-items:center;gap:12px}.cart-quantity button{width:34px;height:34px;border-radius:8px;background:var(--blue);color:#fff;font-size:18px}.cart-quantity span,.cart-item-total{font-size:18px;font-weight:800}.remove-btn,.remove-compare-btn{height:38px;padding:0 16px;border-radius:8px;background:var(--danger);color:#fff;font-weight:700}.cart-summary{margin-top:24px;padding:24px;border:1px solid #ececec;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:18px}.checkout-form{max-width:720px;display:flex;flex-direction:column;gap:14px}.checkout-form input,.checkout-form select{height:56px}.checkout-form textarea{height:130px;padding-top:16px;resize:none}.checkout-form button{height:56px;border-radius:12px;background:var(--blue);color:#fff;font-size:16px;font-weight:800}.suggestions-list{display:none;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.suggestion-item{padding:14px 18px;cursor:pointer;border-bottom:1px solid #f1f1f1}.suggestion-item:hover{background:var(--soft)}
/* compare */
.compare-table{width:100%;margin-top:30px;border-collapse:separate;border-spacing:0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}.compare-table th{width:220px;padding:22px;text-align:left;border-bottom:1px solid #ececec;background:var(--soft)}.compare-table td{padding:22px;border-bottom:1px solid #ececec;vertical-align:top}.compare-table tr:first-child th{background:var(--blue);color:#fff}.compare-table tr:hover td{background:#f9fbff}.compare-table tr:last-child td,.compare-table tr:last-child th{border-bottom:0}
/* toast/success/footer */
.toast-container{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;gap:12px;z-index:9999}.toast{min-width:240px;max-width:360px;padding:14px 18px;border-radius:12px;background:#111827;color:#fff;font-size:14px;font-weight:700;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(14px);transition:.3s}.toast.show{opacity:1;transform:translateY(0)}.toast.success{background:var(--success)}.toast.error{background:#dc2626}.toast.info{background:var(--blue)}.success-page{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:20px}.success-card{max-width:550px;width:100%;padding:40px;text-align:center;border:1px solid #ececec;border-radius:20px;box-shadow:var(--shadow)}.success-icon{font-size:70px;margin-bottom:18px}.success-card p{color:#666;line-height:1.6;margin-top:12px}.site-footer{margin-top:50px;padding:34px 40px;border-top:1px solid #ececec;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;transition:.35s}.site-footer:hover{border-top-color:var(--blue);box-shadow:0 -10px 30px rgba(0,0,0,.04)}.footer-logo{font-size:28px;font-weight:800;letter-spacing:-1px;transition:.3s}.footer-logo:hover{transform:translateY(-3px) scale(1.04)}.footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.footer-links a{position:relative;font-size:14px;font-weight:700;transition:.25s}.footer-links a::after{content:"";position:absolute;left:0;bottom:-4px;width:0;height:2px;background:var(--blue);transition:.25s}.footer-links a:hover{color:var(--blue);transform:translateY(-2px)}.footer-links a:hover::after{width:100%}.site-footer p{width:100%;color:var(--muted);font-size:14px}
@media(max-width:1200px){.hero-section{flex-direction:column}.category-sidebar,.hero-right{width:100%}.categories-grid{grid-template-columns:repeat(3,1fr)}.products-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:992px){.middle-header{height:auto;padding:20px 24px;grid-template-columns:1fr;gap:16px}.catalog-btn,.search-box,.header-right{width:100%}.header-right{justify-content:flex-start}.compare,.cart{width:48px;height:48px;justify-content:center;border:1px solid #ececec;border-radius:10px}.compare span,.cart-info{display:none}.hero-section{padding:24px}.hero-banner{min-height:440px;padding:40px 32px}.hero-content h1{font-size:42px}.features-row{grid-template-columns:repeat(2,1fr)}.products-grid{grid-template-columns:repeat(2,1fr)}.product-detail{grid-template-columns:1fr}.product-detail-image{height:400px}.page-grid,.contacts-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.topbar{padding:0 16px}.topbar-mobile{height:54px;display:flex;align-items:center;justify-content:flex-end}.topbar-menu{height:auto;max-height:0;overflow:hidden;flex-direction:column;align-items:flex-start;gap:16px;transition:max-height .35s,padding .35s;padding:0}.topbar-menu.active{max-height:280px;padding:0 0 18px}.left-menu,.right-menu{flex-direction:column;align-items:flex-start;gap:14px}.hero-section,.popular-categories,.simple-page,.catalog-page,.product-page,.cart-page,.checkout-page,.favorites-page,.contacts-page{padding-left:16px;padding-right:16px}.hero-banner{min-height:360px;padding:28px 22px}.hero-content h1{font-size:30px}.hero-content p{font-size:15px}.features-row,.categories-grid,.products-grid,.page-grid,.contacts-grid{grid-template-columns:1fr}.feature-box{border-right:0;border-bottom:1px solid #ececec}.feature-box:last-child{border-bottom:0}.page-hero h1,.contacts-hero h1{font-size:34px}.catalog-controls{flex-direction:column}.catalog-controls select{max-width:100%}.cart-item{grid-template-columns:80px 1fr}.cart-quantity,.cart-item-total,.remove-btn{grid-column:2/3}.cart-summary{flex-direction:column;align-items:flex-start}.cart-summary .checkout-btn{width:100%}.compare-table{display:block;overflow-x:auto;white-space:nowrap}.site-footer{padding:28px 16px;align-items:flex-start;flex-direction:column}.footer-links{flex-direction:column;align-items:flex-start;gap:12px}.online-widget{margin:16px}.toast-container{left:16px;right:16px;bottom:16px}.toast{max-width:100%;width:100%}}
@media(max-width:600px){.logo{font-size:36px}.header-category-select{display:none}.hero-content button,.product-detail-info>button,.product-favorite-btn{width:100%}.product-detail-image{height:300px}.product-detail-info h1{font-size:30px}.product-detail-info strong{font-size:32px}.popular-card{height:190px}.section-header{flex-direction:column;align-items:flex-start;gap:12px}}
