/* style.css - Полный файл стилей для DOZSER SHOP */

/* Запрет контекстного меню, перетаскивания и выделения изображений */
img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

/* Запрет копирования всего сайта, кроме специальных элементов */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Разрешаем копирование для названий товаров, артикулов и контактов */
.product-name, .product-page-name, .product-page-sku, .contacts-value,
.product-info .product-name, .cart-item-title, .order-item-name,
.product-card .product-name, .admin-product-name {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

::-webkit-scrollbar {
    width: 0px;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    background-color: #000000;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tooltip стили */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 1.5s;
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Единая кнопка поиска для всех устройств */
.search-btn {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    padding: 0;
    position: relative;
}

.search-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: transparent;
}

.search-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
    background: rgba(255,255,255,0.05);
}

.menu-burger {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.burger-icon {
    position: relative;
    width: 26px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-burger.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-burger.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-img {
    max-height: 90px;
    width: auto;
    display: block;
    background: transparent;
    mix-blend-mode: screen;
}

.actions-right {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-left: auto;
    z-index: 10;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2,0.9,0.4,1), opacity 0.3s ease;
}

.header-actions.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    padding: 0;
    position: relative;
}

.icon-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
    background: rgba(255,255,255,0.05);
}

.icon-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
    background: transparent;
    border-radius: 50%;
}

.cart-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    background: transparent;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cart-pulse {
    animation: cartPulse 0.4s cubic-bezier(0.25,1.5,0.5,1);
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
    100% { transform: scale(1); }
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 2px solid black;
    z-index: 5;
}

/* Main content */
.main-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    padding: 24px 20px 80px 20px;
    max-width: 100%;
}

