/* modern-home.css */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --brand-color: rgb(46, 67, 94);
}

/* Modern Hero Section */
.modern-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag-link {
    text-decoration: none;
    display: inline-block;
}

.tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.tag-link:hover .tag {
    background: rgb(46, 67, 94) !important;
    border-color: rgb(46, 67, 94) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 67, 94, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: titleReveal 1.2s ease forwards;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    animation: subtitleReveal 1.4s ease forwards;
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: buttonsReveal 1.6s ease forwards;
}

@keyframes buttonsReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Кнопка каталогу з RGB(46, 67, 94) */
.modern-hero .primary-btn {
    background: rgb(46, 67, 94) !important;
    color: white !important;
    border: none;
}

.modern-hero .primary-btn:hover {
    background: rgb(35, 52, 73) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 67, 94, 0.3);
}

.modern-hero .primary-btn svg {
    stroke: white;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.secondary-btn:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: scrollIndicatorFade 2s ease 2s forwards;
    opacity: 0;
}

@keyframes scrollIndicatorFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Products Section */
.featured-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.section-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-color);
}

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

.product-card-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-img {
    transform: scale(1.05);
}

.product-badge-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-info-modern {
    padding: 25px;
}

.product-title-modern {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title-modern a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-title-modern a:hover {
    color: var(--secondary-color);
}

.product-description-modern {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.price-modern {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.current-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 400;
    font-style: italic;
}

.from-text {
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
}

.old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    font-style: italic;
}

.product-actions-modern {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn-modern {
    background: var(--primary-color);
    color: white;
}

.cart-btn-modern:hover {
    background: var(--secondary-color);
}

/* Categories Showcase */
.categories-showcase {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 300px;
    cursor: pointer;
}

.category-card.large-card {
    grid-row: span 2;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-description {
    opacity: 0.9;
    margin-bottom: 15px;
}

.category-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-link {
    opacity: 1;
}

/* Instagram Section */
.instagram-section {
    padding: 100px 0;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.instagram-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.large-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .modern-btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-bg-image {
        object-position: 70% center;
    }
    
    .hero-tags {
        gap: 10px;
    }
    
    .tag {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}