/* ============================================================
   Залізобетон UA — Інтернет-магазин залізобетонних виробів
   Кастомні стилі поверх Bootstrap 5.2
   ============================================================ */

:root {
    --brand: #f59e0b;
    --brand-dark: #d97706;
    --brand-darkest: #92400e;
    --graphite: #1b1d22;
    --graphite-2: #23262d;
    --slate: #334155;
    --text: #1e293b;
    --muted: #64748b;
    --light: #f1f5f9;
    --border: #e2e8f0;
    --success: #16a34a;
    --radius: 0.6rem;
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.14);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand-darkest); }

/* ---------- Header ---------- */
.site-header { box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.08); }
.topbar { background: var(--graphite); }
.site-header .navbar { background: var(--graphite-2); }
.site-header .navbar-brand { font-size: 1.35rem; letter-spacing: -0.02em; }
.site-header .brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-right: 0.5rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #1b1d22; border-radius: 0.5rem;
}
.site-header .navbar-nav .nav-link { color: #cbd5e1; font-weight: 500; }
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.active { color: var(--brand); }
.site-header .dropdown-menu { border: none; box-shadow: var(--shadow-hover); }
.site-header .search-input { border-radius: 0.5rem 0 0 0.5rem; border: 1px solid #475569; background: #1b1d22; color: #e2e8f0; }
.site-header .search-input:focus { background: #1b1d22; color: #fff; box-shadow: none; border-color: var(--brand); }
.site-header .search-btn { border-radius: 0 0.5rem 0.5rem 0; border: 1px solid #475569; background: #23262d; color: #cbd5e1; }

/* ---------- Hero ---------- */
.hero-slider { overflow: hidden; }
.hero-slide { position: relative; min-height: 440px; }
.hero-slide .hero-content { position: relative; z-index: 2; }
.hero-slide .hero-bg {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.25), transparent 45%),
        linear-gradient(135deg, #23262d 0%, #1b1d22 55%, #2d2320 100%);
}
.hero-slide .hero-pattern {
    position: absolute; inset: 0; z-index: 1; opacity: 0.08;
    background-image:
        linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
        linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
}
.hero-slick .slick-dots { bottom: 24px; }
.hero-slick .slick-dots li button:before { color: #fff; opacity: 0.4; font-size: 12px; }
.hero-slick .slick-dots li.slick-active button:before { color: var(--brand); opacity: 1; }

/* ---------- Feature / advantage ---------- */
.feature-icon {
    width: 58px; height: 58px; border-radius: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(245, 158, 11, 0.12); color: var(--brand-dark);
    font-size: 1.5rem; margin-bottom: 0.75rem;
}

/* ---------- Product card ---------- */
.product-card {
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card-img { position: relative; background: #f8fafc; }
.product-card-img img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.25rem 0.6rem; border-radius: 0.4rem; color: #fff;
}
.badge-hit { background: var(--brand-dark); }
.badge-new { background: #0ea5e9; }
.badge-sale { background: #dc2626; }
.product-title { font-size: 0.92rem; line-height: 1.35; color: var(--text); min-height: 2.6em; }
.product-price { font-size: 1.12rem; font-weight: 800; color: var(--brand-darkest); }
.product-price .unit { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.product-unit { font-size: 0.78rem; color: var(--muted); }

/* ---------- Category tile ---------- */
.cat-tile {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 1rem 1.1rem; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-tile .cat-icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 0.7rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--light); color: var(--brand-dark); font-size: 1.25rem;
}

/* ---------- Sections ---------- */
.section-title { font-weight: 800; letter-spacing: -0.01em; }
.section-eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-dark);
    margin-bottom: 0.4rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(circle at 15% 30%, rgba(245,158,11,0.18), transparent 40%),
        linear-gradient(135deg, #23262d, #1b1d22);
}

/* ---------- Filter sidebar ---------- */
.filter-card { border: 1px solid var(--border); border-radius: var(--radius); }
.filter-card .filter-head {
    font-weight: 700; font-size: 0.95rem; padding: 0.75rem 1rem;
    background: var(--light); border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------- Product detail ---------- */
.product-gallery-slick img { width: 100%; height: 420px; object-fit: cover; background: #f8fafc; border-radius: var(--radius); }
.product-thumb-slick img { height: 84px; object-fit: cover; border-radius: 0.5rem; cursor: pointer; opacity: 0.75; transition: opacity 0.2s; }
.product-thumb-slick .slick-current img, .product-thumb-slick img:hover { opacity: 1; }
.spec-table td { padding: 0.5rem 0; border-color: var(--border); }
.spec-table td:first-child { color: var(--muted); width: 45%; }

/* ---------- Cart ---------- */
.cart-qty { width: 120px; }
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); }
.site-footer h6 { color: #fff; letter-spacing: 0.04em; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #23262d; color: #cbd5e1; margin-right: 0.4rem;
}
.site-footer .social a:hover { background: var(--brand); color: #1b1d22; }

/* ---------- Toast ---------- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1080; }

/* ---------- Loading spinner ---------- */
.spinner-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.65);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap { background: var(--light); border-bottom: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #1b1d22; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #1b1d22; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand-dark); }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); color: #1b1d22; }

.text-brand { color: var(--brand-dark) !important; }
.bg-brand { background: var(--brand) !important; }

/* ---------- Empty states ---------- */
.empty-state { padding: 4rem 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-slide { min-height: 320px; }
    .hero-slide .display-4 { font-size: 1.9rem; }
    .product-gallery-slick img { height: 300px; }
}
