/* ============================================================
   Base Integration Styles
   ============================================================ */
/* ── Mobile/Tablet App-Style Header (e1.pdf Page 2) ── */
.farmart-mobile-tablet-header {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    background-color: #ffffff !important;
    padding: 12px 14px 10px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

@media (min-width: 1200px) {
    .farmart-mobile-tablet-header {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .header-mobile,
    .header-mobile.header--sticky {
        padding: 5px 15px;
    }

    .header-mobile .logo img {
        max-height: 32px !important;
    }
}

/* Hide default Farmart footer-mobile */
.footer-mobile {
    display: none !important;
}

/* Hide Bottom Bar Menu on Product Details Page (PDP) */
body.single-product .bottom-bar-menu-wrapper,
body.single-product .client-bottom-nav,
body.single-product .bottom-bar-menu,
body.single-product .footer-mobile {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* But show Bottom Bar Menu when floating video overlay is open on PDP */
body.single-product.lp-pv-open .bottom-bar-menu-wrapper,
body.single-product.lp-pv-open .client-bottom-nav,
body.single-product:has(#lp-pv-overlay.lp-pv-active) .bottom-bar-menu-wrapper,
body.single-product:has(#lp-pv-overlay.lp-pv-active) .client-bottom-nav {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1000005 !important;
    transform: none !important;
}

body.single-product.lp-pv-open .sticky-atc-wrap,
body.single-product:has(#lp-pv-overlay.lp-pv-active) .sticky-atc-wrap {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hide duplicate Add to Cart & Buy Now in page body on mobile PDP (bottom card replaces them) */
@media (max-width: 767.98px) {
    body.single-product .product-details-content .cart-form .product-button,
    body.single-product .product-details .product-button {
        display: none !important;
    }
}

/* Hide standard mobile header on single product page */
body.single-product #farmart-app-mobile-header,
body[class*="single-product"] #farmart-app-mobile-header {
    display: none !important;
}
.mobile-header-back-btn {
    display: none !important;
}
.mobile-header-hamburger-btn {
    display: inline-flex !important;
}


#footer {
    margin-bottom: 0 !important;
}

/* ── 6-Tab Bottom Navigation Bar (e1.pdf Page 5) ── */
.bottom-bar-menu-wrapper {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 1045 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

@media (min-width: 1200px) {
    .bottom-bar-menu-wrapper {
        display: none !important;
    }
}

.bottom-bar-menu-wrapper .bottom-bar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none !important;
    background: #ffffff !important;
}

.bottom-bar-menu-wrapper .bottom-bar-item {
    flex: 1 1 0 !important;
    text-align: center !important;
}

.bottom-bar-menu-wrapper .bottom-bar-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    padding: 3px 1px !important;
    transition: color 0.15s ease !important;
}

.bottom-bar-menu-wrapper .bottom-bar-item.active .bottom-bar-link,
.bottom-bar-menu-wrapper .bottom-bar-link.active {
    color: var(--bottom-bar-active-color, #f95738) !important;
    font-weight: 700 !important;
}

.bottom-bar-menu-wrapper .bottom-bar-icon-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    margin-bottom: 2px !important;
}

.bottom-bar-menu-wrapper .bottom-bar-icon {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
}

.bottom-bar-menu-wrapper .bottom-bar-text {
    font-size: 11px !important;
    font-weight: 500 !important;
    display: block !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
}

.bottom-bar-menu-wrapper .bottom-bar-item.active .bottom-bar-text {
    font-weight: 700 !important;
}

.bottom-bar-menu-wrapper .chat-counter,
.bottom-bar-menu-wrapper .cart-counter {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    background: #f95738 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    min-width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 1199.98px) {
    body {
        padding-bottom: 65px !important;
    }
    body.single-product {
        padding-bottom: 125px !important;
    }
    body.single-product .sticky-atc-wrap {
        bottom: 56px !important;
    }
}

/* ============================================================
   IMAGE 2: MODERN MARKETPLACE PRODUCT CARD (Temu / Clean Style)
   ============================================================ */

/* Card container */
.product-inner {
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.product-inner:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07) !important;
    border-color: #e2e8f0 !important;
}
.product-thumbnail {
    position: relative !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}
.product-thumbnail .product-loop__link {
    display: block !important;
}

/* Green Est. 3 Workdays Badge on Bottom-Left of Thumbnail */
.est-workdays-badge {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    background: #00703c !important;
    color: #ffffff !important;
    padding: 3px 9px 4px 8px !important;
    border-top-right-radius: 8px !important;
    z-index: 5 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    pointer-events: none !important;
    box-shadow: 1px -1px 3px rgba(0, 0, 0, 0.12) !important;
}
.est-workdays-badge .est-line1 {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 3px !important;
}
.est-workdays-badge .est-line1 strong {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}
.est-workdays-badge .est-line2 {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: 0.2px !important;
}

/* Product Details */
.product-details {
    padding: 8px 10px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Clean Product Title */
.product__title {
    margin: 0 0 4px 0 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}
.product-title-modern {
    color: #1e293b !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 32px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}
.product-title-modern:hover {
    color: #00703c !important;
}

/* Hide Est. Workdays and Other Sellers */
.est-workdays-badge,
.product-other-sellers {
    display: none !important;
}

/* Price & Cart Row */
.product-price-cart-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    gap: 6px !important;
}
.price-and-discount {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.product-price-main {
    color: #dc2626 !important;
    display: inline-flex !important;
    align-items: baseline !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}
.product-price-main .currency-sym {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-right: 1px !important;
}
.product-price-main .price-int {
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}
.product-price-main .price-dec {
    font-size: 13px !important;
    font-weight: 700 !important;
}
.product-discount-pill {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

/* Compact Cart Button */
.modern-card-cart-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}
.modern-card-cart-btn:hover {
    background: #00703c !important;
    border-color: #00703c !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}
.modern-card-cart-btn svg {
    stroke: currentColor !important;
}

/* Warehouse / Shipping */
.product-warehouse-meta {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
    color: #059669 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
}
.product-warehouse-meta svg {
    flex-shrink: 0 !important;
}

/* Other Sellers Pill */
.product-other-sellers {
    margin-top: 6px !important;
}
.other-sellers-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 2px 7px !important;
    text-decoration: none !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    transition: background 0.15s ease !important;
}
.other-sellers-pill:hover {
    background: #f1f5f9 !important;
}
.other-sellers-pill .sellers-count {
    color: #ea580c !important;
    font-weight: 800 !important;
    font-size: 11.5px !important;
}
.other-sellers-pill .sellers-label {
    color: #475569 !important;
    font-weight: 500 !important;
}
.other-sellers-pill .sellers-arrow {
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Hide bulky old loop buttons and full-width buttons on cards (from Image 1) */
.product-thumbnail .product-loop-buttons {
    display: none !important;
}
.product-bottom-box {
    display: none !important;
}
.sold-by-meta {
    display: none !important;
}
.product-details .star-rating-wrapper,
.product-details .product-reviews {
    display: none !important;
}


/* =========================================================
   IMAGE 4: MOBILE PDP STICKY BAR [ ♡ ] [ Buy Now ] [ ↘ 44% OFF! Add to Cart ]
   ========================================================= */

@media (max-width: 1024px) {
    .sticky-atc-wrap {
        position: fixed !important;
        bottom: 50px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background: #ffffff !important;
        padding: 7px 12px !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
        z-index: 1030 !important;
        transform: translateZ(0) !important;
        display: block !important;
        visibility: visible !important;
    }

    /* Container & Row overrides */
    .sticky-atc-wrap .container,
    .sticky-atc-wrap .row {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sticky-atc-wrap .sticky-atc-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* 1. Wishlist Outline Button [ ♡ ] */
    .sticky-wishlist-icon-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        border: none !important;
        border-radius: 6px !important;
        color: #000000 !important;
        cursor: pointer !important;
        margin: 0 !important;
        flex: 0 0 44px !important;
        flex-shrink: 0 !important;
        box-shadow: none !important;
    }
    .sticky-wishlist-icon-btn svg,
    .sticky-wishlist-icon-btn .heart-icon-svg {
        width: 26px !important;
        height: 26px !important;
        stroke: #000000 !important;
        stroke-width: 1.8 !important;
        fill: none !important;
        transition: all 0.15s ease !important;
    }
    .sticky-wishlist-icon-btn.added-to-wishlist svg,
    .sticky-wishlist-icon-btn.added-to-wishlist .heart-icon-svg {
        stroke: #e11d48 !important;
        fill: #e11d48 !important;
    }

    /* 2. Buy Now Button (White box with black border) */
    .sticky-buy-now-modern {
        flex: 1 1 38% !important;
        height: 44px !important;
        background: #ffffff !important;
        border: 1.5px solid #000000 !important;
        color: #000000 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 10px !important;
        cursor: pointer !important;
        text-transform: none !important;
        line-height: 1 !important;
        box-shadow: none !important;
        transition: background 0.15s ease !important;
    }
    .sticky-buy-now-modern:hover,
    .sticky-buy-now-modern:active {
        background: #f8fafc !important;
        color: #000000 !important;
        border-color: #000000 !important;
    }

    /* 3. Add to Cart Button (Solid Black with ↘ 44% OFF! Add to Cart) */
    .sticky-atc-modern {
        flex: 1 1 54% !important;
        height: 44px !important;
        background: #000000 !important;
        border: 1.5px solid #000000 !important;
        color: #ffffff !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 10px !important;
        cursor: pointer !important;
        font-size: 14.5px !important;
        line-height: 1 !important;
        box-shadow: none !important;
        transition: background 0.15s ease !important;
        white-space: nowrap !important;
    }
    .sticky-atc-modern:hover,
    .sticky-atc-modern:active {
        background: #18181b !important;
        color: #ffffff !important;
    }
    .sticky-atc-modern .discount-lightning {
        color: #fde047 !important;
        font-weight: 800 !important;
        font-size: 14px !important;
        letter-spacing: -0.2px !important;
    }
    .sticky-atc-modern .discount-lightning .trend-icon {
        font-size: 15px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        color: #fde047 !important;
    }
    .sticky-atc-modern .add-text {
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    /* If device doesn't have bottom bar menu, anchor sticky bar at very bottom */
    body:not(:has(.bottom-bar-menu)):not(:has(.footer-mobile)) .sticky-atc-wrap {
        bottom: 0 !important;
    }
}

/* Hide mobile sticky bar on desktop */
@media (min-width: 1025px) {
    .sticky-atc-wrap {
        display: none !important;
    }
}

/* ── Full-Width Subcategories Horizontal Carousel (e1.pdf Page 2) ── */
.full-width-subcategories-wrap {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    z-index: 10;
}
.subcategories-scroller::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.subcategories-scroller {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    scroll-behavior: smooth;
    cursor: grab;
}
.subcategory-pill-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 6px !important;
    min-width: 84px !important;
    max-width: 92px !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.subcategory-pill-card:hover {
    transform: translateY(-2px);
    border-color: #f59e0b !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}
