/* Lucky Cosmetics Theme - FIXED VERSION */
:root {
    --primary-color: #8A2BE2;
    --secondary-color: #FF69B4;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ФИКСИРОВАННАЯ ШАПКА */
.custom-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.custom-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.custom-header .logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.custom-header .main-nav {
    display: flex;
    gap: 30px;
}

.custom-header .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.custom-header .nav-link:hover,
.custom-header .nav-link.active {
    color: var(--primary-color);
}

.custom-header .header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.custom-header .action-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
}

.custom-header .action-link:hover {
    color: var(--primary-color);
}

.custom-header .cart-link {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
}

.custom-header .cart-count {
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
}

/* СКРЫВАЕМ СТАНДАРТНУЮ OPENCART ШАПКУ */
.navbar-default,
.navbar,
header .container-fluid {
    display: none !important;
}

/* ОСНОВНОЙ КОНТЕНТ */
main {
    flex: 1;
    margin-top: 80px; /* Отступ для фиксированной шапки */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HERO СЕКЦИЯ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* КАТЕГОРИИ */
.categories-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-item {
    text-align: center;
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-decoration: none;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.category-item span {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

/* ХИТЫ ПРОДАЖ */
.featured-products {
    padding: 80px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

.btn-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-cart:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ПРЕИМУЩЕСТВА */
.advantages-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.advantages-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem 1rem;
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.5;
}

/* ФУТЕР */
.site-footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a1a);
    color: var(--white);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-item span:last-child {
    color: #cccccc;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #999;
    font-size: 14px;
}

.footer-links-bottom {
    display: flex;
    gap: 25px;
}

.footer-links-bottom a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
    .categories-grid,
    .products-grid,
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .custom-header .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .custom-header .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-header .header-actions {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        margin-top: 120px;
    }
    
    .categories-grid,
    .products-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .custom-header .main-nav {
        gap: 10px;
    }
    
    .custom-header .nav-link {
        font-size: 14px;
    }
    
    .custom-header .action-link {
        font-size: 12px;
    }
    
    main {
        margin-top: 140px;
    }
    
    .categories-grid,
    .products-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 0 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
/* Force refresh Ср ноя 19 12:05:24 UTC 2025 */

/* Дополнительные исправления */
.hero-section {
    padding: 120px 0 100px; /* Увеличиваем верхний отступ */
}

/* Улучшаем внешний вид при скролле */
.custom-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Плавная анимация для всех переходов */
* {
    transition: all 0.2s ease;
}

/* Улучшаем читаемость текста в Hero */
.hero-content h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Промо-баннеры */
.promo-banners {
    padding: 60px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.promo-banner {
    border-radius: 16px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.promo-banner-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.promo-banner-small {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.promo-content h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.promo-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-promo {
    background: var(--white);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Секционные заголовки */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Популярные товары */
.popular-products {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Бейджи товаров */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.sale {
    background: #ff4444;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 400;
}

/* Таймер акции */
.sale-timer {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.sale-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sale-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.sale-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.timer {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.timer-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.timer-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timer-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sale-image {
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Отзывы */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Instagram лента */
.instagram-feed {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.instagram-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.instagram-item {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

/* Адаптивность для новых блоков */
@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .sale-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 40px 20px;
        min-height: 200px;
    }
    
    .promo-content h3 {
        font-size: 1.5rem;
    }
    
    .timer {
        gap: 10px;
    }
    
    .timer-item {
        padding: 10px;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .sale-info h2 {
        font-size: 2rem;
    }
}
