@import url("favorites.css");

:root { --primary: #8b2142; --dark: #1e1b21; --cream: #faf8f6; --gold: #c9a158; --white: #fff; --text-muted: #5c5660; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--dark); background: var(--cream); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 100% - 32px); margin: 0 auto; }
.header { background: var(--white); border-bottom: 1px solid #e8e4e0; position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { font-size: 1.75rem; font-weight: 800; color: var(--primary); letter-spacing: 0.05em; }
.logo span { color: var(--dark); font-weight: 500; font-size: 0.75rem; display: block; letter-spacing: 0; }
.nav-main { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-main a { font-weight: 500; }
.nav-main a:hover, .nav-main a.active { color: var(--primary); }

.cat-pill.active { background: var(--primary); color: var(--white); }
.categories-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid #f0ece8; }
.cat-pill { padding: 8px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; background: var(--cream); display: inline-block; }
.cat-pill:hover { background: var(--primary); color: var(--white); }
.cat-pill.sale { color: var(--primary); font-weight: 600; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border: 1px solid #e8e4e0; border-radius: 8px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); }
.menu-toggle { display: none; border: none; background: var(--primary); color: white; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.catalog-page { padding: 24px 0 56px; }
.catalog-seo { display: grid; grid-template-columns: 260px 1fr; gap: 28px; margin-top: 48px; padding-top: 40px; border-top: 1px solid #e8e4e0; }
.catalog-seo > * { grid-column: 2; }
.catalog-seo h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 16px; color: var(--text); }
.catalog-seo p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.75; font-size: 0.9375rem; }
.catalog-seo p:last-child { margin-bottom: 0; }
.breadcrumbs { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; }
.catalog-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 16px; line-height: 1.25; }
.catalog-head .catalog-subtitle { font-size: 1.125rem; color: var(--text-muted); margin: -8px 0 0; font-weight: 500; }
.collections-page .catalog-head { margin-bottom: 40px; }
.audience-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.audience-pill { padding: 8px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; background: var(--white); border: 1px solid #e8e4e0; cursor: pointer; font-family: inherit; text-decoration: none; color: var(--dark); }
.audience-pill:hover, .audience-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.catalog-filters { background: var(--white); border: 1px solid #e8e4e0; border-radius: 12px; padding: 20px; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0ece8; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h3 { font-size: 0.875rem; font-weight: 600; margin: 0 0 12px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.875rem; cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.price-range input[type="range"] { width: 100%; accent-color: var(--primary); }
.price-range__values { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-muted); margin-top: 8px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #e8e4e0; cursor: pointer; padding: 0; }
.color-swatch.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--primary); }
.color-swatch[title="Белый"] { background: #fff; }
.color-swatch[title="Бежевый"] { background: #d4b896; }
.color-swatch[title="Голубой"] { background: #7ec8e3; }
.color-swatch[title="Красный"] { background: #c62828; }
.color-swatch[title="Черный"] { background: #1e1b21; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.catalog-search { flex: 1; min-width: 200px; }
.catalog-search input { width: 100%; padding: 10px 14px; border: 1px solid #e8e4e0; border-radius: 8px; font-family: inherit; font-size: 0.9375rem; background: var(--white); }
.catalog-search input:focus { outline: 2px solid rgba(139,33,66,.2); border-color: var(--primary); }
.catalog-sort select { padding: 10px 14px; border: 1px solid #e8e4e0; border-radius: 8px; font-family: inherit; font-size: 0.875rem; background: var(--white); min-width: 180px; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { width: 40px; height: 40px; border: 1px solid #e8e4e0; border-radius: 8px; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--dark); }
.view-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.catalog-count { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid.list-view { grid-template-columns: 1fr; gap: 12px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid #e8e4e0; }
.product-grid.list-view .product-card { display: grid; grid-template-columns: 140px 1fr; align-items: center; }
.product-grid.list-view .product-card .img { aspect-ratio: 1; height: 140px; }
.product-card .img { aspect-ratio: 1; overflow: hidden; background: #f0ece8; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .info { padding: 12px 16px; }
.product-grid.list-view .product-card .info { padding: 16px 20px; }
.product-card .name { font-weight: 600; margin: 0 0 6px; font-size: 0.9375rem; line-height: 1.35; }
.product-card .meta { font-size: 0.75rem; color: var(--text-muted); margin: 0 0 8px; }
.product-card .price { color: var(--primary); font-weight: 700; }
.product-card .price-old { font-size: 0.8125rem; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.product-card .wrap { position: relative; }
.product-card .badge-new { position: absolute; top: 12px; left: 12px; background: var(--gold); font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 4px; z-index: 1; }
.product-card .badge-sale { position: absolute; top: 12px; left: 12px; background: #c62828; color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 4px; z-index: 1; }
.favorite-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--dark); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.favorite-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.favorite-btn.active { background: var(--primary); color: var(--white); }
.favorite-btn.active svg { fill: currentColor; }
.catalog-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); background: var(--white); border-radius: 12px; border: 1px solid #e8e4e0; }
.footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer .logo { color: var(--white); }
.footer .logo span { color: rgba(255,255,255,.6); }
.footer h4 { color: var(--white); font-size: 0.875rem; margin: 0 0 12px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--gold); }
.footer-desc { margin: 16px 0 0; font-size: 0.875rem; color: rgba(255,255,255,.6); }
.social-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e8e4e0; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; color: var(--dark); transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; flex-shrink: 0; }
.social-icon-btn:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.social-icon-btn svg { width: 20px; height: 20px; display: block; }
.social-icon-btn--vk:hover { color: #0077ff; border-color: #0077ff; }
.social-icon-btn--instagram:hover { color: #e1306c; border-color: #e1306c; }
.social-icon-btn--telegram:hover { color: #2aabee; border-color: #2aabee; }
.social-icon-btn--max:hover { color: #7b5cff; border-color: #7b5cff; }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-social-icons .social-icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.footer-social-icons .social-icon-btn:hover { background: rgba(255,255,255,.14); }
.footer-contacts { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-list li { margin-bottom: 10px; }
.footer-phone-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.footer-phone-line a { font-weight: 600; font-size: 1rem; }
.footer-messengers { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.footer-msg { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); }
.footer-msg:hover { border-color: var(--gold); color: var(--gold); }
.footer-msg--telegram:hover { border-color: #2aabee; color: #2aabee; }
.footer-msg--max:hover { border-color: #7b5cff; color: #b794ff; }
.footer-legal { font-size: 0.8125rem; color: rgba(255,255,255,.55); line-height: 1.45; margin-top: 4px; }
.footer-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.95); line-height: 0; }
.pay-logo svg { display: block; height: 18px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 0.875rem; color: rgba(255,255,255,.5); text-align: center; }
.fab-messenger { position: fixed; bottom: 24px; right: 24px; z-index: 160; }
.fab-messenger__toggle { width: 56px; height: 56px; border: none; border-radius: 50%; background: var(--primary); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(139,33,66,.35); transition: transform 0.15s ease, background 0.15s ease; }
.fab-messenger__toggle:hover { transform: scale(1.04); background: #a8325a; }
.fab-messenger__toggle svg { width: 26px; height: 26px; }
.fab-messenger__panel { position: absolute; bottom: calc(100% + 12px); right: 0; min-width: 180px; padding: 10px; border-radius: 14px; background: var(--white); border: 1px solid #e8e4e0; box-shadow: 0 12px 32px rgba(30,27,33,.15); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.fab-messenger.is-open .fab-messenger__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-messenger__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 0.875rem; color: var(--dark); }
.fab-messenger__link:hover { background: var(--cream); color: var(--primary); }
.fab-messenger__link svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 600; border: none; font-family: inherit; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.section { padding: 48px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 1.5rem; }
.section-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.collection-card { border-radius: 16px; overflow: hidden; position: relative; display: block; aspect-ratio: 3/4; min-height: 320px; background: var(--dark); }
.collection-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-card .banner-content { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; background: linear-gradient(transparent 35%, rgba(30,27,33,.82)); color: var(--white); }
.collection-card h3 { font-size: 1.5rem; margin: 0; }
.collection-card .banner-content p { margin: 8px 0 16px; color: rgba(255,255,255,.85); font-size: 0.9375rem; }
.gold-line { width: 48px; height: 3px; background: var(--gold); margin: 0 0 12px; }
.collections-page { padding: 24px 0 56px; }
.nav-main a.active { color: var(--primary); }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .catalog-layout { grid-template-columns: 1fr; } .catalog-seo { grid-template-columns: 1fr; } .catalog-seo > * { grid-column: 1; } .collections { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .nav-main { display: none; }
  .nav-main.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px; }
  .menu-toggle { display: block; }
  .header-top { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .product-grid:not(.list-view) { grid-template-columns: 1fr; } }