/* Full width bars */
.full-width-bar {
    width: 100vw;
    margin: 20px 0 30px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.glow-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, #ffffff, #ffffff, #ffffff, #ffffff, transparent);
    background-size: 300% 100%;
    animation: shimmer 8s linear infinite;
    border-radius: 2px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

.marquee-bar {
    margin: 20px 0 40px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: rgba(255,255,255,0.02);
    border-radius: 0;
    padding: 8px 0;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    animation: scrollText 30s linear infinite;
    width: fit-content;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 0 32px;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.marquee-item .badge {
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 40px;
    margin-left: 12px;
    font-weight: 700;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Catalog */
.catalog-section {
    margin: 40px 0;
}

.catalog-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.5s ease forwards;
    position: relative;
}

@keyframes cardAppear {
    to { opacity: 1; transform: translateY(0); }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

.product-card:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.5);
}

.product-card.sold-out {
    opacity: 0.4;
    pointer-events: none;
}

.product-card.sold-out .product-image-container {
    filter: grayscale(60%);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.product-image.active {
    opacity: 1;
}

.product-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    color: #000000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.favorite-icon-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
    padding: 0;
}

.favorite-icon-overlay img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.favorite-icon-overlay:hover {
    transform: scale(1.05);
    background: #f8f8f8;
}

.product-info {
    padding: 18px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-delivery {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.product-delivery span {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.product-tag {
    background: rgba(255,255,255,0.1);
    color: #aaa;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.empty-catalog-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
}

/* Notification */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ffffff;
    color: #000000;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    z-index: 20000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    pointer-events: none;
    white-space: nowrap;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-gif {
    max-width: 400px;
    width: 80%;
    pointer-events: none;
}

/* Scroll top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 24px;
    font-weight: bold;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

/* Sidebar menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -420px;
    width: 380px;
    height: 100%;
    background: #000000;
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 10000;
    transition: left 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    padding: 100px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: none;
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.sidebar-close-icon::before,
.sidebar-close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.sidebar-close-icon::before {
    transform: translate(-50%,-50%) rotate(45deg);
}

.sidebar-close-icon::after {
    transform: translate(-50%,-50%) rotate(-45deg);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
    padding-left: 20px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 500;
    color: #f5f5f5;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(6px);
}

.sidebar-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.5), transparent);
    margin: 20px 0;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
}

.sidebar-footer-img {
    max-width: 280px;
    width: 100%;
    border-radius: 28px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Cart panel */
.cart-backdrop-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/originals/c3/a9/a8/c3a9a87ed744873864ffbf67922ec014.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    z-index: 1099;
    pointer-events: none;
}

.cart-backdrop-blur.active {
    opacity: 0.6;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 420px;
    height: 100%;
    background: #000000;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 11000;
    transition: right 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    padding: 100px 28px 32px 28px;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 16px;
}

.cart-header h2 {
    font-size: 28px;
    font-weight: 800;
}

.cart-close {
    background: rgba(255,255,255,0.08);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: background 0.2s;
}

.cart-close:hover {
    background: rgba(255,255,255,0.2);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 28px;
    color: #aaa;
}

.cart-item {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, opacity 0.2s;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #aaa;
    font-size: 14px;
}

.cart-item-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.quantity-btn:hover {
    background: rgba(255,255,255,0.2);
}

.quantity-value {
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    background: rgba(255,0,0,0.2);
    border: none;
    color: #ff8888;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.checkout-btn {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 44px;
    padding: 16px;
    font-weight: 800;
    font-size: 18px;
    color: black;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 16px;
}

.checkout-btn.disabled {
    background: #2a2a2a;
    color: #777;
    cursor: not-allowed;
}

/* Profile dropdown */
.profile-dropdown {
    position: absolute;
    top: 75px;
    right: 0;
    width: 300px;
    background: #0a0a0a;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

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

.dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.dropdown-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.dropdown-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dropdown-close:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-content {
    padding: 16px 20px 20px;
}

.edit-profile-btn {
    width: 100%;
    background: white;
    color: black;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.edit-profile-btn:hover {
    background: #e0e0e0;
}

.dropdown-action {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.dropdown-action:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.dropdown-action.logout-btn {
    background: rgba(220,38,38,0.2);
    border-color: #dc2626;
    color: #ff8888;
}

.dropdown-action.logout-btn:hover {
    background: #dc2626;
    color: white;
}

.dropdown-action.delete-account-btn {
    background: rgba(0,0,0,0.5);
    border-color: #444;
    color: #ff8888;
    margin-bottom: 8px;
}

.dropdown-action.delete-account-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Search page */
.search-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/originals/62/8b/e9/628be9123fd21fddf512814d3e36da7c.gif') center/cover no-repeat fixed;
    z-index: 2500;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.search-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: -1;
    pointer-events: none;
}

.search-page.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.search-page-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.2,0.9,0.4,1), opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.search-page.open .search-page-inner {
    transform: translateY(0);
    opacity: 1;
}

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

.search-close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    color: white;
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-close-btn:hover {
    background: rgba(255,255,255,0.12);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.favorites-btn-header,
.search-filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.favorites-btn-header:hover,
.search-filter-btn:hover {
    background: rgba(255,255,255,0.12);
}

.filter-icon-img,
.favorites-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #000000;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.search-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
}

/* Filter panel */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2599;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

.filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px 28px 0 0;
    z-index: 2600;
    overflow-y: auto;
    padding: 32px 24px 40px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2,0.9,0.4,1);
}

.filter-panel.open {
    transform: translateY(0);
}

.filter-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.filter-chip.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.filter-apply-btn {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.2s;
}

.filter-apply-btn:hover {
    opacity: 0.9;
}

/* Payment, Delivery, Terms, Privacy pages */
.payment-page,
.delivery-page,
.offer-page,
.terms-page,
.privacy-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 3000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.4s;
}

.payment-page.open,
.delivery-page.open,
.offer-page.open,
.terms-page.open,
.privacy-page.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.payment-inner,
.delivery-inner,
.offer-inner,
.terms-inner,
.privacy-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

.payment-header,
.delivery-header,
.offer-header,
.terms-header,
.privacy-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 32px;
}

.back-arrow-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 32px;
    line-height: 1;
    color: white;
    text-decoration: none;
}

.back-arrow-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateX(-4px);
}

.payment-title,
.delivery-title,
.offer-title,
.terms-title,
.privacy-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #AAAAAA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.payment-grid,
.delivery-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.payment-card,
.delivery-card {
    background: rgba(255,255,255,0.02);
    border-radius: 36px;
    padding: 40px 44px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    opacity: 0;
    transform: translateY(30px);
    animation: cardUp 0.5s ease forwards;
}

