/* Google Font: Roboto Condensed for FDA-style nutrition labels */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

/**
 * ORGBF Storefront CSS Overrides
 * 
 * Complete ORGBF theme overrides that load AFTER upstream storefront.css.
 * This file contains ALL customizations for the Organic Basic Food brand.
 * 
 * Sections:
 * 1. CSS Variables (Color Palette, Shadows, Spacing)
 * 2. Base/Body Styles
 * 3. Header (White background, dark text, green accents)
 * 4. Navigation (Green nav bar)
 * 5. Buttons & Components
 * 6. Product Gallery (Swiper fixes, magnify)
 * 7. Product Description (Supplement Facts, Bundles)
 * 8. Responsive Fixes
 */

/* ==========================================================================
   1. CSS VARIABLES — Organic Basic Food Palette
   ========================================================================== */

:root {
    /* Primary Brand Colors — Forest Green Theme */
    --sf-navy: #5ca561;
    --sf-navy-dark: #477e4b;
    --sf-navy-light: #4c8650;

    /* Action Colors — Fresh Green */
    --sf-blue: #5ca561;
    --sf-blue-hover: #2e7d32;

    /* CTA Colors — Harvest Orange */
    --sf-orange: #edaf6f;
    --sf-orange-hover: #d79e63;

    /* Neutrals — Green-tinted grays */
    --sf-gray-50: #f9fbf9;
    --sf-gray-100: #f1f5f3;
    --sf-gray-200: #e5e9e7;
    --sf-gray-300: #d1d8d5;
    --sf-gray-400: #9da7a3;
    --sf-gray-500: #74807b;
    --sf-gray-600: #58635f;
    --sf-gray-700: #3d4743;
    --sf-gray-800: #29302d;
    --sf-gray-900: #1a1f1d;

    /* Status Colors */
    --sf-success: #43a047;
    --sf-warning: #ffa000;
    --sf-error: #d32f2f;

    /* Shadows — Green-tinted */
    --sf-shadow-sm: 0 1px 3px rgba(27, 77, 62, 0.08);
    --sf-shadow-md: 0 4px 12px rgba(27, 77, 62, 0.08);
    --sf-shadow-lg: 0 8px 24px rgba(27, 77, 62, 0.12);

    /* Softer corners */
    --sf-radius-sm: 4px;
    --sf-radius: 6px;
    --sf-radius-lg: 12px;

    /* Theme Green (Apple Green for nav/buttons) */
    --sf-theme-green: #66bb6a;
    --sf-theme-green-dark: #4caf50;
}

/* ==========================================================================
   2. BASE / BODY STYLES
   ========================================================================== */

body.storefront {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sf-gray-800);
    background: #fdfdfc;
}

/* ==========================================================================
   3. HEADER — White background, dark text, green accents
   ========================================================================== */

.sf-header {
    background: var(--sf-white);
    padding: var(--sf-space-xl) 0;
    border-bottom: 1px solid var(--sf-gray-200);
    /* Stability fixes for compact toggle */
    min-height: 80px;
    display: flex;
    align-items: center;
}

.sf-header--compact {
    padding: 12px 0;
}

.sf-header--compact .sf-logo img {
    height: 36px;
}

/* Logo — Show original colors (no invert) */
.sf-logo img {
    height: 40px;
    filter: none;
    object-fit: contain;
}

.sf-logo-text {
    color: var(--sf-navy);
}

/* Search — Border on white bg, green button */
.sf-search input {
    border: 1px solid var(--sf-gray-300);
    border-right: none;
}

.sf-search button {
    padding: 0 32px;
    background: var(--sf-theme-green);
    font-weight: 700;
    text-transform: capitalize;
}

.sf-search button:hover {
    background: var(--sf-theme-green-dark);
}

/* Header Links — Dark text on white */
.sf-header-link {
    color: #549d85;
}

.sf-header-link:hover {
    color: var(--sf-theme-green);
}

.sf-header-link i {
    font-size: 20px;
    color: #549d85;
}

.sf-header-divider {
    display: none;
}

/* Mobile Menu Button — Dark hamburger on white header */
.sf-mobile-menu-btn {
    color: var(--sf-gray-700);
}

.sf-hamburger span {
    background: var(--sf-gray-700);
}

/* Cart Link */
.sf-cart-link {
    color: #549d85;
}

.sf-cart-link i {
    color: #549d85;
}

