/* Global Styles for Pine View Nursery - Modern Creative Design */

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

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

:root {
    --primary-green: #1a4d2e;
    --secondary-green: #2d7a4f;
    --accent-green: #7fb069;
    --light-green: #b8d4a6;
    --pale-green: #e8f5e3;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-cream: #fefcf8;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles - Clean Modern Design. Fixed so scroll only toggles .scrolled (smooth). */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease-out, box-shadow 0.3s ease-out, top 0.35s ease-out;
    display: block;
    margin: 0;
    padding: 0;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.main-header.scrolled .header-wrapper {
    padding: 0.75rem 2rem;
}

.main-header.scrolled .logo-image {
    height: 75px;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: padding 0.3s ease-out;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1001;
    outline: none;
}

.header-logo:focus-visible {
    outline: 2px solid rgba(35, 133, 0, 0.5);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-image {
    height: 90px;
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, height 0.3s ease-out;
}

.header-logo:hover .logo-image {
    transform: scale(1.02);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    outline: none;
}

.mobile-menu-btn:hover {
    background: rgba(0, 97, 2, 0.08);
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid rgba(35, 133, 0, 0.5);
    outline-offset: 2px;
}

.mobile-menu-btn .hamburger-line {
    width: 24px;
    height: 2.5px;
    background: rgba(0, 97, 2, 1);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 1002;
    border-radius: 4px;
    transition: background 0.2s ease;
    outline: none;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(35, 133, 0, 1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(35, 133, 0, 1);
    transition: width 0.2s ease;
    border-radius: 1px;
}

.nav-link:hover {
    background: rgba(26, 77, 46, 0.08);
    color: rgba(26, 77, 46, 1);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:focus-visible {
    outline: 2px solid rgba(35, 133, 0, 0.5);
    outline-offset: 2px;
}

.nav-link.active {
    color: rgba(26, 77, 46, 1);
    font-weight: 600;
}

.nav-link.active::after {
    width: 60%;
}

.nav-link-cart {
    position: relative;
    border: 1.5px solid rgba(35, 133, 0, 0.3);
    background: rgba(35, 133, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link-cart:hover {
    background: rgba(35, 133, 0, 0.1);
    border-color: rgba(35, 133, 0, 0.5);
}

.nav-link-cart::after {
    display: none;
}

.cart-text {
    font-weight: 500;
}

/* Smooth scroll offset for anchor sections */
section[id],
[id] {
    scroll-margin-top: 120px;
    scroll-padding-top: 120px;
}

/* Ensure smooth scrolling works */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Buttons - Modern Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--accent-green) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

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

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    background: var(--secondary-green);
    color: white;
    border-color: var(--secondary-green);
    box-shadow: var(--shadow-md);
}

/* Section Headers - Creative Design */
.section-header {
    text-align: center;
    margin: 4rem 0 3rem;
    width: 100%;
    position: relative;
    padding: 0 20px;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0.3;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--secondary-green));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.15rem;
    font-weight: 400;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Footer - Modern Design */
footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, #153d26 100%);
    color: white;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 176, 105, 0.5), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--light-green);
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--accent-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 30px;
}

.footer-contact a {
    color: var(--accent-green);
    text-decoration: none;
}

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

/* Footer Newsletter Link */
.footer-newsletter-link {
    display: flex;
    flex-direction: column;
}

.footer-newsletter-link p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-newsletter-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    border: 1.5px solid rgba(127, 176, 105, 0.3);
    background: rgba(127, 176, 105, 0.08);
    width: fit-content;
}

.footer-newsletter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(127, 176, 105, 0.15), rgba(184, 212, 166, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-newsletter-cta:hover {
    color: var(--light-green);
    border-color: rgba(127, 176, 105, 0.5);
    background: rgba(127, 176, 105, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-newsletter-cta:hover::before {
    opacity: 1;
}

.footer-newsletter-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.footer-newsletter-cta:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
    border-color: var(--accent-green);
}

.footer-newsletter-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.footer-newsletter-cta:hover .footer-newsletter-icon {
    transform: scale(1.1);
}

.footer-newsletter-cta span:not(.footer-newsletter-icon) {
    position: relative;
    z-index: 1;
}

/* Footer Newsletter Link - Responsive */
@media (max-width: 768px) {
    .footer-newsletter-link {
        margin-top: 0.5rem;
    }
    
    .footer-newsletter-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-newsletter-link p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-newsletter-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem 20px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-legal-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity var(--transition);
}

.footer-legal-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.separator {
    opacity: 0.5;
}

/* Cart Styles - Robust header cart UI */
.nav-item-cart {
    position: relative;
}

.cart-link-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.cart-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    background: #c53030;
    color: white;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    min-width: 340px;
    max-width: 420px;
    z-index: 1001;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.nav-item-cart:hover .cart-dropdown {
    display: block;
}

.cart-dropdown-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--pale-green);
    border-bottom: 1px solid var(--border-light);
}

