﻿/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* SecondLove - Modern Design */
:root {
    --primary: #ff6b9d;
    --primary-dark: #e91e63;
    --secondary: #8e44ad;
    --success: #2ecc71;
    --danger: #e74c3c;
    --text: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #ecf0f1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hidden {
    display: none !important;
}

/* Utility Classes */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.text-center { text-align: center; }

/* Header & Navigation */
header {
    background: var(--bg);
    padding: 1.5rem 0;
    text-align: center;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.25rem 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Inner wrapper to align brand left and actions right */
nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: center; /* center the whole group (brand + buttons) */
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.nav-brand, nav a.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 0.5px;
    margin-right: 0.75rem; /* small gap before 'Каталог' */
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 !important; /* убираем отступы от общего стиля nav a */
    background: transparent !important; /* убираем серую плашку */
    border-radius: 0 !important;
    box-shadow: none !important;
}
nav a.nav-brand:hover { 
    color: var(--primary-dark);
    background: transparent !important;
    transform: none; /* без прыжка при ховере */
}

/* Brand coloring and elegant accent */
.nav-brand .brand-second {
    color: var(--primary);
}

.nav-brand .brand-love {
    position: relative;
    font-style: italic;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* gradient text */
}

.nav-brand .brand-love::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    opacity: 0.6;
}

.nav-brand:hover .brand-second {
    color: var(--primary-dark);
}

.nav-brand:hover .brand-love::after {
    opacity: 0.9;
}

nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
     padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: var(--bg-light);
     font-size: 1rem;
}

nav a:hover {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

/* Main content wrapper flex grow for sticky footer */
#main-content { flex: 1 0 auto; }

/* Footer */
footer {
    background: var(--bg);
    border-top: 1px solid var(--bg-dark);
    margin-top: 3rem;
}

footer .footer-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
    text-align: center;
}

footer .footer-links h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

footer .footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s ease;
}

footer .footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 480px) {
    footer .footer-links {
        padding: 1.5rem;
    }
}

nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow-sm);
}

nav a .icon,
nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #9b59b6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

/* Make the age-gate fully opaque to avoid any UI showing behind it */
#age-verification-modal {
    background: linear-gradient(135deg, #fff, var(--bg-light));
    backdrop-filter: none;
}

#age-verification-modal .modal-content {
    max-width: 520px;
    text-align: center;
}

.modal-content {
    background: var(--bg);
    padding: 3rem;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    word-break: break-word;
    overflow-wrap: anywhere;
    position: relative;
}

/* Кнопка закрытия модального окна */
.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}

.modal-content .close:hover {
    color: var(--danger);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-content p {
    margin-bottom: 1rem;
    text-align: center;
}

/* Payment notifications */
.payment-notification {
    position: fixed;
    top: 24px;
    left: 16px;
    right: 16px;
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 12000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(-12px);
}

.payment-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 640px) {
    .payment-notification {
        left: auto;
        right: 24px;
    }
}

.payment-notification .notification-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-notification.success {
    border-left: 6px solid #2ecc71;
}

.payment-notification h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.payment-notification p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.payment-notification button {
    align-self: flex-end;
    padding: 10px 18px;
    border-radius: var(--radius-md);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-dark);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-text,
small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.validation-message {
    color: var(--danger);
    font-size: 0.875rem;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkbox-label.required::before {
    content: "*";
    color: var(--danger);
    margin-right: 4px;
}

.checkmark { display: inline-block; width: 0; height: 0; }

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Filters */
.filters {
    background: var(--bg);
     padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.filters h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
     margin-bottom: 2rem;
    color: var(--text);
     font-size: 1.5rem;
}

.filters h3 svg {
    fill: var(--primary);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Categories */
.category-chips-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    min-height: 60px;
}

/* Catalog filter: show only 3 rows, scroll vertically */
#category-filter-chips.category-chips-container {
    display: flex;
    flex-wrap: wrap;
    max-height: calc(3 * 42px + 2 * 0.75rem + 2rem); /* 3 rows: chip height + 2 gaps + padding */
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
}

.category-chip {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.category-chip.active:hover {
    transform: translateY(-2px) scale(1.02);
}

.category-chip .emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.category-chip .name {
    font-weight: 500;
}

.selected-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--text);
}

