/* --- PLANT DETAIL MODAL (GLASSY CARD) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.plant-modal-content.modal-content {
    position: relative;
    width: min(960px, 94%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px 26px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.modal-image-area {
    flex: 1;
}

.modal-image-area .plant-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    display: block;
}

.modal-info-area {
    flex: 1.4;
}

.modal-plant-name {
    font-family: var(--font-heading);
    font-size: 1.9em;
    margin-bottom: 6px;
    color: var(--color-primary);
    letter-spacing: 0.04em;
}

.species-label {
    font-style: italic;
    font-size: 0.98em;
    color: #4c5a68;
    margin-bottom: 10px;
}

.detail-description {
    font-family: var(--font-cute);
    font-size: 0.95em;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: #3f4d5b;
    margin-bottom: 12px;
}

.modal-divider {
    border: 0;
    height: 1px;
    margin: 14px 0 16px;
    background: linear-gradient(90deg, transparent, rgba(0, 119, 68, 0.35), transparent);
}

.care-heading {
    font-family: var(--font-subheading);
    font-size: 1.1em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.care-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin-bottom: 10px;
}

.care-item {
    font-family: var(--font-cute);
    font-size: 0.9em;
    color: #3f4d5b;
}

.care-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 2px;
}

.modal-close {
    appearance: none;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 20px;
    color: #2c3e50;
    transition: transform 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    transform: scale(1.05);
    color: var(--color-primary);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .plant-modal-content.modal-content {
        width: 94%;
        padding: 18px 16px 20px;
    }
    .modal-grid {
        flex-direction: column;
    }
    .modal-image-area .plant-image {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .plant-modal-content.modal-content {
        padding: 16px 12px 18px;
    }
    .modal-plant-name {
        font-size: 1.5em;
    }
}
/* ------------------------------------------- */
/* --- 1. GLOBAL STYLES & TYPOGRAPHY (SUMMER VIBES) --- */
/* ------------------------------------------- */
:root {
    /* Base Colors - NEW SUMMER PALETTE INTEGRATED */
    --color-primary: #9de26f;     /* Crisp, Modern Forest Green */
    --color-secondary: #FCFCF4;   /* Very Light Cream/White Background */
    --color-text: #2c3e50;
    --color-light-gray: #e9ecef;
    --color-header-name: #90d180;
    
    /* THEME 7: SUMMER ACCENTS */
    --color-sunny-yellow: #ffb6c1;  /* 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: 'Raleway', '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 */
    --font-cute: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}

* {
    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);
}

html {
    scroll-behavior: smooth;
}

/* --- FONT HIERARCHY FIX --- */
/* Main titles (h1, h2) get the soft, cute Raleway font */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0.04em;
}

/* 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: #fbf9da; 
    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);
    font-family: var(--font-cute);
}

.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: 1.02em;
    font-weight: 600;
    font-family: var(--font-cute);
    letter-spacing: 0.05em;
    text-transform: none;
    padding: 10px 18px;
    border-radius: 999px;
    transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}


.desktop-nav a:hover {
    color: var(--color-primary);
    background-color: rgba(255, 182, 39, 0.16); /* soft sunny-yellow pill */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: var(--color-tropical-teal);
}

/* --- Desktop nav: Inventory dropdown --- */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-has-dropdown > .nav-link-with-caret {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item-has-dropdown > .nav-link-with-caret::after {
    content: "▾";
    font-size: 0.7em;
    margin-top: 1px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: none;
    flex-direction: column;
    z-index: 1500;
}

.nav-item-has-dropdown:hover .nav-dropdown {
    display: flex;
}

.nav-item-has-dropdown:focus-within .nav-dropdown {
    display: flex;
}

.nav-dropdown a {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    text-transform: none;
    white-space: nowrap;
}

.nav-dropdown a + a {
    margin-top: 4px;
}

.nav-dropdown a:hover {
    background-color: rgba(255, 182, 39, 0.14);
    box-shadow: none;
    color: var(--color-primary);
}

/* On touch devices where hover can be weird, keep dropdown basic */
@media (max-width: 1024px) {
  .nav-dropdown {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }
}

/* ------------------------------------------- */
/* --- 3. HERO SECTION --- */
/* ------------------------------------------- */
.hero-section {
    position: relative;
    height: 480px; /* a bit taller so more of the plants show */
    background-image: url("images/Fittonia Mix5A.jpg");
    background-size: cover; /* keep it full-bleed but not crazy zoomed */
    background-position: center 35%; /* nudge framing so more foliage is visible */
    background-repeat: no-repeat;
    background-color: #184f2b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); /* soft drop shadow under hero */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.45)
    ); /* soft top-to-bottom gradient for depth + readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 20px;
    animation: heroFadeUp 0.75s ease-out both; /* subtle entrance animation */
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 35px;
    color: #f0f0f0;
    font-family: var(--font-body);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 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: 600;
    text-transform: none;
    letter-spacing: 0.08em;
    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-subheading);
}

.button-secondary {
    background-color: var(--color-tropical-teal);
    color: white;
    display: inline-block;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px; 
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.08em;
    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-subheading);
}

.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: #ffccb3; /* 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-header-name);
}

.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;
    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);
}

/* ----- FILTER CHIPS ROW (POPULAR GENERA + POT SIZE) ----- */

.filter-chips {
    max-width: 1200px;
    margin: -20px auto 32px auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-family: var(--font-cute);
}

