/* VESKA - Premium Home Decor */
:root {
    --primary-color: #9BB7D4;
    --secondary-color: #3D5E8C;
    --dark-color: #27272A;
    --light-color: #FFFFFF;
    --light-gray: #F5F5F5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}



/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-logo p {
    max-width: 350px;
    opacity: 0.9;
}

.newsletter {
    max-width: 400px;
}

.newsletter h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--light-color);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 10px;    
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-icon span {
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light-color);
    transition: var(--transition);
}

.social-link svg {
    width: 1.2rem;
    height: 1.2rem;
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-icon {
    height: 30px;
    opacity: 0.8;
    transition: var(--transition);
}

.payment-icon:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */

@media (max-width: 992px) {

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .featured-categories {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .category-item {
        height: 400px;
    }

    .about-section {
        flex-direction: column;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .category-info {
        transform: translateY(0);
        background: rgba(39, 39, 42, 0.8);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Add this at the end of your main.css or in a relevant global style file */
.page-transition-fade-out {
    opacity: 0 !important; /* Important to override existing opacity if any */
    transition: opacity 0.3s ease-in-out;
}

/* We don't need the shop-loader-overlay anymore, using products-loader instead */

/* Products loader for the featured products section */
.products-loader {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #a8896c;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Product grid for featured products */
.featured-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .featured-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .featured-products .products-grid {
        grid-template-columns: 1fr;
    }
}