@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --primary: #0a192f;
    --secondary: #dc2626;
    --accent: #dc2626;
    --accent-2: #ef4444;
    --border: rgba(255,255,255,0.1);
    --glass: rgba(255,255,255,0.03);
    --gradient: linear-gradient(135deg, #dc2626, #ef4444);
    --header-height: 78px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: Inter, Segoe UI, sans-serif;
    background: #0a192f;
    color: #fff;
    line-height: 1.5;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container, .m-wrap { width: min(1400px, calc(100% - 2rem)); margin: 0 auto; }
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #0a192ff2;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: 'Space Grotesk', sans-serif; display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.logo-sub { display: block; font-size: 0.58rem; color: #ef4444; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 1.2rem; }
.nav-link { color: #fff; font-weight: 500; font-size: 0.9rem; }
.nav-link:hover,
.nav-link.active { color: #fff; opacity: .85; }
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-overlay { display: none; }
.header-shop, .btn, .m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--gradient);
    color: #fff;
    border: 0;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-outline, .m-btn.ghost, .btn.ghost {
    background: transparent;
    border: 1px solid var(--secondary);
    color: #fecaca;
}
.filter-bar {
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.filter-form select,
.filter-form input[type="search"],
.filter-form input[type="number"] {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font: inherit;
    min-width: 140px;
}
.filter-form input[type="search"] { flex: 1; min-width: 180px; }
.filter-form option { color: #111; }
.shop-page { padding: 2rem 0 4rem; }
.crumbs { color: rgba(255,255,255,.6); font-size: 0.9rem; margin-bottom: 1rem; }
.crumbs a { color: #fca5a5; }
.shop-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; flex-wrap: wrap; }
.shop-head h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.shop-head p { color: rgba(255,255,255,.7); }
.shop-block { margin-bottom: 2.2rem; }
.shop-block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.shop-block-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
}
.shop-block-head p { color: rgba(255,255,255,.55); font-size: 0.85rem; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.chips span { border: 1px solid var(--border); background: var(--glass); padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 12px; }
.chips a { color: #fca5a5; margin-left: 6px; }
.grid-3,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 8px;
}
.product-tile,
.service-card {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.product-tile:hover,
.service-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(239,68,68,.45);
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.product-tile-img,
.service-card > a:first-child {
    display: block;
    background: rgba(10,25,47,.55);
}
.product-tile-img img,
.service-photo {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
    display: block;
}
.product-tile-body {
    padding: 8px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.product-tile-price {
    color: #fca5a5;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.product-tile-title,
.service-card h3 {
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.product-tile-meta,
.service-card .meta {
    color: rgba(255,255,255,.55);
    font-size: 11px;
}
.product-tile-links {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}
.tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}
.tile-icon.wa { background: #25d366; }
.tile-icon.cart { background: #dc2626; }
.tile-icon:hover { opacity: .9; color: #fff; }
.service-icon {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(10,25,47,.55);
    color: #fca5a5;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--border); border-radius: 16px; color: rgba(255,255,255,.7); }
.pager { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pager a, .pager span { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; }
.pager .is-on { background: var(--gradient); border-color: transparent; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; }
.detail img { width: 100%; max-height: 420px; object-fit: contain; background: rgba(255,255,255,.03); border-radius: 14px; }
.price { color: #fca5a5; font-size: 1.7rem; font-weight: 800; margin: 0.6rem 0; }
.rfq, .company { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); border-radius: 16px; padding: 1rem; margin-top: 1rem; }
.rfq input, .rfq textarea {
    width: 100%; margin: 0.35rem 0 0.7rem; padding: 0.7rem;
    border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: #fff;
}
.flash { background: rgba(16,185,129,.15); color: #86efac; padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.footer { background: #0a192f; border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2rem; color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.footer a { display: block; margin: 0.4rem 0; color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.whatsapp-float {
    position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px;
    border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; font-size: 1.5rem; z-index: 30;
}
@media (max-width: 800px) {
    .detail, .footer-grid { grid-template-columns: 1fr; }
    .header .container { flex-wrap: nowrap; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: min(280px, 86vw);
        height: calc(100vh - var(--header-height));
        background: #0a192f;
        flex-direction: column;
        align-items: stretch;
        padding: 1.4rem;
        gap: 0.4rem;
        border-left: 1px solid var(--border);
        z-index: 50;
        transition: right .25s ease;
    }
    .nav-menu.active { right: 0; }
    .nav-overlay {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,.45);
        z-index: 45;
    }
    .nav-overlay.active { display: block; }
    .nav-link { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
    .header-shop { margin-top: 0.8rem; }
}
@media (max-width: 640px) {
    .product-grid,
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .product-tile-price { font-size: 14px; }
    .product-tile-title,
    .service-card h3 { font-size: 11px; }
}