/* Header link text labels — visible */

/* Account Dropdown */
.sf-header-account .sf-header-link {
    color: var(--sf-gray-900);
}

.sf-avatar {
    background: var(--sf-gray-100);
    color: var(--sf-gray-600);
}

.sf-account-greeting {
    color: var(--sf-gray-600);
}

.sf-account-name {
    color: var(--sf-gray-900);
}

.sf-dropdown-arrow {
    color: var(--sf-gray-500);
}

/* Topbar — Green accent */
.sf-topbar {
    background: var(--sf-navy-dark);
}

.sf-topbar-location i {
    color: var(--sf-blue-hover);
}

.sf-hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ORGBF override: centered text overlay — never go fully transparent at edges */
.sf-hero-slider.has-text-center::after {
    background-color: var(--overlay-color, #0f2841);
    /* Radial mask: 85% center → 25% at edges (never fully transparent) */
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.25) 100%);
    mask-image: radial-gradient(ellipse 80% 90% at 50% 50%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.25) 100%);
}

/* ORGBF: LCP wrapper + overlay use center radial ONLY when slider has center text.
   Before JS loads (LCP moment), the default left-to-right linear gradient from
   upstream storefront.css applies. Once slider JS adds has-text-center to the
   slider element, the radial override kicks in via :has(). */
.sf-hero-wrapper-outer:has(.has-text-center)::before {
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.25) 100%);
    mask-image: radial-gradient(ellipse 80% 90% at 50% 50%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.25) 100%);
}

/* ORGBF: LCP inline overlay — only switch to radial when center text confirmed */
.sf-hero-wrapper-outer:has(.has-text-center) .sf-hero-lcp-overlay {
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.25) 100%) !important;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 50%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.25) 100%) !important;
}

/* ORGBF: Ensure LCP fallback image matches WebGL canvas positioning */
.sf-hero-lcp-fallback {
    object-position: center center !important;
}

/* Category list: inherits upstream Masonry.js layout from storefront.css */



/* ==========================================================================
   4. NAVIGATION — Apple Green Nav Bar
   ========================================================================== */

.sf-nav {
    background: var(--sf-theme-green);
    border-top: none;
}

.sf-cat-link {
    padding: 2px 0 !important;
}

/* ==========================================================================
   5. BUTTONS & COMPONENTS
   ========================================================================== */

.sf-btn-primary,
.sf-btn--primary {
    background: var(--sf-blue);
    box-shadow: none;
}

.sf-btn-primary:hover,
.sf-btn--primary:hover {
    background: var(--sf-blue-hover);
    box-shadow: none;
    transform: none;
}

/* Prefooter */
.sf-prefooter {
    background: var(--sf-navy-dark);
}

/* Animations — Green glow */
@keyframes sfHighlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 142, 60, 0.5);
    }

    40% {
        box-shadow: 0 0 0 8px rgba(56, 142, 60, 0.2);
    }

    60% {
        box-shadow: 0 0 0 12px rgba(56, 142, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 142, 60, 0);
    }
}

/* Mega Menu Product Card Hover */
.sf-mega-product-card:hover {
    box-shadow: 0 4px 16px rgba(56, 142, 60, .15), 0 1px 3px rgba(0, 0, 0, .06);
}

/* ==========================================================================
   6. PRODUCT GALLERY — ORGBF Size Overrides
   ========================================================================== */

.sf-gallery {
    max-width: 580px;
    width: 100%;
    overflow: hidden;
}

.sf-gallery-main {
    overflow: hidden;
    max-width: 100%;
}

.sf-gallery-thumbs {
    overflow: hidden;
}

/* ==========================================================================
   7. PRODUCT DETAIL — Responsive Grid
   ========================================================================== */

.sf-product-name {
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.sf-product-detail-info h1 {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

.sf-product-detail {
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
}

/* Short description */
.sf-product-short-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sf-gray-600);
    margin-bottom: var(--sf-space-lg);
}

/* Full-Width Description Section */
.sf-product-full-description {
    margin-top: var(--sf-space-2xl);
    padding: var(--sf-space-2xl) 0;
    border-top: 1px solid var(--sf-gray-200);
}

.sf-description-header {
    margin-bottom: var(--sf-space-xl);
    padding-bottom: var(--sf-space-md);
    border-bottom: 2px solid var(--sf-navy);
    display: inline-block;
}

