/* Reset and Base Styles */
:root {
    --ink: #151515;
    --ink-soft: #747474;
    --sand: #f5f5f5;
    --shell: #fcfcfc;
    --accent: #3a3a3a;
    --accent-soft: #dcdcdc;
    --line: #e3e3e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}   

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.08), transparent 55%),
        linear-gradient(135deg, #fafafa 0%, #f1f1f1 40%, #e5e5e5 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-weight: 600;
    color: var(--ink);
}

.email {
    color: var(--ink-soft);
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-soft);
}

.city-selector i:first-child {
    color: var(--ink);
}

.city-selector i.fa-chevron-down {
    display: none;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

/* Header */
.header {
    background: var(--shell);
    padding: 16px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    cursor: pointer;
}

.brand-copy:hover h1 {
    color: var(--accent);
}

.logo-mark {
    width: 86px;
    display: block;
    cursor: pointer;
}

.logo-embed {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(63, 69, 81, 0.16);
    background: #fffcf7;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-embed:hover {
    transform: scale(1.05);
}

.logo-embed img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.brand-copy h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    transition: color 0.2s ease;
}

.tagline {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation */
.nav-center {
    display: flex;
    justify-content: center;
    flex: 0 1 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link-user {
    color: var(--accent);
    font-weight: 600;
}

.nav-link-user::before {
    content: '●';
    display: inline-block;
    margin-right: 6px;
    font-size: 10px;
    vertical-align: middle;
    color: #10b981; /* небольшой индикатор, что пользователь онлайн */
}

.nav-link-highlight {
    color: var(--accent) !important;
    font-weight: 600;
    position: relative;
}

.nav-link-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--shell);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--sand);
    color: var(--ink);
}

/* Search and Icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: var(--shell);
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-box i {
    position: absolute;
    right: 15px;
    color: var(--ink-soft);
    cursor: pointer;
}

.nav-icons {
    display: flex;
    gap: 18px;
}

.icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper:hover {
    background: var(--sand);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
}

.icon-wrapper i {
    font-size: 20px;
    color: var(--ink);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 500;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background: var(--sand);
    width: 100%;
}

.products-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-grid {
    display: grid;
    /* На широких экранах показываем больше колонок,
       чтобы карточки были визуально меньше и легче */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
    padding: 20px 0;
}

/* About Section */
.about-section {
    padding: 60px 0 40px;
    background: var(--sand);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: flex-start;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 10px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.about-text strong {
    color: var(--ink);
}

.about-source {
    font-size: 12px;
    color: var(--ink-soft);
}

.about-source a {
    color: var(--accent);
}

.about-open-catalog {
    margin-top: 32px;
    display: block;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 32px;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-open-catalog.is-active {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
}

.about-open-catalog.is-active:hover {
    background: #2a2a2a !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

.about-open-catalog:hover:not(.is-active) {
    background: #f0f0f0;
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: scale(1.02);
}

.about-card {
    background: var(--shell);
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.about-cta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--sand);
}

.about-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.about-status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.about-card-body {
    padding: 14px 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
}

.about-label {
    color: var(--ink-soft);
}

.about-value {
    color: var(--ink);
}

.about-map-link {
    display: block;
    padding: 10px 18px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--line);
    background: #fff;
}

.about-map-link:hover {
    background: var(--sand);
}

/* About Page Styles */
.page-hero {
    padding: 60px 0 40px;
    background: var(--sand);
}

.page-hero-inner {
    text-align: left;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.3;
    text-align: left;
}

.page-hero p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.about-page-section {
    padding: 40px 0 60px;
    background: var(--sand);
}

.about-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: flex-start;
}

.about-page-text {
    text-align: left;
}

.about-page-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.3;
    text-align: left;
}

.about-page-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.3;
    text-align: left;
}

.about-page-text p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
}

.about-page-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.about-page-list li {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.about-page-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-weight: bold;
}

.about-page-aside {
    position: sticky;
    top: 100px;
}