/* Catalog / Products */
.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.product-card,
.item-card,
.item {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.item-card:hover,
.item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-image,
.item-image {
    width: 100%;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
    background: var(--bg-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img,
.item-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.product-info,
.item-info,
.item-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3,
.item-info h3,
.item-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-info p,
.item-info p,
.item-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-price,
.item-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.product-actions,
.item-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.product-actions .btn,
.item-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
}

/* Item badges and meta */
.item-emoji {
    display: none;
}

.item-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.item-badge.male {
    background: #2196f3;
}

.item-badge.status-approved {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    z-index: 10;
}

.item-badge.status-pending {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    z-index: 10;
}

.item-badge.status-rejected {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    z-index: 10;
}

.item-category-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--bg-dark);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.item-meta svg {
    fill: var(--primary);
    flex-shrink: 0;
}

.item-in-cart-badge {
    display: none !important; /* Скрыто по запросу пользователя */
}

/* Cart Section */
.cart-section {
    background: var(--bg);
    border-radius: var(--radius-xl);
     padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-dark);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-title {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-item-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cart-item-meta svg {
    fill: var(--primary);
    flex-shrink: 0;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
}

.cart-item .btn-danger {
    padding: 0.75rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    box-shadow: var(--shadow-sm);
}

.quantity-controls button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    transform: scale(1.2);
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2rem;
}

/* Checkout summary compact card */
.checkout-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffafc 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #ece6f2;
    padding: 1.25rem;
}

.checkout-summary-card .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--bg-dark);
    background: #f9fbff;
    border-radius: 12px;
    margin: 6px 0;
}

.checkout-summary-card .summary-row.small {
    font-size: 0.95rem;
    color: #8a5a00;
    background: #fff8e6;
    border-color: #ffe0a6;
}

.checkout-summary-card .summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5a2a6e;
    background: #f6ecff;
    border-color: #e5ccff;
}

.checkout-summary-card .label { color: var(--text); }
.checkout-summary-card .value { color: var(--text); }
.checkout-summary-card .value strong {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.checkout-summary-card .summary-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0), #e7def1, rgba(0,0,0,0));
    margin: 0.35rem 0 0.65rem 0;
}

.checkout-summary-card #checkout-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    margin-top: 0.75rem;
    border-radius: 10px;
}

.checkout-summary-card .summary-note {
    display: grid;
    gap: 4px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--bg);
    margin-top: 1rem;
    font-size: 1.25rem;
}

.cart-total span:first-child {
    font-weight: 600;
    color: var(--text);
}

.cart-total .cart-total-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

#checkout-btn {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.25rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

#checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#clear-cart-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--danger);
    color: var(--danger);
    background: transparent;
    transition: all 0.3s ease;
}

#clear-cart-btn:hover {
    background: var(--danger);
    color: white;
}

.payment-info {
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.payment-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* Profile Section */
.profile-section {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.avatar-upload-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.avatar-upload-label:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-details {
    flex: 1;
}

.profile-details h2 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
}

.profile-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.profile-meta-item:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.profile-meta-item svg {
    fill: var(--primary);
}

.profile-meta-item.gender-female svg {
    fill: #e91e63;
}

.profile-meta-item.gender-male svg {
    fill: #2196f3;
}

#seller-stats-container,
#seller-orders-container,
#seller-notifications {
    margin-bottom: 2rem;
}

.sales-stats-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
}

.sales-stats-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.sales-stats-header p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.sales-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sales-stats-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.sales-stats-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sales-stats-value--earned {
    color: #7eff7e;
}

.sales-stats-label {
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sales-stats-note {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.sales-stats-action {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    background: #fff;
    color: #667eea;
}

.seller-notifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-notification-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(142, 68, 173, 0.15));
    border: 1px solid rgba(255, 107, 157, 0.35);
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.seller-notification-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.seller-notification-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.seller-orders-container .seller-orders-block {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}

.seller-orders-loading {
    opacity: 0.6;
    pointer-events: none;
}

.seller-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.seller-orders-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.seller-orders-header p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.seller-orders-note {
    font-size: 0.85rem;
    color: var(--primary-dark);
    background: rgba(255, 107, 157, 0.1);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
}

.seller-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seller-order-card {
    border: 1px solid var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seller-order-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.seller-order-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seller-order-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.seller-order-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.seller-order-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.seller-order-total {
    font-weight: 600;
}

.seller-order-pending {
    font-size: 0.85rem;
    color: var(--danger);
}

.seller-order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-dark);
    flex-wrap: wrap;
}