.sf-description-header h2 {
    font-family: var(--sf-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--sf-navy);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   8. RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 768px) {
    .sf-product-detail {
        grid-template-columns: 1fr;
        gap: var(--sf-space-lg);
        padding: var(--sf-space-md);
    }

    .sf-gallery {
        max-width: 100%;
    }

    .sf-gallery-main {
        max-height: 400px;
    }

    .sf-logo img {
        height: 45px;
    }

    .sf-header--compact .sf-logo img {
        height: 36px;
    }
}

/* ==========================================================================
   9. PRODUCT DESCRIPTION — OBF Supplement Products
   ========================================================================== */

.sf-product-description .obf-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sf-gray-700);
}

.sf-product-description .obf-desc-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--sf-space-2xl);
    align-items: start;
}

@media (max-width: 1024px) {
    .sf-product-description .obf-desc-grid {
        grid-template-columns: 1fr;
    }
}

.sf-product-description .obf-desc-left {
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-lg);
}

.sf-product-description .obf-desc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 100px;
    max-width: 380px;
}

.sf-product-description .obf-header {
    display: none;
}

.sf-product-description .obf-section {
    margin-bottom: var(--sf-space-lg);
}

.sf-product-description .obf-section:last-child {
    margin-bottom: 0;
}

.sf-product-description .obf-section-title {
    font-family: var(--sf-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--sf-gray-900);
    margin: 0 0 var(--sf-space-sm) 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sf-product-description .obf-section-body {
    color: var(--sf-gray-700);
}

/* Overview Text */
.sf-product-description .obf-overview p.overview {
    margin: 0 0 var(--sf-space-sm) 0;
    line-height: 1.7;
}

.sf-product-description .obf-overview p.overview:last-child {
    margin-bottom: 0;
}

/* How to Use */
.sf-product-description .obf-how-to-use p.how-to-use {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Free Of */
.sf-product-description .obf-free-of p.free-of {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sf-gray-600);
    margin: 0;
}

/* Other Ingredients */
.sf-product-description .obf-ingredients {
    margin-top: var(--sf-space-sm);
}

.sf-product-description .obf-ingredients .obf-section-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: var(--sf-space-xs);
}

.sf-product-description .obf-ingredients p.ingredients {
    font-size: 11px;
    line-height: 1.5;
    color: var(--sf-gray-600);
    margin: 0;
    padding-right: var(--sf-space-md);
}

.sf-product-description .obf-desc-right .obf-ingredients {
    width: 100%;
}

/* Highlights List */
.sf-product-description .obf-highlights ul.highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-xs);
}

.sf-product-description .obf-highlights li.highlight {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--sf-gray-700);
}

.sf-product-description .obf-highlights li.highlight::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sf-success);
    font-weight: 600;
}

/* ==========================================================================
   10. SUPPLEMENT FACTS PANEL — FDA-Style Label
   ========================================================================== */

.sf-supplement-facts-wrapper {
    position: relative;
    width: 100%;
}

.sf-supplement-facts-wrapper.is-collapsed .obf-supplement-facts {
    max-height: 500px;
    overflow: hidden;
}

