/* === СТРАНИЦА === */html,body{margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important}body.cart-page-body{padding-top:86px!important;padding-bottom:0!important;background:#fafafa!important}.page-main,.cart-main{width:100%!important;overflow-x:hidden!important;padding-top:24px!important}.cart-page{max-width:1420px!important;margin:0 auto!important;padding:24px!important;width:100%!important;box-sizing:border-box!important}.shell{width:100%!important;max-width:1420px!important;margin:0 auto!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box!important}

/* === ШАПКА === */.site-header{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:86px!important;max-width:100%!important;z-index:2147483647!important;background:#fff!important;border-bottom:1px solid #ececec!important;transform:none!important}.site-header>.shell,.site-header .shell{height:86px!important}.cart-topbar{position:relative!important;z-index:2!important;padding:18px 0 8px!important;background:#fafafa!important}.cart-topbar-inner{max-width:1420px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-sizing:border-box}.cart-top-left{display:flex;align-items:center;gap:18px}.cart-page-title{font-size:34px;font-weight:900;color:#111;line-height:1;margin:0}.cart-back-btn{height:48px;padding:0 18px;border:none;border-radius:14px;background:#111;color:#fff;display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800;cursor:pointer}.cart-clear-top{height:48px;padding:0 18px;border:1px solid #ececec;border-radius:14px;background:#fff;font-size:14px;font-weight:800;cursor:pointer;margin-left:auto}

/* === ПУСТАЯ КОРЗИНА === */.cart-empty{padding:80px 20px;text-align:center;font-size:22px;font-weight:800;color:#777;background:#fff;border:1px solid #eee;border-radius:24px;width:100%;min-height:420px;display:flex;align-items:center;justify-content:center}

/* === СЕТКА === */.cart-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start;max-width:100%!important;overflow:hidden!important}

/* === БЛОКИ === */.cart-section{background:#fff;border:1px solid #eee;border-radius:24px;overflow:hidden;margin-bottom:24px;max-width:100%!important}.cart-section-title{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #f1f1f1}.cart-section-title h2{margin:0;font-size:26px;font-weight:900}.cart-section-title small{font-size:15px;font-weight:800}

/* === ТАБЛИЦА === */.cart-head,.cart-row{display:grid;grid-template-columns:280px 210px 160px 170px 180px 120px 42px;gap:16px;align-items:center}.cart-head{padding:14px 24px;background:#fafafa;border-bottom:1px solid #eee;font-size:13px;font-weight:900;color:#777}.cart-row{padding:20px 24px;border-bottom:1px solid #f1f1f1;min-height:128px;max-width:100%!important}.cart-row:last-child{border-bottom:0}

/* === ТОВАР === */.cart-product{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center}.cart-img{width:96px!important;height:76px!important;border-radius:14px;object-fit:cover;background:#f5f5f5}.cart-name{font-size:19px;font-weight:900;line-height:1.18}.cart-sku{font-size:11px;color:#888;margin-top:6px}.cart-country{color:#d71920;font-weight:900;margin-left:6px;white-space:nowrap}

/* === КАТЕГОРИЯ === */.cart-cat{display:flex;flex-direction:column;gap:4px}.cart-cat b{font-size:13px;color:#d71920}.cart-cat span{font-size:12px;color:#666}.box-weight{font-size:15px;font-weight:800;color:#444}

/* === ЦЕНА И КОЛИЧЕСТВО === */.cart-price{display:flex;flex-direction:column;gap:4px}.price-note{font-size:11px;color:#777;font-weight:700}.price-main{font-size:18px;font-weight:900}.price-main.red{color:#d71920}.price-main.green{color:#0a9b43}.price-old{font-size:14px;color:#999;text-decoration:line-through}.cart-qty{display:flex;flex-direction:column;align-items:center;gap:6px}.qty-box{display:flex;align-items:center;border:1px solid #ddd;border-radius:14px;overflow:hidden;background:#fff;height:40px}.qty-box button{width:38px;height:40px;border:0;background:#fff;font-size:20px;font-weight:900;cursor:pointer}.qty-box input{width:58px;height:40px;border:0;border-left:1px solid #eee;border-right:1px solid #eee;text-align:center;font-size:16px;font-weight:900}.qty-small{font-size:11px;color:#888}.row-sum{font-size:22px;font-weight:900;text-align:right}.delete-btn{width:34px;height:34px;border:1px solid #eee;background:#fff;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* === ИТОГО === */.cart-summary{max-width:430px;margin:24px 24px 24px auto;background:#fff;border:1px solid #eee;border-radius:22px;padding:24px}.sum-line{display:flex;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:15px}.sum-line b{font-weight:900}.sum-total{margin-top:16px;padding-top:16px;border-top:1px solid #eee;font-size:18px;color:#d71920;font-weight:900;line-height:1.4}.cart-note{font-size:13px;color:#666;line-height:1.5;margin:14px 0 0}

/* === КНОПКИ === */.checkout-btn{width:100%;height:54px;border:0;border-radius:16px;background:#d71920;color:#fff;font-size:17px;font-weight:900;cursor:pointer;margin-top:22px;position:relative!important}.checkout-btn:disabled{opacity:.7;cursor:not-allowed}.checkout-btn.loading{position:relative;overflow:hidden}.checkout-btn.loading:after{content:'';position:absolute;left:-40%;top:0;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);animation:cartLoading 1s infinite}.clear-btn{height:42px;padding:0 18px;border:1px solid #e5e7eb;background:#fff;border-radius:14px;font-size:14px;font-weight:800;cursor:pointer}

/* === УСПЕШНО === */.cart-success{position:fixed;inset:0;background:rgba(15,23,42,.38);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:99999;opacity:0;pointer-events:none;transition:.25s}.cart-success.show{opacity:1;pointer-events:auto}.cart-success>div{background:#fff;border-radius:28px;padding:34px 42px;min-width:340px;text-align:center;box-shadow:0 30px 80px rgba(15,23,42,.28);transform:scale(.92);transition:.25s}.cart-success.show>div{transform:scale(1)}.cart-success b{display:block;font-size:34px;font-weight:900;color:#df1717;line-height:1.1;margin-bottom:14px}.cart-success span{display:block;font-size:20px;font-weight:800;color:#475569;line-height:1.35}@keyframes cartLoading{to{left:140%}}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */@media(max-width:980px){body.cart-page-body{padding-top:76px!important;padding-bottom:78px!important}.cart-topbar{padding:12px 0 4px}.cart-topbar-inner{align-items:flex-start;flex-direction:column}.cart-top-left{width:100%;justify-content:flex-start}.cart-page-title{font-size:26px}.cart-back-btn,.cart-clear-top{height:44px;font-size:13px}.cart-page{padding:10px 10px 90px}.cart-grid{display:block}.cart-head{display:none}.cart-section{border-radius:20px;margin-bottom:16px;overflow:hidden}.cart-section-title{padding:14px;gap:10px;align-items:flex-start}.cart-section-title h2{font-size:20px;line-height:1.15}.cart-section-title small{display:block;font-size:12px;margin-top:3px}.clear-btn{height:36px;padding:0 12px;font-size:12px;border-radius:12px;white-space:nowrap}.cart-row{display:grid!important;grid-template-columns:76px 1fr 34px!important;gap:10px!important;padding:14px!important;min-height:auto!important;border-bottom:1px solid #f1f1f1;align-items:start}.cart-product{grid-column:1/3!important;display:grid!important;grid-template-columns:76px 1fr!important;gap:10px!important;align-items:center}.cart-img{width:76px!important;height:64px!important;border-radius:12px!important}.cart-name{font-size:15px!important;line-height:1.18!important}.cart-sku{font-size:10px!important;margin-top:5px!important}.delete-btn{grid-column:3/4!important;grid-row:1/2!important;width:32px!important;height:32px!important;border-radius:10px!important}.cart-middle-grid{grid-column:1/4!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:stretch}.cart-cat,.box-weight{grid-column:auto!important}.cart-cat{background:#fafafa;border:1px solid #eee;border-radius:14px;padding:10px;display:grid!important;gap:4px}.cart-cat:before{content:'Категория / подкатегория';font-size:10px;font-weight:900;color:#9ca3af;text-transform:uppercase}.cart-cat b{font-size:13px!important;color:#d71920}.cart-cat span{font-size:12px!important;color:#555}.box-weight{background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:10px;font-size:13px!important;line-height:1.35;color:#444;font-weight:800}.box-weight small{font-size:12px;color:#444}.cart-price{grid-column:1/4!important;background:#fff;border:1px solid #eee;border-radius:14px;padding:10px;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important}.price-note{font-size:11px!important;color:#777!important}.price-main{font-size:17px!important}.price-old{font-size:13px!important}.cart-qty{grid-column:1/4!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:10px}.qty-box{height:38px!important}.qty-box button{width:36px!important;height:38px!important}.qty-box input{width:56px!important;height:38px!important}.qty-small{font-size:12px!important;font-weight:800;color:#475569!important}.row-sum{grid-column:1/4!important;text-align:right!important;font-size:18px!important;background:#fff5f5;border:1px solid #fecaca;border-radius:14px;padding:10px;color:#d71920}.row-sum:before{content:'Сумма: ';font-size:12px;color:#777;margin-right:6px}.cart-summary{margin:12px!important;max-width:none!important;border-radius:18px!important;padding:18px!important}.sum-line{font-size:14px!important}.sum-total{font-size:18px!important}.checkout-btn{height:54px!important;border-radius:15px!important;font-size:16px!important;position:relative!important;z-index:20!important}.mobile-bottom-nav{display:flex!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;max-width:100%!important;z-index:2147483647!important;transform:none!important;background:#fff!important}}

/* === ДЕСКТОП === */@media(min-width:981px){body.cart-page-body{padding-bottom:0!important}.site-header{position:relative!important;z-index:50!important}.cart-main>.shell{max-width:1420px!important;width:100%!important;margin:0 auto!important;padding:0 24px!important;box-sizing:border-box!important}.cart-section{max-width:1420px!important;margin-left:auto!important;margin-right:auto!important}.site-footer>.shell{max-width:1420px!important;margin:0 auto!important;padding:0 24px!important;box-sizing:border-box!important}.mobile-bottom-nav{display:none!important}}
/* === ФИКС ПК: НОРМАЛЬНАЯ ШИРИНА КОРЗИНЫ === */@media(min-width:981px){body.cart-page-body{padding-top:0!important;padding-bottom:0!important}.cart-topbar-inner{max-width:1280px!important;margin:0 auto!important;padding:0 24px!important}.cart-main>.shell{max-width:1280px!important;margin:0 auto!important;padding:0 24px!important;box-sizing:border-box!important}.cart-page{max-width:1280px!important;margin:0 auto!important;padding:24px!important}.cart-empty{max-width:980px!important;margin:0 auto!important;min-height:360px!important}.cart-grid{max-width:1280px!important;margin:0 auto!important}.site-footer>.shell{max-width:980px!important;margin:0 auto!important}}
/* === ФИКС ПК: ШАПКА / КОРЗИНА / ФУТЕР / ОЧИСТКА === */@media(min-width:981px){.site-header>.shell,.site-header .shell{max-width:1280px!important;margin:0 auto!important;padding:0 24px!important;box-sizing:border-box!important}.cart-topbar-inner{max-width:980px!important;margin:0 auto!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}.cart-main>.shell,.cart-page{max-width:980px!important;margin:0 auto!important;padding:24px 0!important;box-sizing:border-box!important}.cart-empty{max-width:980px!important;width:100%!important;margin:0 auto!important;min-height:360px!important}.cart-clear-top{min-width:118px!important;height:46px!important;padding:0 18px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1.1!important;white-space:normal!important;font-size:13px!important;font-weight:900!important}.site-footer>.shell{max-width:980px!important;min-height:82px!important;margin:0 auto!important;padding:16px 32px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.site-footer{padding-bottom:18px!important}}
/* === РАСШИРИТЬ ТЕЛО КОРЗИНЫ И ВЫРОВНЯТЬ С ФУТЕРОМ === */@media(min-width:981px){.cart-topbar-inner{max-width:1120px!important}.cart-main>.shell,.cart-page{max-width:1120px!important}.cart-section{max-width:1120px!important;margin:0 auto 24px!important}.cart-empty{max-width:1120px!important}.site-footer>.shell{max-width:1120px!important}}
/* === ФИКС СЕТКИ ТОВАРА НА ПК === */@media(min-width:981px){.cart-head,.cart-row{grid-template-columns:320px 230px 160px 150px 170px 42px!important;gap:18px!important}.cart-product{grid-template-columns:110px 1fr!important;gap:18px!important}.cart-img{width:110px!important;height:82px!important}.cart-name{font-size:20px!important;line-height:1.12!important}.cart-qty{min-width:160px!important}.qty-box{justify-content:center!important}}
/* === ФИНАЛЬНЫЙ ФИКС ПК: СТОЛБЦЫ КОРЗИНЫ === */@media(min-width:981px){body.cart-page-body{padding-top:0!important;padding-bottom:0!important}.cart-topbar-inner,.cart-main>.shell,.cart-page,.cart-section,.site-footer>.shell{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}.cart-main>.shell,.cart-page{padding-left:0!important;padding-right:0!important}.cart-section-title.wholesale~.cart-head,.cart-section-title.wholesale~.cart-row{grid-template-columns:360px 230px 180px 150px 160px 42px!important;gap:18px!important}.cart-section-title.retail~.cart-head,.cart-section-title.retail~.cart-row{grid-template-columns:300px 190px 150px 150px 150px 130px 42px!important;gap:16px!important}.cart-section-title.wholesale~.cart-row .cart-product{order:1!important}.cart-section-title.wholesale~.cart-row .cart-middle-grid{display:contents!important}.cart-section-title.wholesale~.cart-row .cart-cat{order:2!important}.cart-section-title.wholesale~.cart-row .box-weight{order:3!important}.cart-section-title.wholesale~.cart-row .cart-price{order:4!important}.cart-section-title.wholesale~.cart-row .cart-qty{order:5!important}.cart-section-title.wholesale~.cart-row .delete-btn{order:6!important}.cart-product{grid-template-columns:110px 1fr!important;gap:16px!important}.cart-img{width:110px!important;height:82px!important}.cart-name{font-size:19px!important;line-height:1.12!important}.cart-sku{font-size:12px!important;margin-top:8px!important}.cart-clear-top{min-width:135px!important;height:46px!important;padding:0 20px!important;font-size:13px!important;font-weight:900!important}.site-footer>.shell{min-height:90px!important;padding:18px 34px!important}.mobile-bottom-nav{display:none!important}}
/* === СБАЛАНСИРОВАННЫЙ DESKTOP GRID === */@media(min-width:981px){.cart-section-title.wholesale~.cart-head,.cart-section-title.wholesale~.cart-row{grid-template-columns:315px 200px 158px 138px 142px 42px!important;gap:13px!important}.cart-product{grid-template-columns:98px 1fr!important;gap:13px!important}.cart-img{width:98px!important;height:74px!important}.cart-name{font-size:17px!important;line-height:1.12!important}.cart-sku{font-size:11px!important;margin-top:6px!important}.cart-cat b{font-size:13px!important}.cart-cat span,.price-note,.qty-small{font-size:11px!important}.box-weight{font-size:13px!important;line-height:1.28!important}.price-main{font-size:15px!important}.cart-qty{min-width:128px!important}.qty-box{transform:scale(.94)!important;transform-origin:center!important}.cart-row{padding:17px 18px!important}.cart-head{padding:12px 18px!important;font-size:12px!important}}
