/* ------------------------------------------- */
/* --- 1. GLOBAL STYLES & TYPOGRAPHY (SUMMER VIBES) --- */
/* ------------------------------------------- */
:root {
    /* Base Colors - NEW SUMMER PALETTE INTEGRATED */
    --color-primary: #007744;     /* Crisp, Modern Forest Green */
    --color-secondary: #FCFCF4;   /* Very Light Cream/White Background */
    --color-text: #2c3e50;
    --color-light-gray: #e9ecef;
    
    /* THEME 7: SUMMER ACCENTS */
    --color-sunny-yellow: #FFB627;  /* Sunny Yellow/Gold Accent */
    --color-tropical-teal: #28A798; /* Tropical Teal Accent */
    --color-vibrant-peach: #FF7E6B; /* Vibrant Peach/Coral Warning */
    
    /* Set Primary Accent for CTAs */
    --color-accent: var(--color-sunny-yellow); /* Sunny Yellow for Buttons/Hovers */
    
    /* Typography */
    --font-heading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-subheading: 'Raleway', 'Helvetica Neue', Arial, sans-serif; /* NEW FONT FOR H3/H4 */
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--color-secondary); /* Applied Light Cream BG */
    color: var(--color-text);
}

/* --- FONT HIERARCHY FIX --- */
/* Main titles (h1, h2) get the bold Oswald font */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* Sub-headings (h3, h4) get the clean Raleway font */
h3, h4 {
    font-family: var(--font-subheading); 
    font-weight: 700;
    color: var(--color-primary);
    text-transform: none; /* Make sub-headings readable */
}
/* --- END OF FONT HIERARCHY FIX --- */

main, .page-content {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

/* ------------------------------------------- */
/* --- 2. HEADER & NAVIGATION --- */
/* ------------------------------------------- */
.site-header {
    background-color: white; 
    padding: 15px 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-primary);
}

.logo {
    padding: 0;
    margin: 0; 
    line-height: 1; 
    position: relative; 
    z-index: 3002;
}

.header-logo {
    height: 45px; 
    width: auto;
    display: block;
}

/* This is your original nav, now for DESKTOP ONLY */
.desktop-nav {
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

.desktop-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding-bottom: 3px;
    transition: color 0.3s, border-bottom 0.3s;
}

.desktop-nav a:hover {
    color: var(--color-tropical-teal); /* Tropical Teal Hover */
    border-bottom: 3px solid var(--color-tropical-teal); 
}

/* ------------------------------------------- */
/* --- 3. HERO SECTION --- */
/* ------------------------------------------- */
.hero-section {
    background-color: var(--color-primary); 
    position: relative;
    height: 450px; 
    background-image: url('images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: white; 
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 35px;
    color: #f0f0f0;
    font-family: var(--font-body);
}

/* Primary Button Style (Sunny Yellow Button) */
.button-primary {
    background-color: var(--color-accent); /* Sunny Yellow Button */
    color: var(--color-text); /* Dark text for contrast on yellow */
    display: inline-block;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    font-family: var(--font-body);
}

button-secondary {
    background-color: var(--color-tropical-teal);
    color: white;
    display: inline-block;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    font-family: var(--font-body);
}

.button-secondary:hover {
    background-color: #208a7e; /* Darker Teal */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* NEW: Style for the modal button group */
.modal-button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Make modal buttons smaller */
.modal-cta {
    font-size: 0.9em;
    padding: 12px 25px;
    width: 100%; /* Make both buttons fill the space */
}

.button-primary:hover {
    background-color: #ff9b00; /* Slightly darker yellow/orange hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------- */
/* --- 3.5. CATEGORY SHOWCASE (HOMEPAGE) --- */
/* ------------------------------------------- */
.category-showcase {
    max-width: 1200px;
    margin: 0 auto 60px auto; 
    padding: 0 5%;
    text-align: center;
}

.section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8); 
    transition: filter 0.3s, transform 0.3s;
}

.category-card:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

.category-card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 5;
}

/* ------------------------------------------- */
/* --- 4. INVENTORY CONTROLS & GRID --- */
/* ------------------------------------------- */
.inventory-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-light-gray);
}

#search-input {
    width: 400px;
}

#search-input, #category-filter {
    padding: 10px 15px;
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-body);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); 
    gap: 30px;
    justify-content: center; 
}

.plant-card {
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 0; 
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer; 
    z-index: 10; 
}