.sf-supplement-facts-wrapper.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 67px;
    left: 0;
    width: 384px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.sf-expand-facts-btn {
    display: block;
    width: 100%;
    max-width: 380px;
    padding: 12px 16px;
    margin-top: var(--sf-space-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-navy);
    background: var(--sf-gray-100);
    border: 1px solid var(--sf-gray-300);
    border-radius: var(--sf-radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sf-expand-facts-btn:hover {
    background: var(--sf-navy);
    color: var(--sf-white);
    border-color: var(--sf-navy);
}

.sf-expand-facts-btn i {
    margin-left: 6px;
    transition: transform 0.2s;
}

.sf-supplement-facts-wrapper:not(.is-collapsed) .sf-expand-facts-btn i {
    transform: rotate(180deg);
}

.sf-product-description .obf-supplement-facts {
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 4px;
    max-width: 380px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sf-product-description .obf-supplement-facts .obf-section-title {
    font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: normal;
    color: #000;
    margin: 0;
    padding: 0 0 2px 0;
    border-bottom: 1px solid #000;
}

.sf-product-description .obf-supplement-facts .obf-section-body {
    padding: 0;
}

/* Serving Size Meta */
.sf-product-description .sf-meta {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    padding: 2px 0;
    line-height: 1.4;
}

.sf-product-description .sf-meta:first-of-type {
    font-weight: 700;
}

.sf-product-description .sf-meta:last-of-type {
    border-bottom: 8px solid #000;
    padding-bottom: 4px;
}

/* Supplement Facts Table */
.sf-product-description .sf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.3;
}

.sf-product-description .sf-table thead tr {
    border-bottom: 1px solid #000;
}

.sf-product-description .sf-table .sf-th-n,
.sf-product-description .sf-table .sf-th-a,
.sf-product-description .sf-table .sf-th-dv {
    font-size: 10px;
    font-weight: 400;
    text-align: right;
    padding: 2px 0;
    color: #000;
    vertical-align: bottom;
}

.sf-product-description .sf-table .sf-th-n {
    text-align: left;
    width: 60%;
}

.sf-product-description .sf-table .sf-th-a {
    width: 22%;
    padding-right: 6px;
}

.sf-product-description .sf-table .sf-th-dv {
    width: 18%;
}

.sf-product-description .sf-table .sf-row {
    border-top: 1px solid #000;
}

.sf-product-description .sf-table .sf-row:first-child {
    border-top: none;
}

.sf-product-description .sf-table .sf-n {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    padding: 3px 0;
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

.sf-product-description .sf-table .sf-a {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    padding: 3px 6px 3px 0;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

.sf-product-description .sf-table .sf-dv {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    padding: 3px 0;
    text-align: right;
    vertical-align: top;
}

/* Blend/Long-text rows */
.sf-product-description .sf-table .sf-row:has(.sf-n:only-of-type) .sf-n {
    font-weight: 400;
    font-size: 11px;
    line-height: 1.5;
}

.sf-product-description .sf-notes {
    border-top: 8px solid #000;
    padding-top: 4px;
}

.sf-product-description .sf-note {
    font-size: 10px;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .sf-product-description .obf-supplement-facts {
        max-width: 100%;
    }

    .sf-product-description .obf-supplement-facts .obf-section-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   11. BUNDLE ITEMS — Tabbed Interface (Full Width)
   ========================================================================== */

/* Hide "Product Details" header for bundle products */
.sf-product-full-description:has(.has-bundle-tabs) .sf-description-header {
    display: none;
}

/* Left-align overview section at 60% width for bundle products */
.sf-product-full-description:has(.has-bundle-tabs) .obf-overview {
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

/* When bundle tabs are active, switch parent to single column for full width */
.sf-product-description .obf-desc-grid:has(.has-bundle-tabs) {
    grid-template-columns: 1fr;
}

/* Hide the right column when tabs are handling nutrition facts */
.sf-product-description .obf-desc-grid:has(.has-bundle-tabs) .obf-desc-right {
    display: none;
}

/* Bundle details section styling when tabs active */
.sf-product-description .obf-bundle-details:has(.has-bundle-tabs) {
    margin-top: var(--sf-space-xl);
    padding-top: var(--sf-space-xl);
    border-top: 1px solid var(--sf-gray-200);
}

/* Hide the original grid layout when tabs are active */
.sf-product-description .obf-section-body.has-bundle-tabs {
    display: block;
}

/* Tab Container */
.sf-bundle-tabs {
    margin-top: var(--sf-space-md);
}

/* Tab Navigation */
.sf-bundle-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--sf-gray-200);
    margin-bottom: var(--sf-space-xl);
}

.sf-bundle-tab {
    position: relative;
    padding: var(--sf-space-md) var(--sf-space-lg);
    background: transparent;
    border: none;
    font-family: var(--sf-font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--sf-gray-500);
    cursor: pointer;
    transition: color 0.2s ease;
}

.sf-bundle-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sf-navy);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.sf-bundle-tab:hover {
    color: var(--sf-gray-700);
}

.sf-bundle-tab.is-active {
    color: var(--sf-navy);
    font-weight: 600;
}

.sf-bundle-tab.is-active::after {
    transform: scaleX(1);
}

/* Tab Panels */
.sf-bundle-panels {
    min-height: 400px;
}

.sf-bundle-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sf-bundle-panel.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Grid: Info expands, Nutrition fixed width */
.sf-bundle-panel-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sf-space-2xl);
    align-items: start;
}

/* Panel Info Section */
.sf-bundle-panel-info {
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-lg);
}

