/* ===== ГЛОБАЛЬНЫЕ СТИЛИ (для всего сайта) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== ШАПКА (глобально) ===== */
header {
    padding: 1rem 4rem;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 2px 8px rgba(255,107,107,0.3));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

nav a {
    color: #d1d1e0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: #fff;
}

.cta-nav {
    background: #ff6b6b;
    color: #fff !important;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    background: #e55a5a;
    transform: scale(1.02);
}

/* ===== ОСНОВНОЙ КОНТЕНТ (для всех страниц) ===== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    min-height: 60vh;
}

/* ===== ЗАГОЛОВКИ И ТЕКСТ ===== */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
}

p, li, span, div {
    color: #d1d1e0;
}

a {
    color: #ff6b6b;
    text-decoration: none;
}
a:hover {
    color: #ff8a8a;
}

/* ===== КНОПКИ (глобально) ===== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff6b6b;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}
.btn-primary:hover {
    background: #e55a5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */
/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0 1rem;
    min-height: 50vh;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #b0b0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.description {
    font-size: 1rem;
    color: #b0b0c8;
    max-width: 500px;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-decoration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-sphere {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(255,107,107,0.2), rgba(78,205,196,0.08));
    border-radius: 50%;
    filter: blur(70px);
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    100% { transform: scale(1.1) rotate(10deg); opacity: 1; }
}

/* Категории */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
}

.category-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.category-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,107,107,0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

/* .category-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 4px 10px rgba(255,107,107,0.2));
} */

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.category-card p {
    color: #b0b0c8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 0.8rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
}

/* ========== ЧЕКБОКС СОГЛАСИЯ ========== */
/* Общий стиль */
.terms-agreement {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    margin: 1.5rem 0 1rem !important;
    cursor: pointer;
    color: #d1d1e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terms-agreement input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 2px 0 0 0 !important;   /* ← выравнивание по верху */
    accent-color: #4ecdc4;
    cursor: pointer;
    align-self: flex-start !important;
}

.terms-agreement span {
    flex: 1;
    color: #d1d1e0;
    display: block;
}

.terms-agreement a {
    color: #4ecdc4;
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* На мобильных — чуть меньше */
@media (max-width: 768px) {
    .terms-agreement {
        font-size: 0.85rem;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
/* ===== Планшеты и узкие десктопы (до 1160px) ===== */
@media (max-width: 1160px) {
    header { padding: 0.8rem 2rem; }
    main { padding: 1.5rem 2rem; }
    nav ul { gap: 1.4rem; }
    nav a { font-size: 0.9rem; }
    .cta-nav { padding: 0.35rem 1rem; font-size: 0.9rem; }
    .logo { font-size: 1.6rem; }
    .logo-icon { font-size: 1.8rem; }
}

/* ===== Планшеты (до 1024px) ===== */
@media (max-width: 1024px) {
    .hero { padding: 2rem 0 0.5rem; flex-direction: column; text-align: center; min-height: auto; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 2.6rem; }
    .description { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-decoration { display: none; }
    .categories { grid-template-columns: 1fr 1fr; padding: 1rem 0 2rem; }
}

/* ===== Узкие планшеты (до 900px) ===== */
@media (max-width: 900px) {
    nav ul { gap: 1rem; }
    nav a { font-size: 0.85rem; }
    .cta-nav { padding: 0.3rem 0.85rem; font-size: 0.85rem; }
    .logo { font-size: 1.5rem; }
    .logo-icon { font-size: 1.7rem; }
}

@media (max-width: 768px) {
    header { padding: 0.6rem 1rem; }
    nav { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    nav ul { gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
    .logo { font-size: 1.5rem; }
    .logo-icon { font-size: 1.6rem; }
    nav a { font-size: 0.8rem; }
    .cta-nav { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
    main { padding: 1rem; }
    .hero { padding: 1.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    .categories { grid-template-columns: 1fr; padding: 0.5rem 0 1.5rem; }
    .category-card { padding: 1.2rem; }
    .category-icon { font-size: 2.5rem; }
}

/* ===== Состояние кнопки "Added to Cart" (глобально) ===== */
.add-to-cart.in-cart {
    background: #4ecdc4 !important;
    color: #0a0a1a !important;
}
.add-to-cart.in-cart:hover {
    background: #3db8b0 !important;
    transform: scale(1.02);
}

/* Лёгкая пульсация иконки корзины при добавлении */
@keyframes cart-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
a[href="/cart.html"].cart-pulse {
    animation: cart-pulse 0.4s ease;
    display: inline-block;
}