/* ===== ДЕМО-МАГАЗИН (светлое окно на тёмном сайте) ===== */
.shop-demo {
    background: #f7f7f5;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .4);
}
.demo-bar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 15px; padding: 14px 20px;
    background: #fff; border-bottom: 1px solid #e5e5e5; flex-wrap: wrap;
}
.demo-bar span { color: #999; font-size: .85rem; }

.s-cart-btn {
    position: relative; padding: 10px 22px; border: 2px solid #e8590c; border-radius: 100px;
    background: #fff; color: #e8590c; font-weight: 700; cursor: pointer; font-size: .9rem; transition: .3s;
}
.s-cart-btn:hover { background: #e8590c; color: #fff; }
.s-cart-count {
    position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
    background: #2b9348; color: #fff; border-radius: 50%; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}

.s-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding: 25px; }
.s-product {
    background: #fff; border-radius: 14px; padding: 20px; position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .06); transition: .3s;
    display: flex; flex-direction: column; color: #222;
}
.s-product:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }

.s-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 6px;
    font-size: .75rem; font-weight: 800; color: #fff; z-index: 2;
}
.s-badge.sale { background: #d00000; }
.s-badge.hit { background: #e8590c; }
.s-badge.new { background: #2b9348; }

.s-photo { height: 130px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 4rem; margin-bottom: 15px; }
.ph-1 { background: linear-gradient(135deg, #ffd6a5, #fd9e44); }
.ph-2 { background: linear-gradient(135deg, #a5c8ff, #4a7ddc); }
.ph-3 { background: linear-gradient(135deg, #b8f2c9, #2b9348); }
.ph-4 { background: linear-gradient(135deg, #d5c8ff, #7b5cd6); }
.ph-5 { background: linear-gradient(135deg, #ffc8dd, #e05297); }
.ph-6 { background: linear-gradient(135deg, #fdffb6, #94c93c); }

.s-product h3 { font-size: 1.05rem; margin-bottom: 5px; }
.s-desc { color: #888; font-size: .85rem; flex-grow: 1; margin-bottom: 12px; }
.s-price { margin-bottom: 12px; }
.s-price s { color: #aaa; margin-right: 8px; font-size: .88rem; }
.s-price b { font-size: 1.2rem; }

.s-add {
    padding: 12px; border: none; border-radius: 10px; background: #e8590c; color: #fff;
    font-weight: 700; cursor: pointer; transition: .3s; font-size: .92rem;
}
.s-add:hover { background: #c44a08; }

/* ===== ПАНЕЛЬ КОРЗИНЫ ===== */
.s-cart {
    position: fixed; top: 0; right: -400px; width: 360px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 300; box-shadow: -10px 0 40px rgba(0, 0, 0, .3);
    padding: 25px; display: flex; flex-direction: column; transition: right .4s;
    color: #222;
}
.s-cart.open { right: 0; }
.s-cart h3 { color: #222; }
.s-cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.s-close { border: none; background: #f1f1f1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.s-cart-items { flex-grow: 1; overflow-y: auto; }
.s-empty { color: #999; text-align: center; padding: 30px 0; }
.s-cart-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; font-size: .9rem; }
.s-cart-row b { white-space: nowrap; }
.s-remove { border: none; background: #ffe0d1; color: #e8590c; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.s-cart-total { padding: 18px 0 14px; font-size: 1.1rem; border-top: 2px solid #222; margin-top: 10px; }

.s-consent { animation: none; background: rgba(232, 89, 12, .05); border-color: rgba(232, 89, 12, .3); margin-bottom: 15px; }
.s-consent .consent-text { color: #666; font-size: .8rem; }
.s-consent .consent-text a { color: #e8590c; border-bottom-color: rgba(232, 89, 12, .4); }
.s-consent .checkbox input:checked + .checkmark { background: linear-gradient(135deg, #e8590c, #f77f00); }

.s-checkout {
    padding: 15px; border: none; border-radius: 10px; background: #2b9348; color: #fff;
    font-weight: 800; cursor: pointer; font-size: 1rem; transition: .3s;
}
.s-checkout:hover { background: #1f7034; }
.s-cart-msg { text-align: center; margin-top: 12px; font-weight: 700; min-height: 20px; font-size: .85rem; }
.s-cart-msg.ok { color: #2b9348; }
.s-cart-msg.err { color: #d00000; }

.s-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 250; opacity: 0; pointer-events: none; transition: .3s; }
.s-overlay.show { opacity: 1; pointer-events: auto; }