:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-accent: #000000;
    --color-border: #e0e0e0;
    --color-bg-alt: #f8f9fa;
    --color-success: #4a4a4a;

    /* Typography */
    --font-heading: 'CenturyGothic', sans-serif;
    --font-body: 'CenturyGothic', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

@font-face {
    font-family: 'BlissfulThinking';
    src: url('src/fonts/Logo - BlissfulThinking.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

font-style: normal;
}

@font-face {
    font-family: 'CenturyGothic';
    src: url('src/fonts/centurygothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CenturyGothic';
    src: url('src/fonts/centurygothic_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    font-weight: 300;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header */
.main-header {
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    background-color: var(--color-bg);
    position: relative;
}

/* Back to landing link */
.back-to-landing {
    position: absolute;
    top: 1.25rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-to-landing:hover {
    color: var(--color-text);
    border-color: var(--color-text-light);
    background-color: var(--color-bg-alt);
}

.brand-name {
    font-family: 'BlissfulThinking', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    /* Reduced from 0.15em */
    margin-bottom: var(--space-sm);
}

.brand-location {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.header-decoration {
    margin-top: var(--space-lg);
    color: var(--color-text);
    opacity: 0.8;
}

.floral-icon {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* Sticky Nav & Search */
.sticky-nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.category-nav {
    overflow-x: auto;
    padding: var(--space-sm) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.category-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-list {
    display: flex;
    list-style: none;
    padding: 0 var(--space-md);
    gap: var(--space-md);
    white-space: nowrap;
}

.category-btn {
    background: none;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    color: var(--color-bg);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.search-container {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-alt);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    gap: var(--space-sm);
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--color-text-light);
}

.search-bar input {
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    color: var(--color-text);
}

/* Menu Content */
.menu-content {
    padding: var(--space-lg) var(--space-md);
    min-height: 50vh;
}

.category-section {
    margin-bottom: var(--space-xl);
    scroll-margin-top: 140px;
    /* Offset for sticky header */
}

.category-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.category-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid/List */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl) var(--space-lg);
    }
}

.product-card {
    position: relative;
    padding-bottom: var(--space-sm);
    transition: opacity 0.3s ease;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-xs);
    border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    padding-right: var(--space-sm);
    background-color: var(--color-bg);
    /* To cover dots if we use them */
    position: relative;
    bottom: -4px;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    position: relative;
    bottom: -4px;
    background-color: var(--color-bg);
    padding-left: var(--space-sm);
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
    line-height: 1.4;
}

/* Tags */
.product-tags {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    border: none;
}

.tag.veggie {
    background-color: #d4edda;
    /* Pastel Green */
    color: #155724;
}

.tag.gluten-free {
    background-color: #f8d7da;
    /* Pastel Red/Pinkish for contrast, or keep green if prefer same family */
    color: #721c24;
}

/* Alternative: Both Green as requested? "tone verde pastel" implies maybe both or just veggie? 
   Let's make veggie green and gluten free maybe a different pastel or same? 
   User said "Like gluten free" implying similar treatment.
   Let's use a nice pastel yellow or blue for GF to distinguish, or just green for both if that's the vibe.
   Re-reading: "vaggie tone verde pastel... Al igual que gluten free" -> maybe means "Use pastel green for veggie, just like (we do/should for) gluten free"? 
   Or "Apply pastel green to veggie, AND ALSO apply it to gluten free"?
   I will make Veggie Green and Gluten Free a soft pastel yellow/orange (classic wheat color) or just Green too if they want uniformity.
   Let's stick to Green for Veggie (#d4edda) and maybe a soft Teal or Blue or Yellow for TACC.
   Actually, "Al igual que gluten free" likely means "Do the same for gluten free" (add color/icon).
   I'll make Veggie Green and GF maybe a light pastel blue/purple to differentiate, or Light Green/Light Yellow.
   Let's start with Green for Veggie and a yellowish/beige for GF (Wheat).
*/
.tag.gluten-free {
    background-color: #fff3cd;
    color: #856404;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xl);
    background-color: var(--color-bg-alt);
}

.main-footer p {
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.social-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.social-links a:hover {
    border-color: var(--color-text);
}

/* Helper Classes */
.hidden {
    display: none !important;
}

/* iOS Alert Style */
.ios-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.ios-overlay.show {
    opacity: 1;
    visibility: visible;
}

.ios-alert {
    width: 270px;
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    text-align: center;
    transform: scale(1.1);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ios-overlay.show .ios-alert {
    transform: scale(1);
    opacity: 1;
}

.ios-alert-content {
    padding: 20px 16px 20px;
}

.ios-alert h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #000;
    letter-spacing: -0.01em;
}

.ios-alert p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.ios-alert-btn {
    width: 100%;
    border: none;
    border-top: 0.5px solid rgba(60, 60, 67, 0.29);
    background: transparent;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    /* Regular bold for OK button */
    color: #007AFF;
    /* iOS Blue */
    cursor: pointer;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    transition: background-color 0.2s;
}

.ios-alert-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}