@keyframes cardUp {
    to { opacity: 1; transform: translateY(0); }
}

.payment-card:nth-child(1),
.delivery-card:nth-child(1) { animation-delay: 0.05s; }
.payment-card:nth-child(2),
.delivery-card:nth-child(2) { animation-delay: 0.1s; }
.payment-card:nth-child(3),
.delivery-card:nth-child(3) { animation-delay: 0.15s; }

.payment-card:hover,
.delivery-card:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    transform: translateY(-6px);
}

.payment-icon,
.delivery-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 24px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-icon,
.delivery-card:hover .delivery-icon {
    transform: translateY(-3px);
}

.payment-method-title,
.delivery-method-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #FFFFFF;
}

.payment-description,
.delivery-description {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #D0D0D0;
    margin-top: 16px;
}

.delivery-list {
    margin: 14px 0;
    padding-left: 20px;
}

.delivery-list li {
    margin: 6px 0;
    color: #ccc;
}

.text-page-content {
    background: rgba(255,255,255,0.02);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.06);
}

.text-page-section {
    margin-bottom: 30px;
}

.text-page-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
    border-left: 3px solid #ffffff;
    padding-left: 16px;
}

.text-page-text {
    font-size: 15px;
    line-height: 1.7;
    color: #cccccc;
    font-weight: 400;
}

.text-page-text p {
    margin-bottom: 12px;
}

.text-page-text ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.text-page-text li {
    margin-bottom: 8px;
}

/* Auth modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.auth-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
}

.modal-backdrop.closable {
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 460px;
    background: rgba(8,8,8,0.95);
    backdrop-filter: blur(18px);
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 40px 32px;
    z-index: 1;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 14px 18px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
    transform: scale(1.01);
}

.error-message {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 8px;
}

.auth-btn {
    width: 100%;
    background: white;
    color: black;
    border: none;
    border-radius: 44px;
    padding: 14px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    font-size: 16px;
}

.auth-btn:hover {
    opacity: 0.9;
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.text-link {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.text-link:hover {
    color: white;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark-custom {
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    align-self: center;
}

.custom-checkbox input:checked ~ .checkmark-custom {
    background: #ffffff;
    border-color: #ffffff;
}

.custom-checkbox input:checked ~ .checkmark-custom:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #ccc;
    line-height: 20px;
}

.policy-link {
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

/* Verification modal */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

.verification-modal.active {
    visibility: visible;
    opacity: 1;
}

.verification-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    backdrop-filter: blur(16px);
}

.verification-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: #0a0a0a;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 40px 32px;
    text-align: center;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.verification-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.verification-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.verification-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
}

.verification-code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.code-digit {
    width: 60px;
    height: 70px;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    font-family: monospace;
    transition: all 0.2s;
}

.code-digit:focus {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    background: #222;
}