.sf-bundle-panel-title {
    font-family: var(--sf-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-navy);
    margin: 0;
    padding-bottom: var(--sf-space-sm);
    border-bottom: 1px solid var(--sf-gray-200);
}

.sf-bundle-panel-title a {
    color: inherit;
    text-decoration: none;
}

.sf-bundle-panel-title a:hover {
    color: var(--sf-success);
}

/* Bundle Description */
.sf-bundle-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sf-gray-700);
}

.sf-bundle-desc p {
    margin: 0 0 var(--sf-space-sm) 0;
}

.sf-bundle-desc p:last-child {
    margin-bottom: 0;
}

/* Bundle Highlights */
.sf-bundle-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sf-space-xs) var(--sf-space-lg);
}

.sf-bundle-highlights li {
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    color: var(--sf-gray-700);
    line-height: 1.5;
}

.sf-bundle-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sf-success);
    font-weight: 700;
    font-size: 14px;
}

/* Panel Nutrition Section */
.sf-bundle-panel-nutrition {
    position: sticky;
    top: 100px;
}

.sf-bundle-panel-nutrition .obf-supplement-facts {
    max-width: 100%;
}

/* Hide redundant title in nutrition panel (product name is in panel title) */
.sf-bundle-panel-nutrition .sf-product {
    display: none;
}

/* Ingredients below nutrition facts — same width */
.sf-bundle-panel-nutrition .obf-ingredients {
    max-width: 400px;
    margin-top: var(--sf-space-md);
    padding-top: var(--sf-space-md);
    border-top: 1px solid var(--sf-gray-200);
}

.sf-bundle-panel-nutrition .obf-ingredients .obf-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sf-gray-700);
    margin-bottom: var(--sf-space-xs);
}

.sf-bundle-panel-nutrition .obf-ingredients p.ingredients {
    font-size: 11px;
    line-height: 1.5;
    color: var(--sf-gray-600);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .sf-bundle-panel-grid {
        grid-template-columns: 1fr;
        gap: var(--sf-space-xl);
    }

    .sf-bundle-panel-nutrition {
        position: static;
    }

    .sf-bundle-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    /* Add breathing room on mobile */
    .sf-product-full-description {
        padding-left: var(--sf-space-md);
        padding-right: var(--sf-space-md);
    }

    .sf-bundle-tab-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sf-bundle-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .sf-bundle-tab {
        padding: var(--sf-space-sm) var(--sf-space-md);
        font-size: 13px;
        white-space: nowrap;
    }
}

/* ==========================================================================
   12. SUPPLEMENT FACTS PANEL — FDA-Style Label (in bundle tabs)
   ========================================================================== */