.chip {
    border: 1px solid var(--color-light-gray);
    background-color: #ffffff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.88em;
    cursor: pointer;
    transition: background-color 0.2s ease, 
                color 0.2s ease, 
                box-shadow 0.2s ease, 
                border-color 0.2s ease,
                transform 0.1s ease;
    white-space: nowrap;
    font-family: var(--font-cute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a5765;
}

.chip:hover {
    background-color: rgba(255, 182, 39, 0.1);
    border-color: rgba(255, 182, 39, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

.chip-active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(0, 119, 68, 0.25);
}

.chip-genus {
    /* reserved for genus-specific tweaks later if needed */
}

.chip-size {
    /* reserved for size-specific tweaks later if needed */
}

.chip-divider {
    width: 1px;
    height: 22px;
    background-color: var(--color-light-gray);
    margin: 0 4px;
}

/* Make chips wrap nicely on small screens */
@media (max-width: 768px) {
    .filter-chips {
        margin-top: -10px;
        padding-inline: 5%;
    }
}

#search-input {
    width: 400px;
}

#search-input, #category-filter {
    padding: 12px 14px;
    border: 1px solid rgba(17, 59, 34, 0.14);
    border-radius: 12px;
    font-size: 1em;
    font-family: var(--font-heading);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

#search-input::placeholder {
    color: #7a8a7d;
}

#search-input:focus,
#category-filter:focus {
    border-color: var(--color-primary);
    box-shadow: 0 10px 26px rgba(0, 119, 68, 0.18);
    outline: none;
    transform: translateY(-1px);
}

#category-filter {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23007744' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) 50%;
    background-size: 14px 14px;
    padding-right: 38px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    justify-content: center;
}

/* --- Inventory List View (inventory-list.html) --- */

.inventory-list-title {
    text-align: center;
    margin: 16px auto 18px;
    letter-spacing: 0.08em;
}

.inventory-list-filters {
    max-width: 1100px;
    margin: 14px auto 32px;
    padding: 0 5%;
    text-align: center;
}

.inventory-list-search {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.inventory-list-search input {
    width: min(520px, 100%);
    padding: 10px 12px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.inventory-list-intro {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 0 5%;
    font-family: var(--font-cute);
    color: #3f4d5b;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-align: left;
}

#inventory-list {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 0 5%;
}

/* Each row acts like a soft little spreadsheet line */
.inventory-list-row {
    display: grid;
    grid-template-columns: minmax(0, 3.5fr) minmax(0, 1.5fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 12px 18px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    font-family: var(--font-cute);
    transition: box-shadow 0.18s ease, background-color 0.18s ease;
    cursor: pointer;
    position: relative;
    will-change: box-shadow, background-color;
}

.inventory-list-row:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    background-color: #fffdf6;
}

/* Main left cluster: thumbnail + text */
.inventory-list-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.inventory-list-thumb-wrap {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6f8;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.inventory-list-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inventory-list-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.inventory-list-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.82rem;
    color: #6c7a89;
}

.dot-separator {
    color: #c0c7cf;
}

/* Stock + status column */
.inventory-list-stock {
    font-size: 0.85rem;
    font-family: var(--font-cute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f4858;
}

.inventory-list-stock.list-status-in-stock {
    color: var(--color-tropical-teal);
}

.inventory-list-stock.list-status-limited {
    color: var(--color-vibrant-peach);
}

.inventory-list-stock.list-status-seasonal {
    color: #b47c00;
}

/* Price column */
.inventory-list-price {
    font-family: var(--font-cute);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-tropical-teal);
    text-align: right;
    white-space: nowrap;
}

/* Actions column (button) */
.inventory-list-actions {
    display: flex;
    justify-content: flex-end;
}

.inventory-list-actions .button-secondary {
    padding: 9px 18px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-align: center;
}

/* Smaller screens: stack nicely */
@media (max-width: 900px) {
    .inventory-list-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .inventory-list-main {
        align-items: flex-start;
    }

    .inventory-list-stock,
    .inventory-list-price,
    .inventory-list-actions {
        text-align: left;
    }

    .inventory-list-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    #inventory-list {
        padding: 0 4%;
    }

    .inventory-list-row {
        padding: 10px 12px;
    }

    .inventory-list-thumb-wrap {
        width: 60px;
        height: 60px;
    }

    .inventory-list-name {
        font-size: 0.98rem;
    }
}

.plant-card {
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
    position: relative;
    cursor: pointer;
    z-index: 10;
}

.plant-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.plant-card .plant-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #fff;
    transition: transform 0.45s ease, filter 0.35s ease;
}

/* Slightly reduce image height when JS detects mobile */
body.is-mobile-tight .plant-card .plant-image {
  height: 170px;
}

/* Mobile-only plant card polish (JS toggles body.is-mobile) */
body.is-mobile .plant-card {
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Disable hover lift on touch devices */
body.is-mobile .plant-card:hover {
  transform: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

body.is-mobile .plant-card:hover .plant-image {
  transform: none;
  filter: none;
}

/* Make tap feel responsive */
body.is-mobile .plant-card:active {
  transform: scale(0.99);
}

body.is-mobile .plant-info {
  padding: 10px 10px 12px;
  text-align: left;
}

body.is-mobile .plant-name {
  font-size: 1.05em;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 2px;
}

body.is-mobile .plant-species {
  font-size: 0.9em;
  margin-bottom: 6px;
  opacity: 0.9;
}

body.is-mobile .plant-price {
  font-size: 1.2em;
  margin: 6px 0 0;
}

/* Clamp description so 2-per-row stays clean (instead of huge cards) */
body.is-mobile .plant-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9em;
  line-height: 1.55;
  margin-top: 8px;
}

/* Badges look nicer on mobile */
body.is-mobile .status-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
}

