/**
 * MamieRhys.com - Main Stylesheet
 * Urban Lifestyle Curtains Brand
 */

/* CSS Variables */
:root {
    --primary: #c4a77d;
    --secondary: #3d4f5f;
    --background: #faf8f5;
    --text: #4a3f35;
    --accent: #7d9a78;
    --white: #ffffff;
    --light-gray: #f0ede8;
    --border: #e5e1da;
    --shadow: rgba(74, 63, 53, 0.08);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text);
    transition: var(--transition);
}

.header-icon:hover {
    color: var(--primary);
}

.currency-wrapper {
    position: relative;
}

.currency-selector {
    padding: 8px 28px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a3f35' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.cart-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text);
    transition: var(--transition);
}

.cart-trigger:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Mosaic Grid */
.hero-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: calc(100vh - 80px);
    min-height: 600px;
    max-height: 900px;
    padding: 16px;
    background: var(--background);
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.mosaic-large {
    grid-row: span 2;
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 63, 53, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--white);
}

.mosaic-title {
    font-size: 42px;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mosaic-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.mosaic-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    width: fit-content;
    transition: var(--transition);
}

.mosaic-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.feature-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Product Grid */
.products-section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

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

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

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

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

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Brand Story */
.story-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    border-radius: 8px;
    overflow: hidden;
}

.story-content {
    padding: 40px 0;
}

.story-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
}

.story-title {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text);
}

.story-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 32px;
}

.story-cta {
    display: inline-flex;
    padding: 14px 32px;
    border: 2px solid var(--text);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.story-cta:hover {
    background: var(--text);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 40px;
}

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

.footer-brand .brand-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

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

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

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.6;
}

.footer-payment {
    display: flex;
    gap: 16px;
}

.payment-icon {
    width: 40px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .mosaic-large {
        grid-row: span 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-mosaic {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .mosaic-item {
        min-height: 300px;
    }
    
    .mosaic-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