.verification-timer {
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 20px;
    background: rgba(255,107,107,0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
}

.verification-resend {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 10px 20px;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.verification-resend:hover:not(:disabled) {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.verification-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.verification-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-bottom: 16px;
    min-height: 36px;
}

.verification-submit-btn {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 44px;
    padding: 14px;
    font-weight: 800;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s;
}

.verification-submit-btn:hover {
    opacity: 0.9;
}

.verification-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Edit profile modal */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.edit-profile-modal.active {
    visibility: visible;
    opacity: 1;
}

.edit-container {
    position: relative;
    width: 90%;
    max-width: 550px;
    background: #0a0a0a;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 32px;
    z-index: 1;
    max-height: 85vh;
    overflow-y: auto;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.edit-header h3 {
    font-size: 24px;
}

.close-edit {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-edit:hover {
    background: rgba(255,255,255,0.2);
}

.avatar-edit-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    cursor: pointer;
}

.change-avatar-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.change-avatar-btn:hover {
    background: rgba(255,255,255,0.2);
}

.avatar-file-input {
    display: none;
}

.edit-field {
    margin-bottom: 20px;
}

.edit-field label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}

.edit-field input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    outline: none;
}

.edit-field input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.save-edit-btn {
    background: white;
    color: black;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-weight: 700;
    width: 100%;
    margin-top: 16px;
    cursor: pointer;
}

.save-edit-btn:hover {
    opacity: 0.9;
}

/* Contacts modal */
.contacts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3100;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

.contacts-modal.active {
    visibility: visible;
    opacity: 1;
}

.contacts-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.contacts-container {
    position: relative;
    width: 90%;
    max-width: 750px;
    background: #0a0a0a;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 1;
    overflow: hidden;
}

.contacts-header {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contacts-header h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contacts-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-close:hover {
    background: rgba(255,255,255,0.2);
}

.contacts-content {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.contacts-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

.contacts-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
    user-select: text;
}

.contacts-value.copyable {
    cursor: pointer;
}

.contacts-value.copyable:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.copy-feedback {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

/* Chat modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.chat-modal.active {
    visibility: visible;
    opacity: 1;
}

.chat-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.chat-container {
    position: relative;
    width: 90%;
    max-width: 550px;
    height: 70vh;
    max-height: 600px;
    background: #0a0a0a;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.chat-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #050505;
}

.chat-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #fff;
}

.chat-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #000000;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    animation: messageAppear 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-origin: left center;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-message {
    background: #1a1a1a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #eee;
    border: 1px solid #2a2a2a;
}

.user-message {
    background: #2a6f8f;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
    animation: messageAppearUser 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-origin: right center;
}

@keyframes messageAppearUser {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.quick-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quick-btn:hover {
    background: rgba(255,255,255,0.2);
}

.chat-input-area {
    display: flex;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 12px;
    background: #050505;
}

.chat-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 12px 18px;
    color: white;
    outline: none;
    font-size: 14px;
}

.chat-input:focus {
    border-color: #fff;
}

.chat-send {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
}

.chat-send img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.contact-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: #0f0f0f;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
}

.contact-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-field input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
}

.contact-field input:focus {
    border-color: #fff;
}

.contact-submit-btn {
    background: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 700;
    color: black;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-submit-btn:hover {
    opacity: 0.9;
}

/* Product page - НОВЫЙ ФОН */
.product-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/736x/e7/fa/0c/e7fa0c70d9d7c9ea70ecbc576fa7c19e.jpg') center/cover no-repeat fixed;
    z-index: 4000;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.product-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: -1;
    pointer-events: none;
}

.product-page.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.product-page .product-page-inner {
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2,0.9,0.4,1), opacity 0.4s cubic-bezier(0.2,0.9,0.4,1);
    opacity: 0;
    background: transparent;
    border-radius: 0;
    z-index: 1;
}

.product-page.open .product-page-inner {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.product-page.close-animation .product-page-inner {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

.product-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.product-page-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.product-page-close {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    color: white;
    transition: background 0.2s;
}

.product-page-close:hover {
    background: rgba(255,255,255,0.2);
}

.product-two-columns {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.product-gallery-column {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.product-info-column {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(10,10,10,0.5);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    color: white;
    transition: background 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    line-height: 1;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.3);
}

.gallery-arrow-left {
    left: 16px;
}

.gallery-arrow-right {
    right: 16px;
}

.gallery-thumbnails-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.gallery-thumbnails-wrapper:active {
    cursor: grabbing;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
    margin-top: 8px;
    transition: transform 0.1s ease-out;
    will-change: transform;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    pointer-events: auto;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #fff;
}

.scroll-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    margin-top: 12px;
    overflow: hidden;
}

.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 100px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.product-page-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.product-page-sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-page-price {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    transition: color 0.3s ease;
}

.old-price {
    font-size: 20px;
    font-weight: 500;
    color: #888;
    text-decoration: line-through;
}

.product-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-page-tag {
    background: rgba(255,255,255,0.1);
    color: #aaa;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    z-index: 100;
}

.select-trigger {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 40px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.select-trigger:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.select-arrow {
    font-size: 11px;
    transition: transform 0.3s;
}

.select-arrow.open {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow-y: auto;
    max-height: 250px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-top: 6px;
}

.select-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.select-option {
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    color: #ddd;
}

.select-option:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.select-option.selected {
    background: #ffffff;
    color: #000000;
}

.checkout-action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.product-page-order-btn {
    flex: 1;
    background: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-page-order-btn:hover {
    opacity: 0.9;
}

.product-description-new {
    margin: 24px 0;
}

.product-description-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.description-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.description-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.description-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.description-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.description-text {
    flex: 1;
}

.description-text h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

.description-text p {
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
}

.product-page-delivery {
    font-size: 13px;
    color: #888;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 10px;
}

/* Also like */
.also-like {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
}

.also-like h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

.also-like-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    cursor: grab;
}

.also-like-grid:active {
    cursor: grabbing;
}

.also-like-grid::-webkit-scrollbar {
    display: none;
}

.also-like-card {
    flex: 0 0 250px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.also-like-card:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.5);
}

.also-like-card .product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.also-like-card .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    opacity: 1;
}

.also-like-card .product-image:not(:first-child) {
    display: none;
}

/* FAQ section */
.faq-section {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 40px;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255,255,255,0.03);
}

.faq-icon {
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.3s ease, content 0s;
    user-select: none;
    display: inline-block;
    width: 28px;
    text-align: center;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    border-top: 0px solid transparent;
}

.faq-answer.open {
    max-height: 2000px;
    padding: 0 24px 18px 24px;
    border-top-width: 1px;
    border-top-color: rgba(255,255,255,0.06);
}

.faq-image-only {
    width: 100%;
    max-width: 400px;
    margin: 12px auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.faq-image-only img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.faq-image-only:hover img {
    transform: scale(1.03);
}

.faq-image-only .image-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Checkout modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 5000;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.2,0.9,0.4,1), visibility 0s linear 0.4s;
}