.plant-card:hover .plant-image {
    transform: scale(1.06);
    filter: brightness(1.07);
}

.plant-info {
    padding: 18px 16px 22px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #fdfdf8);
}

.plant-name {
    font-size: 1.35em;
    color: #bacca1;
    font-family: var(--font-cute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.plant-species {
    font-style: italic;
    color: #bacca1;
    margin-bottom: 10px;
    font-size: 0.95em;
    font-family: var(--font-cute);
    letter-spacing: 0.02em;
}

.plant-price {
    font-size: 1.55em;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-cute);
    margin-top: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.plant-description {
    font-family: var(--font-cute);
    font-size: 0.95em;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: #3f4d5b; /* match about/story text color */
}

/* Modal plant description text */
#modal-desc {
    font-family: var(--font-cute);
    font-size: 0.95em;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: #3f4d5b;
}


.plant-category {
    font-family: var(--font-cute);
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c7a89;
}

/* --- Admin inline price editor (modal) --- */
.admin-modal-prices {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #fffaf0);
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    font-family: var(--font-cute);
}

.admin-modal-prices h4 {
    margin: 0 0 10px;
    font-family: var(--font-subheading);
    font-size: 1em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.admin-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.admin-price-row label {
    font-family: var(--font-cute);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6c7a89;
    flex: 1;
}

.admin-price-row input[type="number"] {
    flex: 0 0 130px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-light-gray);
    font-family: var(--font-cute);
    font-size: 0.9rem;
    text-align: center;
    background-color: #fffef8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

.admin-price-row input[type="number"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 68, 0.16);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.admin-modal-prices .admin-price-save-modal {
    margin-top: 14px;
    width: 100%;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 10px 20px;
}

/* 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: #d7e6c2; /* 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 */
}

/* In-stock quantity pill ("In stock now") */
.stock-qty,
.modal-stock-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    margin-top: 6px;
    border-radius: 999px;
    background: rgba(0, 119, 68, 0.06);
    border: 1px solid rgba(0, 119, 68, 0.18);
    font-family: var(--font-cute);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2f4858;
}

/* Tiny dot before the text for a subtle indicator */
.stock-qty::before,
.modal-stock-qty::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-tropical-teal);
}

/* When stock is getting low, let JS toggle this class for a warmer warning look */
.stock-qty.is-low,
.modal-stock-qty.is-low {
    background: rgba(255, 126, 107, 0.08);
    border-color: rgba(255, 126, 107, 0.4);
    color: #c0392b;
}

.stock-qty.is-low::before,
.modal-stock-qty.is-low::before {
    background-color: var(--color-vibrant-peach);
}

/* Pagination controls under inventory */
.pagination-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-controls button {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-light-gray);
    background-color: white;
    font-family: var(--font-body);
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.pagination-controls button:hover:not(:disabled) {
    background-color: var(--color-secondary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pagination-controls button.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ------------------------------------------- */
/* --- 5. ABOUT US PAGE STYLES (FIXED) --- */
/* ------------------------------------------- */
.page-title {
    text-align: center;
    font-size: 2.6em;
    color: var(--color-primary);
    margin-bottom: 38px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
}

.page-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-tropical-teal));
    margin: 10px auto 0;
}

.story-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 55px;
    padding: 28px 32px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.story-text {
    flex: 2;
    font-size: 1.02em;
    padding-right: 20px;
    font-family: var(--font-cute);
    font-weight: 400;
    color: #3f4d5b;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

.story-text p {
    font-family: var(--font-cute);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.story-text h3 {
    font-family: var(--font-subheading);
    font-weight: 600;
    text-transform: none;
    color: var(--color-primary);
    font-size: 1.9em;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.story-text p + p {
    margin-top: 10px;
}

.story-image-placeholder {
    flex: 1.1;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    background: radial-gradient(circle at top left, rgba(255, 182, 39, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(40, 167, 152, 0.25), transparent 55%);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 119, 68, 0.35), transparent);
    margin: 55px auto;
    max-width: 720px;
}

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

.value-propositions h3 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--color-primary);
    margin-bottom: 26px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none;
}

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

.value-card {
    padding: 26px 24px 24px;
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 60%;
    bottom: -40%;
    left: -10%;
    background: radial-gradient(circle at top, rgba(0, 119, 68, 0.06), transparent 60%);
    pointer-events: none;
}

.value-card-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.value-card h4 {
    font-family: var(--font-subheading);
    color: var(--color-primary);
    font-size: 1.3em;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}

.value-card p {
    color: #475261;
    font-size: 0.98em;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-family: var(--font-cute);
    letter-spacing: 0.03em;
}

@media (max-width: 900px) {
    .story-layout {
        flex-direction: column;
        padding: 22px 20px;
    }

    .story-image-placeholder {
        order: -1;
        width: 100%;
    }

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

/* ------------------------------------------- */
/* --- 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);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-area {
    flex: 1;
    padding: 30px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-area h3, .contact-info-area h3 {
    font-family: var(--font-cute);
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 1.8em;
    text-transform: none; /* Make readable */
}