.seller-order-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-dark);
}

.seller-order-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.seller-order-item-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seller-order-item-title {
    font-weight: 600;
}

.seller-order-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.seller-order-confirmed {
    color: #1e88e5;
    font-weight: 600;
}

.seller-order-tracking {
    font-size: 0.85rem;
    color: var(--text);
    word-break: break-word;
}

.seller-order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.shipping-status-badge,
.delivery-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
}

.shipping-status-badge--pending,
.delivery-status-badge--pending,
.delivery-status-badge--paid {
    background: rgba(255, 193, 7, 0.18);
    color: #a26a00;
}

.shipping-status-badge--processing,
.delivery-status-badge--processing {
    background: rgba(156, 39, 176, 0.15);
    color: #6a1b9a;
}

.shipping-status-badge--shipped,
.delivery-status-badge--shipped {
    background: rgba(33, 150, 243, 0.15);
    color: #0d47a1;
}

.shipping-status-badge--delivered,
.delivery-status-badge--delivered {
    background: rgba(76, 175, 80, 0.15);
    color: #1b5e20;
}

.shipping-status-badge--cancelled,
.delivery-status-badge--cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #b71c1c;
}

.shipping-status-badge--default,
.delivery-status-badge--default {
    background: var(--bg-dark);
    color: var(--text-secondary);
}

.seller-orders-empty,
.seller-orders-error {
    text-align: center;
    padding: 40px 0;
    border: 1px dashed var(--bg-dark);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.seller-orders-error p {
    margin-bottom: 12px;
}

.buyer-orders-modal {
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.buyer-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.buyer-order-card {
    border: 1px solid var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.buyer-order-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.buyer-order-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.buyer-order-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.buyer-order-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.buyer-order-total {
    font-weight: 600;
}

.buyer-order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buyer-order-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-dark);
    flex-wrap: wrap;
}

.buyer-order-item-main {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.buyer-order-item-title {
    font-weight: 600;
}

.buyer-order-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.buyer-order-item-tracking {
    font-size: 0.85rem;
    color: var(--text);
    word-break: break-word;
}

.buyer-order-item-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    min-width: 140px;
}

.buyer-order-item-status .buyer-confirm-receipt {
    width: 160px;
    font-size: 0.8rem;
    padding: 6px 10px;
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.35);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.buyer-order-item-status .buyer-confirm-receipt:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.buyer-order-item-status .buyer-confirm-receipt:disabled {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}

.buyer-order-item-confirmed {
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: 600;
    text-align: right;
}

.buyer-orders-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .seller-order-summary,
    .buyer-order-summary,
    .seller-order-actions,
    .buyer-order-item-status {
        align-items: flex-start;
    }

    .seller-orders-note {
        white-space: normal;
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    background: var(--bg-light);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
}

.profile-info h2 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.detail-item {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.detail-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-item p {
    font-size: 1.1rem;
    color: var(--text);
}

/* Orders Section */
.orders-section {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.order-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-dark);
}

.order-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.order-status.completed {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
}

.order-status.pending {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* Payment Modal */
.payment-link {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.payment-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-methods .btn {
    flex: 1;
}

.payment-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

.qr-container {
    text-align: center;
    margin: 1.5rem 0;
}

.qr-container img {
    max-width: 250px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (min-width: 1200px) {
    .container {
        padding: 0 4rem;
    }
    
    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 3rem;
    }
    
    .filters {
        padding: 3rem;
    }
    
    .filter-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .cart-section,
    .profile-section,
    .orders-section {
        padding: 3rem;
    }
    
    .modal-content {
        max-width: 650px;
        padding: 3.5rem;
    }
    
    nav {
        padding: 1.5rem 3rem;
        gap: 1.5rem;
    }
    
    nav a {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-price {
        grid-column: 1 / -1;
        text-align: left;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    
    .cart-item .btn-danger {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .cart-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cart-total .cart-total-amount {
        font-size: 1.5rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .avatar-upload-label {
        width: 32px;
        height: 32px;
    }
    
    .profile-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .profile-meta-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .order-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav a span {
        display: none;
    }
    
    .catalog {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .cart-item-actions {
        justify-content: center;
    }
    
    .cart-total {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Spinner для загрузки */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-dark);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