/* Catalog (base) */
.catalog-section {
    padding: 40px 0 60px;
    background: var(--sand);
}

/* Состояние закрытого каталога — полностью убираем блок,
   чтобы не было большого пустого зазора на странице */
.catalog-section.catalog-collapsed {
    opacity: 0;
    transform: translateY(16px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Открытый каталог — отображается обычно */
.catalog-section.catalog-open {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
    border-color: rgba(0,0,0,0.04);
}

.product-image {
    position: relative;
    /* Чуть ниже картинка — карточка становится компактнее */
    padding-top: 72%;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 8px 8px 0 0;
}

.product-image img {
    position: absolute;
    top: 2px;
    left: 6px;
    right: 6px;
    bottom: 10px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    filter: drop-shadow(0 6px 10px rgba(18, 18, 18, 0.15));
    transition: transform 0.35s ease;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Legacy support for CSS variable background */
.product-image::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 6px;
    background-color: #ffffff;
    background-image: var(--product-image, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 12px 18px rgba(18, 18, 18, 0.15));
    transition: transform 0.35s ease;
    display: none; /* Hide if img is present */
}

.product-image:has(img)::before {
    display: none;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    background: #ffffff;
}

/* Если нужно будет снова использовать иконку, можно добавить img внутрь */

.image-placeholder span {
    font-size: 14px;
    text-align: center;
}

/* Upload badge for product images */
.upload-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9; /* always visible so it's obvious where to upload */
    transition: opacity .2s ease, transform .2s ease;
}
.product-image:hover .upload-badge { opacity: 1; transform: translateY(-2px); }

.product-info {
    padding: 10px 10px 12px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
}

.product-info h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-left: 0;
    padding-left: 0;
    color: var(--ink);
    line-height: 1.4;
}

.price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
    margin-left: 0;
    margin-right: 0;
    padding: 8px 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

.price-per-ml {
    font-size: 11px;
    color: var(--ink-soft);
}

.product-actions {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}

/* Блок с подписью «Швейцария» под ценой убираем */
.swiss-price {
    display: none;
}

.volume-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-left: 0;
    padding-left: 0;
}

.volume-pill {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11px;
    cursor: pointer;
    color: var(--ink-soft);
    transition: all 0.2s ease;
}

.volume-pill.active {
    border-color: var(--accent);
    background: #ffffff;
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent);
}

/* Button */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}

.btn-outline {
    border: 1px solid var(--accent-soft);
    color: var(--ink);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-small { padding: 6px 10px; font-size: 14px; }

/* Brands Section */
.brands-section {
    padding: 50px 0;
    background: var(--sand);
    border-top: 1px solid var(--line);
    width: 100%;
}

.brands-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Reviews Section */
.reviews-section {
    padding: 50px 0;
    background: var(--shell);
    width: 100%;
}

.reviews-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
}

.reviews-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.reviews-header p {
    color: var(--ink-soft);
    margin-bottom: 20px;
    font-size: 16px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.review-card {
    background: var(--shell);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--accent-soft);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
    min-width: 0;
}

.review-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: var(--ink-soft);
}

.review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.review-rating i {
    font-size: 16px;
    color: #ffc107;
}

.review-rating i.empty {
    color: var(--line);
}

.review-text {
    color: var(--ink);
    line-height: 1.6;
    font-size: 14px;
}

/* Catalog */
.catalog-section {
    padding: 40px 0;
    background: var(--sand);
    width: 100%;
}

.catalog-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
}

.catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
    text-align: center;
}

.catalog-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 0;
    justify-content: center;
}

.catalog-heading h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.catalog-count {
    color: var(--ink-soft);
    font-size: 14px;
}

.catalog-subtitle {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 4px;
}

.catalog-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.catalog-tabs .tab {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--shell);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
}

.catalog-tabs .tab.active {
    border-color: var(--accent);
    color: var(--accent);
}

.catalog-search-sort {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.catalog-search {
    position: relative;
}

.catalog-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-soft);
}