.plant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.plant-image {
    width: 100%;        
    height: 280px;      
    object-fit: cover;  
    display: block;
}

.plant-info {
    padding: 15px;
    text-align: center;
}

.plant-name {
    font-size: 1.3em;
    color: var(--color-text);
    font-family: var(--font-heading);
    text-transform: uppercase; 
}

.plant-species {
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 0.95em;
    font-family: var(--font-body);
}

.plant-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase; 
    margin: 10px 0;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    font-family: var(--font-body);
    z-index: 5;
}

.status-in-stock {
    background-color: var(--color-tropical-teal); /* Tropical Teal In Stock */
}

.status-limited {
    background-color: var(--color-vibrant-peach); /* Vibrant Peach Limited Stock */
}

.status-seasonal {
    background-color: var(--color-sunny-yellow); /* Sunny Yellow Seasonal */
    color: var(--color-text); /* Dark text on light badge */
}

/* ------------------------------------------- */
/* --- 5. ABOUT US PAGE STYLES (FIXED) --- */
/* ------------------------------------------- */
.page-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 50px;
}

.story-layout {
    display: flex;
    gap: 40px;
    align-items: center; 
    margin-bottom: 60px; 
}

.story-text {
    flex: 2; 
    font-size: 1.1em;
    padding-right: 20px;
    font-family: var(--font-body); 
    font-weight: 400; 
}

.story-text h3 {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-weight: 700; 
    text-transform: none; 
    color: var(--color-text); 
    font-size: 1.8em;
    line-height: 1.2;
}

.story-image-placeholder {
    flex: 1; 
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--color-light-gray);
    margin: 60px 0;
}

/* --- Our Commitments Section (FIXED) --- */
.value-propositions {
    margin-top: 50px;
    text-align: center;
}

.value-propositions h3 {
    font-family: var(--font-heading); /* Keep main section title as Oswald */
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    padding: 30px;
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center; /* This centers the icon and text */
}

.value-card-icon {
    width: 180px;  /* <-- FIXED: Made 3x larger */
    height: 180px; /* <-- FIXED: Made 3x larger */
    object-fit: contain; /* Ensures the icon scales down properly */
    margin-bottom: 20px; 
}

.value-card h4 {
    font-family: var(--font-subheading); /* USE RALWAY */
    color: var(--color-primary);
    font-size: 1.6em;
    margin-bottom: 15px;
    text-transform: none; /* Make readable */
}

.value-card p {
    color: var(--color-text);
    font-size: 1em;
    line-height: 1.6;
}

/* ------------------------------------------- */
/* --- 6. CONTACT PAGE STYLES --- */
/* ------------------------------------------- */
.contact-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-top: 20px;
}

.contact-form-area {
    flex: 2;
    padding: 30px;
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info-area {
    flex: 1;
    padding: 30px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
}

.contact-form-area h3, .contact-info-area h3 {
    font-family: var(--font-subheading); /* USE RALWAY */
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 1.8em;
    text-transform: none; /* Make readable */
}

/* Form inputs (General) */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
}

input[type="text"], input[type="email"], input[type="url"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    font-size: 1em;
    color: var(--color-text);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 119, 68, 0.1); 
}

textarea {
    resize: vertical; 
}

#contact-form .button-primary {
    margin-top: 15px;
    width: 100%; 
}

/* Contact Info Styling */
.info-group {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-light-gray);
}

.info-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-group h4 {
    font-family: var(--font-subheading); /* USE RALWAY */
    color: var(--color-accent); /* Sunny Yellow Highlight */
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: none;
}

.button-map {
    background-color: var(--color-primary);
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    font-family: var(--font-body);
    transition: background-color 0.3s;
}

.button-map:hover {
    background-color: #005a30;
}

/* ------------------------------------------- */
/* --- 7. FOOTER STYLES (RALWAY FONT) --- */
/* ------------------------------------------- */
.site-footer {
    background-color: var(--color-primary); 
    color: white;
    padding: 50px 5%; 
    font-size: 0.9em;
    font-family: 'Raleway', sans-serif; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px; 
    padding-bottom: 40px;
}

.footer-info-block {
    flex-basis: 50%;
}

.footer-links-block {
    flex-basis: 50%;
    display: flex;
    justify-content: space-around;
}

