/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    --primary-color: #ffffff;
    --bg-light: #fbfbfb;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent: #2c2c2c;
    --border-color: #e5e5e5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    background: transparent;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--primary-color);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 100%;
}

.btn-outline:hover {
    border-color: var(--text-main);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    font-size: 1.5rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--text-main);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #111;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #333;
}

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.categories {
    padding: 8rem 0;
    background-color: var(--primary-color);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
}

.category-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

.category-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* =========================================
   PRODUCTS SECTION
   ========================================= */
.products {
    padding: 8rem 0;
    background-color: var(--primary-color);
}

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

.product-card {
    background: var(--primary-color);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-subtle);
}

.product-image {
    background: var(--bg-light);
    padding: 2rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-details {
    padding: 1rem 0;
    text-align: center;
}

.product-details h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-details .price {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   SHOPPING CART SIDEBAR
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: var(--primary-color);
    z-index: 1002;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item img {
    width: 80px; height: 80px;
    object-fit: cover;
    background: var(--bg-light);
}

.cart-item-details { flex-grow: 1; }

.remove-item {
    color: #ff4d4f;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--text-main);
    color: var(--primary-color);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer p {
    color: #999;
    font-size: 0.95rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: #999;
}

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

.newsletter-form {
    margin-top: 1rem;
    display: flex;
    border-bottom: 1px solid #444;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.8rem 0;
    width: 100%;
    outline: none;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}

/* =========================================
   PORTFOLIO MODAL
   ========================================= */
.portfolio-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
    padding: 4rem 5%;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.close-portfolio {
    position: fixed;
    top: 2rem; right: 3rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    z-index: 2001;
    transition: transform 0.3s ease;
}

.close-portfolio:hover {
    transform: rotate(90deg);
}

.portfolio-content {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-content h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-subtle);
    border-radius: 4px;
    transition: var(--transition);
}

.portfolio-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   ANIMATIONS & UTILITIES
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .category-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        gap: 3rem;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .category-grid, .product-grid {
        grid-template-columns: 1fr;
    }
}
