:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --gray-color: #aaaaaa;
    --border-color: #333333;
    --header-font: 'Old Standard TT', serif;
    --body-font: 'Inter', sans-serif;
    --accent-color-red: #e74c3c; /* Цвет для "лайков" */
}

/* --- Сброс стилей и базовые настройки --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Прелоадер --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-logo {
    max-width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}


/* --- Эффект плавного появления --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Обновленная Шапка сайта --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 900;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-img {
    height: 60px;
    transition: transform 0.3s ease;
}
.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navigation a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.navigation a:hover {
    color: var(--text-color);
}

.navigation a:hover::after {
    width: 100%;
}

.navigation li.dropdown {
    position: relative;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-top: none;
    list-style: none;
    padding: 5px 0;
    min-width: 220px;
    z-index: 100;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
    width: 100%; 
}

.dropdown-menu a {
    display: block;
    padding: 2px 20px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-link {
    position: relative;
}

.icon-link svg {
    stroke: var(--gray-color);
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.icon-link:hover svg {
    stroke: var(--text-color);
    transform: scale(1.1);
}

.icon-counter {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    transform: scale(0);
    transition: transform 0.2s ease-out;
}
.icon-counter.visible {
    transform: scale(1);
}

/* --- Главный экран-слайдер (Hero) --- */
.hero-slider {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3;
}

.slide .container {
    position: relative;
    z-index: 4;
}

.slide h1 {
    font-family: var(--header-font);
    font-size: 4rem;
    margin-bottom: 20px;
}