.contact-form-area p,
.contact-info-area p,
.contact-container label,
.contact-container input,
.contact-container textarea {
    font-family: var(--font-cute);
    letter-spacing: 0.02em;
}

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

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

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: inherit;
    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 {
    flex-shrink: 0; /* Prevents the footer from being squished */
    background-color: #fbf9da; 
    color: var(--color-accent);
    padding: 50px 5%; 
    font-size: 0.9em;
    font-family: 'Raleway', sans-serif; 
}
.site-footer {
    background-color: #fbf9da; 
    color: var(--color-accent);
    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: #9de26f;
    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: #9de26f; /* 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: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Raleway', sans-serif; 
}

/* ------------------------------------------- */
/* --- 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);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.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);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.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: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 59, 34, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 10px;
    z-index: 3001; /* Must be on top of everything */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

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

.mobile-menu-button:hover {
    background: rgba(17, 59, 34, 0.08);
    border-color: rgba(17, 59, 34, 0.22);
}

.mobile-menu-button:active {
    transform: translateY(1px);
}

/* --- 2. The Mobile Menu Overlay --- */
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 84px 22px 28px 22px;

    background: #f9f7ef;
    z-index: 3000;
    border-left: 1px solid rgba(17, 59, 34, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8%);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.mobile-nav-menu a {
    font-family: var(--font-heading);
    font-size: 1.35em;
    text-decoration: none;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0.4px;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(17, 59, 34, 0.12);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.mobile-nav-close {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(17, 59, 34, 0.14);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.mobile-nav-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary);
}

.mobile-nav-close span:nth-child(1) {
    transform: rotate(45deg);
}
.mobile-nav-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
    border-color: rgba(17, 59, 34, 0.22);
    background: #ffffff;
}

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

.mobile-nav-menu.is-open a {
    animation: menu-pop 0.4s ease forwards;
}

.mobile-nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    border-color: rgba(17, 59, 34, 0.18);
    background: #ffffff;
}

/* 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);
}

body.mobile-nav-open {
    overflow: hidden;
}

@keyframes menu-pop {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------- */
/* --- 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: repeat(2, 1fr);
        gap: 14px;
    }

    .category-card img {
        height: 180px;
    }

    .category-card-title {
        font-size: 1.2em;
        bottom: 12px;
        left: 12px;
    }

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

    #search-input {
        width: 100%; 
    }

    /* Inventory Grid responsive columns */
    .inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* 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;
    }

    /* Inventory Grid on small phones */
    body.is-mobile .inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 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 */
}
/* --- CHECKOUT FONT MATCH (ABOUT US CUTE FONT) --- */
.checkout-grid,
.checkout-grid *,
.summary-card,
.summary-card *,
.checkout-form,
.checkout-form * {
    font-family: var(--font-cute);
    letter-spacing: 0.02em;
}
.checkout-intro {
    padding: 12px 16px;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #ffffff, #f9f6ec);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.checkout-title {
    font-family: var(--font-heading);
    margin: 0 0 6px;
    color: var(--color-primary);
    letter-spacing: 0.04em;
}
.checkout-subtitle {
    margin: 0;
    font-family: var(--font-cute);
    color: var(--color-text);
}
/* ==========================
   CHECKOUT GRID + CUTE LINES
   ========================== */
.checkout-grid { display:grid; grid-template-columns: 1.6fr 1fr; gap:28px; align-items:start; }
.checkout-right { position: sticky; top: 100px; }

.admin-card,
.summary-card {
    background: linear-gradient(135deg, #ffffff, #fafaf3);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 18px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.admin-card:hover,
.summary-card:hover,
.value-card:hover,
.order-card:hover,
.profile-sidebar:hover,
.contact-form-area:hover,
.contact-info-area:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    background: linear-gradient(135deg, #ffffff, #fdf7e8);
}
.panel-heading { font-family: var(--font-cute); margin:0 0 12px; color: var(--color-primary); letter-spacing: 0.03em; }

/* --- Admin filters & form controls --- */
.admin-card label {
  font-family: var(--font-cute);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c7a89;
  margin-bottom: 4px;
  display: inline-block;
}

.admin-card input[type="text"],
.admin-card input[type="email"],
.admin-card input[type="number"],
.admin-card input[type="search"],
.admin-card select,
.admin-card textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-light-gray);
  background-color: #ffffff;
  font-family: var(--font-cute);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.08s ease;
}

.admin-card textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 80px;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 119, 68, 0.15);
  background-color: #fffef8;
  transform: translateY(-1px);
}

/* Cute dropdown arrow for admin selects */
.admin-card select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%), 
                    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.admin-card select::-ms-expand {
  display: none;
}

/* Cute cart lines with thumbnail */
.cart-items-list { display:grid; gap:12px; }
.cart-line { display:grid; grid-template-columns: 60px 1fr auto auto 36px; align-items:center; gap:12px; padding:12px 14px; background:#fff; border:1px solid var(--color-light-gray); border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.cart-line img.thumb { width:60px; height:60px; object-fit:cover; border-radius:8px; }
.cart-line .title { font-weight:800; font-family: var(--font-cute); letter-spacing: 0.02em; }
.cart-line .price { font-weight:700; text-align:right; min-width:90px; font-family: var(--font-cute); }
.cart-line .qty { display:flex; align-items:center; gap:6px; }
.cart-line .qty input { width:72px; border-radius:8px; border:1px solid var(--color-light-gray); padding:6px 8px; }
.cart-line .remove { background:transparent; border:none; cursor:pointer; font-weight:700; font-size:18px; padding:4px 8px; color: var(--color-text); }
.cart-line .remove:hover { color: var(--color-primary); }

.cart-totals {
    text-align: right;
    font-size: 1.1rem;
    margin-top: 10px;
    /* let the line wrap nicely on smaller screens */
    white-space: normal;
}

/* Keep each label + amount together and add space between groups */
.cart-totals .total-label,
.cart-totals .total-amount {
    display: inline-block;
    vertical-align: baseline;
}

/* Space after each amount so the next label doesn't feel glued on */
.cart-totals .total-amount {
    margin-right: 40px;
}

/* No extra margin after the final total amount */
.cart-totals .total-amount:last-of-type {
    margin-right: 0;
}

.total-label {
    font-weight: 700;
}

.total-amount {
    font-family: var(--font-cute);
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

/* Highlight shipping line in checkout + review */
#shipping-line,
#review-shipping-line {
    color: var(--color-tropical-teal);
}

#shipping-line .total-label,
#review-shipping-line .total-label {
    font-weight: 700;
}

