/* Plants By Category Snippet Styles */

/* Réduire la police du texte "Dispo. à partir du..." pour coming_soon */
.coming-soon-date-small {
    font-size: 0.75rem !important;
}

/* Style pour le bouton wishlist actif */
.gf-add-cart-btn.wishlist-active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.gf-add-cart-btn.wishlist-active:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* « Bientôt disponible » : bouton wishlist plein largeur reprenant la palette
   du shop (border + couleurs gf-primary). Hérite de .gf-shop-wishlist-btn pour
   les états hover/active/loading et des couleurs primary. */
.plants-category-section .gf-quick-add-row {
    margin-top: auto;
}

.plants-category-section .gf-coming-soon-wishlist {
    width: 100% !important;
    height: 44px !important;
    min-width: 0 !important;
    padding: 0 1rem !important;
    gap: 0.5rem !important;
    font-weight: 600;
    border-radius: 0.5rem !important;
}

.plants-category-section .gf-coming-soon-wishlist .gf-coming-soon-wishlist-label {
    font-size: 0.95rem;
    line-height: 1;
}

@media (min-width: 1024px) {
    .plants-category-section .gf-coming-soon-wishlist {
        height: 38px !important;
    }
}

.s_plants_by_category {
    --gf-tech-green: #225627;
    --gf-tech-orange: #d36135;
    --gf-tech-text-muted: #5a665a;
    --gf-tech-cream: #faf9f6;
    background-color: transparent;
}

/* Selection /selection — fond page = home-box ; espace sous le hero */
main:has(.gf-selection-hero-root) #wrap > section.s_plants_by_category {
    --background-color: var(--gf-tech-cream, #faf9f6) !important;
    background-color: var(--gf-tech-cream, #faf9f6) !important;
    padding-top: 1.25rem !important;
}

main:has(.gf-selection-hero-root) #wrap > section.s_plants_by_category .plants-category-section:first-child {
    margin-top: 1.25rem;
}

@media (min-width: 768px) {
    main:has(.gf-selection-hero-root) #wrap > section.s_plants_by_category {
        padding-top: 1.5rem !important;
    }

    main:has(.gf-selection-hero-root) #wrap > section.s_plants_by_category .plants-category-section:first-child {
        margin-top: 1.5rem;
    }
}

@media (min-width: 992px) {
    main:has(.gf-selection-hero-root) #wrap > section.s_plants_by_category .plants-category-section:first-child {
        margin-top: 2rem;
    }
}

.s_plants_by_category .plants-category-section.gf-tech-card--home-box {
    position: relative;
    overflow: visible;
    padding: 0;
    border: 1px solid rgba(34, 86, 39, 0.1);
    box-shadow: none;
    background: #fff;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
}

.s_plants_by_category .plants-category-section .gf-tech-card-body--home-box {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    z-index: 1;
}

/* Self-contained deco layout (do not rely on page-scoped website_technologies.css alone) */
.s_plants_by_category .plants-category-section .gf-tech-card-deco--home-box {
    position: absolute;
    z-index: 0;
    width: 7.25rem;
    max-width: 7.25rem;
    max-height: 6.5rem;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.58;
    pointer-events: none;
    user-select: none;
    margin: 0;
}

@media (min-width: 992px) {
    .s_plants_by_category .plants-category-section .gf-tech-card-body--home-box {
        padding: 2.5rem 2.5rem 2.25rem;
    }
}

/* Décorations home-box variées par section (aligné Home V2) */
.s_plants_by_category [data-category="ready"] .gf-tech-card-deco--selection-ready {
    top: var(--gf-deco-inset, 0.35rem);
    right: var(--gf-deco-inset, 0.35rem);
    bottom: auto;
    left: auto;
    transform: rotate(-90deg);
}

.s_plants_by_category [data-category="zero_waste"] .gf-tech-card-deco--selection-waste {
    top: auto;
    right: auto;
    bottom: var(--gf-deco-inset, 0.35rem);
    left: var(--gf-deco-inset, 0.35rem);
    transform: rotate(90deg) scaleX(-1);
    transform-origin: bottom left;
}

