:root {
    --color-bg: #FAF9F6;
    --color-text: #1C1B1A;
    --color-accent: #C5A059;
    --color-accent-hover: #A68545;
    --color-white: #FFFFFF;
    --color-border: rgba(28, 27, 26, 0.1);
    --color-light-gray: #F0EFEB;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

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

/* Typography & Utilities */
.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-text);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary {
    display: inline-block;
    color: var(--color-text);
    padding: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-text);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo a span {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    margin-top: 8px;
}

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

.nav-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    position: relative;
}

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

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

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

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

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

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

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Extra for parallax */
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

/* About */
.about {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

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

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 80vh;
}

.about-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.about-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4A4A4A;
}

/* Collection */
.collection {
    padding: 10rem 0 14rem;
    background-color: var(--color-white);
}

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

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

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

.product-card {
    display: flex;
    flex-direction: column;
    group;
    position: relative;
}

.product-card.featured {
    grid-column: span 2;
    background-color: var(--color-bg);
    padding: 3rem;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    border: 1px solid var(--color-border);
}

.product-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--color-light-gray);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.product-card.featured .product-img-wrapper {
    flex: 1;
    background: transparent;
    aspect-ratio: auto;
    height: auto;
    margin-bottom: 0;
}

.product-card.featured .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card.featured .product-img-wrapper img {
    max-height: 400px;
}

.product-img-wrapper img {
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

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

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card.featured .product-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2.5rem;
}

.product-action {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--color-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    transform: translateX(-400px);
}

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

.cart-header h3 {
    font-size: 1.5rem;
}

.close-btn {
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

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

.empty-cart-msg {
    text-align: center;
    color: #666;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    background: var(--color-light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item-img img {
    max-height: 90%;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
}

.cart-item-price {
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
}

.qty-btn {
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
}

.qty-display {
    padding: 0 0.5rem;
    font-size: 0.9rem;
}

.remove-btn {
    font-size: 0.8rem;
    text-decoration: underline;
    color: #666;
}

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

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.shipping-msg {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background: var(--color-text);
    color: var(--color-white);
    padding: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.checkout-btn:hover {
    background: var(--color-accent);
}

/* Footer */
.footer {
    background-color: #111;
    color: #f5f5f5;
    padding: 6rem 0 2rem;
}

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

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    font-weight: 300;
}

.footer-brand p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links li {
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-newsletter p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    flex-grow: 1;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    color: white;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    background: var(--color-accent);
}

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

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2000;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Testimonials */
.testimonials {
    padding: 10rem 0;
    background-color: var(--color-bg);
}

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

.testimonial-card {
    text-align: center;
    padding: 2rem;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.testimonial-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

/* Product Detail Page */
.product-page .navbar {
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.product-detail-section {
    padding: 12rem 0 8rem;
    background-color: var(--color-white);
    min-height: 100vh;
}

.product-detail-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.pd-image-wrapper {
    background: var(--color-light-gray);
    padding: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pd-image-wrapper img {
    max-height: 70vh;
    object-fit: contain;
}

.pd-info {
    padding-right: 2rem;
}

.pd-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pd-price {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    display: block;
}

.pd-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.pd-benefits {
    margin-bottom: 3rem;
}

.pd-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #666;
}

.pd-benefits li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.pd-actions {
    display: flex;
    gap: 1.5rem;
}

.pd-actions .btn-primary, .pd-actions .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 1.2rem 0;
}

/* Media Queries */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card.featured {
        grid-column: span 2;
        grid-row: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image-wrapper {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .cart-drawer.open {
        transform: translateX(-100%);
    }
    .product-card.featured {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }
    .product-card.featured .product-action {
        flex-direction: column;
        gap: 1rem;
    }
    .product-card.featured .product-img-wrapper img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card.featured {
        grid-column: 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .product-card.featured .product-title {
        font-size: 2rem;
    }
    .product-card.featured {
        padding: 1.5rem;
    }
}