.cart-dropdown-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-green);
}

.cart-dropdown-count {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-medium);
}

.cart-items-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.cart-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.cart-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
}

.cart-dropdown-item:hover {
    background: var(--bg-light);
}

.cart-item-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--border-light);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.cart-item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.cart-item-quantity {
    font-weight: 500;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 0.9375rem;
}

.cart-more-items {
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    background: var(--bg-light);
    font-weight: 500;
}

.cart-dropdown-footer {
    padding: 1.25rem 1.25rem;
    background: var(--pale-green);
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.cart-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.view-cart-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--secondary-green);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.view-cart-btn:hover {
    background: var(--primary-green);
}

.view-cart-btn:hover {
    background: var(--primary-green);
}

.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--secondary-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all var(--transition);
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Wrapper: collapses when scrolled so header can move up in sync with promo sliding away */
.promo-banner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 1001;
    transition: height 0.4s ease-out;
}

.promo-banner-wrapper.collapsed {
    height: 0 !important;
}

/* Promo Banner - slides up (scrolled past) instead of fading */
.promo-banner {
    background: var(--promo-bg-color, var(--secondary-green));
    color: var(--promo-text-color, #ffffff);
    padding: 0.4rem 20px;
    text-align: center;
    position: relative;
    width: 100%;
    transition: transform 0.4s ease-out;
    transform: translateY(0);
    max-height: 100px;
    box-sizing: border-box;
}

/* Slide up and off-screen as if scrolled past */
.promo-banner.scrolled {
    transform: translateY(-100%);
    pointer-events: none;
}

.promo-banner.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.4s ease-out;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.promo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    padding-left: 20px;
    padding-right: 3rem;
    box-sizing: border-box;
}

.promo-text {
    flex: 1;
}

.promo-title {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    font-weight: 500;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.promo-subtitle {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    opacity: 0.85;
    line-height: 1.4;
}

.promo-cta {
    padding: 0.3rem 0.8rem;
    background: transparent;
    color: var(--promo-text-color, #ffffff);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    border-radius: 4px;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
    opacity: 0.9;
}

.promo-cta:hover {
    opacity: 1;
    text-decoration-thickness: 1.5px;
    background: rgba(255, 255, 255, 0.08);
}

.promo-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--promo-text-color, #ffffff);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    padding: 0.5rem;
    line-height: 1;
    z-index: 2;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-close:hover {
    opacity: 1;
}

/* Promo Modal */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.promo-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.promo-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.promo-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.promo-modal-content {
    padding: 2rem;
}

.promo-modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.promo-modal-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.promo-modal-text p {
    margin-bottom: 1rem;
}

.promo-modal-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-green);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background var(--transition);
}

.promo-modal-cta:hover {
    background: var(--primary-green);
}

/* Responsive Design */
/* Mobile Navigation Styles - Switch to mobile nav below 1318px */
@media (max-width: 1318px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1002;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 4px;
        transition: background 0.2s ease;
        outline: none;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-close:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }
    
    /* Hide hamburger button when menu is open to avoid duplicate close buttons */
    .mobile-menu-btn.active {
        display: none;
    }
    
    .header-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .main-header.scrolled .header-wrapper {
        padding: 0.75rem 1.5rem;
    }
    
    .logo-image {
        height: 75px;
        max-height: 75px;
        position: relative;
        z-index: 1001;
    }
    
    .main-header.scrolled .logo-image {
        height: 65px;
    }
    
    /* Mobile Navigation Overlay - Viewport Fixed */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 1001;
        pointer-events: none;
        visibility: hidden;
    }
    
    .mobile-nav-overlay.is-open {
        visibility: visible;
        pointer-events: auto;
    }
    
    .mobile-nav-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-nav-overlay.is-open .mobile-nav-backdrop {
        opacity: 1;
    }
    
    .mobile-nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: var(--primary-green);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
        will-change: transform;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav-overlay.is-open .mobile-nav-drawer {
        transform: translateX(0);
    }
    
    .mobile-nav-content {
        flex: 1;
        overflow-y: auto;
    }
    
    .mobile-nav-content .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4.5rem 0 2rem;
        width: 100%;
    }
    
    .mobile-nav-content .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-content .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1.25rem 1.5rem;
        color: white;
        font-size: 1.05rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .mobile-nav-content .nav-link::after {
        display: none;
    }
    
    .mobile-nav-content .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .mobile-nav-content .nav-link:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: -2px;
    }
    
    .mobile-nav-content .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border-left: 4px solid white;
        padding-left: calc(1.5rem - 4px);
    }
    
    .mobile-nav-content .nav-item-cart {
        margin: 0.5rem 0;
        border: none;
    }
    
    .mobile-nav-content .nav-link-cart {
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        margin: 0 1.5rem;
        border-radius: 20px;
        width: calc(100% - 3rem);
        box-sizing: border-box;
    }
    
    .mobile-nav-content .nav-link-cart:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    /* Hide desktop nav on mobile/tablet */
    .main-navigation {
        display: none;
    }
}