.s_plants_by_category [data-category="coming_soon"] .gf-tech-card-deco--selection-soon {
    top: var(--gf-deco-inset, 0.35rem);
    right: var(--gf-deco-inset, 0.35rem);
    left: auto;
    bottom: auto;
    transform: rotate(-90deg);
    transform-origin: center center;
}

.s_plants_by_category .section-separator {
    display: none;
}

/* Force exact alignment with product selector widget */
.s_plants_by_category > .container,
.s_plants_by_category > .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.s_plants_by_category > .container > .row,
.s_plants_by_category > .container-fluid > .row {
    margin-left: 0;
    margin-right: 0;
}

.s_plants_by_category > .container > .row > .col-lg-10,
.s_plants_by_category > .container-fluid > .row > .col-lg-10 {
    padding-left: 15px;
    padding-right: 15px;
}

.plants-category-section {
    margin-bottom: 4rem;
}

/* Themes Colors */
/* Ready (Green) */
.plants-category-section.theme-ready .category-icon,
.plants-category-section.theme-ready .plants-count {
    color: #28a745;
}

.plants-category-section.theme-ready .category-icon {
    color: #28a745;
}

.plants-category-section.theme-ready .category-footer .btn-link {
    color: #225627; /* GreenForge green */
}

/* Future (Blue) */
.plants-category-section.theme-future .plants-count {
    color: #17a2b8;
}

.plants-category-section.theme-future .category-icon {
    color: #17a2b8;
}

.plants-category-section.theme-future .category-footer .btn-link {
    color: #225627; /* GreenForge green */
}

.plants-category-section.theme-future .category-footer .btn-link:hover {
    color: #1a4420; /* GreenForge green darker */
}

/* Zero Waste (Orange/Red) */
.plants-category-section.theme-waste .plants-count {
    color: #fd7e14;
}

.plants-category-section.theme-waste .category-icon {
    color: #fd7e14;
}

.plants-category-section.theme-waste .category-footer .btn-link {
    color: #225627; /* GreenForge green */
}

.plants-category-section.theme-waste .category-footer .btn-link:hover {
    color: #1a4420; /* GreenForge green darker */
}

/* Headers */
.category-header {
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 0;
}

