:root {
    /* Brand Colors based on Kuvalaya design */
    --primary-teal: #1f6e7c;
    --primary-teal-dark: #154c56;
    --primary-teal-light: #e0f2f4;
    
    --accent-green: #8ab692;
    --accent-green-light: #e6f0e8;
    
    --bg-cream: #fbf9f6;
    --bg-cream-dark: #f0ebe1;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    
    --border-color: #e2e8f0;

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-teal-dark);
    font-weight: 600;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(31, 110, 124, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 110, 124, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-teal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.currency-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease;
}

.currency-select:hover, .currency-select:focus {
    border-color: var(--primary-teal);
}

.cart-btn {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s ease;
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    padding: calc(100px + var(--space-xl)) var(--space-md) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    min-height: 90vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-green-light);
    color: #4a7553;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--primary-teal-dark);
}

.hero-title span {
    color: var(--primary-teal);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.decorative-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-green-light) 0%, rgba(255,255,255,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 450px;
}

.hero-product-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply; /* Blends the image's studio background cleanly into our hero section */
    max-height: 550px;
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    padding: var(--space-xl) var(--space-md);
    background-color: var(--white);
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    padding: var(--space-md);
    background-color: var(--bg-cream);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.bg-green { background-color: var(--accent-green); }
.bg-blue { background-color: var(--primary-teal); }
.bg-orange { background-color: #fca5a5; }
.bg-green-light { background-color: #6ee7b7; color: #047857; }

.feature-card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products Section */
.products-section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    height: 300px;
    padding: var(--space-sm);
}

.card-product-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain; /* Ensures the tall packet fits entirely without being cropped */
    mix-blend-mode: multiply; /* Helps integrate generated images with card background */
}

.bg-light-cream { background-color: var(--bg-cream-dark); }
.bg-teal-light { background-color: var(--primary-teal-light); }

.product-info {
    padding: var(--space-md);
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-green);
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin: var(--space-xs) 0;
}

.product-desc {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    min-height: 48px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal-dark);
}

/* Footer */
.footer {
    background-color: var(--primary-teal-dark);
    color: var(--white);
    padding: var(--space-xl) var(--space-md) var(--space-sm);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .brand-text h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0;
}

.footer-brand .brand-text span {
    color: var(--accent-green-light);
}

.footer-brand p {
    margin-top: var(--space-sm);
    color: rgba(255,255,255,0.8);
}

.footer-details {
    display: flex;
    flex: 2;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.detail-column {
    flex: 1;
    min-width: 150px;
}

.detail-column h4 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.detail-column a, .detail-column address {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-xs);
    font-style: normal;
    transition: color 0.3s ease;
}

.detail-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-md);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* simple mobile nav for now */
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background-color: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
    padding-top: var(--space-sm);
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-social:hover {
    background-color: var(--bg-cream);
}

.divider {
    text-align: center;
    position: relative;
    margin: var(--space-md) 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.divider span {
    background-color: var(--white);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px var(--primary-teal-light);
}

.w-100 {
    width: 100%;
    margin-top: var(--space-xs);
}

.modal-footer {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--primary-teal);
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}