.footer-brand-name {
    font-family: var(--font-heading); 
    font-size: 2em;
    color: white;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-block h4 {
    font-family: 'Raleway', sans-serif; 
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-tropical-teal); /* Tropical Teal Headers */
    margin-bottom: 15px;
    text-transform: none;
}

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

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Raleway', sans-serif;
}

/* Ensure ALL list items and contact text inherit the clean Raleway font */
.site-footer a, 
.contact-details p {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Raleway', sans-serif; 
}

/* ------------------------------------------- */
/* --- 8. PRODUCT DETAIL MODAL STYLES --- */
/* ------------------------------------------- */

/* The Modal (Background) */
.modal {
    visibility: hidden; /* Hidden by default */
    opacity: 0;         /* Fully transparent */
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
}

/* Modal Content/Box */
.modal-content {
    background-color: white; 
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid var(--color-light-gray);
    width: 80%; 
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.visible .modal-content {
    transform: scale(1);
}

/* The Close Button */
.close-button {
    color: var(--color-text);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* Modal Layout (Image and Info Side-by-Side) */
.modal-grid {
    display: flex;
    gap: 30px;
    padding-top: 20px;
}

.modal-image-area {
    flex-basis: 40%;
    overflow: hidden;
    border-radius: 5px;
}

#modal-plant-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.modal-info-area {
    flex-basis: 60%;
    padding-right: 15px;
}

.modal-info-area h3 {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-size: 2em;
    margin-bottom: 5px;
    text-transform: none; 
}

.species-label {
    font-style: italic;
    color: var(--color-accent); 
    margin-bottom: 15px;
}

.detail-description {
    margin-bottom: 20px;
}

.care-heading {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-size: 1.2em;
    font-weight: 700;
    margin: 20px 0 10px;
    text-transform: none; /* Make readable */
}

.care-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.care-item strong {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-subheading); /* USE RALWAY */
    text-transform: none; /* Make readable */
}

.modal-cta {
    font-size: 0.9em;
    padding: 10px 20px;
}

/* ------------------------------------------- */
/* --- 9. AUTHENTICATION (LOGIN/REGISTER) --- */
/* ------------------------------------------- */

.auth-page-content {
    padding: 60px 5%;
    max-width: 550px; 
    margin: 0 auto;
    text-align: center;
}

.auth-container {
    padding: 50px; 
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    border: 1px solid var(--color-accent); /* Sunny Yellow Border */
    margin-top: 30px;
}

.auth-panel {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.auth-panel.fading-out {
    opacity: 0;
    transform: scale(0.95);
}

.auth-panel h3 {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-size: 1.8em; 
    color: var(--color-primary);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none; /* Make readable */
}

/* Input Fields (Final Fix) */
.auth-panel .form-group {
    text-align: left; 
    margin-bottom: 25px; 
}

.auth-panel input[type="email"],
.auth-panel input[type="password"] {
    width: 100%; 
    padding: 15px; 
    font-size: 1.1em; 
    box-sizing: border-box; 
    height: auto; 
}

.auth-panel input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 68, 0.2); 
}

.auth-panel .button-primary {
    width: 100%;
    margin-top: 30px; 
    padding: 18px; 
    letter-spacing: 1.5px;
    font-size: 1.1em;
}

.auth-switch {
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid var(--color-light-gray); 
    font-size: 0.95em; 
    line-height: 1.5;
    color: var(--color-text);
}

.auth-switch a {
    color: var(--color-primary); 
    text-decoration: underline;
    font-weight: 600;
}

.auth-error {
    color: var(--color-vibrant-peach); 
    font-weight: 600;
    margin-top: 15px;
}

/* ------------------------------------------- */
/* --- 11. PROFILE PAGE STYLES --- */
/* ------------------------------------------- */

.profile-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-sidebar {
    flex: 1;
    padding: 30px;
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.profile-sidebar h3 {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: none; /* Make readable */
}

#profile-email {
    font-family: var(--font-body);
    font-size: 1.1em;
    color: var(--color-text);
    margin-bottom: 25px;
    word-wrap: break-word; 
}

#logout-button {
    width: 100%;
    background-color: var(--color-vibrant-peach); 
    color: white;
}

#logout-button:hover {
    background-color: #e65252; 
}

.profile-orders {
    flex: 2.5;
}

.profile-orders h3 {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-size: 1.5em;
    margin-bottom: 20px;
    text-transform: none; /* Make readable */
}

