:root {
    --dark: #1c2126;
    --dark2: #2a3038;
    --red: #d81f26;
    --red-dark: #a8151b;
    --text: #232323;
    --muted: #767676;
    --border: #e4e4e4;
    --bg: #f5f6f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
    font-size: 14px;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
[class*="col-md-"], [class*="col-xs-"] { padding: 0 10px; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-12 { width: 100%; }
.clearfix:after { content: ""; display: table; clear: both; }
.pull-left { float: left; }
.pull-right { float: right; }

/* ---- Верхняя панель ---- */
#top-header { background: var(--dark); color: #cfd3d6; font-size: 13px; }
#top-header .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; }
.header-links { display: flex; gap: 16px; align-items: center; list-style: none; }
.header-links a { color: #cfd3d6; }
.header-links a:hover { color: #fff; text-decoration: none; }
.header-links i { margin-right: 5px; }

.dropdown { position: relative; }
.login-dropdown {
    display: none;
    position: absolute; top: 100%; right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 16px; width: 240px; box-shadow: 0 10px 24px rgba(0,0,0,.15); z-index: 60;
}
.dropdown:hover .login-dropdown { display: block; }
.login-dropdown .form-control { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px; margin-bottom: 4px; }
.login-btns { display: flex; gap: 8px; margin-top: 8px; }
.btn { padding: 8px 14px; border-radius: 5px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.btn-primary { background: var(--red); color: #fff; }
.btn-warning { background: var(--dark2); color: #fff; }

/* ---- Основная шапка ---- */
#header { padding: 16px 0; border-bottom: 1px solid var(--border); }
#header .row { align-items: center; }
.header-logo img { max-height: 60px; width: auto; }
.log-tx { font-size: 11px; color: var(--muted); margin: 4px 0 0; }

.header-search { position: relative; }
.header-search .input {
    width: 100%; padding: 11px 100px 11px 14px;
    border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
}
.search-btn {
    position: absolute; right: 4px; top: 4px; bottom: 4px;
    padding: 0 16px; background: var(--red); color: #fff;
    border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px;
}

.header-ctn { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.header-ctn .header-links { padding: 0 !important; }
.header-ctn .fa-phone-square { color: var(--red); }
.header-ctn .dropdown a { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; position: relative; }
.qty {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--red); color: #fff; font-size: 10px;
}
.menu-toggle a { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }

/* ---- Навигация по категориям ---- */
#navigation { background: var(--dark2); }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav li a {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 16px; color: #fff !important; font-weight: 600; font-size: 13px;
    text-decoration: none !important;
}
.main-nav li a:hover { background: var(--red); }
.mob_img { display: block; width: 32px !important; height: 32px; object-fit: contain; }

/* ---- Слайдер на главной ---- */
.csslider { position: relative; overflow: hidden; border-radius: 10px; margin: 20px 0; }
.csslider ul { display: flex; }
.csslider ul li { flex: 0 0 100%; }
.csslider input { display: none; }
.csslider .navigation { display: flex; justify-content: center; gap: 8px; position: absolute; bottom: 14px; left: 0; right: 0; }
.check-label { display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }

/* ---- Карточки товара ---- */
.products-tabs { margin: 30px 0; }
.products-slick { display: flex; flex-wrap: wrap; gap: 16px; }
.product {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    flex: 0 0 calc(20% - 13px);
    min-width: 190px;
}
.product-img { position: relative; aspect-ratio: 1 / 1; background: var(--bg); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-label { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.product-label .sale, .product-label .new {
    padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff;
}
.product-label .sale { background: var(--red); }
.product-label .new { background: var(--dark2); }
.product-body { padding: 12px 14px; }
.product-category { font-size: 11px; color: var(--muted); text-transform: uppercase; margin: 0 0 4px; }
.product-name { font-size: 14px; font-weight: 600; margin: 0 0 8px; min-height: 38px; }
.product-name a { color: var(--text); }
.product-price { font-size: 17px; font-weight: 700; color: var(--red); margin: 0 0 6px; }
.product-old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.product-rating { color: #ffb300; font-size: 12px; margin-bottom: 8px; }
.product-btns { display: flex; gap: 8px; }
.product-btns button {
    border: 1px solid var(--border); background: #fff; border-radius: 5px;
    padding: 6px 10px; cursor: pointer; color: var(--muted); font-size: 12px;
}
.product-btns button:hover { border-color: var(--red); color: var(--red); }
.add-to-cart { padding: 0 14px 14px; }
.add-to-cart-btn {
    width: 100%; padding: 9px; background: var(--dark2); color: #fff;
    border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.add-to-cart-btn:hover { background: var(--red); }

/* ---- Адаптив ---- */
@media (max-width: 900px) {
    .col-md-3, .col-md-4, .col-md-6 { width: 100%; }
    .product { flex: 0 0 calc(33.333% - 11px); }
}
@media (max-width: 600px) {
    .product { flex: 0 0 calc(50% - 8px); }
    #header .row { text-align: center; }
    .header-ctn { justify-content: center; }
}
