/* Витрина: тема «Современная». Самостоятельный дизайн поверх голого Bootstrap 4 —
   не наследует ни одного файла другой темы. Оформление задаётся переменными ниже. */
:root {
    --c-accent: #7c3aed;
    --c-accent-dark: #6d28d9;
    --c-accent-soft: #f3efff;
    --c-ink: #1b1533;
    --c-text: #3b3552;
    --c-muted: #7a7590;
    --c-line: #e7e3f2;
    --c-bg: #ffffff;
    --c-surface: #f8f7fc;
    --c-topbar-bg: #1b1533;
    --c-topbar-fg: #ffffff;
    --c-star: #f5a524;
    --c-sale: #e11d74;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-btn: 999px;
    --shadow: 0 8px 24px rgba(27, 21, 51, .08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── База ───────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--c-text); background: var(--c-bg); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--c-ink); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-dark); text-decoration: none; }
img { max-width: 100%; }
.text-dark { color: var(--c-ink) !important; }
.text-muted { color: var(--c-muted) !important; }
.text-primary { color: var(--c-accent) !important; }
.bg-secondary { background-color: var(--c-surface) !important; }
.bg-primary { background-color: var(--c-accent) !important; }
.border, .border-top, .border-bottom { border-color: var(--c-line) !important; }
main { min-height: 40vh; }
#site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* размеры и насыщенность шрифта, которые использует разметка */
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; } .fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; } .fs-17 { font-size: 17px; } .fs-18 { font-size: 18px; } .fs-19 { font-size: 19px; }
.fs-21 { font-size: 21px; } .fs-23 { font-size: 23px; } .fs-24 { font-size: 24px; } .fs-29 { font-size: 29px; } .fs-32 { font-size: 32px; }
.font-weight-200 { font-weight: 200; } .font-weight-400 { font-weight: 400; } .font-weight-500 { font-weight: 500; } .font-weight-600 { font-weight: 600; }
.text-sm { font-size: 14px; }