.plants-category-section .gf-category-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.plants-category-section .gf-category-section-head .gf-tech-badge {
    display: inline-block;
    margin-bottom: 0.7rem;
    font-family: var(--gf-plant-font-body, Inter, system-ui, sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gf-tech-orange, #d36135);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    line-height: 1.2;
}

.plants-category-section .gf-category-section-head .category-title {
    display: block;
    width: 100%;
    margin-bottom: 0.35rem;
    text-align: left;
    font-family: var(--gf-plant-font-display, "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif) !important;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700 !important;
    color: var(--gf-plant-title-color, #225627);
    line-height: 1.2;
}

.plants-category-section .category-description,
.plants-category-section .category-description.gf-tech-intro {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: 42rem;
}

.plants-category-section .category-footer {
    text-align: center;
}

.plants-category-section .category-icon,
.plants-category-section .category-title > .fa {
    display: none !important;
}

.category-title {
    margin-bottom: 0.35rem;
    display: block;
    text-align: left;
}

.category-title .category-icon {
    font-size: 0.85em;
    line-height: 1;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Texte d'introduction */
.intro-text {
    margin-bottom: 1.5rem;
}

.intro-text-content {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 400;
    margin: 0;
}

/* Séparateur d'introduction */
.intro-separator {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 2rem 0;
}

/* Séparateurs entre sections */
.section-separator {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 3rem 0;
}

.category-description {
    display: block;
    text-align: left;
    margin: 0 0 1.5rem;
    max-width: 42rem;
}

/* Texte souligné en rouge */
.underline-red {
    text-decoration: underline;
    text-decoration-color: #dc3545;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    color: inherit;
}

.plants-count {
    display: none; /* Hidden - no longer used */
}

/* Reserve carousel panel height (aligned with home seasonal) so loader → cards does not expand the page (CLS). */
.plants-category-container {
    position: relative;
    --gf-plants-panel-h: 22rem;
    min-height: var(--gf-plants-panel-h);
    min-width: 0;
}

@media (min-width: 768px) {
    .plants-category-container {
        --gf-plants-panel-h: 24.5rem;
    }
}

@media (min-width: 1200px) {
    .plants-category-container {
        --gf-plants-panel-h: 26rem;
    }
}

@media (max-width: 767.98px) {
    .plants-category-container {
        --gf-plants-panel-h: 28rem;
    }
}

.plants-category-loader {
    padding: 3rem 0;
}

.plants-category-loader.hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Pas de transition : évite le double fondu avec l’apparition du carousel */
    transition: none;
}

/* Carousel — mobile-first (aligné Home V2 seasonal) */
.s_plants_by_category .plants-category-section.gf-tech-card--home-box .plants-category-container {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .s_plants_by_category .plants-category-section.gf-tech-card--home-box .plants-category-container {
        overflow: visible;
    }

    .s_plants_by_category .plants-category-carousel-wrapper {
        overflow: visible;
        touch-action: pan-x pan-y;
    }

    .s_plants_by_category .plants-category-carousel {
        scroll-snap-type: x proximity;
        touch-action: pan-x pan-y;
        cursor: grab;
        user-select: none;
    }

    .s_plants_by_category .plants-category-carousel.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
    }

    .s_plants_by_category .plants-category-carousel a,
    .s_plants_by_category .plants-category-carousel img {
        -webkit-user-drag: none;
        user-select: none;
    }
}

.plants-category-carousel-wrapper {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plants-category-carousel-wrapper.loaded {
    opacity: 1;
}

.plants-category-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
}

.plants-category-carousel.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.plants-category-carousel::-webkit-scrollbar {
    display: none;
}

.plants-category-carousel__item,
.plants-category-carousel > div {
    flex: 0 0 calc(90% - 0.5rem);
    max-width: calc(90% - 0.5rem);
    min-width: 0;
    width: auto !important;
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
}

/* Neutralise les colonnes Bootstrap (COW / legacy) */
.plants-category-carousel > [class*="col-"] {
    flex: 0 0 calc(90% - 0.5rem) !important;
    max-width: calc(90% - 0.5rem) !important;
    min-width: 0 !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.carousel-nav-btn {
    display: none;
    background: white;
    border: 2px solid #225627;
    color: #225627;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:hover:not(:disabled) {
    background: #225627;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 86, 39, 0.3);
}

@media (min-width: 768px) {
    .plants-category-carousel-wrapper .carousel-nav-btn:hover:not(:disabled) {
        transform: translateY(-50%) scale(1.08);
    }
}

@media (max-width: 767.98px) {
    .carousel-nav-btn:hover:not(:disabled) {
        transform: scale(1.1);
    }
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
    box-shadow: none;
}

.carousel-nav-btn i {
    font-size: 1.3rem;
    font-weight: 600;
}

@media (min-width: 576px) {
    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"] {
        flex: 0 0 calc(42% - 0.6rem) !important;
        max-width: calc(42% - 0.6rem) !important;
    }
}

@media (min-width: 768px) {
    .s_plants_by_category .plants-category-section.gf-tech-card--home-box {
        overflow: hidden;
    }

    .plants-category-carousel-wrapper {
        position: relative;
        display: block;
        overflow: hidden;
        max-width: 100%;
        padding-left: 3.25rem;
        padding-right: 3.25rem;
    }

    .plants-category-carousel {
        flex: none;
        width: 100%;
        min-width: 0;
        scroll-snap-type: x proximity;
        padding-left: 0;
        padding-right: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .carousel-nav-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        z-index: 12;
        margin: 0;
    }

    .plants-category-carousel-wrapper .carousel-prev {
        left: 0;
    }

    .plants-category-carousel-wrapper .carousel-next {
        right: 0;
    }

    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"] {
        flex: 0 0 calc((100% - 3 * 1rem) / 4) !important;
        max-width: calc((100% - 3 * 1rem) / 4) !important;
        min-width: 0 !important;
        scroll-snap-align: start;
    }
}

/* Tablette : ~2 cartes visibles, sans min-width qui fait déborder le track */
@media (min-width: 768px) and (max-width: 991.98px) {
    .s_plants_by_category .plants-category-section .gf-tech-card-body--home-box {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .plants-category-carousel-wrapper {
        gap: 0.5rem;
    }

    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"] {
        flex: 0 0 calc(42% - 0.5rem) !important;
        max-width: calc(42% - 0.5rem) !important;
        min-width: 0 !important;
    }

    .gf-card-image-container {
        height: 190px;
    }

    .gf-card-body {
        padding: 1rem;
    }
}

@media (min-width: 992px) {
    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"] {
        flex: 0 0 calc((100% - 3 * 1rem) / 4) !important;
        max-width: calc((100% - 3 * 1rem) / 4) !important;
        min-width: 0 !important;
    }
}