/* Ensure nutrition panels in tabs inherit proper styles */
.sf-bundle-panel-nutrition .obf-supplement-facts,
.sf-bundle-panel-nutrition .obf-nutrition-facts {
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 4px;
    font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   12b. NUTRITION FACTS PANEL — FDA-Style Label (mirrors Supplement Facts)
   ========================================================================== */

/* Apply all obf-supplement-facts styles to obf-nutrition-facts */
.sf-nutrition-facts-wrapper {
    position: relative;
    width: 100%;
}

.sf-nutrition-facts-wrapper.is-collapsed .obf-nutrition-facts {
    max-height: 500px;
    overflow: hidden;
}

.sf-nutrition-facts-wrapper.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 67px;
    left: 0;
    width: 384px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.sf-product-description .obf-nutrition-facts {
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 4px;
    width: 100%;
    max-width: 380px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sf-product-description .obf-nutrition-facts .obf-section-title {
    font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: normal;
    color: #000;
    margin: 0;
    padding: 0 0 2px 0;
    border-bottom: 1px solid #000;
}

.sf-product-description .obf-nutrition-facts .obf-section-body {
    padding: 0;
}

/* Nutrition Facts uses nf- prefix classes */
.sf-product-description .obf-nutrition-facts .nf-meta {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    padding: 2px 0;
    line-height: 1.4;
}

.sf-product-description .obf-nutrition-facts .nf-meta:first-of-type {
    font-weight: 700;
}

.sf-product-description .obf-nutrition-facts .nf-meta:last-of-type {
    border-bottom: 8px solid #000;
    padding-bottom: 4px;
}

.sf-product-description .obf-nutrition-facts .nf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.3;
}

.sf-product-description .obf-nutrition-facts .nf-table thead tr {
    border-bottom: 1px solid #000;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-th-n,
.sf-product-description .obf-nutrition-facts .nf-table .nf-th-a,
.sf-product-description .obf-nutrition-facts .nf-table .nf-th-dv {
    font-size: 10px;
    font-weight: 400;
    text-align: right;
    padding: 2px 0;
    color: #000;
    vertical-align: bottom;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-th-n {
    text-align: left;
    width: 60%;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-th-a {
    width: 22%;
    padding-right: 6px;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-th-dv {
    width: 18%;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-row {
    border-top: 1px solid #000;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-row:first-child {
    border-top: none;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-n {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    padding: 3px 0;
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-a {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    padding: 3px 6px 3px 0;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

.sf-product-description .obf-nutrition-facts .nf-table .nf-dv {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    padding: 3px 0;
    text-align: right;
    vertical-align: top;
}

.sf-product-description .obf-nutrition-facts .nf-notes {
    border-top: 8px solid #000;
    padding-top: 4px;
}

.sf-product-description .obf-nutrition-facts .nf-note {
    font-size: 10px;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .sf-product-description .obf-nutrition-facts {
        max-width: 100%;
    }

    .sf-product-description .obf-nutrition-facts .obf-section-title {
        font-size: 20px;
    }
}




/* ==========================================================================
   13. LOGIN PROMPT MODAL — ORGBF Theme Overrides
   ========================================================================== */

/* Primary button uses ORGBF green gradient with subtle hover expansion */
.sf-login-prompt-btn-primary {
    background: linear-gradient(135deg, var(--sf-theme-green) 0%, var(--sf-navy) 100%);
    background-size: 100% 100%;
    box-shadow: 0 4px 14px rgba(92, 165, 97, 0.35);
    transition: all 0.3s ease, background-size 0.4s ease;
}

.sf-login-prompt-btn-primary:hover {
    background: linear-gradient(135deg, var(--sf-theme-green) 0%, var(--sf-navy) 100%);
    background-size: 150% 150%;
    box-shadow: 0 6px 20px rgba(92, 165, 97, 0.45);
}

/* ==========================================================================
   14. PRODUCT CARD ADD TO CART — Same Gradient as Login Button
   ========================================================================== */

.sf-product-card .sf-btn-add-cart,
.sf-product-actions .sf-btn-add-cart {
    background: linear-gradient(135deg, var(--sf-theme-green) 0%, var(--sf-navy) 100%) !important;
    background-size: 100% 100%;
    border: none !important;
    box-shadow: 0 2px 8px rgba(92, 165, 97, 0.25);
    transition: all 0.3s ease, background-size 0.4s ease;
}

.sf-product-card .sf-btn-add-cart:hover:not(:disabled),
.sf-product-actions .sf-btn-add-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--sf-theme-green) 0%, var(--sf-navy) 100%) !important;
    background-size: 150% 150%;
    box-shadow: 0 4px 14px rgba(92, 165, 97, 0.4);
    transform: translateY(-1px);
}

.sf-product-actions .add-to-cart:disabled,
.sf-product-actions .sf-btn-add-cart:disabled {
    background: var(--sf-gray-400) !important;
}

/* ==========================================================================
   12. LOYALTY EARN BADGE — Harvest Gold instead of green
   ========================================================================== */

.sf-product-loyalty-earn,
.sf-product-loyalty-earn--detail,
.sf-quickview-loyalty-earn {
    color: #b8860b;
    background: rgba(237, 175, 111, 0.12);
}

.sf-product-loyalty-earn--detail {
    border-left-color: var(--sf-orange);
    background: linear-gradient(135deg, rgba(237, 175, 111, 0.06), rgba(237, 175, 111, 0.14));
}

/* ==========================================================================
   15. FOOTER BRAND — White Logo + SEO Tagline
   ========================================================================== */

.sf-footer-logo-img {
    filter: brightness(0) invert(1);
    max-height: 35px;
    width: auto;
    display: block;
    margin-bottom: var(--sf-space-md);
}

/* Mobile: center logo, social icons, add vertical breathing room */
@media (max-width: 768px) {
    .sf-footer-brand {
        padding-right: 0;
        padding-top: var(--sf-space-xl);
        padding-bottom: var(--sf-space-md);
    }

    .sf-footer-logo-img {
        margin-inline: auto;
        margin-bottom: var(--sf-space-lg);
    }

    .sf-footer-social {
        justify-content: center;
    }
}