.slide p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-family: var(--body-font);
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn:disabled {
    background-color: var(--border-color);
    color: var(--gray-color);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* --- Секция "О Бренде" --- */
.about-section {
    background-color: #050505;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.about-text h3 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}
.about-text p {
    color: var(--gray-color);
}

/* --- Общие стили для секций --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 60px;
}

/* --- Обновленные Подразделы --- */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.section-card {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.section-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    padding: 40px;
}

.section-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: background 0.5s ease;
}

.section-card:hover .section-card-bg {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.section-card h3 {
    font-family: var(--header-font);
    font-size: 2rem;
    z-index: 2;
    color: var(--text-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease;
}

.section-card:hover h3 {
    transform: translateY(-10px);
}

/* --- Сетка товаров --- */
#products {
    background-color: #050505;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: transparent;
    text-align: left;
    cursor: pointer;
}
.product-image {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.product-image:hover {
    border-color: var(--text-color);
}

.product-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px 5px;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.product-price {
    font-size: 1rem;
    color: var(--gray-color);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.product-image:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}
.action-btn {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
.action-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--text-color);
}
.action-btn svg {
    stroke: var(--text-color);
    transition: all 0.3s ease;
}
.action-btn.liked svg {
    stroke: var(--accent-color-red);
    fill: var(--accent-color-red);
}

.back-to-catalog-container {
    text-align: center;
    margin-top: 60px;
}


/* --- Подвал --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: #000;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-color);
    font-size: 14px;
}

.social-links a {
    color: var(--gray-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-color);
}

/* --- Стили для поиска --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.search-input-wrapper {
    position: relative;
    width: 80%;
    max-width: 600px;
}
#search-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gray-color);
    color: var(--text-color);
    font-size: 2rem;
    font-family: var(--header-font);
    outline: none;
    transition: border-color 0.3s ease;
}
#search-input:focus {
    border-color: var(--text-color);
}
.search-input-wrapper svg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--gray-color);
    cursor: pointer;
    transition: stroke 0.3s ease;
}
.search-input-wrapper svg:hover {
    stroke: var(--text-color);
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: var(--gray-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.search-close-btn:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

/* --- Стили для модального окна профиля --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#product-detail-modal, #order-success-overlay, #delivery-payment-overlay {
    z-index: 1002;
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: #111;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.is-open .modal-content {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: var(--gray-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close-btn:hover {
    color: var(--text-color);
}
.modal-content h3 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin-bottom: 30px;
}
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.modal-content input {
    width: 100%;
    background-color: #222;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 3px;
    outline: none;
}
.modal-content input:focus {
    border-color: var(--text-color);
}
.modal-content .btn {
    margin-top: 10px;
}
.modal-divider {
    margin: 25px 0;
    color: var(--gray-color);
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.modal-divider::before, .modal-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}
.btn.btn-google {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    color: #333;
    border-color: #fff;
}
.btn.btn-google:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #000;
}
.modal-toggle {
    font-size: 14px;
    color: var(--gray-color);
}
.modal-toggle a {
    color: var(--text-color);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
}

/* --- Стили для боковых панелей (Корзина, Избранное) --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: #080808;
    border-left: 1px solid var(--border-color);
    z-index: 995;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
.sidebar.is-open {
    right: 0;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-header h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
}
.sidebar-close-btn {
    font-size: 28px;
    color: var(--gray-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.sidebar-close-btn:hover {
    color: var(--text-color);
}
.sidebar-list {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}
.sidebar-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}
#favorites-list .sidebar-item {
    cursor: pointer;
}
.sidebar-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.sidebar-item-info {
    flex-grow: 1;
}
.sidebar-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.sidebar-item-price {
    color: var(--gray-color);
    font-size: 14px;
}
.sidebar-item-size, .sidebar-item-color {
    font-size: 13px;
    color: var(--gray-color);
    margin-top: 5px;
}
.sidebar-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.item-remove-btn {
    color: var(--gray-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 12px;
    text-decoration: underline;
}
.item-remove-btn:hover {
    color: var(--accent-color-red);
}
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-top: 10px;
}
.quantity-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
}
.item-quantity {
    padding: 0 5px;
    font-size: 16px;
}
.sidebar-empty-message {
    color: var(--gray-color);
    text-align: center;
    padding-top: 50px;
}
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.checkout-btn {
    width: 100%;
}

/* --- Стили для Полноэкранного оформления заказа --- */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 1001;
    overflow-y: auto;
    padding: 50px 0;
    display: none;
}
.fullscreen-overlay.is-open {
    display: block;
}

.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.form-block {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}
.form-block:last-of-type {
    border-bottom: none;
}
.form-block h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.checkout-container input,
.checkout-container textarea {
    width: 100%;
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 3px;
    outline: none;
    font-family: var(--body-font);
    transition: border-color 0.3s ease;
}
.checkout-container input:focus,
.checkout-container textarea:focus {
    border-color: var(--text-color);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-submit-btn {
    width: 100%;
    padding: 20px 40px;
    font-size: 18px;
    margin-top: 20px;
}
.continue-shopping-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}
.continue-shopping-link:hover {
    color: var(--gray-color);
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.delivery-option {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.delivery-option:hover {
    border-color: var(--gray-color);
}
.delivery-option.active {
    border-color: var(--text-color);
    background-color: #1a1a1a;
}
.delivery-option input[type="radio"] { display: none; }
.delivery-option-info {
    display: flex;
    justify-content: center; /* Центрируем название */
    align-items: center;
    width: 100%;
}
.delivery-option-info span { font-size: 1.2rem; }

.order-summary {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-top: 30px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.1rem;
}
.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: bold;
}
.summary-row span:first-child { color: var(--gray-color); }


/* --- СТИЛИ: Модальное окно товара --- */
.product-detail-content {
    background-color: #111;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
}
.modal-overlay.is-open .product-detail-content {
    transform: scale(1);
}
.product-detail-content .modal-close-btn {
    top: 15px;
    right: 20px;
}
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#pdm-main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    overflow-y: auto;
}
#pdm-name {
    font-family: var(--header-font);
    font-size: 2rem;
    margin-bottom: 10px;
}
.pdm-price {
    font-size: 1.5rem;
    color: var(--gray-color);
}
.pdm-section {
    margin-bottom: 25px;
}
.pdm-section h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-color);
    margin-bottom: 15px;
    font-weight: 400;
}
#pdm-composition {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-color);
}
.size-options, .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.size-option, .color-option {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}
.size-option:hover, .color-option:hover {
    background-color: var(--border-color);
}
.size-option.active, .color-option.active {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}
#pdm-add-to-cart-btn {
    margin-top: auto;
    width: 100%;
    padding: 18px;
}
.pdm-size-error {
    color: var(--accent-color-red);
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* --- СТИЛИ: Полноэкранный просмотр коллекций --- */
#collections-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1001;
    display: none; /* ИЗМЕНЕНО */
    flex-direction: row; /* ИЗМЕНЕНО */
}

#collections-view-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1002;
}
.collections-view-sidebar {
    width: 300px;
    height: 100%;
    background-color: #080808;
    border-right: 1px solid var(--border-color);
    padding: 80px 30px 30px 30px;
    overflow-y: auto;
    flex-shrink: 0; /* ИЗМЕНЕНО */
}
.collections-view-sidebar h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
#collections-view-list {
    list-style: none;
}
#collections-view-list a {
    display: block;
    color: var(--gray-color);
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.3s ease;
}
#collections-view-list a:hover,
#collections-view-list a.active {
    color: var(--text-color);
}
.collections-view-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    padding: 80px 40px 40px 40px;
}
#collections-view-grid {
    padding-top: 20px;
}