.catalog-search input {
    padding: 10px 12px 10px 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 240px;
    background: var(--shell);
}

.catalog-sort {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--shell);
}

.catalog-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.modal-content {
    position: relative;
    z-index: 2;
    width: 520px;
    max-width: calc(100% - 24px);
    margin: 60px auto;
    background: var(--shell);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}
.modal-lg { width: 900px; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
}
.modal-close { background: transparent; border: 0; font-size: 22px; cursor: pointer; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.auth-form .muted { color: var(--ink-soft); font-size: 14px; }
.auth-form a { color: var(--accent); text-decoration: none; }
.auth-form label { font-size: 13px; color: var(--ink-soft); }
.input-with-eye { position: relative; }
.input-with-eye input { width: 100%; }
.input-with-eye i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); cursor: pointer; }
.auth-row { display: flex; justify-content: space-between; align-items: center; }
.remember { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); }
.link { color: var(--accent); text-decoration: none; }

/* Drawer (Cart) */
.drawer { position: fixed; inset: 0; display: none; z-index: 9998; }
.drawer[aria-hidden="false"] { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: 420px; max-width: 95vw; background: var(--shell); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.15); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px; border-bottom: 1px solid var(--line); }
.btn-clear-cart { transition: all 0.2s ease; }
.btn-clear-cart:hover { background: #fee2e2 !important; border-color: #ef4444 !important; color: #ef4444 !important; }
.drawer-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.drawer-footer { border-top: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.totals { display: grid; gap: 6px; }
.totals .total { font-size: 18px; font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--shell); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; background: #f6f1ea; }
.cart-item h4 { font-size: 14px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--shell); border-radius: 6px; cursor: pointer; }
.price-sm { font-weight: 700; color: var(--accent); }

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--shell);
}

.payment-method:hover {
    border-color: var(--accent);
    background: var(--sand);
    transform: translateX(4px);
}

.payment-method.selected {
    border-color: var(--accent);
    background: var(--sand);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.payment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 10px;
    flex-shrink: 0;
}

.payment-icon i {
    font-size: 24px;
    color: var(--accent);
}

.payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
}

.payment-desc {
    font-size: 13px;
    color: var(--ink-soft);
}

.payment-method i.fa-chevron-right {
    color: var(--ink-soft);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.payment-method:hover i.fa-chevron-right,
.payment-method.selected i.fa-chevron-right {
    transform: translateX(4px);
    color: var(--accent);
}

.payment-summary {
    border-top: 2px solid var(--line);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.summary-row span {
    color: var(--ink-soft);
}

.summary-row strong {
    color: var(--ink);
    font-weight: 600;
}

.summary-row.total-row {
    font-size: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

.summary-row.total-row span {
    color: var(--ink);
    font-weight: 600;
}

.summary-row.total-row strong {
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
}

/* Kaspi Static QR */
.kaspi-static-qr {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
    padding: 12px;
}

.kaspi-static-qr-image {
    width: 320px;
    max-width: 100%;
    border: 3px solid var(--accent);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.15);
}

.kaspi-static-qr-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.kaspi-static-qr-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}

.kaspi-static-qr-actions .btn,
.kaspi-static-qr-actions .btn-outline {
    flex: 1;
}

.kaspi-static-qr-hint {
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 420px;
}

/* Mobile optimizations for payment & Kaspi QR */
@media (max-width: 640px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }

    #paymentModal .modal-body {
        padding: 16px;
    }

    .payment-method {
        padding: 12px;
    }

    .payment-icon {
        width: 40px;
        height: 40px;
    }

    .payment-name {
        font-size: 15px;
    }

    .payment-desc {
        font-size: 12px;
    }

    .kaspi-static-qr {
        padding: 8px;
        gap: 14px;
    }

    .kaspi-static-qr-image {
        width: 260px;
        padding: 10px;
    }

    .kaspi-static-qr-actions {
        flex-direction: column;
        max-width: 100%;
    }

    .kaspi-static-qr-hint {
        font-size: 12px;
        max-width: 100%;
    }
}