/* Form tidy */
.checkout-form .form-row { display:flex; flex-direction:column; gap:6px; margin-top:12px; }
.checkout-form input, .checkout-form textarea { border:1px solid var(--color-light-gray); border-radius:10px; padding:10px 12px; background:#fff; font-family: var(--font-cute); }

@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-right { position: static; }
  .cart-line { grid-template-columns: 48px 1fr auto; }
  .cart-line .qty { grid-column: 2 / span 2; justify-content:flex-end; }
}


/* ===== Modal open/close motion ===== */
#plant-modal.modal-overlay { 
  opacity: 0; 
  transition: opacity .25s ease; 
  backdrop-filter: blur(2px);
}
#plant-modal.modal-overlay.is-visible { 
  opacity: 1; 
}
#plant-modal .modal-content { 
  transform: translateY(8px) scale(.98); 
  opacity: 0; 
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease; 
}
#plant-modal.is-visible .modal-content { 
  transform: translateY(0) scale(1); 
  opacity: 1; 
}

/* ===== Plant card enter animation ===== */
.plant-card.anim-enter { opacity: 0; transform: translateY(8px) scale(.98); }
.plant-card.anim-enter.anim-in { opacity: 1; transform: translateY(0) scale(1); transition: opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1); }

/* ===== Admin panel helpers ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-cute);
  font-size: 0.9rem;
}
.admin-table thead tr {
  background: linear-gradient(135deg, #fdf7e8, #f1f8ff);
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--color-light-gray);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.admin-table th {
  font-family: var(--font-subheading);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.8rem;
}
.admin-table tbody tr:nth-child(odd) {
  background-color: #fcfcff;
}
.admin-table tbody tr:hover {
  background-color: #f4f9ff;
}
.items-ellipsis {
  max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-pagination {
  margin-top: 12px; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
}

.admin-pagination span {
  font-family: var(--font-cute);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c7a89;
}
.admin-pagination button {
  min-width: 90px;
  font-size: 0.8rem;
}

/* Bulk actions bar above admin orders table */
.admin-bulk-bar {
  margin: 12px 0 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-bulk-bar strong {
  font-family: var(--font-cute);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.admin-bulk-bar button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Smaller pill buttons inside admin cards */
.admin-card .button-primary,
.admin-card .button-secondary,
.admin-card .button-ghost {
  font-size: 0.8rem;
  padding: 9px 18px;
  letter-spacing: 0.08em;
  border-radius: 999px;
}

.admin-card .button-secondary {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.admin-card .button-primary:hover,
.admin-card .button-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* Checkbox column – keep it tight */
.admin-table th:first-child,
.admin-table td:first-child {
  width: 32px;
  text-align: center;
}

.admin-table input.order-select {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* ------------------------------------------- */
/* --- ADMIN ORDERS: TRACKING & LABEL UI --- */
/* ------------------------------------------- */

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Tracking badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
  font-family: var(--font-cute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-track:hover {
  background: rgba(0, 119, 68, 0.06);
}

/* Status pills for admin status column */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-cute);
}

.status-pill.pending {
  background: #fff3cd;
  color: #795500;
}

.status-pill.shipped {
  background: #e7f5ff;
  color: #0b7285;
}

.status-pill.fulfilled {
  background: #e6ffed;
  color: #0b8a20;
}

.status-pill.cancelled {
  background: #ffe3e3;
  color: #c92a2a;
}

/* Ghost style for label download button (smaller pill) */
.button-ghost {
  background: transparent;
  border: 1px solid var(--color-light-gray);
  color: inherit;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* --- RGH ORDER FORM --- */

/* Apply cute font to all RGH order text */
.page-content,
.page-content p,
.page-content label,
.page-content input,
.page-content textarea,
.page-content select,
.page-content button,
#rgh-order-form,
#rgh-order-form * {
    font-family: var(--font-cute) !important;
    letter-spacing: 0.02em;
}

.order-header-note {
    margin-bottom: 22px;
    font-size: 0.96em;
    color: var(--color-text);
    padding: 10px 14px;
    border-radius: 12px;
    border-left: 5px solid var(--color-tropical-teal);
    background: linear-gradient(135deg, #ffffff, #fffaf0);
    font-family: var(--font-cute);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-header-note::before {
    content: "📝";
    font-size: 1.2em;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.customer-info-grid .form-group {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.customer-info-grid .form-group label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c7a89;
    font-family: var(--font-cute);
}

.customer-info-grid .form-group input,
.customer-info-grid .form-group textarea {
    border-radius: 8px;
    border-color: rgba(0, 0, 0, 0.05);
    background: #fcfcff;
}

/* Make the order area scroll horizontally on small screens like a wide sheet */
#order-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #fdfdfd, #f7fbff);
    padding: 10px;
}

/* Single big sheet-style table */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
    background-color: #ffffff;
    font-family: var(--font-body);
}

.order-table th,
.order-table td {
    border: 1px solid #e0e0e0;
    padding: 7px 8px;
    vertical-align: middle;
}

.order-table th {
    background: linear-gradient(135deg, #fdf7e8, #f1f8ff);
    font-weight: 600;
    text-align: left;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    border-bottom: 2px solid #d0d0d0;
    font-family: var(--font-cute);
}

.order-table th:nth-child(1) { text-align: right; }
.order-table th:nth-child(2) { text-align: center; }

/* Light zebra striping + hover effect for readability */
.order-table tbody tr:nth-child(odd):not(.section-row) {
    background-color: #fcfcff;
}

.order-table tbody tr:hover:not(.section-row) {
    background-color: #f4f9ff;
}

/* Section rows (ON SPECIAL, 4" PLANTS, etc.) */
.section-row td {
    background: linear-gradient(90deg, rgba(0,119,68,0.12), rgba(255,182,39,0.08));
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.06em;
    font-family: var(--font-cute);
    font-size: 0.8rem;
    color: #1f2d3d;
    position: relative;
    padding-left: 16px;
}

.section-row td::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: var(--color-primary);
}

.order-table .qty-avail {
    text-align: right;
    font-weight: 700;
    color: #2f4858;
    font-variant-numeric: tabular-nums;
}

.order-table .rgh-code {
    font-family: var(--font-cute);
    font-size: 0.82rem;
    color: #6c7a89;
}

.order-table .rgh-desc {
    font-size: 0.88rem;
}

.order-table .rgh-sleeved,
.order-table .rgh-each {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.order-table input[type="number"] {
    width: 100%;
    padding: 4px 6px;
    font-size: 0.9rem;
    border: 1px solid var(--color-light-gray);
    box-sizing: border-box;
    background-color: #fffef8;
    border-radius: 20px;
    text-align: center;
    font-family: var(--font-body);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}

.order-table input[type="number"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 68, 0.18);
    background-color: #ffffff;
    transform: translateY(-1px);
}

/* Position and style the RGH order submit button nicely */
#rgh-order-form .button-primary {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 230px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    font-family: var(--font-cute);
}

#rgh-order-form .button-primary::after {
    content: "✨";
    margin-left: 8px;
    font-size: 1rem;
}

.client-header {
  background: linear-gradient(90deg, rgba(0, 119, 68, 0.08), rgba(255, 182, 39, 0.12));
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 6px 0;
  font-family: var(--font-subheading);
}

.client-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.client-header-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #2f4858;
}

.client-header-links a {
  margin-left: 16px;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-primary);
  font-size: 0.86rem;
}

