:root {
    --color-dark-brown: #5D5353; --color-light-grey: #F1F1F1; --color-accent-green: #A7C45C; --color-accent-pink: #D94A83;
    --color-white: #FFFFFF; --color-dark-text: #333333; --font-heading: 'Playfair Display', serif; --font-body: 'Lato', sans-serif;
    --header-height: 90px;
}
body { font-family: var(--font-body); color: var(--color-dark-text); margin: 0; padding-top: var(--header-height); background-color: var(--color-light-grey); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 900; color: var(--color-dark-brown); }
.pink-text { color: var(--color-accent-pink); }
a { color: var(--color-accent-pink); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-dark-brown); }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* --- HEADER --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background-color: var(--color-light-grey); display: flex; align-items: center;
    justify-content: space-between; padding: 0 1rem; box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 1000;
    transition: transform 0.4s ease-out;
}
.site-header--hidden { transform: translateY(-100%); }
.site-title {
    font-size: clamp(1.2rem, 5vw, 2.2rem); color: var(--color-dark-brown);
    text-decoration: none; white-space: nowrap; text-align: center;
    flex-grow: 1;
}
.nav-right { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.social-icons { display: flex; align-items: center; gap: 1rem; }
.social-icons a, .cart-icon { font-size: 1.5rem; color: var(--color-dark-brown); }
.cart-icon { position: relative; }
.cart-badge {
    position: absolute; top: -8px; right: -12px; background: var(--color-accent-pink);
    color: white; border-radius: 50%; font-size: 0.75rem;
    font-weight: bold; line-height: 1; padding: 4px 6px;
}

/* --- NAVIGATION --- */
.mobile-nav-toggle { display: block; font-size: 2rem; cursor: pointer; z-index: 1001; padding-right: 1rem; color: var(--color-dark-brown); flex-shrink: 0; }
.nav-left { display: none; flex-grow: 1; justify-content: center; }
.nav-left nav { display: flex; flex-direction: row; align-items: center; gap: 1rem; overflow-x: auto; }
.nav-left nav a {
    font-size: 0.9rem; text-transform: uppercase; font-weight: 700;
    color: var(--color-dark-brown); text-decoration: none; flex-shrink: 0;
}

/* --- OPEN MENU STATE --- */
body.nav-open .site-header { justify-content: space-between; }
body.nav-open .site-title { display: none; }
body.nav-open .nav-left { display: flex; }
body.nav-open .mobile-nav-toggle i::before { content: '\f00d'; }

/* --- UTILITY & BUTTON STYLES --- */
.text-center { text-align: center; }
.button-row { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 30px; font-weight: 700; text-transform: uppercase; transition: all 0.3s ease; cursor: pointer; text-align: center; }
.btn-dark {
    background-color: var(--color-dark-brown);
    color: var(--color-light-grey);
    border: 2px solid var(--color-dark-brown);
}
.btn-dark:hover { background-color: transparent; color: var(--color-dark-brown); }
.btn-light {
    background-color: var(--color-light-grey);
    color: var(--color-dark-brown);
    border: 2px solid var(--color-light-grey);
}
.btn-light:hover { background-color: transparent; color: var(--color-light-grey); }

/* --- MODAL STYLES --- */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center; align-items: center; z-index: 2000;
}
.modal-content { background: var(--color-white); padding: 2.5rem; border-radius: 10px; text-align: center; position: relative; max-width: 500px; width: 90%; box-sizing: border-box; z-index: 2001; }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 2rem; cursor: pointer; color: #aaa; }
.modal-buttons {
    margin-top: 1.5rem;
    text-align: center;
}
.modal-buttons .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.modal-buttons .btn:first-child {
    margin-bottom: 0.75rem;
}
.modal-input { width: 80%; padding: 10px; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 5px; }

/* --- SLIDESHOWS --- */
@keyframes fadeIn { from { opacity: 0.4; } to { opacity: 1; } }
/* Main homepage slideshow */
.slideshow-container { position: relative; width: 100%; height: 72vh; min-height: 504px; overflow: hidden; background-color: var(--color-dark-brown); }
.slide { display: none; position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; }
.slide.active { display: block; animation: fadeIn 1.5s; }
.slide-text { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; background-color: rgba(0, 0, 0, 0.5); color: var(--color-white); padding: 1rem 2rem; text-align: center; border-radius: 5px; }
.slide-text h2 { color: var(--color-white); margin-top: 0; }

/* Featured Product Slideshow */
#featured-product-image-container { position: relative; width: 100%; padding-top: 100%; overflow: hidden; border-radius: 5px; background-color: #eee; }
.featured-product-slide { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.featured-product-slide.active { display: block; animation: fadeIn 1.5s; }

/* Slideshow Controls (Arrows & Dots) with z-index */
.slide-arrow {
    cursor: pointer; position: absolute; top: 50%;
    transform: translateY(-50%); width: auto; padding: 16px;
    color: white; font-weight: bold; font-size: 24px;
    transition: 0.6s ease; user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10; /* Ensures arrows are on top of images */
}
.slide-arrow.prev { left: 0; border-radius: 0 3px 3px 0; }
.slide-arrow.next { right: 0; border-radius: 3px 0 0 3px; }
.slide-arrow:hover { background-color: rgba(0,0,0,0.8); }

.slide-dots {
    position: absolute; bottom: 15px; left: 50%;
    transform: translateX(-50%); text-align: center;
    z-index: 10; /* Ensures dots are on top of images */
}
.dot {
    cursor: pointer; height: 15px; width: 15px;
    margin: 0 4px; background-color: #717171;
    border-radius: 50%; display: inline-block;
    transition: background-color 0.6s ease;
}
.dot.active { background-color: #ffffff; }


/* --- OTHER PAGE STYLES --- */
.tagline { font-size: clamp(3rem, 8vw, 5rem) !important; text-align: center; }
.shop-intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 2rem; }
.shop-category-link { display: block; position: relative; overflow: hidden; border-radius: 10px; height: 300px; }
.shop-category-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.shop-category-link:hover img { transform: scale(1.1); }
.shop-category-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; color: var(--color-white); font-family: var(--font-heading); font-size: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.featured-product { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding: 2rem; background-color: var(--color-white); border-radius: 10px; margin-bottom: 3rem; }
@media (min-width: 768px) { .featured-product { grid-template-columns: 1fr 1fr; } }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background: var(--color-white); border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card-info { padding: 1.5rem; text-align: center; }
footer.section-dark { text-align: center; padding: 3rem 1rem; }
footer nav { margin: 1.5rem 0; }
footer nav a { color: var(--color-white); padding: 0 0.5rem; }
footer .social-icons { margin: 1.5rem 0; justify-content: center; }
footer .social-icons a { color: var(--color-white); margin: 0 0.75rem; font-size: 1.75rem; }
footer .site-title-footer { font-size: 3rem; color: var(--color-white); margin: 0; }
footer .copyright { margin-top: 2.5rem; font-size: 0.9rem; }
footer .pi-powered { font-size: 0.8rem; margin-top: 0.5rem; }
.section { padding: 5rem 2rem; }
.section-dark { background-color: var(--color-dark-brown); color: var(--color-white); }
.section-green { background-color: var(--color-accent-green); color: var(--color-dark-brown); }
.section-dark h1, .section-dark h2 { color: var(--color-white); }
.section-green h1, .section-green h2 { color: var(--color-dark-brown); }