/* Kaspi Payment QR Code */
.kaspi-payment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px;
    text-align: center;
}

.kaspi-qr-code {
    width: 280px;
    height: 280px;
    border: 3px solid var(--accent);
    border-radius: 16px;
    padding: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.kaspi-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kaspi-payment-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.kaspi-payment-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.kaspi-payment-order {
    font-size: 14px;
    color: var(--ink-soft);
}

.kaspi-payment-status {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.kaspi-payment-status.pending {
    background: var(--sand);
    color: var(--accent);
}

.kaspi-payment-status.completed {
    background: #d1fae5;
    color: #059669;
}

.kaspi-payment-status.failed {
    background: #fee2e2;
    color: #dc2626;
}

.kaspi-payment-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.kaspi-payment-actions button {
    flex: 1;
}

.kaspi-open-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kaspi-open-app:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.kaspi-payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
}

.kaspi-payment-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Payment Import Modal */
.payment-import-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.payment-import-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 8px;
}

.payment-import-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ink-soft);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -10px;
    transition: all 0.3s ease;
}

.payment-import-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.payment-import-content {
    min-height: 200px;
}

.payment-import-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
}

.payment-import-example {
    background: var(--shell);
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 8px;
}

.payment-import-results {
    margin-top: 16px;
    padding: 16px;
    background: var(--shell);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.payment-import-results h4 {
    margin-bottom: 12px;
    color: var(--ink);
}

.payment-import-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.payment-import-item:last-child {
    border-bottom: none;
}

.payment-import-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-import-item-amount {
    font-weight: 700;
    color: var(--accent);
}

.order-card {
    background: var(--shell);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--accent-soft);
}

/* Account */
.account-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid var(--line);
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    width: fit-content;
}
.account-tabs .tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}
.account-tabs .tab.active {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.tab-panel {
    display: block;
    min-height: 160px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 16px;
    justify-items: stretch;
}
.dash-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
    background: var(--shell);
    text-decoration: none;
    color: inherit;
}
.dash-card i {
    font-size: 32px;
    color: var(--accent);
}
.dash-card span {
    text-align: center;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    border-color: var(--accent-soft);
    background-color: var(--sand);
}

.dash-card.active {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.dash-card.active i {
    color: #ffffff !important;
}

.dash-card.active span {
    color: #ffffff !important;
}

.dash-card.active:hover {
    background-color: #2a2a2a !important;
    border-color: #2a2a2a !important;
}

/* Favorites list in account */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.favorite-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--shell);
}

.favorite-thumb img,
.favorite-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #f6f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-placeholder i {
    font-size: 26px;
    color: var(--accent);
}

.favorite-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.favorite-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--ink-soft);
    padding: 0;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.wishlist-btn:hover {
    border-color: #555555;
    color: #555555;
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #e53935; /* насыщенное красное сердце */
}

.wishlist-btn.active:hover {
    background: #ffffff;
    border-color: #d0d0d0;
}

.wishlist-btn i {
    font-size: 16px;
}

/* Avatar styles */
#avatarPreview:hover { opacity: 0.9; }
#avatarInput + label:hover { background: #444444; transform: scale(1.1); }
#avatarInput + label { transition: all 0.3s ease; }

