/* Основные цвета */
:root {
    --primary-yellow: #ffcc00;
    --dark-bg: #1a1a1a;
    --card-border: #e0e0e0;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    color: #333;
}

/* Навигация с плавным переходом */
.navbar {
    background: linear-gradient(90deg, #000 0%, #333 100%);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-yellow);
}

.logo {
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 24px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
}

/* Сетка и Карточки */
.container {
    padding: 50px;
}

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

/* Стиль рамки как на dafna.uz */
.product-card {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-yellow); /* Рамка становится желтой при наведении */
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image img {
    max-width: 80%;
    object-fit: contain;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-yellow);
    color: black;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

/* Инфо о товаре */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin: 10px 0;
}

.price {
    font-weight: bold;
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
}

/* Кнопка с градиентом при наведении */
.btn-buy {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    background: linear-gradient(45deg, #000, #ffcc00);
    color: black;
}