.checkout-modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/736x/38/61/a2/3861a23e5df3b945e2fc69cd593284d8.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.checkout-modal.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.checkout-inner {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 40px 20px 80px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.2,0.9,0.4,1), opacity 0.5s ease;
    background: rgba(0,0,0,0.85);
    border-radius: 40px;
    backdrop-filter: blur(4px);
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkout-modal.open .checkout-inner {
    transform: translateY(0);
    opacity: 1;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checkout-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.checkout-order-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    transition: transform 0.2s;
    flex-wrap: wrap;
}

.checkout-product-img {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.checkout-product-info {
    flex: 1;
}

.checkout-product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.checkout-product-meta {
    font-size: 15px;
    color: #999;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkout-product-price {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-field {
    width: 100%;
}

.checkout-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.checkout-input {
    width: 100%;
    background: rgba(20,20,20,0.8);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.checkout-input:focus {
    border-color: #ffffff;
    background: rgba(30,30,30,0.9);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.checkout-input::placeholder {
    color: #666;
    font-weight: 400;
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.delivery-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 24px;
    color: #fff;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.delivery-section-title:after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.delivery-option {
    background: rgba(20,20,20,0.8);
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 18px 8px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    backdrop-filter: blur(8px);
}

.delivery-option.active {
    border-color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.delivery-option-name {
    font-weight: 800 !important;
    margin-bottom: 6px;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.delivery-option-price {
    font-size: 0px;
    opacity: 0;
    display: none;
}

.delivery-option.active .delivery-option-price {
    display: none;
}

.map-container {
    width: 100%;
    height: 400px;
    margin: 8px 0 20px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: #1a1a1a;
    z-index: 1;
}

.pickup-service-selector {
    margin: 15px 0;
    padding: 15px;
    background: rgba(20,20,20,0.8);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

.pickup-service-selector label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.service-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 8px;
}

.service-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.service-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.service-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.delivery-address-preview {
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
    color: #ccc;
    font-weight: 500;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-total {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 26px;
    font-weight: 700;
}

.checkout-total span:first-child {
    color: #aaa;
    font-size: 18px;
    font-weight: 500;
}

.checkout-submit-btn {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 60px;
    padding: 20px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #000000;
    cursor: pointer;
    margin-top: 32px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px -10px rgba(255,255,255,0.2);
    text-transform: uppercase;
}

.checkout-submit-btn:hover {
    opacity: 0.95;
}

.contact-method-simple {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.contact-method-btn {
    flex: 1;
    background: rgba(20,20,20,0.8);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 60px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    position: relative;
}

.contact-method-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.address-disclaimer {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
    font-weight: 400;
    opacity: 0.8;
}

.search-address-btn {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.search-address-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.prepayment-note {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    font-weight: 400;
    text-align: right;
}

/* Purchased products page */
.purchased-products-page,
.order-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 7000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.4s;
}

.purchased-products-page.open,
.order-detail-page.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.purchased-inner,
.order-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

.purchased-header,
.order-detail-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 32px;
}

.purchased-title,
.order-detail-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #AAAAAA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.purchased-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.purchased-card {
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.purchased-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
}

.purchased-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.purchased-card-info {
    padding: 16px;
}

.purchased-card-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.purchased-card-meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.purchased-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.empty-purchased {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
    grid-column: 1/-1;
}

.order-detail-grid {
    background: rgba(255,255,255,0.03);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-label {
    font-size: 14px;
    color: #aaa;
}

.order-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.order-items-list {
    margin: 20px 0;
}

.order-item-card {
    display: flex;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.order-item-details {
    font-size: 12px;
    color: #aaa;
}

/* Admin panel */
.admin-panel-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 32px;
    color: #000000;
    font-weight: 700;
    border: none;
}

.admin-panel-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.admin-panel-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.admin-panel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.admin-panel-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.admin-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-title {
    font-size: 32px;
    font-weight: 800;
}

.admin-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.admin-search {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 60px;
    padding: 16px 24px;
    color: white;
    font-size: 18px;
    margin-bottom: 32px;
    outline: none;
}

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.admin-product-card {
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transition: all 0.2s;
}

.admin-product-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.25);
}

.admin-product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #111;
}

.admin-product-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.admin-product-price {
    color: #aaa;
    margin-bottom: 12px;
}

.admin-card-actions {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.2s;
    color: white;
}

.admin-action-btn.delete-btn {
    background: #dc2626;
}

.admin-action-btn.edit-btn {
    background: #3b82f6;
}

.admin-action-btn.delete-btn:hover,
.admin-action-btn.edit-btn:hover {
    opacity: 0.85;
}

.admin-add-btn {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 40px;
    padding: 18px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    margin-top: 32px;
    transition: opacity 0.2s;
}

.admin-add-btn:hover {
    opacity: 0.9;
}

.admin-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.admin-form-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.admin-form-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.admin-form-field {
    margin-bottom: 24px;
}

.admin-form-field label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 8px;
}

.admin-form-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 14px 18px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    transform: translateY(0);
}

.admin-form-input:hover {
    border-color: #555;
    background: #1e1e1e;
    transform: translateY(-1px);
}

.admin-form-input:focus {
    border-color: #fff;
    background: #222;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05), 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

textarea.admin-form-input {
    resize: vertical;
    min-height: 80px;
}

textarea.admin-form-input:focus {
    min-height: 120px;
}

.category-chips,
.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip,
.status-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

.category-chip.active,
.status-chip.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.admin-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.admin-image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-image-thumb:hover {
    border-color: #666;
    transform: scale(1.05);
}

.admin-image-thumb.main-image {
    border-color: #ffffff;
}

.admin-image-upload-area {
    border: 2px dashed #555;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1a1a;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
}

.admin-image-upload-area:hover {
    border-color: #fff;
    background: #222;
    color: #fff;
}

.admin-image-upload-area input {
    display: none;
}

.admin-image-preview-item {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.admin-image-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #333;
}

.admin-image-preview-item .remove-preview-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-submit-btn {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 40px;
    padding: 16px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    transform: translateY(0);
}

.admin-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.admin-submit-btn:active {
    transform: translateY(0);
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    cursor: pointer;
}

.lightbox-modal.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.2,0.9,0.4,1), opacity 0.25s ease;
    pointer-events: auto;
    z-index: 50001;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.2,0.9,0.4,1), opacity 0.25s ease;
    cursor: zoom-in;
    pointer-events: auto;
}

