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

:root {
    --color-off-white: #F9F9F6;
    --color-sage-green: #8A9A86;
    --color-sage-hover: #7b8b76;
    --color-charcoal: #333333;
    --color-light-gray: #e6e8e2;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--color-off-white);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

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

a:hover {
    color: var(--color-sage-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header & Navigation */
header {
    background-color: var(--color-white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Alex Brush', cursive;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-sage-green);
    letter-spacing: 0.02em;
    line-height: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-sage-green);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--color-sage-green) 0%, #768672 100%);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    box-shadow: 0 4px 10px rgba(138, 154, 134, 0.2);
    position: relative;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 154, 134, 0.4);
    background: linear-gradient(135deg, var(--color-sage-hover) 0%, #687764 100%);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(138, 154, 134, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-sage-green);
    border: 1px solid var(--color-sage-green);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-sage-green);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 154, 134, 0.3);
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.page-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    color: #666;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.product-img-wrapper {
    height: 280px;
    background: radial-gradient(circle, #ffffff 0%, #f0f2eb 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.12)) contrast(1.05);
    transition: all 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.18)) contrast(1.1);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--color-sage-green);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.product-price {
    font-weight: 600;
    color: var(--color-sage-green);
    font-size: 1.1rem;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
}

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

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

.modal-content {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

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

.modal-body {
    margin-top: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-sage-green);
    box-shadow: 0 0 0 3px rgba(138, 154, 134, 0.1);
}

/* Checkout Page Specific */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.checkout-summary {
    background-color: var(--color-off-white);
    padding: 2rem;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-light-gray);
}

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

.payment-method-box {
    padding: 1rem;
    border: 1px solid var(--color-sage-green);
    background-color: rgba(138, 154, 134, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-sage-green);
    font-weight: 500;
    margin-top: 1rem;
}

/* Static Pages Content */
.static-content {
    background-color: var(--color-white);
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.static-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.static-content p, .static-content ul {
    margin-bottom: 1.5rem;
}

.static-content ul {
    padding-left: 2rem;
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-off-white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

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

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .static-content {
        padding: 2rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 380px;
    background-color: var(--color-white);
    color: var(--color-charcoal);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.cookie-content a {
    color: var(--color-sage-green);
    text-decoration: underline;
    font-weight: 500;
}

.btn-cookie {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background: var(--color-sage-green);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    font-weight: 500;
}

.btn-cookie:hover {
    background: var(--color-sage-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 154, 134, 0.2);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: auto;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
    }
}