#order-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.order-card h4 {
    font-family: var(--font-subheading); /* USE RALWAY */
    font-size: 1.2em;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-transform: none; /* Make readable */
}

.order-card p {
    font-family: var(--font-body);
    margin-bottom: 5px;
}

.order-card .order-status {
    font-weight: 700;
    color: var(--color-tropical-teal);
}

/* ------------------------------------------- */
/* --- 12. MOBILE NAVIGATION MENU --- */
/* ------------------------------------------- */

/* --- 1. The Hamburger Button --- */
.mobile-menu-button {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3001; /* Must be on top of everything */
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- 2. The Mobile Menu Overlay --- */
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    
    background-color: var(--color-secondary); /* Light cream background */
    z-index: 3000;
    
    /* Hide it off-screen by default */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav-menu a {
    font-family: var(--font-heading);
    font-size: 2em;
    text-decoration: none;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* --- 3. The "Open" State (toggled by JS) --- */
.mobile-nav-menu.is-open {
    transform: translateX(0); /* Slide it on-screen */
}

/* Animate the hamburger button to an "X" */
.mobile-menu-button.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-button.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ------------------------------------------- */
/* --- 13. MEDIA QUERIES (MOBILE RESPONSIVENESS) --- */
/* ------------------------------------------- */

/* Adjustments for screens 768px wide and smaller (Tablets/Large Phones) */
@media (max-width: 768px) {
    
    /* --- HEADER & NAVIGATION (THE FIX) --- */
    .site-header {
        flex-direction: row; 
        padding: 15px 5%;
        border-bottom-width: 1px;
    }

    /* Hide the desktop nav links */
    .desktop-nav {
        display: none;
    }
    
    /* Show the hamburger button */
    .mobile-menu-button {
        display: block;
    }
    
    /* --- END HEADER FIX --- */

    /* Hero Section */
    .hero-section {
        height: 350px;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.5em; 
    }

    /* Category Showcase */
    .category-grid {
        grid-template-columns: 1fr; /* Stack categories vertically */
    }

    /* Inventory Controls */
    .inventory-controls {
        flex-direction: column; 
        gap: 15px;
        padding-bottom: 15px;
    }

    #search-input {
        width: 100%; 
    }
    
    /* About Page Layout */
    .story-layout {
        flex-direction: column; 
        gap: 30px;
    }

    .story-image-placeholder {
        min-height: 250px; 
    }

    .values-grid {
        grid-template-columns: 1fr; 
    }

    /* Contact Page Layout */
    .contact-container {
        flex-direction: column; 
        gap: 30px;
    }
    
    /* Footer Layout */
    .footer-container {
        flex-direction: column; 
        gap: 30px;
    }
    
    .footer-links-block {
        justify-content: space-between; 
    }
    
    /* Modal Layout */
    .modal-content {
        width: 90%; 
        margin-top: 20px;
        padding: 20px;
    }
    
    .modal-grid {
        flex-direction: column;
    }
    
    .care-details-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }

    /* Profile Page Layout */
    .profile-container {
        flex-direction: column;
    }
}

/* Adjustments for screens 480px wide and smaller (Small Phones) */
@media (max-width: 480px) {
    /* Global Spacing */
    main, .page-content {
        padding: 30px 4%;
    }
    
    /* Headings */
    h2 {
        font-size: 1.8em;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2em;
    }
    
    /* Category Showcase */
    .category-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Navigation */
    .footer-links-block {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .care-details-grid {
        grid-template-columns: 1fr; 
    }
}

/* ------------------------------------------- */
/* --- 13. MODAL UPDATES & TOAST NOTIFICATION --- */
/* ------------------------------------------- */

/* --- Modal Button/Quantity Styling --- */
.quantity-selector {
    margin-top: 20px;
    text-align: left;
}

.quantity-selector label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1em;
    margin-right: 10px;
}

#qty-input {
    font-family: var(--font-body);
    font-size: 1.1em;
    width: 80px;
    padding: 8px;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
}

.modal-button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-cta {
    font-size: 0.9em;
    padding: 12px 25px;
    width: 100%; 
}

/* --- Toast Notification Styling --- */
#toast-notification {
    visibility: hidden; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); /* Center it */
    background-color: var(--color-tropical-teal); /* Use the nice teal color */
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    z-index: 4000;
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
}

/* This class will be added by JavaScript */
#toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slide it up */
}