.client-header-links a:hover {
  text-decoration: underline;
}

/* --- Admin tab bar (Orders / Customers / Products) --- */
.admin-card-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.admin-card-tabs button {
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-cute);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- SOCIAL / LINKTREE STYLE PAGE --- */
.social-page-wrapper {
  max-width: 520px;
  margin: 110px auto 70px;
  padding: 28px 24px 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #fdfdf6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.social-page-header {
  margin-bottom: 22px;
}

.social-page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.1em;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.social-page-header p {
  font-family: var(--font-cute);
  color: #475261;
  font-size: 0.98em;
  letter-spacing: 0.025em;
}

.social-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  border: 3px solid #ffffff;
}

.linktree-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-pill {
  display: block;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf7e8, #f5fbf8);
  border: 1px solid #e0d8c5;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-cute);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.link-pill span {
  font-family: inherit;
}

.link-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.12);
  background: #fffaf1;
  color: var(--color-tropical-teal);
}

@media (max-width: 768px) {
  .social-page-wrapper {
    margin: 100px 18px 50px;
    padding: 22px 18px 24px;
    border-radius: 18px;
  }
}

/* --- SOCIAL / LINKTREE PAGE — RIVERSIDE AESTHETIC MATCH --- */

.social-page-wrapper {
  max-width: 600px;
  margin: 110px auto 70px;
  padding: 40px 36px 50px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #fafaf2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Faint leaf watermark in the background */
.social-page-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background-image: url("images/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.09;
  filter: blur(1px);
  pointer-events: none;
}

.social-page-header {
  margin-bottom: 30px;
}

.social-page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.3em;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.social-page-header p {
  font-family: var(--font-cute);
  font-size: 1.05em;
  color: #475261;
  letter-spacing: 0.02em;
}

/* Avatar */
.social-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Linktree links */
.linktree-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.link-pill {
  display: block;
  padding: 18px 28px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--color-light-gray);
  text-decoration: none;
  font-family: var(--font-cute);
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, 
              box-shadow 0.22s ease, 
              background-color 0.22s ease,
              color 0.22s ease,
              border-color 0.22s ease;
}

/* Hover matches your inventory/modals/buttons */
.link-pill:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 182, 39, 0.15);
  border-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

/* Mobile */
@media (max-width: 768px) {
  .social-page-wrapper {
    margin: 90px 18px 40px;
    padding: 32px 24px 40px;
  }

  .link-pill {
    font-size: 1em;
    padding: 16px 24px;
  }
}
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

