@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary: #1B2621; /* Deep Forest Charcoal */
    --secondary: #F5F2ED; /* Linen / Bone */
    --accent: #9A7E6F; /* Muted Clay */
    --text-main: #2C2C2C;
    --text-muted: #666666;
    --white: #FFFFFF;
    --glass-bg: rgba(245, 242, 237, 0.8);
    --glass-border: rgba(27, 38, 33, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    
    /* Spacing */
    --section-padding: 120px 5%;
    --border-radius: 4px; /* More minimalist, sharper corners */
    
    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 4px;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 50px;
}

nav ul li a {
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul li a:hover {
    color: var(--accent);
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background-color: var(--primary); /* Deep, clean background */
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(154, 126, 111, 0.1) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    pointer-events: none;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* Products Section */
.products {
    padding: var(--section-padding);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

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

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

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.add-to-cart {
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.add-to-cart:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.product-card::after {
    content: 'QUICK VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 90%;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.4s ease;
}

.modal-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.modal-content img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.modal-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-info p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-muted);
}

.modal-info .care-hints {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    margin-bottom: 40px;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        padding: 40px 20px;
    }
    .modal-content img {
        width: 100%;
        height: 300px;
    }
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.cart-total {
    padding-top: 20px;
    border-top: 2px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 5% 40px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p, .footer-column li {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    nav ul {
        display: none;
    }
}

/* ============================================
   FULLSCREEN MODAL SYSTEM
   ============================================ */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 38, 33, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fm-card {
    background: var(--white);
    border-radius: 12px;
    padding: 50px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: cardSlideIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.fm-card.fm-wide {
    max-width: 780px;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fm-close:hover {
    background: var(--secondary);
    color: var(--primary);
}

.fm-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.fm-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.fm-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.fm-action {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    border: none;
    font-size: 0.9rem;
}

/* ============================================
   QUANTITY PICKER
   ============================================ */
.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 10px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-display {
    font-size: 2.5rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* ============================================
   CART QUANTITY CONTROLS
   ============================================ */
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.cart-qty-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-qty-controls button:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-qty-controls span {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* ============================================
   CHECKOUT FORM
   ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

.checkout-form-section h3 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(154, 126, 111, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.checkout-summary-section {
    background: var(--secondary);
    border-radius: 10px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 0;
}

.checkout-summary-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.checkout-items-list {
    margin-bottom: 15px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.checkout-item span:first-child {
    color: var(--text-main);
    flex: 1;
    padding-right: 10px;
}

.checkout-item span:last-child {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   CONFIRMATION MODAL
   ============================================ */
.confirm-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--secondary);
    border-radius: 10px;
}

.confirm-section h4 {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
}

.confirm-section h4 i {
    margin-right: 8px;
}

.confirm-address-block {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-main);
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    animation: successPulse 1.5s ease infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(45, 106, 79, 0); }
}

/* ============================================
   RESPONSIVE: MODALS
   ============================================ */
@media (max-width: 768px) {
    .fm-card {
        padding: 30px 20px;
        width: 95%;
    }
    .fm-card.fm-wide {
        max-width: 95%;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-summary-section {
        order: -1;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
}