/* Desktop Navigation - Ensure inline nav links above 1318px */
@media (min-width: 1319px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .main-navigation {
        display: flex !important;
    }
    
    /* Ensure nav-list is horizontal for desktop */
    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        width: auto;
    }
    
    /* Ensure nav-item is inline for desktop */
    .nav-item {
        width: auto;
        border-bottom: none;
    }
    
    /* Ensure nav-link uses desktop styles */
    .nav-link {
        display: flex;
        align-items: center;
        width: auto;
        padding: 0.625rem 1rem;
        color: rgba(35, 133, 0, 1);
        font-size: 0.95rem;
        border-radius: 6px;
        justify-content: center;
    }
    
    .nav-link::after {
        display: block;
    }
    
    .nav-link:hover {
        background: rgba(26, 77, 46, 0.08);
        color: rgba(35, 133, 0, 1);
    }
    
    .nav-link:focus-visible {
        outline: 2px solid rgba(35, 133, 0, 0.5);
        outline-offset: 2px;
    }
    
    .nav-link.active {
        background: transparent;
        color: rgba(35, 133, 0, 1);
        border-left: none;
        padding-left: 1rem;
    }
}

/* Compact navigation for medium desktop screens to prevent cart overflow */
@media (min-width: 1319px) and (max-width: 1487px) {
    .header-wrapper {
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .nav-list {
        gap: 0.375rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link-cart {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    .nav-link-cart .cart-badge {
        min-width: 1.35rem;
        height: 1.35rem;
        font-size: 0.75rem;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .main-header.scrolled .logo-image {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 1rem;
    }
    
    .logo-image {
        height: 70px;
        max-height: 70px;
    }
    
    .main-navigation {
        width: 100%;
        right: -100%;
    }
    
    .main-navigation.nav-open {
        right: 0;
    }
}

/* Responsive adjustments for other elements */
@media (max-width: 1400px) {
    .header-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .logo-image {
        height: 90px;
    }
    
    .promo-banner-content {
        padding-left: 15px;
        padding-right: 2.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 420px) {
    .header-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .logo-image {
        height: 60px;
        max-height: 60px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-btn .hamburger-line {
        width: 22px;
    }
}

/* Gallery Page - Sticky Toggle Bar Fix
 * Scoped overrides to ensure sticky positioning works on gallery page only
 * These fixes ensure ancestors don't break sticky positioning
 */

/* CRITICAL FIX: Ensure html is scrollable for gallery page */
/* Using JavaScript fallback for :has() support, but this helps modern browsers */
html {
    /* Default - will be overridden by JS if needed */
}

/* CRITICAL FIX: html must have overflow-y: visible for sticky to work */
html {
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

body.page-gallery {
    /* CRITICAL: overflow-y must be visible, NOT auto, for sticky to work */
    overflow-y: visible !important;
    overflow-x: hidden !important;
    /* Ensure body doesn't have transforms or other properties that break sticky */
    transform: none !important;
    contain: none !important;
    isolation: auto !important;
    perspective: none !important;
    filter: none !important;
    /* Ensure body can scroll and doesn't constrain height */
    min-height: 100vh !important;
    height: auto !important;
    position: relative !important;
    /* Prevent any height constraints */
    max-height: none !important;
}

/* Ensure main wrapper doesn't break sticky on gallery page */
body.page-gallery main.gallery-page {
    /* CRITICAL: Must be visible, NOT auto, for sticky to work */
    overflow-y: visible !important;
    overflow-x: hidden !important;
    transform: none !important;
    contain: none !important;
    isolation: auto !important;
    /* Ensure it doesn't constrain height */
    min-height: 100vh !important;
    height: auto !important;
    position: relative !important;
    max-height: none !important;
}

/* Ensure gallery-inner doesn't break sticky */
body.page-gallery .gallery-inner {
    /* Already set in gallery.css, but ensure it's not overridden */
    overflow-y: visible !important;
    overflow-x: hidden !important;
    transform: none !important;
    contain: none !important;
    isolation: auto !important;
    /* Ensure it doesn't constrain height */
    height: auto !important;
    min-height: auto !important;
    position: relative !important;
    max-height: none !important;
}

/* CRITICAL: Force sticky positioning on the toggle bar itself */
body.page-gallery .gallery-toggle-bar {
    position: -webkit-sticky !important;
    position: sticky !important;
    /* Ensure it's not overridden */
    top: var(--header-offset, 0px) !important;
}