/* палитра, к которой привязана разметка (.colorN) */
.color1 { background: var(--c-bg) !important; }
.color2 { background: var(--c-surface) !important; }
.color3 { background: var(--c-bg) !important; }
.color4 { background: var(--c-accent) !important; color: #fff !important; }
.color46 { border-color: var(--c-accent) !important; }
.color5 { background: var(--c-topbar-bg) !important; }

/* ── Верхняя полоса ────────────────────────────────────────────────── */
.topbar { font-size: 13px; }
.topbar, .topbar a, .topbar .text-white { color: var(--c-topbar-fg) !important; }
.topbar-link { opacity: .9; }
.topbar-link:hover { opacity: 1; color: #fff !important; }

/* ── Шапка ─────────────────────────────────────────────────────────── */
.navbar { padding-top: .75rem; padding-bottom: .75rem; }
.navbar.border-bottom { border-bottom: 1px solid var(--c-line) !important; }
.navbar-brand { padding: 0; margin-right: 1rem; }
.storefront-brand-text { display: inline-block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; color: var(--c-ink); }
#shop-product-search { height: 44px; border-radius: var(--radius-btn); padding: 0 1.25rem; background: var(--c-surface); border: 1px solid transparent; }
#shop-product-search:focus { background: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
#shop-product-search-results { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); }

.navbar-tool { display: flex; align-items: center; cursor: pointer; }
.navbar-tool.dropdown-toggle::after { display: none; }
.navbar-tool-icon-box { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface) !important; color: var(--c-ink); flex-shrink: 0; transition: background .15s; }
.navbar-tool-icon-box:hover { background: var(--c-accent-soft) !important; color: var(--c-accent); }
.navbar-tool-icon { font-size: 18px; line-height: 1; }
.navbar-tool-label { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.navbar-tool-text { display: flex; flex-direction: column; margin-left: .6rem; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--c-ink); white-space: nowrap; }
.navbar-tool-text small { font-size: 11px; font-weight: 500; color: var(--c-muted); }
@media (max-width: 991.98px) { .navbar-tool-text { display: none; } }

/* меню категорий */
.navbar-stuck-menu { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.mega-nav .nav-link { padding: .8rem 0; font-weight: 600; color: var(--c-ink); }
.mega-nav .nav-link:hover { color: var(--c-accent); }
.departments-nav .dropdown-menu { min-width: 260px; }

/* выпадающие меню, модальные окна */
.dropdown-menu { border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: var(--radius-sm); padding: .45rem .75rem; color: var(--c-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.modal-content { border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: 0 24px 64px rgba(27, 21, 51, .25); }
.modal-header { border-bottom-color: var(--c-line); }
.nav-tabs { border-bottom-color: var(--c-line); }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--c-muted); font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--c-accent); border-bottom-color: var(--c-accent); background: transparent; }

/* ── Формы и кнопки ────────────────────────────────────────────────── */
.form-control, .custom-select { border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-ink); }
.form-control:focus, .custom-select:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.btn { border-radius: var(--radius-btn); font-weight: 600; padding: .5rem 1.25rem; }
.btn-primary, .btn-secondary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active,
.btn-secondary:hover, .btn-secondary:focus { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; }
.btn-outline-primary, .btn-outline-secondary { color: var(--c-accent); border-color: var(--c-accent); background: transparent; }
.btn-outline-primary:hover, .btn-outline-secondary:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-light { background: var(--c-surface); border-color: var(--c-line); color: var(--c-ink); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--c-accent); border-color: var(--c-accent); }
.badge { border-radius: 6px; font-weight: 600; }
.badge-primary { background: var(--c-accent); }
.badge-danger { background: var(--c-sale); }
.badge-success { background: #16a34a; }
.badge-warning { background: #f59e0b; color: #fff; }
.pagination .page-link { border: 1px solid var(--c-line); color: var(--c-ink); border-radius: var(--radius-sm); margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.breadcrumb { background: transparent; padding-left: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--c-muted); }
.alert { border: 0; border-radius: var(--radius); }
.table thead th { border-bottom: 2px solid var(--c-line); color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table td, .table th { border-top-color: var(--c-line); }

/* ── Подписка ──────────────────────────────────────────────────────── */
.newsletter { background: var(--c-accent-soft); border-top: 0 !important; }
.newsletter-title { color: var(--c-ink); font-weight: 700; }
.newsletter .feather { color: var(--c-accent); }
.newsletter .form-control { height: 46px; border-radius: var(--radius-btn); padding: 0 1.25rem; border-color: transparent; }
.newsletter .btn { height: 46px; padding: 0 1.75rem; }

/* ── Подвал ────────────────────────────────────────────────────────── */
.main-footer { background: var(--c-surface) !important; color: var(--c-text); }
.footer-about p { color: var(--c-text); }
.contact_info a, .footer-link a, .main-footer a { color: var(--c-text); }
.contact_info a:hover, .footer-link a:hover, .main-footer a:hover { color: var(--c-accent); }
.link-title { display: block; margin-bottom: 1rem; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.footer-box .menu, .footer-link { list-style: none; padding: 0; margin: 0; }
.footer-box .menu li, .footer-link li { margin-bottom: .5rem; }
.sub-footer { background: var(--c-surface) !important; border-top: 1px solid var(--c-line) !important; color: var(--c-muted); font-size: 13px; }
.sub-footer .copy a { font-weight: 600; }

/* ── Заголовки секций, слайдер, карточки товаров ───────────────────── */
.category-headding { position: relative; display: inline-block; padding-bottom: .5rem; font-weight: 700; }
.category-headding::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--c-accent); }
.headding-border { border-bottom: 1px solid var(--c-line); }
.animation-slide { border-radius: var(--radius); overflow: hidden; }
.slider-item img { width: 100%; }
.owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-next { width: 40px; height: 40px; border-radius: 50%; background: #fff !important; box-shadow: var(--shadow); color: var(--c-ink) !important; }
.owl-theme .owl-dots .owl-dot span { background: var(--c-line); }
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { background: var(--c-accent); }

.card { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.feature-card, .shop-product-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--c-line); transition: box-shadow .2s, transform .2s; }
.feature-card:hover, .shop-product-card:hover { box-shadow: 0 0 0 1px var(--c-accent), var(--shadow); transform: translateY(-2px); }
.feature-card .card-body { padding: .9rem; }
.feature-card .btn, .shop-product-card .btn { padding: .3rem .9rem; font-size: 13px; white-space: nowrap; }
.product-img { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-surface); }
.product-img img { width: 100%; height: auto; object-fit: contain; }
.product-name, .product-name a { color: var(--c-ink); font-weight: 600; line-height: 1.35; }
.product-name a:hover { color: var(--c-accent); }
.product-price { color: var(--c-ink); font-weight: 700; }
.product-price del { display: block; color: var(--c-muted); font-weight: 400; font-size: 13px; }
.star-rating, .star-rating .fa-star, .star-rating i { color: var(--c-star); }
.deals-item-inner { border-radius: var(--radius); }
.widget .entry-thumb { border-radius: var(--radius-sm); overflow: hidden; }
.entry-title, .entry-title a { color: var(--c-ink); }
.entry-meta { color: var(--c-ink); font-weight: 700; margin: 0; }
.brand-logo .item { opacity: .75; transition: opacity .15s; }
.brand-logo .item:hover { opacity: 1; }
.filter-row { border-bottom: 1px solid var(--c-line); padding-bottom: .75rem; }

/* страница товара */
.product-details-inner, .product-summary-content { background: transparent; }
.product-title { font-size: 26px; font-weight: 700; color: var(--c-ink); }
.product-price-summary { font-size: 28px; font-weight: 800; color: var(--c-ink); }
.cart-btn { border-radius: var(--radius-btn); }
.shop-gallery-main { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.shop-gallery-thumb { border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; }
.shop-gallery-thumb.active, .shop-gallery-thumb:hover { border-color: var(--c-accent); }

/* ── Баннер cookie ─────────────────────────────────────────────────── */
.cookie-consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080; max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(27, 21, 51, .2); }
.cookie-consent-inner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.cookie-consent-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); flex-shrink: 0; }
.cookie-consent-icon svg { width: 20px; height: 20px; }
.cookie-consent-text { flex: 1 1 260px; font-size: 14px; color: var(--c-text); }
.cookie-consent-text strong { display: block; color: var(--c-ink); }
.cookie-consent-actions { display: flex; align-items: center; gap: .75rem; }
.cookie-link, .cookie-detail-link { font-size: 13px; }
.cookie-accept-btn { background: var(--c-accent); border: 0; border-radius: var(--radius-btn); color: #fff; font-weight: 600; padding: .5rem 1.25rem; cursor: pointer; }
.cookie-accept-btn:hover { background: var(--c-accent-dark); }
