*{box-sizing:border-box}body{margin:0;background:#f6f7fa;color:#172033;font-family:Inter,system-ui,-apple-system,Arial,sans-serif}a{text-decoration:none;color:inherit}.wrap{max-width:1160px;margin:auto;padding:0 22px}.top{background:#111827;color:white;padding:15px 0}.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-weight:850;font-size:23px;letter-spacing:-.6px}.brand span{color:#f59e0b}.nav a{margin-left:15px}.hero{background:linear-gradient(115deg,#111827,#27364e);color:white;padding:60px 0}.hero h1{font-size:clamp(32px,5vw,58px);margin:0 0 10px;line-height:1.05}.hero p{color:#d1d5db;max-width:570px;line-height:1.6}.btn{background:#f59e0b;color:#111827;border:0;border-radius:9px;padding:12px 17px;font-weight:750;cursor:pointer;display:inline-block}.btn.secondary{background:#e5e7eb}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}input,select,textarea{font:inherit;padding:12px;border:1px solid #d6dbe4;border-radius:9px;max-width:100%;background:white}input[type=number]{width:100px}.toolbar input{flex:1;min-width:220px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin:20px 0 50px}.product,.panel{background:white;border:1px solid #e7e9ef;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px #18223b08}.product img{width:100%;aspect-ratio:1.2;object-fit:cover;background:#e8ecf3}.placeholder{display:grid;place-items:center;aspect-ratio:1.2;background:#e9edf4;color:#64748b}.details{padding:16px}.muted{color:#697386;font-size:13px}.price{font-size:21px;font-weight:850;margin:10px 0}.panel{padding:22px;margin:25px 0}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between}.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.field input,.field textarea,.field select{width:100%}.notice{padding:12px;background:#eaf7ee;border-radius:8px;margin:15px 0}.error{padding:12px;background:#fee2e2;border-radius:8px;margin:15px 0}.table{width:100%;border-collapse:collapse}.table td,.table th{text-align:left;border-bottom:1px solid #e5e7eb;padding:11px}.table-wrap{overflow-x:auto}.thumb{width:65px;height:50px;object-fit:cover;border-radius:6px}.footer{padding:35px 0;background:#111827;color:#cbd5e1;margin-top:40px}.gallery{display:flex;gap:8px;flex-wrap:wrap}.gallery img{height:85px;width:85px;object-fit:cover;border-radius:8px}.danger{background:#dc2626;color:white}.cart-count{background:#f59e0b;color:#111827;padding:2px 7px;border-radius:30px}
.product-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:34px;align-items:start}.product-gallery{display:grid;gap:12px}.main-product-image{display:grid;place-items:center;min-height:430px;padding:16px;border:1px solid #e4e8ef;border-radius:14px;background:#f1f4f8;overflow:hidden}.main-product-image img{display:block;width:100%;height:100%;max-height:560px;object-fit:contain;border-radius:10px}.main-product-image.placeholder{aspect-ratio:auto;color:#64748b;font-size:20px}.product-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border:1px solid #e4e8ef;border-radius:10px;background:#f1f4f8}.product-info h1{margin-top:0;font-size:clamp(32px,5vw,54px);line-height:1.05}.product-description{line-height:1.7;white-space:pre-line}.purchase-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.chat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.btn.telegram,.btn.facebook{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;min-height:48px}.btn.telegram{background:#229ed9}.btn.facebook{background:#0866ff}.btn.telegram svg,.btn.facebook svg{width:19px;height:19px;fill:currentColor}
@media(max-width:800px){.product-layout{grid-template-columns:1fr}.main-product-image{min-height:300px;padding:10px}.main-product-image img{max-height:480px}}@media(max-width:600px){.nav{align-items:flex-start}.hero{padding:42px 0}.table{font-size:13px}}@media(max-width:380px){.chat-actions{grid-template-columns:1fr}}
@media (max-width:600px){
    .wrap{
        padding-left:12px;
        padding-right:12px;
    }

    .grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }

    .product img{
        aspect-ratio:1/1;
    }

    .product .details{
        padding:12px;
    }

    .product h3{
        font-size:17px;
        line-height:1.25;
        margin:10px 0;
    }

    .product .price{
        font-size:20px;
    }

    .product .row{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
    }

    .product .row form,
    .product .row .btn,
    .product .row form button{
        width:100%;
        text-align:center;
    }
}