.lightbox-content img.slide-left {
    opacity: 0;
    transform: translateX(-30px);
}

.lightbox-content img.slide-right {
    opacity: 0;
    transform: translateX(30px);
}

.lightbox-content img.zoomed {
    transform: scale(2.2);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    z-index: 50010;
    pointer-events: auto;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 40px;
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s, border-color 0.2s;
    z-index: 50010;
    font-weight: 400;
    line-height: 1;
    pointer-events: auto;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-modal.closing .lightbox-content {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.2s ease-in, opacity 0.2s ease-in;
}

.lightbox-modal.closing {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Fly to cart animation */
.fly-to-cart {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Footer */
.footer {
    width: 100%;
    margin-top: 160px;
    background: #000000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 60px 40px;
    text-align: center;
}

.footer-image {
    width: 280px;
    height: auto;
    border-radius: 32px;
    margin-bottom: 28px;
    display: inline-block;
}

.footer-brand {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #fff;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: #ffffff;
    margin: 28px auto;
}

.footer-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #e0e0e0;
}

.footer-description-small {
    max-width: 700px;
    margin: 16px auto 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #b0b0b0;
}

.footer-social {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-text {
    font-size: 13px;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-btn {
    display: inline-flex;
    transition: transform 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    transform: scale(1.05);
}

.social-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.footer-copyright {
    margin-top: 55px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
}

.footer-teaser {
    margin-top: 10px;
    font-size: 11px;
    color: #888;
    text-align: center;
}

.footer-teaser span {
    color: #3b82f6;
}

.footer-dev {
    margin-top: 15px;
    font-size: 11px;
    color: #555;
    text-align: center;
}

/* Leaflet map styles */
.leaflet-container {
    background: #e5e5e5;
    filter: none;
}

.leaflet-tile-pane {
    filter: brightness(0.95) contrast(1.05);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #0a0a0a;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
}

.leaflet-popup-content {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.leaflet-control-attribution {
    display: none !important;
}

.custom-marker-white {
    background: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.custom-marker-white:hover {
    transform: scale(1.2);
    background: #e0e0e0;
}

.confirm-popup {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    min-width: 260px;
}

.confirm-popup p {
    margin-bottom: 12px;
    color: white;
}

.confirm-popup .address-detail {
    font-size: 11px;
    color: #aaa;
    word-break: break-word;
    margin-bottom: 12px;
}

.distance-info {
    font-size: 12px;
    color: #ffaa44;
    margin: 8px 0 16px;
    background: rgba(255,170,68,0.1);
    padding: 8px;
    border-radius: 12px;
}

.confirm-popup button {
    background: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 8px;
    transition: opacity 0.2s;
}

.confirm-popup button:hover {
    opacity: 0.9;
}

.confirm-popup .confirm-yes {
    background: #22c55e;
    color: white;
}

.confirm-popup .confirm-no {
    background: #ef4444;
    color: white;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

/* Адаптивные стили для телефонов */
@media (max-width: 768px) {
    .header-left {
        gap: 4px;
    }
    
    .menu-burger {
        width: 40px;
        height: 40px;
    }
    
    .burger-icon {
        width: 22px;
        height: 18px;
    }
    
    .logo-img {
        max-height: 60px;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .icon-img {
        width: 40px;
        height: 40px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .search-btn img {
        width: 40px;
        height: 40px;
    }
    
    .cart-icon {
        width: 45px;
        height: 45px;
    }
    
    .cart-count-badge {
        width: 22px;
        height: 22px;
        font-size: 11px;
        top: -8px;
        right: -8px;
    }
    
    .actions-right {
        gap: 8px;
    }
    
    .container {
        padding: 16px 12px 60px 12px;
    }
    
    .catalog-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-delivery {
        font-size: 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-tag {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .marquee-item {
        font-size: 12px;
        gap: 20px;
        padding: 0 16px;
    }
    
    .marquee-item .badge {
        padding: 2px 10px;
        font-size: 10px;
    }
    
    .sidebar-menu {
        width: 85%;
        left: -85%;
        padding: 80px 20px 20px 20px;
    }
    
    .nav-item {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .sidebar-section-title {
        font-size: 10px;
        padding-left: 16px;
    }
    
    .cart-panel {
        width: 100%;
        right: -100%;
        padding: 80px 16px 20px 16px;
    }
    
    .cart-header h2 {
        font-size: 24px;
    }
    
    .search-page-inner {
        padding: 20px 16px 60px;
    }
    
    .search-header {
        gap: 10px;
    }
    
    .search-close-btn,
    .favorites-btn-header,
    .search-filter-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-page-inner {
        padding: 40px 16px 60px;
    }
    
    .product-two-columns {
        gap: 30px;
    }
    
    .product-gallery-column {
        min-width: 100%;
        max-width: 100%;
    }
    
    .product-info-column {
        min-width: 100%;
        max-width: 100%;
    }
    
    .product-page-name {
        font-size: 24px;
    }
    
    .product-page-price {
        font-size: 28px;
    }
    
    .old-price {
        font-size: 16px;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
    
    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .gallery-arrow-left {
        left: 12px;
    }
    
    .gallery-arrow-right {
        right: 12px;
    }
    
    .checkout-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .also-like-card {
        flex: 0 0 180px;
    }
    
    .also-like h3 {
        font-size: 18px;
    }
    
    .checkout-inner {
        width: 98%;
        padding: 30px 16px 60px;
    }
    
    .checkout-title {
        font-size: 24px;
    }
    
    .checkout-header {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .back-arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .checkout-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .service-buttons {
        gap: 10px;
    }
    
    .service-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .delivery-address-preview {
        font-size: 13px;
        padding: 15px;
    }
    
    .checkout-total {
        font-size: 20px;
    }
    
    .checkout-total span:first-child {
        font-size: 16px;
    }
    
    .checkout-submit-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    .payment-inner,
    .delivery-inner,
    .terms-inner,
    .privacy-inner {
        padding: 30px 20px 60px;
    }
    
    .payment-header,
    .delivery-header,
    .terms-header,
    .privacy-header {
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .payment-title,
    .delivery-title,
    .terms-title,
    .privacy-title {
        font-size: 28px;
    }
    
    .payment-card,
    .delivery-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 24px;
        gap: 16px;
    }
    
    .payment-method-title,
    .delivery-method-title {
        font-size: 20px;
    }
    
    .payment-description,
    .delivery-description {
        font-size: 14px;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    
    .contacts-header {
        padding: 20px 24px;
    }
    
    .contacts-header h2 {
        font-size: 22px;
    }
    
    .purchased-inner,
    .order-detail-inner {
        padding: 30px 20px 60px;
    }
    
    .purchased-header,
    .order-detail-header {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .purchased-title,
    .order-detail-title {
        font-size: 28px;
    }
    
    .purchased-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .order-detail-grid {
        padding: 20px;
    }
    
    .order-detail-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .auth-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .chat-container {
        width: 95%;
        height: 80vh;
    }
    
    .chat-header h3 {
        font-size: 16px;
    }
    
    .message {
        max-width: 90%;
        font-size: 13px;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .faq-answer.open {
        padding: 0 16px 14px 16px;
    }
    
    .faq-image-only {
        max-width: 100%;
    }
    
    [data-tooltip]:before {
        display: none;
    }
    
    .notification-toast {
        white-space: normal;
        text-align: center;
        max-width: 90%;
        font-size: 12px;
        padding: 12px 20px;
    }
    
    .footer-content {
        padding: 40px 20px 30px;
    }
    
    .footer-image {
        width: 200px;
    }
    
    .footer-brand {
        font-size: 24px;
    }
    
    .footer-description {
        font-size: 16px;
    }
    
    .footer-description-small {
        font-size: 14px;
    }
    
    .footer-social {
        gap: 20px;
    }
    
    .social-avatar {
        width: 45px;
        height: 45px;
    }
    
    .social-text {
        font-size: 11px;
    }
    
    .admin-inner {
        padding: 20px 16px 80px;
    }
    
    .admin-title {
        font-size: 24px;
    }
    
    .admin-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .admin-form-inner {
        padding: 20px 16px 80px;
    }
    
    .verification-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .code-digit {
        width: 50px;
        height: 60px;
        font-size: 28px;
    }
    
    .edit-container {
        width: 95%;
        padding: 24px;
    }
    
    .avatar-edit-section {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .admin-panel-btn {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 10px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .gallery-thumb {
        width: 45px;
        height: 45px;
    }
    
    .search-results-grid {
        gap: 10px;
    }
    
    .catalog-title {
        font-size: 20px;
    }
    
    .marquee-item {
        font-size: 10px;
        gap: 15px;
        padding: 0 12px;
    }
    
    .checkout-order-summary {
        padding: 16px;
    }
    
    .checkout-product-name {
        font-size: 18px;
    }
    
    .checkout-product-price {
        font-size: 20px;
    }
}