.page-content > h2 {
  font-family: var(--font-heading);
  font-size: 2.1em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

.page-content > h2 {
  font-family: var(--font-heading);
  font-size: 2.1em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* --- Admin modals form spacing --- */
.admin-modal .admin-card label {
  margin-bottom: 4px;
}

.admin-modal .admin-card {
  background: linear-gradient(135deg, #ffffff, #fafaf3);
  box-shadow: none;
  border-radius: 16px;
}
/* ===========================================
   FINAL BOSS: CRAWLABLE PRODUCT PAGE STYLES
   Used by /p/<slug>--<id>.html pages
=========================================== */

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

.breadcrumbs {
  max-width: 1200px;
  margin: 12px auto 18px;
  padding: 0 5%;
  font-family: var(--font-cute);
  font-size: 0.92rem;
  color: #6c7a89;
  letter-spacing: 0.02em;
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .crumb-sep {
  margin: 0 8px;
  color: #c0c7cf;
}

.product-shell {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  padding: 22px;
  align-items: start;
}

.product-gallery {
  position: relative;
}

.product-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
  display: block;
}

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: var(--font-cute);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.92);
}

.product-badge.in-stock { color: var(--color-tropical-teal); }
.product-badge.limited { color: var(--color-vibrant-peach); }
.product-badge.seasonal { color: #b47c00; }

.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 2.2em;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin: 0;
}

.product-subtitle {
  margin: 0;
  font-family: var(--font-cute);
  color: #4c5a68;
  font-style: italic;
  font-size: 1.02em;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-light-gray);
  background: linear-gradient(135deg, #ffffff, #fdfdf8);
  font-family: var(--font-cute);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5765;
}

.product-price {
  font-family: var(--font-cute);
  font-size: 1.8em;
  font-weight: 900;
  color: var(--color-tropical-teal);
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.product-desc {
  font-family: var(--font-cute);
  font-size: 1.02em;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #3f4d5b;
  margin-top: 4px;
}

.product-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-cta-row .button-primary,
.product-cta-row .button-secondary {
  padding: 12px 18px;
  border-radius: 14px;
}

.product-details {
  padding: 0 22px 22px;
}

.product-divider {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 68, 0.35), transparent);
}

.product-section {
  padding: 18px 0;
}

.product-section h2 {
  text-align: left;
  margin: 0 0 12px;
  font-size: 1.5em;
}

.product-care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-care-card {
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #ffffff, #fffaf0);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.product-care-card .care-label {
  margin-bottom: 4px;
}

.product-related {
  padding: 18px 0 8px;
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-related-card {
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.product-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.product-related-card .rel-info {
  padding: 10px 12px 12px;
}

.product-related-card .rel-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-related-card .rel-meta {
  margin-top: 4px;
  font-family: var(--font-cute);
  font-size: 0.82rem;
  color: #6c7a89;
}

/* Responsive product pages */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 420px; }
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-care-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-page { padding: 30px 4%; }
  .product-image { height: 320px; }
  .product-title { font-size: 1.7em; }
}

/* ===========================================
   MOBILE UI POLISH (DROP-IN PATCH)
   Paste at the VERY BOTTOM of styles.css
=========================================== */

/* Better iPhone spacing + smoother taps */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  padding-bottom: env(safe-area-inset-bottom);
}
a, button, input, select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ---- MOBILE (<=768px) ---- */
@media (max-width: 768px) {

  /* Header: tighter + cleaner */
  .site-header {
    padding: 12px 4%;
    border-bottom-width: 2px;
  }
  .header-logo {
    height: 36px;
  }

  /* Mobile menu links: less gigantic */
  .mobile-nav-menu a {
    font-size: 1.5em;
    line-height: 1.2;
  }

  /* Hero: less tall + better text sizing */
  .hero-section {
    height: 300px;
    margin-bottom: 28px;
  }
  .hero-content {
    padding: 16px;
  }
  .hero-content h1 {
    font-size: 2.1em;
    line-height: 1.05;
  }
  .hero-content p {
    font-size: 1.05em;
    margin-bottom: 18px;
  }
  .button-primary {
    padding: 12px 18px;
    letter-spacing: 1px;
    border-radius: 999px;
  }

  /* Category cards: make them not huge on phones */
  .category-card img {
    height: 190px;
  }
  .category-card-title {
    font-size: 1.4em;
    bottom: 14px;
    left: 14px;
  }

  /* Inventory controls: sticky + modern */
  main#inventory h2 {
    margin-bottom: 18px;
  }

  .inventory-controls {
    position: sticky;
    top: 62px; /* sits under your sticky header */
    z-index: 900;
    padding: 12px;
    margin: 0 0 18px 0;

    background: rgba(252, 252, 244, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-light-gray);
    border-radius: 14px;

    gap: 10px;
  }

  #search-input, #category-filter {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1em;
    font-family: var(--font-heading);
  }

  /* Plant grid/cards: more app-like */
  .inventory-grid {
    gap: 16px;
  }
  .plant-card {
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  }
  .plant-image {
    height: 210px; /* less tall */
  }
  .plant-info {
    padding: 12px 12px 14px 12px;
  }
  .plant-name {
    font-size: 1.15em;
    text-transform: none; /* uppercase reads harsh on mobile */
    line-height: 1.1;
  }
  .plant-species {
    font-size: 0.95em;
    margin-bottom: 6px;
  }
  .plant-price {
    font-size: 1.35em;
    margin: 8px 0 0 0;
  }
  .status-badge {
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
  }

  /* Modal: better on iPhone screens */
  .modal-content {
    width: 94%;
    margin-top: 10px;
    padding: 14px 14px 16px;
    border-radius: 16px;
    max-height: 86vh;
    overflow: auto;
  }
  #plant-modal .modal-grid {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  #plant-modal .modal-image-area {
    width: 76%;
    max-width: 260px;
  }
  #plant-modal .modal-image-area img {
    height: 220px !important;
    object-fit: contain;
    width: 100% !important;
    background: #fff;
    border: 1px solid rgba(17,59,34,0.08);
    border-radius: 10px;
  }
  #plant-modal .modal-info-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  #plant-modal #modal-plant-name { margin: 0; order: 1; text-align: center; width: 100%; }
  #plant-modal #modal-plant-species { margin: 0; order: 2; text-align: center; width: 100%; }
  #plant-modal #modal-plant-price { margin: 0; order: 3; text-align: center; width: 100%; }
  #plant-modal .quantity-selector {
    order: 4;
    margin: 6px 0 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  #plant-modal .modal-button-group {
    order: 5;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  #plant-modal .modal-button-group .button-primary,
  #plant-modal .modal-button-group .button-secondary {
    flex: 1 1 48%;
    border-radius: 12px;
    height: 46px;
    padding: 12px 14px;
  }
  #plant-modal #modal-plant-description {
    order: 6;
    margin: 6px 0 0 0;
    width: 100%;
    text-align: left;
  }
  #plant-modal .care-heading { order: 7; margin: 10px 0 0 0; width: 100%; text-align: left; }
  #plant-modal #modal-plant-care { order: 8; width: 100%; }
  #plant-modal hr { display: none; }
  .modal-button-group {
    flex-direction: column;
    gap: 10px;
  }
  .modal-cta {
    padding: 14px 18px;
    border-radius: 14px;
  }
}

