/*
 Theme Name:   Plant Nursery Child
 Template:     plant-nursery
 Version:      1.0
*/

/* ===== Safety net: prevent horizontal scroll / overflow on any screen ===== */
html {
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

/* ===== MOBILE (max-width: 767px) ===== */
@media screen and (max-width: 767px) {

    /* Hero banner */
    .wp-block-cover.banner-wrap {
        min-height: 480px !important;
    }

    .banner-wrap .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .banner-wrap .bannerr-1 {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .banner-wrap .bannerr-2 {
        display: none !important;
    }

    .banner-wrap h2.wp-block-heading {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .banner-wrap p {
        font-size: 15px !important;
    }

    .banner-wrap .wp-block-buttons {
        justify-content: flex-start !important;
    }

    /* Services section: 4 columns -> 1 column */
    .services-inner .wp-block-columns.team-main-box {
        flex-wrap: wrap !important;
    }

    .services-inner .services-inner-box {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }

    .services-inner h2.wp-block-heading {
        font-size: 24px !important;
    }

    /* Generic: any WooCommerce/Gutenberg columns should stack on mobile
       unless a section explicitly overrides this above */
    .wp-block-columns:not(.banner-wrap .wp-block-columns) {
        flex-wrap: wrap !important;
    }

    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    /* Category circle images */
    .wp-block-image.is-style-rounded img {
        width: 90px !important;
        height: 90px !important;
    }

    /* Blog grid: 3 columns -> 1 column */
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tighter section padding on small screens */
    .wp-block-group {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    h1 {
        font-size: 30px !important;
    }

    h2 {
        font-size: 26px !important;
    }

    h3 {
        font-size: 20px !important;
    }
}

/* ===== SMALL PHONES (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    .wp-block-cover.banner-wrap {
        min-height: 400px !important;
    }

    .banner-wrap h2.wp-block-heading {
        font-size: 22px !important;
    }

    .wp-block-image.is-style-rounded img {
        width: 70px !important;
        height: 70px !important;
    }
}

/* ===== Fix overlay header colliding with hero banner on mobile ===== */
@media screen and (max-width: 867px) {
    .menu-header {
        position: relative !important;
        background: var(--wp--preset--color--extra-primary, #1c3b2a) !important;
        z-index: 10;
    }

    .banner-wrap {
        margin-top: 0 !important;
    }
}

/* ===== General mobile polish ===== */
@media screen and (max-width: 767px) {

    /* Comfortable tap targets */
    a,
    button,
    .wp-block-button__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce excess vertical spacing between sections */
    .wp-block-group,
    .wp-block-cover,
    section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    /* Body text readability */
    p,
    li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* Footer: stack columns, add spacing between them */
    .wp-block-columns.footer-columns,
    footer .wp-block-columns {
        flex-wrap: wrap !important;
    }

    footer .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-bottom: 28px !important;
    }

    /* Contact form: full-width, larger inputs already handled by
       .wpcf7-form rules above 600px breakpoint, this just tightens further */
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        font-size: 16px !important;
        /* prevents iOS auto-zoom on focus */
    }

    /* Prevent long words/URLs from breaking layout */
    p,
    h1,
    h2,
    h3,
    h4 {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ===== Horizontal scrollable nav bar instead of hamburger overlay ===== */
@media screen and (max-width: 767px) {

    /* Hide the hamburger toggle button entirely */
    .wp-block-navigation__responsive-container-open {
        display: none !important;
    }

    /* Force the menu container to stay in normal flow, not become
       a full-screen overlay modal */
    .header-navv .wp-block-navigation__responsive-container {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        z-index: auto !important;
    }

    .header-navv .wp-block-navigation__responsive-container-content {
        padding: 0 !important;
    }

    /* Make the actual menu list scroll horizontally */
    .header-navv .wp-block-navigation__container,
    .header-navv ul.wp-block-navigation__container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 20px !important;
        padding: 10px 16px !important;
        margin: 0 !important;
        list-style: none !important;
        scrollbar-width: thin;
    }

    .header-navv .wp-block-navigation-item {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .header-navv .wp-block-navigation-item a {
        font-size: 15px !important;
        padding: 6px 4px !important;
    }

    /* Make the column that holds the nav full width so scrolling has room */
    .header-navv.feat-cols-2 {
        flex-basis: 100% !important;
        width: 100% !important;
        order: 3;
        /* push nav below logo row */
    }
}

/* ===== Tighter, more compact mobile header ===== */
@media screen and (max-width: 767px) {

    .menu-header {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Logo row: smaller logo, smaller site title, less gap */
    .header-logooo.feat-cols-1 {
        flex-basis: 60% !important;
    }

    .logo-box {
        gap: 8px !important;
    }

    .logo-box img,
    .wp-block-site-logo img {
        width: 30px !important;
        height: 30px !important;
    }

    .wp-block-site-title,
    .wp-block-site-title a {
        font-size: 18px !important;
    }

    /* Search + cart icons: smaller, tighter row */
    .header-search.feat-cols-3,
    .header-cart.feat-cols-4 {
        flex-basis: 20% !important;
    }

    .header-search button svg,
    .wc-block-mini-cart__button svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Nav bar: smaller text, tighter gaps, less padding */
    .header-navv .wp-block-navigation__container {
        gap: 14px !important;
        padding: 8px 12px !important;
    }

    .header-navv .wp-block-navigation-item a {
        font-size: 13px !important;
        padding: 4px 2px !important;
    }

    /* Shrink the top info bar (hours/location/email) to fit better */
    .top-bar {
        padding: 8px 0 !important;
    }

    .columnn-1,
    .columnn-2,
    .columnn-3 {
        flex-basis: 33.33% !important;
    }

    .columnn-1 p,
    .columnn-2 p,
    .columnn-3 p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .columnn-4,
    .columnn-5 {
        display: none !important;
        /* hide social icons row on mobile to save space */
    }
}

/* ===== Force nav container visible + horizontal on mobile (override core) ===== */
@media screen and (max-width: 767px) {
    .wp-block-navigation__responsive-container {
        display: block !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        z-index: auto !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close {
        display: none !important;
    }

    .wp-block-navigation__responsive-container-content {
        padding: 0 !important;
    }

    .wp-block-navigation__container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 14px !important;
        padding: 6px 12px !important;
        margin: 0 !important;
    }

    .wp-block-navigation-item {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .wp-block-navigation-item__content {
        padding: 4px 2px !important;
        font-size: 13px !important;
    }

    .header-navv.feat-cols-2 {
        flex-basis: 100% !important;
        width: 100% !important;
        order: 3;
    }
}

/* ===== OVERRIDE: single-row scaled layout matching desktop structure ===== */
@media screen and (max-width: 767px) {

    /* Top bar: restore horizontal row, just shrink everything */
    .top-bar .wp-block-columns {
        flex-wrap: nowrap !important;
    }

    .columnn-1,
    .columnn-2,
    .columnn-3 {
        flex-basis: auto !important;
    }

    .columnn-1 p,
    .columnn-2 p,
    .columnn-3 p {
        font-size: 9px !important;
        white-space: nowrap;
    }

    .columnn-4,
    .columnn-5 {
        display: flex !important;
        flex-basis: auto !important;
    }

    .columnn-5 .wp-block-social-links {
        gap: 4px !important;
    }

    .columnn-5 svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Menu header row: restore horizontal, shrink logo/nav/button */
    .header-navv.feat-cols-2 {
        order: initial !important;
        flex-basis: auto !important;
        width: auto !important;
    }

    .logo-box img,
    .wp-block-site-logo img {
        width: 24px !important;
        height: 24px !important;
    }

    .wp-block-site-title,
    .wp-block-site-title a {
        font-size: 12px !important;
    }

    .wp-block-navigation__container {
        gap: 6px !important;
        overflow-x: visible !important;
    }

    .wp-block-navigation-item__content {
        font-size: 9px !important;
        padding: 2px !important;
    }

    .header-bttn.feat-cols-5 .wp-block-button__link {
        font-size: 9px !important;
        padding: 4px 8px !important;
    }

    .header-search svg,
    .wc-block-mini-cart__button svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ===== Tighter vertical padding on header wrappers ===== */
@media screen and (max-width: 767px) {
    .top-bar {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .menu-header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

/* ===== FINAL: force both header rows into single unbroken lines ===== */
@media screen and (max-width: 767px) {

    /* Top bar: info + social icons, all one row */
    .top-bar {
        overflow-x: hidden !important;
    }

    .top-bar .wp-block-columns {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .top-bar .wp-block-column {
        flex-basis: auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .columnn-1 p,
    .columnn-2 p,
    .columnn-3 p {
        font-size: 8px !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .columnn-1 .dashicons,
    .columnn-2 .dashicons,
    .columnn-3 .dashicons {
        font-size: 10px !important;
        width: 10px !important;
        height: 10px !important;
    }

    .columnn-5 .wp-block-social-links {
        gap: 3px !important;
        flex-wrap: nowrap !important;
    }

    .columnn-5 svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* Menu header row: logo + nav + search + cart + button, all one row */
    .menu-header .wp-block-columns {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .menu-header .wp-block-column {
        flex-basis: auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .logo-box img,
    .wp-block-site-logo img {
        width: 20px !important;
        height: 20px !important;
    }

    .wp-block-site-title,
    .wp-block-site-title a {
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .wp-block-navigation__container {
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    .wp-block-navigation-item__content {
        font-size: 8px !important;
        padding: 1px !important;
        white-space: nowrap !important;
    }

    .header-bttn.feat-cols-5 .wp-block-button__link {
        font-size: 8px !important;
        padding: 3px 6px !important;
        white-space: nowrap !important;
    }

    .header-search svg,
    .wc-block-mini-cart__button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* ===== SPECIFICITY FIX: force single-row nowrap to actually win ===== */
@media screen and (max-width: 767px) {

    .top-bar.top-bar.top-bar .wp-block-columns,
    .menu-header.menu-header.menu-header .wp-block-columns {
        flex-wrap: nowrap !important;
    }

    .top-bar.top-bar.top-bar .wp-block-column,
    .menu-header.menu-header.menu-header .wp-block-column {
        flex-basis: auto !important;
        width: auto !important;
    }
}

/* ===== HYBRID: menu-header logo row separate from scrollable nav row ===== */
@media screen and (max-width: 767px) {
    .menu-header.menu-header.menu-header .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .header-logooo,
    .header-search,
    .header-cart {
        flex-basis: auto !important;
    }

    .header-navv.header-navv.header-navv {
        flex-basis: 100% !important;
        width: 100% !important;
        order: 10;
    }

    .header-bttn.header-bttn.header-bttn {
        flex-basis: auto !important;
        margin-left: auto;
    }

    .wp-block-navigation__container {
        overflow-x: auto !important;
        font-size: 11px !important;
    }

    .wp-block-navigation-item__content {
        font-size: 11px !important;
    }
}

/* ===== More breathing room across the mobile header ===== */
@media screen and (max-width: 767px) {

    /* Top bar: more gap between hours/location/email/icons */
    .top-bar.top-bar.top-bar .wp-block-columns {
        gap: 12px !important;
    }

    .columnn-1 p,
    .columnn-2 p,
    .columnn-3 p {
        font-size: 10px !important;
    }

    .columnn-5 .wp-block-social-links {
        gap: 8px !important;
    }

    .columnn-5 svg {
        width: 13px !important;
        height: 13px !important;
    }

    .top-bar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Logo row: more padding around it */
    .menu-header {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .logo-box img,
    .wp-block-site-logo img {
        width: 30px !important;
        height: 30px !important;
    }

    .wp-block-site-title,
    .wp-block-site-title a {
        font-size: 15px !important;
    }

    /* Nav row: bigger gaps between links, more padding, larger text */
    .wp-block-navigation__container {
        gap: 24px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    .wp-block-navigation-item__content {
        font-size: 14px !important;
        padding: 6px 4px !important;
    }

    /* Search/cart/button row: more spacing */
    .header-search.feat-cols-3,
    .header-cart.feat-cols-4 {
        padding: 8px 16px !important;
    }

    .header-search svg,
    .wc-block-mini-cart__button svg {
        width: 20px !important;
        height: 20px !important;
    }

    .header-bttn.header-bttn.header-bttn .wp-block-button__link {
        font-size: 14px !important;
        padding: 10px 24px !important;
    }
}

/* ===== Fix mobile top-bar overlap (hours / location / email / social icons) ===== */
@media screen and (max-width: 767px) {
    .top-bar .wp-block-columns {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        row-gap: 8px !important;
        column-gap: 16px !important;
        margin: 0 !important;
    }

    .top-bar .wp-block-column {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .columnn-1,
    .columnn-2,
    .columnn-3 {
        display: flex !important;
        align-items: center !important;
    }

    .columnn-1 p,
    .columnn-2 p,
    .columnn-3 p {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        font-size: 12px !important;
        white-space: normal !important;
    }

    .columnn-4,
    .columnn-5 {
        display: flex !important;
        flex: 0 0 auto !important;
    }

   .columnn-5 .wp-block-social-links {
       display: flex !important;
       gap: 10px !important;
       flex-wrap: wrap !important;
       justify-content: center !important;
   }

   .columnn-5 svg {
       flex-shrink: 0 !important;
   }
}

/* ===== Enhanced category link styling (Shop By Category section) ===== */
.wp-block-columns .wp-block-column p a {
    color: var(--wp--preset--color--extra-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    position: relative;
    transition: color 0.25s ease;
}

.wp-block-columns .wp-block-column p a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--wp--preset--color--extra-tertiary, #c8d96f);
    transition: width 0.3s ease, left 0.3s ease;
}

.wp-block-columns .wp-block-column p a:hover {
    color: var(--wp--preset--color--extra-tertiary, #8a9a3a) !important;
    text-decoration: none !important;
}

.wp-block-columns .wp-block-column p a:hover::after {
    width: 100%;
    left: 0%;
}

/* Subtle zoom on the category image when hovering the card */
.wp-block-columns .wp-block-column .wp-block-image img {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wp-block-columns .wp-block-column:hover .wp-block-image img {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
/* ===== Footer links: force white, beat any competing specificity ===== */
.footer-outer-box.footer-outer-box.footer-outer-box a,
.footer-div.footer-div.footer-div a,
.footer-div.footer-div.footer-div p a {
    color: #ffffff !important;
}

.footer-outer-box.footer-outer-box.footer-outer-box a:hover,
.footer-div.footer-div.footer-div a:hover {
    color: #d9ef82 !important;
}

/* ===== Fix invisible "Read More" button (undefined --white color variable) ===== */
.read-more-btn a.wp-block-post-excerpt__more-link,
.read-more-btn a.wp-block-post-excerpt__more-link.wp-block-post-excerpt__more-link {
    color: #ffffff !important;
}

.read-more-btn a.wp-block-post-excerpt__more-link:hover {
    color: var(--wp--preset--color--extra-tertiary, #d9ef82) !important;
}


/* ===== Scrolling promo bar (replaces top info bar) ===== */
.top-bar {
    display: none !important;
}

.bageecha-promo-bar {
    background: var(--wp--preset--color--extra-tertiary, #d9ef82);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.bageecha-promo-track {
    display: inline-block;
    animation: bageecha-scroll 25s linear infinite;
}

.bageecha-promo-item {
    display: inline-block;
    color: var(--wp--preset--color--extra-primary, #365140);
    font-weight: 600;
    font-size: 14px;
    padding: 0 40px;
    position: relative;
}

.bageecha-promo-item::after {
    content: '•';
    position: absolute;
    right: -4px;
}

@keyframes bageecha-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover so it's readable */
.bageecha-promo-bar:hover .bageecha-promo-track {
    animation-play-state: paused;
}

/* Rounded-square logo */
.logo-box .wp-block-site-logo img,
.logo-box img.custom-logo {
    border-radius: 24px;
    object-fit: cover;
}
/* ==========================================================
   Bageecha — Modern Product Card Styling
   ========================================================== */

/* Layout — flexbox, equal-width cards, consistent rows */
.woocommerce ul.products.products {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 28px;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Neutralize WooCommerce's legacy clearfix pseudo-elements —
   these become real (invisible) flex items and shift row 1 */
.woocommerce ul.products.products::before,
.woocommerce ul.products.products::after {
    content: none !important;
    display: none !important;
}

/* Card sizing + structure */
.woocommerce ul.products.products li.product {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: calc(25% - 21px) !important;
    /* 4 per row on desktop */
    height: auto;
    margin: 0 !important;
    float: none !important;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(24, 39, 24, 0.06);
    border: 1px solid rgba(24, 39, 24, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    position: relative;
    padding-bottom: 18px !important;
}

.woocommerce ul.products.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(24, 39, 24, 0.14);
}

/* Link wrapper stretches full card height */
.woocommerce ul.products.products li.product a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1;
    height: 100%;
    text-decoration: none !important;
}

/* Product image */
.woocommerce ul.products.products li.product img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    margin: 0 0 14px 0 !important;
    transition: transform 0.4s ease;
}

.woocommerce ul.products.products li.product:hover img {
    transform: scale(1.05);
}

/* Title + price — same dark charcoal color */
.woocommerce ul.products.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #222222 !important;
    text-align: center;
    display: block !important;
    overflow: visible;
    white-space: normal;
    margin: 0 12px 6px !important;
}

.woocommerce ul.products.products li.product .price {
    font-size: 16px;
    font-weight: 700;
    color: #222222 !important;
    text-align: center;
    display: block;
    margin: 0 12px auto 12px !important;
    padding-bottom: 12px;
}

/* Add to cart button */
.woocommerce ul.products.products li.product .button,
.woocommerce ul.products.products li.product a.add_to_cart_button {
    display: block;
    width: calc(100% - 24px);
    margin: 10px 12px 0 !important;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--wp--preset--color--extra-primary, #2e7d32);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.woocommerce ul.products.products li.product .button:hover,
.woocommerce ul.products.products li.product a.add_to_cart_button:hover {
    background: #1f5c25;
    transform: scale(1.03);
}

/* Tablet — 3 per row */
@media (max-width: 992px) {
    .woocommerce ul.products.products li.product {
        width: calc(33.333% - 19px) !important;
    }
}

/* Mobile — 2 per row */
@media (max-width: 600px) {
    .woocommerce ul.products.products {
        gap: 16px;
    }

    .woocommerce ul.products.products li.product {
        width: calc(50% - 8px) !important;
    }
}


/* Link wrapper — stretches full card height so price/button pin to bottom */
.woocommerce ul.products.products li.product a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: transform 0.45s ease;
}

.woocommerce ul.products.products li.product:hover img {
    transform: scale(1.08);
}

/* Sale badge — restyle WooCommerce's default "Sale!" flash */
.woocommerce span.onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: #e0592a !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 10px rgba(224, 89, 42, 0.35);
}

/* Text content area */
.woocommerce ul.products.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2a1f;
    margin: 16px 16px 6px !important;
    line-height: 1.35;
    min-height: 68px;
    /* keeps titles aligned across cards */
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Star ratings, if enabled */
.woocommerce ul.products.products li.product .star-rating {
    margin: 4px 16px 0 !important;
    font-size: 13px;
}

/* Price — pinned to bottom of the flex column so short titles don't
   leave price/button floating at different heights across the row */
.woocommerce ul.products.products li.product .price {
    margin: auto 16px 0 !important;
    font-size: 15px;
    color: #4b5a4b;
}

.woocommerce ul.products.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
    color: #2f6b2f;
}

.woocommerce ul.products.products li.product .price del {
    opacity: 0.55;
    font-size: 13px;
    margin-right: 6px;
}

/* Add to cart button */
.woocommerce ul.products.products li.product .button,
.woocommerce ul.products.products li.product a.add_to_cart_button {
    display: inline-block;
    margin: 10px 16px 0 !important;
    padding: 10px 18px !important;
    background: #2f6b2f !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products.products li.product .button:hover,
.woocommerce ul.products.products li.product a.add_to_cart_button:hover {
    background: #1f4d1f !important;
    transform: scale(1.04);
}

/* ==========================================================
   Sorting dropdown (Default sorting / Popularity / Price etc.)
   ========================================================== */

.woocommerce-ordering {
    margin: 0 0 24px 0 !important;
    display: inline-block;
}

.woocommerce-ordering select.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 1px solid rgba(24, 39, 24, 0.15);
    border-radius: 999px;
    padding: 10px 40px 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2a1f;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(24, 39, 24, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    /* custom dropdown arrow, drawn with SVG so it matches the theme color */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%232f6b2f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.woocommerce-ordering select.orderby:hover {
    border-color: #2f6b2f;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: #2f6b2f;
    box-shadow: 0 0 0 3px rgba(47, 107, 47, 0.15);
}

/* Row that holds result count + sorting — align them nicely */
.woocommerce-result-count {
    color: #4b5a4b;
    font-size: 13px;
    margin: 0 0 24px 0 !important;
}

@media (min-width: 601px) {

    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        display: inline-block;
        vertical-align: middle;
    }

    .woocommerce .woocommerce-ordering {
        float: right;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .woocommerce ul.products.products li.product {
        width: calc(33.333% - 19px) !important;
        /* 3 per row */
    }
}

/* Mobile tightening */
@media (max-width: 600px) {
    .woocommerce ul.products.products {
        gap: 16px;
    }

    .woocommerce ul.products.products li.product {
        width: calc(50% - 8px) !important;
        /* 2 per row */
    }

    .woocommerce ul.products.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        min-height: 56px;
        margin: 12px 12px 4px !important;
    }

    .woocommerce ul.products.products li.product .price,
    .woocommerce ul.products.products li.product .button,
    .woocommerce ul.products.products li.product a.add_to_cart_button {
        margin-left: 12px !important;
        margin-right: 12px !important;
    }
}

/* Best Seller badge — enhanced */
.woocommerce ul.products li.product {
    position: relative;
    overflow: visible;
}
.bageecha-bestseller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--wp--preset--color--extra-tertiary) 0%, color-mix(in srgb, var(--wp--preset--color--extra-tertiary) 80%, white) 100%);
    background-size: 200% auto;
    color: var(--wp--preset--color--extra-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 5px 12px 5px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: bageecha-badge-shine 3s ease-in-out infinite;
}
.bageecha-bestseller-badge::before {
    content: "★";
    font-size: 12px;
    line-height: 1;
}
.woocommerce ul.products li.product:hover .bageecha-bestseller-badge {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
@keyframes bageecha-badge-shine {
    0% { background-position: -60px 0; }
    100% { background-position: 120px 0; }
}
@media (max-width: 600px) {
    .bageecha-bestseller-badge {
        font-size: 10px;
        padding: 4px 10px 4px 8px;
        top: 8px;
        left: 8px;
    }
    .bageecha-bestseller-badge::before {
        font-size: 10px;
    }
}

/* Shop By Category section */
.bageecha-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.bageecha-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.bageecha-cat-card:hover {
    transform: translateY(-6px);
}
.bageecha-cat-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.25s ease;
}
.bageecha-cat-card:hover .bageecha-cat-card-image {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.bageecha-cat-card-label {
    margin-top: 14px;
    font-family: var(--wp--preset--font-family--plant-nursery-poppins, inherit);
    font-weight: 600;
    font-size: 16px;
    color: var(--wp--preset--color--extra-primary);
    text-align: center;
}
@media (max-width: 900px) {
    .bageecha-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 480px) {
    .bageecha-cat-card-label {
        font-size: 14px;
    }
}

/* ===== Desktop nav spacing ===== */
@media screen and (min-width: 768px) {
    .header-navv .wp-block-navigation__container {
        gap: 12px !important;
        /* increase/decrease this value to taste */
    }
}

.header-navv .wp-block-navigation-item {
    margin-inline: 8px !important;
}

/* ===== Boxed nav links (Home / Shop / Care Guides / About / Contact / Sign In) ===== */
.header-navv .wp-block-navigation-item__content {
    display: inline-block !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    background: var(--wp--preset--color--extra-primary, #1c3b2a);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}

.header-navv .wp-block-navigation-item__content:hover {
    background: var(--wp--preset--color--extra-tertiary, #d9ef82);
    color: var(--wp--preset--color--extra-primary, #1c3b2a) !important;
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-navv .wp-block-navigation-item__content:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Highlight current page */
.header-navv .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    background: var(--wp--preset--color--extra-tertiary, #d9ef82);
    color: var(--wp--preset--color--extra-primary, #1c3b2a) !important;
}

/* Breathing room between boxes */
.header-navv .wp-block-navigation__container {
    gap: 6px !important;
}


/* ===== Search bar row — sits above the promo bar ===== */
.bageecha-search-row {
    width: 100%;
    background: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bageecha-search-form {
    display: flex;
    align-items: center;
    background: #f4f4f2;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
}

.bageecha-search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
}

.bageecha-search-btn {
    border: none;
    background: transparent;
    padding: 0 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--wp--preset--color--extra-primary, #1c3b2a);
}

@media (max-width: 600px) {
    .bageecha-search-row {
        padding: 8px 16px;
    }
}