/* Buttons in product cards */
.product-card .btn-add { 
    margin-top: 8px; 
    margin-left: 0;
    display: inline-block;
    width: auto;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.product-card .btn-add:hover {
    background: #444444;
    border-color: #444444;
    color: #fff;
}

.brands-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.brands-intro {
    max-width: 600px;
}

.brands-intro h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.brands-intro p {
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 26px 30px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 900px;
}

.brand-item {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 22px;
    text-align: center;
    letter-spacing: 2px;
    opacity: 0.9;
}

.brand-item:hover {
    color: var(--ink);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        /* На ноутбуках — 3 колонки, карточки средние */
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    
    .nav-container {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        /* На планшетах и телефонах — одна карточка в ряд,
           как в примере на скрине */
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .brands-content {
        gap: 30px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }
    
    .top-bar {
        padding: 6px 0;
    }
    
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
        font-size: 12px;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 12px;
        flex: 1 1 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav-logo {
        order: 1;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logo-mark {
        width: 50px;
        flex-shrink: 0;
    }
    
    .brand-copy {
        display: flex;
        flex-direction: column;
        gap: 1px;
        align-items: flex-start;
    }
    
    .brand-copy h1 {
        font-size: 16px;
        letter-spacing: 0.15em;
        line-height: 1.2;
        margin: 0;
    }
    
    .tagline {
        font-size: 8px;
        letter-spacing: 0.3em;
        line-height: 1.2;
    }
    
    .nav-right {
        order: 2;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .search-box {
        display: none;
    }
    
    .nav-icons {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .icon-wrapper {
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
    
    .icon-wrapper i {
        font-size: 16px;
    }
    
    .badge {
        font-size: 10px;
        padding: 2px 5px;
        min-width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #registerBtn {
        font-size: 12px;
        padding: 6px 12px;
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-center {
        order: 4;
        width: 100%;
        display: none;
        justify-content: center;
        background: var(--shell);
        border-top: 1px solid var(--line);
        margin-top: 10px;
        padding-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .nav-center.active {
        display: flex;
        max-height: 1000px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-link {
        padding: 12px 20px;
        display: block;
        border-bottom: 1px solid var(--line);
        text-align: left;
        font-size: 15px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--sand);
        border-radius: 0;
        margin-left: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        justify-items: stretch;
        width: 100%;
        padding: 16px 8px;
    }
    
    .product-card {
        max-width: 100%;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 8px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.05);
        height: auto;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .product-image {
        flex-shrink: 0;
        width: 80px;
        height: 100%;
        min-height: 100px;
        padding-top: 0;
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.05);
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image img {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
        background: #ffffff !important;
        background-color: #ffffff !important;
        filter: drop-shadow(0 2px 6px rgba(18, 18, 18, 0.1));
    }
    
    .product-info {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        background: transparent;
        justify-content: flex-start;
    }
    
    .product-info h3 {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 0;
        margin-top: 0;
        text-align: left;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .product-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .product-info > .product-actions {
        margin-top: 0 !important;
    }
    
    .volume-row {
        margin-top: 2px;
        margin-bottom: 0;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .volume-pill {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .price-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 6px;
        margin-top: 2px;
        margin-bottom: 0;
        padding: 5px 8px;
        background: #f8f8f8;
        border-radius: 6px;
    }
    
    .price {
        font-size: 15px;
        font-weight: 700;
        color: var(--accent);
    }
    
    .price-per-ml {
        font-size: 10px;
        color: #888;
    }
    
    .product-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .wishlist-btn {
        position: static;
        width: 26px;
        height: 26px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .wishlist-btn i {
        font-size: 11px;
    }
    
    .btn-add {
        margin-top: 0 !important;
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 6px;
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .about-card {
        display: none !important;
    }

    .about-section {
        padding: 24px 0 16px;
    }
    
    .about-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .about-text {
        width: 100%;
    }
    
    .about-text h2 {
        font-size: 22px;
        text-align: left;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .about-cta {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }
    
    .about-open-catalog {
        max-width: 100%;
        font-size: 17px;
        padding: 16px 28px;
        border-radius: 12px;
    }

    .catalog-toolbar {
        /* На десктопе панель каталога «прилипает» сверху,
           но на мобильных из‑за фиксированного хедера вкладки
           частично прятались. Поэтому здесь делаем её обычным
           блоком без position: sticky. */
        position: static;
        top: auto;
        z-index: 40;
        padding: 12px 0;
        margin-bottom: 16px;
    }
    
    .catalog-heading {
        display: flex;
        align-items: baseline;
        gap: 8px;
        justify-content: center;
        margin-bottom: 16px;
    }
    
    .catalog-heading h2 {
        font-size: 24px;
        margin: 0;
    }
    
    .catalog-count {
        font-size: 13px;
    }

    .catalog-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .catalog-tabs .tab {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .catalog-search-sort {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 16px;
        padding: 0 4px;
    }
    
    .catalog-search {
        width: 100%;
        position: relative;
    }
    
    .catalog-search i {
        left: 14px;
        font-size: 16px;
    }
    
    .catalog-search input {
        width: 100%;
        padding: 14px 16px 14px 44px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid var(--line);
        background: #ffffff;
        box-sizing: border-box;
    }
    
    .catalog-search input:focus {
        border-color: var(--accent);
        outline: none;
    }
    
    .catalog-sort {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid var(--line);
        background: #ffffff;
    }
    
    .wishlist-btn {
        position: static;
        width: 28px;
        height: 28px;
        margin-left: auto;
        align-self: flex-start;
    }
    
    .wishlist-btn i {
        font-size: 12px;
    }
    
    .product-info h3 {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    .price-row {
        margin-top: 4px;
        padding: 6px 8px;
        background: #f8f8f8;
        border-radius: 6px;
    }
    
    .price {
        font-size: 16px;
    }
    
    .price-per-ml {
        font-size: 10px;
    }
    
    .volume-row {
        margin-top: 4px;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .volume-pill {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .btn-add {
        font-size: 12px;
        padding: 8px 12px;
        margin-top: 8px;
        width: 100%;
    }
    
    .catalog-section {
        padding: 30px 0;
    }
    
    .catalog-toolbar {
        gap: 15px;
    }
    
    .catalog-heading h2 {
        font-size: 24px;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .catalog-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .catalog-tabs .tab {
        font-size: 13px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .catalog-search-sort {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 0 2px;
    }
    
    .catalog-search {
        width: 100%;
        position: relative;
    }
    
    .catalog-search i {
        left: 14px;
        font-size: 16px;
    }
    
    .catalog-search input {
        width: 100%;
        padding: 14px 16px 14px 44px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid var(--line);
        background: #ffffff;
        box-sizing: border-box;
    }
    
    .catalog-search input:focus {
        border-color: var(--accent);
        outline: none;
    }
    
    .catalog-sort {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid var(--line);
        background: #ffffff;
    }
    
    #importDecantsBtn {
        width: 100%;
    }
    
    .brands-section {
        padding: 40px 0;
    }
    
    .brands-content {
        gap: 24px;
        text-align: center;
    }
    
    .brands-intro h2 {
        font-size: 26px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .brand-item {
        font-size: 18px;
    }
    
    .modal-content {
        width: calc(100% - 32px);
        margin: 20px auto;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .modal-lg {
        width: calc(100% - 32px);
    }
    
    .modal-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .modal-header h3 {
        font-size: 18px;
        width: 100%;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .auth-form {
        gap: 10px;
    }
    
    .auth-form input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .drawer-panel {
        width: 100%;
        max-width: 100vw;
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 8px;
        padding: 8px;
    }
    
    .cart-item img {
        width: 50px;
        height: 50px;
    }
    
    .cart-item h4 {
        font-size: 13px;
    }
    
    .account-tabs {
        padding: 10px 12px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-tabs .tab {
        font-size: 13px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .reviews-section {
        padding: 40px 0;
    }
    
    .reviews-header h2 {
        font-size: 26px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .dash-card {
        padding: 16px 10px;
    }
    
    .dash-card i {
        font-size: 24px;
    }
    
    .dash-card span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .about-card {
        display: none !important;
    }
    
    .container {
        padding: 0 14px;
    }
    
    .top-bar-content {
        font-size: 11px;
    }
    
    .phone, .email {
        font-size: 11px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .nav-logo {
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .logo-mark {
        width: 44px;
        flex-shrink: 0;
    }
    
    .brand-copy {
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .brand-copy h1 {
        font-size: 14px;
        letter-spacing: 0.1em;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .tagline {
        font-size: 7px;
        letter-spacing: 0.2em;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .nav-right {
        flex: 0 0 auto;
    }
    
    .nav-icons {
        gap: 4px;
    }
    
    .icon-wrapper {
        padding: 6px;
        width: 32px;
        height: 32px;
    }
    
    .icon-wrapper i {
        font-size: 14px;
    }
    
    .badge {
        font-size: 9px;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
    }
    
    #registerBtn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        padding: 16px 0;
    }
    
    .product-card {
        max-width: 100%;
        width: 100%;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        height: auto;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .product-image {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        padding-top: 0;
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.05);
        align-self: flex-start;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image img {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
        background: #ffffff !important;
        background-color: #ffffff !important;
        filter: drop-shadow(0 2px 6px rgba(18, 18, 18, 0.1));
    }
    
    .product-info {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
        background: transparent;
    }
    
    .product-info h3 {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .price-row {
        margin-top: 4px;
        padding: 6px 8px;
        background: #f8f8f8;
        border-radius: 6px;
    }
    
    .price {
        font-size: 15px;
    }
    
    .price-per-ml {
        font-size: 9px;
    }
    
    .volume-row {
        margin-top: 4px;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .volume-pill {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .product-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .wishlist-btn {
        position: static;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .wishlist-btn i {
        font-size: 10px;
    }
    
    .btn-add {
        padding: 5px 8px;
        font-size: 10px;
        margin-top: 0 !important;
        width: auto;
        white-space: nowrap;
    }
    
    .catalog-heading {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .catalog-heading h2 {
        font-size: 20px;
    }
    
    .catalog-count {
        font-size: 12px;
    }
    
    .brands-intro h2 {
        font-size: 22px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .brand-item {
        font-size: 16px;
    }
    
    .modal-content {
        width: calc(100% - 24px);
        margin: 15px auto;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .auth-form label {
        font-size: 12px;
    }
    
    .auth-form input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-small {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .about-open-catalog {
        max-width: 100%;
        font-size: 16px;
        padding: 16px 24px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dash-card {
        padding: 14px 8px;
    }
    
    .dash-card i {
        font-size: 22px;
    }
    
    .dash-card span {
        font-size: 11px;
    }
    
    .account-tabs {
        padding: 8px 10px;
    }
    
    .account-tabs .tab {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .wishlist-btn {
        width: 28px;
        height: 28px;
    }
    
    .wishlist-btn i {
        font-size: 12px;
    }
    
    .product-info h3 {
        font-size: 12px;
    }
    
    .price {
        font-size: 14px;
    }
    
    .reviews-section {
        padding: 30px 0;
    }
    
    .reviews-header h2 {
        font-size: 22px;
    }
    
    .reviews-header p {
        font-size: 14px;
    }
    
    .review-card {
        padding: 16px;
    }
    
    .review-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .review-name {
        font-size: 15px;
    }
    
    .review-text {
        font-size: 13px;
    }
    
    /* Register and Account pages */
    .modal-content[style*="position:static"] {
        margin: 20px auto !important;
        width: calc(100% - 24px) !important;
    }
    
    .modal-header[style*="justify-content"] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .modal-header h3 {
        text-align: center;
    }
    
    #avatarPreview, #avatarPreviewModal {
        width: 100px !important;
        height: 100px !important;
    }
    
    #avatarInput + label, #avatarInputModal + label {
        width: 32px !important;
        height: 32px !important;
    }
    
    #avatarInput + label i, #avatarInputModal + label i {
        font-size: 14px !important;
    }
    
    /* Touch-friendly improvements */
    .btn, .tab, .dash-card, .icon-wrapper, .wishlist-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Prevent text size adjustment on iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    @media (max-width: 480px) {
        input, textarea, select {
            font-size: 16px !important;
        }
    }
}