/* ---- SMALL PHONES (<=480px) ---- */
@media (max-width: 480px) {
  .hero-section {
    height: 270px;
  }
  .hero-content h1 {
    font-size: 1.9em;
  }
  .category-card img {
    height: 170px;
  }
  .plant-image {
    height: 190px;
  }
  .inventory-controls {
    top: 58px;
  }
}
/* --- SEO: Product page links inside cards --- */
.plant-name-link {
  color: inherit;
  text-decoration: none;
}

.plant-name-link:hover {
  text-decoration: underline;
}

.plant-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Keep the card hover zoom on the image even though it is wrapped in a link */
.plant-card:hover .plant-image-link .plant-image {
  transform: scale(1.06);
  filter: brightness(1.07);
}

/* ===========================================
   PRODUCT PAGE – RIVERSIDE VIBES OVERRIDES
   Paste at VERY bottom of styles.css
=========================================== */

.product-page {
  /* your site uses soft cream backgrounds + center cards */
  padding: 46px 5% 70px;
}

.product-shell {
  background: linear-gradient(135deg, #ffffff, #fdfdf6);
  border: 1px solid rgba(0,0,0,0.035);
  box-shadow: 0 14px 38px rgba(0,0,0,0.09);
}

.product-grid {
  padding: 26px;
  gap: 28px;
  align-items: start;
}

/* Make gallery feel like your modal/images */
.product-gallery {
  position: sticky;
  top: 92px; /* under sticky header */
}

.product-image {
  height: 460px;            /* was 520 (too tall / empty feeling) */
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Badge polish */
.product-badge {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Typography closer to home page vibe */
.product-title {
  font-size: 2.35em;
  letter-spacing: 0.05em;
  text-transform: none;
}

.product-desc {
  margin-top: 6px;
  font-size: 1.02em;
  line-height: 1.85;
}

/* Make meta chips match your chip system */
.product-chip {
  border-radius: 999px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* CTA row: make it feel like your modal buttons */
.product-cta-row {
  margin-top: 14px;
}
.product-cta-row .button-primary,
.product-cta-row .button-secondary {
  border-radius: 999px;
  padding: 12px 22px;
  letter-spacing: 0.08em;
}

/* Sections spacing + headings */
.product-details {
  padding: 10px 26px 26px;
}

.product-section {
  padding: 22px 0;
}

.product-section h2,
.product-related h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 1.7em;
  margin-bottom: 14px;
}

/* Care cards: match value cards / admin card vibe */
.product-care-card {
  background: linear-gradient(135deg, #ffffff, #fffaf0);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  padding: 16px 16px 14px;
}

.product-care-card div {
  font-family: var(--font-cute);
  color: #3f4d5b;
  line-height: 1.6;
  margin-top: 4px;
}

/* Related grid should feel like inventory cards */
.product-related {
  padding: 26px 0 8px;
}

.product-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-related-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

.product-related-card img {
  height: 170px;
}

/* Make related plant name match your inventory uppercase style */
.product-related-card .rel-name {
  font-size: 0.98rem;
  letter-spacing: 0.07em;
}

/* Responsive */
@media (max-width: 980px) {
  .product-gallery { position: relative; top: auto; }
  .product-image { height: 380px; }
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .product-page { padding: 30px 4% 60px; }
  .product-grid { padding: 16px; }
  .product-image { height: 300px; }
  .product-title { font-size: 1.85em; }
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* SEO internal link section (crawlable + on-brand) */
.seo-internal-links {
  max-width: 1100px;
  margin: 28px auto 10px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.seo-internal-links h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  text-align: left;
}
.seo-internal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.seo-internal-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 182, 39, 0.10);
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-cute);
  letter-spacing: 0.06em;
}
.seo-internal-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 182, 39, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}