:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary-gradient: linear-gradient(135deg, #ff8fa3 0%, #ff4d6d 100%);
    --liquid-bg: radial-gradient(circle at top left, #fff0f3, #ffffff 50%, #f0f4ff 100%);
    --text-main: #2d3436;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    background: var(--liquid-bg);
    background-attachment: fixed;
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
}

/* Эффект матового стекла (Liquid Glass) */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* Основной контейнер - теперь он широкий для ПК */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER в стиле Uzum */
header {
    position: sticky;
    top: 10px;
    z-index: 1000;
    border-radius: 20px;
    margin-top: 10px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.search-bar {
    flex-grow: 1;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 95%;
    padding: 12px 20px 12px 45px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 143, 163, 0.2);
}

/* КАРТОЧКИ ТОВАРОВ как на Uzum */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
}

.card-title {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* КНОПКА КУПИТЬ */
.buy-btn {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* БАННЕР */
.main-banner {
    width: 100%;
    height: 350px;
    border-radius: 30px;
    margin: 20px 0;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    padding: 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Для мобилок адаптируем */
@media (max-width: 768px) {
    .search-bar { margin: 0 10px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .main-banner { height: 200px; padding: 20px; }
    header .logo { font-size: 18px; }
}

/* Общий контейнер для страницы товара */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки: фото и инфо */
    gap: 40px;
    padding: 40px;
    margin: 20px auto;
    max-width: 1100px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.4); /* Эффект стекла */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Блок с фото */
.product-gallery {
    width: 100%;
}

.product-gallery img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #fff;
}

/* Блок с информацией */
.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.product-details .price-tag {
    font-size: 28px;
    font-weight: 800;
    color: #ff4d6d;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 77, 109, 0.1);
    border-radius: 15px;
    display: inline-block;
}

.info-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.8);
}

/* Кнопка заказа в стиле Uzum */
.buy-button-now {
    background: linear-gradient(135deg, #ff8fa3 0%, #ff4d6d 100%);
    color: white;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3);
    transition: 0.3s;
}

.buy-button-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 77, 109, 0.4);
}

/* Глобальный хедер */
.main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 0 0 20px 20px;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.main-header .logo {
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
}

.main-header .search-bar {
    flex-grow: 1;
    position: relative;
    max-width: 600px;
}

.main-header .search-bar input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 15px;
    border: none;
    background: rgba(0,0,0,0.05);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.main-header .search-bar input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.lang-switch {
    font-weight: 800;
    font-size: 13px;
}

.lang-switch a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.lang-switch a.active {
    color: #ff4d6d;
}

.lang-switch .divider {
    color: #eee;
    margin: 0 5px;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
}

.header-icons a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.header-icons .insta-icon {
    color: #ff4d6d;
}

/* Мобильная адаптация хедера */
@media (max-width: 768px) {
    .main-header .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
    }
    .header-flex {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Адаптивность для мобилок */
@media (max-width: 850px) {
    .product-container {
        grid-template-columns: 1fr; /* На мобилке всё в одну колонку */
        padding: 15px;
        margin: 10px;
    }
    .product-details h1 { font-size: 24px; }
}

/* Навигация в хедере */
.header-nav {
    display: flex;
    gap: 15px;
    margin: 0 10px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-link i {
    font-size: 16px;
    color: #999;
}

.nav-link:hover {
    background: rgba(255, 77, 109, 0.05);
    color: #ff4d6d;
}

.nav-link.active {
    background: rgba(255, 77, 109, 0.1);
    color: #ff4d6d;
}

.nav-link.active i {
    color: #ff4d6d;
}

/* Адаптация: на мобилках прячем текст, оставляем иконки */
@media (max-width: 1000px) {
    .nav-link span { display: none; }
    .header-center { margin: 0 10px; }
}

@media (max-width: 768px) {
    .header-nav { display: none; } /* Совсем прячем на мелких мобилках, чтобы не теснились */
}