@media (min-width: 1200px) {
    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"] {
        flex: 0 0 calc((100% - 3 * 1rem) / 4) !important;
        max-width: calc((100% - 3 * 1rem) / 4) !important;
        min-width: 0 !important;
    }
}

.plants-category-grid {
    display: flex;
    flex-wrap: wrap;
}

.plants-category-grid.loaded {
    display: flex;
}

/* Mobile: Horizontal scroll avec snap handled in the mobile block at the bottom */

/* Modern Card Styles */
.plant-category-card.gf-modern-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.plant-category-card.gf-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.gf-card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.gf-card-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
    -webkit-user-drag: none;
}

.gf-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.25s ease;
    touch-action: pan-y pinch-zoom;
    -webkit-user-drag: none;
    user-select: none;
}

/* Masquage uniquement pour les images dans le carousel chargé dynamiquement.
   Le sélecteur cible uniquement les wrappers créés par plants_by_category.js. */
.plants-category-carousel-wrapper .gf-card-image {
    opacity: 0;
}

.plants-category-carousel-wrapper .gf-card-image.loaded {
    opacity: 1;
}

.plant-category-card:hover .gf-card-image {
    transform: scale(1.08);
}

.gf-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Titres cartes — scope snippet uniquement (ne pas impacter shop / fiche produit) */
.plants-category-section .plant-category-card .gf-product-name {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    font-weight: 600;
    margin: 0 0 0.12rem;
    color: #2c3e50;
    line-height: 1.2;
    display: block;
    overflow: hidden;
    max-width: 100%;
    min-height: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.plants-category-section .plant-category-card .gf-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

/* Theme hover colors */
.theme-ready .plants-category-section .plant-category-card .gf-product-name a:hover { color: #28a745; }
.theme-future .plants-category-section .plant-category-card .gf-product-name a:hover { color: #17a2b8; }
.theme-waste .plants-category-section .plant-category-card .gf-product-name a:hover { color: #fd7e14; }

.gf-latin-name {
    font-style: italic;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Dates & Banners */
.plant-production-date,
.plant-coming-soon-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.plant-stock-banner {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.plant-stock-banner-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Price Display */
.gf-plant-price {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gf-current-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Style pour "le plant" - plus petit et pas en gras */
.gf-plant-price .text-muted {
    font-size: 0.75rem !important;
    font-weight: normal !important;
    color: #6c757d;
}

.gf-discount-badge {
    display: inline-block;
    vertical-align: super;
    margin-left: 0.25rem;
}

.gf-discount-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #dc3545; /* Red for discount usually better */
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Quantity Selector */
.gf-quick-add-row {
    margin-top: auto;
}

.gf-quick-add-pill {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    height: 40px; /* Taller for touch targets */
}

.gf-qty-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #495057;
    font-size: 0.9rem;
}

.gf-qty-btn:hover {
    background: #e9ecef;
}

.gf-qty-display {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    user-select: none;
}

.gf-qty-display span[data-gf-qty-suffix] {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Add to Cart Button */
.gf-add-cart-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    height: 44px; /* Min touch target size */
    background-color: #225627; /* GreenForge green */
    color: white;
}

.gf-add-cart-btn:hover:not(:disabled) {
    background-color: #1a4420;
}

.gf-add-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d !important; /* Grey when disabled */
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: saturate(0.15);
}

/* Odoo Ribbon Style */
.o_ribbon {
    position: absolute;
    z-index: 10;
    overflow: hidden;
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    pointer-events: none;
}

.o_ribbon_top_left {
    top: 0;
    left: 0;
}

.o_ribbon span {
    position: absolute;
    display: block;
    background: #fd7e14;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 0.4rem 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: rotate(-45deg);
    transform-origin: center;
    width: 140px;
    left: -30px;
    top: 20px;
}

.o_ribbon span::before,
.o_ribbon span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.o_ribbon_top_left span::before {
    top: 0;
    right: 0;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent #c55a0a transparent;
}

.o_ribbon_top_left span::after {
    bottom: 0;
    left: 0;
    border-width: 8px 0 0 8px;
    border-color: transparent transparent transparent #c55a0a;
}

/* Footer Links */
.category-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.category-footer .btn-link {
    color: #225627; /* GreenForge green */
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.category-footer .btn-link:hover {
    color: #1a4420; /* GreenForge green darker */
    text-decoration: none;
}

/* ========================================== */
/* MOBILE OPTIMIZATIONS (Horizontal Scroll)   */
/* ========================================== */

@media (max-width: 767.98px) {
    .plants-category-section {
        margin-bottom: 2rem;
    }

    .s_plants_by_category .container,
    .s_plants_by_category .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: clip;
    }

    .s_plants_by_category .plants-category-section.gf-tech-card--home-box {
        overflow: visible;
    }

    .s_plants_by_category .plants-category-section .gf-tech-card-body--home-box {
        padding: 1.25rem 0.75rem 1.5rem;
        overflow: visible;
    }

    .s_plants_by_category .plants-category-section .gf-tech-card-deco--home-box {
        width: 4.75rem;
        max-width: 4.75rem;
        opacity: 0.42;
    }

    .category-header {
        text-align: left;
        padding: 0;
        margin-bottom: 1.25rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 0.9rem;
    }

    /* Carousel mobile — swipe horizontal + peek */
    .plants-category-carousel-wrapper {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        width: auto;
    }

    .plants-category-carousel {
        scroll-padding-inline: 0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        overflow-y: visible;
        touch-action: pan-x pan-y;
    }

    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"] {
        flex: 0 0 calc(90% - 0.5rem) !important;
        max-width: calc(90% - 0.5rem) !important;
        min-width: 0 !important;
    }

    /* Legacy grid fallback */
    .plants-category-grid.loaded {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 1rem;
        padding-bottom: 1.5rem;
        padding-left: 0.5rem;
        padding-right: 1.5rem;
        margin: 0 -0.5rem;
    }

    .plants-category-grid.loaded::-webkit-scrollbar {
        display: none;
    }

    .plants-category-grid > div {
        flex: 0 0 calc(90% - 0.5rem);
        max-width: calc(90% - 0.5rem);
        min-width: 0;
        scroll-snap-align: center;
        scroll-snap-stop: normal;
    }

    .plant-category-card.gf-modern-card {
        height: 100%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .gf-card-image-container {
        height: 180px; /* Slightly smaller image on mobile */
    }

    .gf-card-body {
        padding: 1rem;
    }

    .plants-category-section .plant-category-card .gf-product-name {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
        line-height: 1.2;
    }
    
    .gf-latin-name {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .gf-current-price {
        font-size: 1.25rem;
    }
    
    .gf-pesm-display {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    /* Touch Targets */
    .gf-quick-add-pill {
        height: 44px;
    }
    
    .gf-qty-btn {
        width: 48px; /* Wider touch target */
    }

    .gf-add-cart-btn {
        height: 48px; /* Min 48px touch target */
    }
    
    /* Footer mobile */
    .category-footer {
        margin-top: 1rem;
        text-align: center;
        padding-left: 0;
    }
    
    .category-footer .btn-link {
        font-size: 1rem;
    }
    
    /* Améliorer les transitions pour mobile */
    .plant-category-card.gf-modern-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Indicateur visuel de scroll (optionnel - peut être ajouté via JS) */
    .plants-category-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(248, 249, 250, 0.8));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .plants-category-container.has-scroll::after {
        opacity: 1;
    }
}

/* Très petits écrans (< 375px) */
@media (max-width: 374px) {
    .plants-category-carousel__item,
    .plants-category-carousel > div,
    .plants-category-carousel > [class*="col-"],
    .plants-category-grid > div {
        flex: 0 0 calc(92% - 0.5rem) !important;
        max-width: calc(92% - 0.5rem) !important;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .gf-card-image-container {
        height: 160px;
    }
    
    .gf-card-body {
        padding: 0.875rem;
    }
}