/* === ФИКС БАГА №4: Legal Page Readability === */
.legal-view-content .legal-content-panel {
    color: var(--gray-color); /* Базовый цвет для всего текста */
}
.legal-view-content .legal-content-panel h2,
.legal-view-content .legal-content-panel h3,
.legal-view-content .legal-content-panel strong,
.legal-view-content .legal-content-panel b {
    color: var(--text-color); /* Белый для заголовков и жирного текста */
}
.legal-view-content .legal-content-panel p,
.legal-view-content .legal-content-panel li {
    color: var(--gray-color); /* Серый для параграфов и списков */
}
.legal-view-content .legal-content-panel a {
    color: var(--text-color); /* Белый для ссылок */
    text-decoration: underline;
}


/* --- СТИЛИ: Мобильная навигация --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 950;
    width: 24px;
    height: 24px;
    padding: 0;
}
.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(5px);
    z-index: 920;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: var(--gray-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.mobile-nav-close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.mobile-navigation ul {
    list-style: none;
    text-align: center;
}
.mobile-navigation li {
    margin: 20px 0;
}
.mobile-navigation a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 2rem;
    font-family: var(--header-font);
    transition: color 0.3s ease;
}
.mobile-navigation a:hover {
    color: var(--text-color);
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .header-left { gap: 20px; }
    .navigation a { font-size: 14px; }
    .header-right { gap: 20px; }
    .collections-view-sidebar, .legal-view-sidebar { width: 250px; }
    .legal-view-content { padding: 80px 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .header { padding: 15px 0; }
    .logo-img { height: 50px; }
    .header-right { gap: 15px; }
    .navigation { display: none; }
    .mobile-nav-toggle { display: block; }
    .slide h1 { font-size: 2.5rem; }
    .slide p { font-size: 1rem; }
    .sections-grid { grid-template-columns: 1fr; }
    .section-card { height: 350px; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .footer .container { flex-direction: column; gap: 20px; text-align: center; }
    .social-links a { margin: 0 10px; }
    .document-links { text-align: center !important; margin-top: 10px;}
    .document-links a { margin: 0 10px !important; }
    #search-input { font-size: 1.5rem; }
    .search-close-btn, .mobile-nav-close { top: 20px; right: 20px; }
    .sidebar { max-width: 90%; }
    .form-grid { grid-template-columns: 1fr; }
    .checkout-container { padding: 0 15px; }
    .fullscreen-overlay { padding: 30px 0; }
    #collections-view, #legal-view-overlay { flex-direction: column; }
    .collections-view-sidebar, .legal-view-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); padding: 80px 20px 20px; }
    .collections-view-content, .legal-view-content { padding: 40px 20px; }
    #collections-view-close-btn, #legal-view-close-btn { top: 15px; right: 15px; }
    .product-detail-content { grid-template-columns: 1fr; padding: 60px 20px 20px; max-height: 85vh; overflow-y: auto; }
    .product-detail-info { padding-top: 0; }
    #pdm-name { font-size: 1.5rem; }
    .pdm-price { font-size: 1.2rem; }
    .delivery-options { grid-template-columns: 1fr; }
}

/* --- Стили для Личного Кабинета --- */
#profile-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 1001;
    overflow-y: auto;
    padding: 50px 0;
    display: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.profile-block {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.profile-block h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.profile-info-item span { color: var(--gray-color); }
.profile-info-item strong { font-size: 1.1rem; }

.btn-link {
    background: none;
    border: none;
    color: var(--text-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 20px;
    font-size: 16px;
}

.btn.btn-secondary {
    margin-top: 15px;
    width: 100%;
    background: var(--border-color);
    border-color: var(--border-color);
}
.btn.btn-secondary:hover {
    background: #444;
    border-color: #444;
}

.profile-text-muted {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 14px;
}

.profile-orders-block {
    max-width: 900px;
    margin: 0 auto;
}
.profile-orders-block h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.5s ease-out forwards;
}
.order-card.clickable-order {
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.order-card.clickable-order:hover {
    background-color: #1f1f1f;
    border-color: #444;
}

.order-info { flex: 2; }
.order-info span { display: block; }
.order-id { font-weight: bold; margin-bottom: 5px; }
.order-date { font-size: 14px; color: var(--gray-color); }
.order-total { flex: 1; text-align: center; }
.order-status { flex: 1.2; text-align: right; display: flex; align-items: center; justify-content: flex-end; }
.order-status-badge { display: inline-block; padding: 8px 15px; border-radius: 5px; font-weight: bold; min-width: 120px; text-align: center; }
.order-status-badge.processing { background-color: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.order-status-badge.shipped { background-color: rgba(52, 152, 219, 0.2); color: #3498db; }
.order-status-badge.delivered { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.cancel-order-btn { margin-left: 20px; background: none; border: none; color: var(--gray-color); text-decoration: underline; font-size: 12px; cursor: pointer; transition: color 0.3s ease; }
.cancel-order-btn:hover { color: var(--accent-color-red); }

.payment-method-content { display: flex; align-items: center; gap: 25px; margin-top: auto; margin-bottom: auto; }
.payment-logo-wrapper { flex-shrink: 0; background-color: #fff; padding: 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.payment-logo-wrapper img { max-width: 120px; height: auto; display: block; }
.payment-description strong { font-size: 1.1rem; display: block; margin-bottom: 5px; }

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .payment-method-content { flex-direction: column; text-align: center; }
}

#change-password-modal, #confirm-cancel-modal, #order-details-modal, #custom-alert-modal { z-index: 1005; }
#custom-alert-modal .modal-content { max-width: 380px; text-align: center; }

#delivery-map-container { position: relative; width: 100%; height: 450px; background-color: #1a1a1a; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; }
#delivery-map { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: var(--gray-color); font-size: 1.2rem; }
.pickup-point-balloon { font-family: var(--body-font); color: #333; }
.pickup-point-balloon h5 { font-family: var(--header-font); font-size: 1rem; margin: 0 0 8px 0; color: #000; }
.pickup-point-balloon p { margin: 0 0 12px 0; font-size: 14px; line-height: 1.5; }
.pickup-point-balloon button { background-color: #000; color: #fff; border: none; padding: 8px 15px; border-radius: 3px; cursor: pointer; font-size: 14px; font-weight: bold; width: 100%; transition: opacity 0.2s; }
.pickup-point-balloon button:hover { opacity: 0.8; }
.selected-point-info { background-color: #1a1a1a; border: 1px solid var(--border-color); padding: 15px; border-radius: 5px; margin-top: 15px; color: var(--gray-color); font-size: 14px; min-height: 54px; display: none; }
.selected-point-info.visible { display: block; }
.selected-point-info strong { color: var(--text-color); display: block; margin-bottom: 5px; }
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 45px !important; }
.password-toggle { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); cursor: pointer; display: flex; align-items: center; color: var(--gray-color); }
.password-toggle svg { stroke: currentColor; transition: color 0.3s ease; }
.password-toggle:hover { color: var(--text-color); }
.confirm-buttons { display: flex; gap: 15px; justify-content: center; }
.confirm-buttons .btn { flex-grow: 1; }
.btn.btn-danger { background-color: var(--accent-color-red); border-color: var(--accent-color-red); }
.btn.btn-danger:hover { background-color: #c0392b; border-color: #c0392b; }
.order-details-content { max-width: 600px; text-align: left; }
.order-details-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
.order-details-header h3 { margin-bottom: 0; }
.order-details-body h4 { font-size: 1rem; color: var(--gray-color); margin-bottom: 15px; font-weight: 400; }
.order-details-list { list-style: none; margin-bottom: 25px; }
.order-detail-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; border-bottom: 1px solid #1a1a1a; }
.order-detail-item span { color: var(--gray-color); }
.order-details-shipping { background-color: #1a1a1a; padding: 15px; border-radius: 5px; margin-bottom: 25px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.order-details-shipping h4 { margin-bottom: 10px; }
.grecaptcha-badge { visibility: hidden !important; }
.product-stock-status { font-size: 14px; margin-top: 5px; font-weight: bold; }
.product-stock-status.in-stock { color: #2ecc71; }
.product-stock-status.out-of-stock { color: var(--gray-color); }
.pdm-stock-status { font-size: 1rem; font-weight: bold; margin-bottom: 15px; text-align: left; min-height: 1.2em; }
.pdm-stock-status.in-stock { color: #2ecc71; }
.pdm-stock-status.out-of-stock { color: var(--accent-color-red); }
#pdm-add-to-cart-btn.btn-preorder { background-color: #e67e22; border-color: #e67e22; }
#pdm-add-to-cart-btn.btn-preorder:hover { background-color: #d35400; border-color: #d35400; }
.pdm-price-container { display: flex; align-items: baseline; gap: 15px; margin-bottom: 5px; }
.pdm-price-old { font-size: 1.2rem; color: var(--gray-color); text-decoration: line-through; display: none; }