/*
Theme Name: Mega Mart
Theme URI: https://sellerthemes.com/mega-mart-free/
Author: SellerThemes
Author URI: https://sellerthemes.com/
Description: Mega Mart is a fully responsive grocery eCommerce WordPress theme with complete WooCommerce support. Designed to look like a modern mobile app, it delivers a seamless shopping experience on all devices. With RTL readiness and smooth navigation, it’s perfect for online grocery stores, supermarkets, and organic shops. View Mega Mart Demo https://preview.sellerthemes.com/pro/megamart/
Version: 1.0.1
Tested up to: 7.0
Requires PHP: 7.4
Requires at Least: 4.7
License: GPLv3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: mega-mart
Slug: mega-mart
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-background, custom-colors, custom-header, custom-menu,  custom-logo, featured-image-header, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, portfolio, editor-style, grid-layout, rtl-language-support

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

*/

.wp-block-page-list p a {
	padding: 1rem;
}

.wp-block-post-author img {
    border-radius: 100%;
}

a.wp-block-button__link:focus {
	color: #fff;
	text-decoration: none;
}

.wp-block-latest-comments li a:not(:hover, :focus) {
	color: inherit;
}
.is-large.wc-block-cart .wc-block-cart-item__image>a{
width:70px:
}
.wc-block-components-product-sale-badge {
	text-decoration: none;
}

.post.grid-view-news-area ul.wp-block-rss {
	list-style: disc;
}

.widget .logged-in.wp-block-loginout a,
.widget .logged-out.wp-block-loginout a {
	color: inherit;
}

.post .wp-block-archives li {
	padding-bottom: 0.625rem;
}

.widget .wp-block-embed .wp-element-caption a {
	color: inherit;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus {
	text-decoration: none;
}

.sidebar .widget .textwidget a span{
	color: inherit;
}

.wp-block-file .wp-block-file__button {
   text-decoration: none;
   border: none;
}

select:focus,
.form-control:focus {
	border-color: rgb(255, 33, 79);
	box-shadow: 0 0 5px rgba(255, 33, 79, 1);
}

.wp-calendar-nav .wp-calendar-nav-prev > a:hover,
.wp-calendar-nav .wp-calendar-nav-next > a:hover,
.wp-calendar-nav .wp-calendar-nav-prev > a:focus,
.wp-calendar-nav .wp-calendar-nav-next > a:focus {
	text-decoration: none;
}

.input-group > .form-control:focus,
.input-group > .custom-select:focus,
.input-group > .custom-file:focus {
	z-index: 0;
}

.sidebar .widget .wp-block-group .wp-block-embed {
	margin: 0;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
 text-decoration: none !important;
}

.footer-sidebar .widget .wp-block-group .wp-block-verse {
 	    background: #202020;
 	    color: #cccccc;
}

.widget .wp-block-quote {
	color: inherit;
}

.sidebar .widget .wp-block-group .wp-block-preformatted a {
	text-decoration: underline;
}

.footer-sidebar .widget .wp-block-group .is-vertical a {
	color: inherit;
}

.entry-content ul.wp-block-post-template li.wp-block-post:hover {
	box-shadow: none;
}

.entry-content ul.wp-block-post-template {
	margin-left: 0;
	padding-left: 0;
}

.wp-block-image .alignleft figcaption {   
	text-align: left; 
}

.wp-block-button.is-style-outline a.wp-block-button__link {
    color: inherit;
}

.wp-block-button.is-style-outline a.wp-block-button__link {
 	border-color: inherit;
}

.wp-block-button.is-style-outline a.wp-block-button__link {
 	background: transparent;
}

.wp-block-group .wp-block-details p {
	margin-top: 1rem;
	padding-top: 1rem;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    text-decoration: none;
}

.wp-block-file a {
	text-decoration: none;
}

.wp-block-latest-comments.has-background {
	padding: 1rem;
}

.sidebar .widget .wp-block-accordion-heading .wp-block-accordion-heading__toggle:focus {
        border: 0px solid transparent;
        background-color: transparent;
        color: #333333;
}

.sidebar .widget .wp-block-file .wp-block-file__button {
	background-color: #ec1c24;
}

.footer-sidebar .widget .wp-block-media-text .wp-block-media-text__content a {
	color: #ff214f;
}

a.wp-block-latest-posts__post-title:hover,
a.wp-block-latest-posts__post-title:focus {
 	        color: inherit;
}

.wc-block-components-sidebar-layout.wc-block-cart .wc-block-cart__totals-title {
	font-weight: 700;
}

.wc-block-components-sidebar-layout.wc-block-cart .wc-block-cart__totals-title a {
    font-weight: 700;
}

.woocommerce .summary .product_meta>span a {
	text-decoration: none;
}

.footer-sidebar .widget .wp-block-accordion-heading__toggle-icon {
	display: flex;
	border: 0 none;
	margin: 0;
}

.footer-sidebar .widget .wp-block-accordion-heading .wp-block-accordion-heading__toggle {
	    border: 0px solid transparent;
 	    background-color: transparent;
}

.wc-block-components-formatted-money-amount {
	    font-weight: 700;
}

.woocommerce .summary .product_meta>span a {
   text-decoration: none;
}

.accordion-section .button-secondary:hover,
.wp-core-ui .accordion-section .button-secondary:focus {
   border: 1px solid #fff;
   color: #fff;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    font-weight: 600;
}

.wp-block-jetpack-tiled-gallery {
	border-radius: 16px;
	overflow: hidden;
	margin-block: 2rem;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
 .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 600;
}

/* Extra homepage product sections: match the original five-card product slider. */
.extra-product-section .products-slider {
    margin: 0;
    padding: 0;
    list-style: none;
}
.extra-product-section .products-slider > li,
.extra-product-section .products-slider .owl-item > li {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    list-style: none;
}
.extra-product-section .products-slider .product-single {
    height: 100%;
}
.extra-product-section .products-slider .product-img img {
    width: 100%;
    height: 190px;
    object-fit: contain;
}
.extra-product-section .products-slider .product-content {
    padding: 12px 10px;
}
.extra-product-section .products-slider .product-content h3 {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 8px;
}
.extra-product-section .products-slider .price {
    font-size: 16px;
}
@media (max-width: 767px) {
    .extra-product-section .products-slider .product-img img {
        height: 170px;
    }
}


/* Product sections 3-20: compact H6 title and circular shadow navigation. */
.extra-product-section .section-title h6 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 600;
    margin: 0 !important;
}
.extra-product-section .custom-owl-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.extra-product-section .custom-owl-nav button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--sp-primary);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.extra-product-section .custom-owl-nav button:hover,
.extra-product-section .custom-owl-nav button:focus {
    color: var(--sp-white);
    background: var(--sp-primary2);
}
.extra-product-section .custom-owl-nav button:disabled {
    opacity: .55;
}


/* Mobile header green background */
@media (max-width:767px){
.site-header,
.header,
.header-area,
.header-top,
.header-middle,
.header-bottom,
.navbar,
.navbar-area,
.menu-header,
#header{
    background:#2e7d32 !important;
}
}


/* Entire WooCommerce product card is clickable. */
.js-product-card {
    cursor: pointer;
}
.js-product-card:focus-visible {
    outline: 2px solid var(--sp-primary2);
    outline-offset: 2px;
}

/* Mobile: show two product cards side by side and keep Add to cart text visible. */
@media (max-width: 479px) {
    .product-section .products-slider .product-img > a > img,
    .extra-product-section .products-slider .product-img img {
        height: 125px;
    }

    .product-section .products-slider .product-content,
    .extra-product-section .products-slider .product-content {
        padding: 7px 6px;
    }

    .product-section .products-slider .product-content h3,
    .extra-product-section .products-slider .product-content h3 {
        font-size: 13px;
        line-height: 1.25;
        min-height: 32px;
        margin-bottom: 4px;
    }

    .product-section .products-slider .price,
    .extra-product-section .products-slider .price {
        font-size: 14px;
    }

    .product-section .products-slider .button.add_to_cart_button,
    .extra-product-section .products-slider .button.add_to_cart_button,
    .product-section .products-slider .button.product_type_grouped,
    .extra-product-section .products-slider .button.product_type_grouped,
    .product-section .products-slider .button.product_type_external,
    .extra-product-section .products-slider .button.product_type_external {
        display: inline-flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 7px !important;
        font-size: 11px !important;
        line-height: 28px !important;
        white-space: nowrap;
    }

    .product-section .products-slider .button.add_to_cart_button > span,
    .extra-product-section .products-slider .button.add_to_cart_button > span,
    .product-section .products-slider .button.product_type_grouped > span,
    .extra-product-section .products-slider .button.product_type_grouped > span,
    .product-section .products-slider .button.product_type_external > span,
    .extra-product-section .products-slider .button.product_type_external > span {
        display: inline !important;
        visibility: visible !important;
    }

    .product-section .products-slider .button.add_to_cart_button > i,
    .extra-product-section .products-slider .button.add_to_cart_button > i,
    .product-section .products-slider .button.product_type_grouped > i,
    .extra-product-section .products-slider .button.product_type_grouped > i,
    .product-section .products-slider .button.product_type_external > i,
    .extra-product-section .products-slider .button.product_type_external > i {
        width: 28px !important;
        min-width: 28px;
        line-height: 28px !important;
        margin-left: 4px;
    }
}

/* Product card click target, centered images and mobile cart button labels. */
.product-section .products-slider .product-img,
.extra-product-section .products-slider .product-img,
.woocommerce ul.products li.product .product-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-section .products-slider .product-img > a,
.extra-product-section .products-slider .product-img > a,
.woocommerce ul.products li.product .product-img > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-section .products-slider .product-img img,
.extra-product-section .products-slider .product-img img,
.woocommerce ul.products li.product .product-img img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 767px) {
    .product-section .products-slider .product-action,
    .extra-product-section .products-slider .product-action,
    .woocommerce ul.products li.product .product-action {
        display: flex;
        align-items: stretch;
        gap: 4px;
    }

    .product-section .products-slider a.button.add_to_cart_button,
    .extra-product-section .products-slider a.button.add_to_cart_button,
    .woocommerce ul.products li.product a.button.add_to_cart_button,
    .product-section .products-slider a.added_to_cart.wc-forward,
    .extra-product-section .products-slider a.added_to_cart.wc-forward,
    .woocommerce ul.products li.product a.added_to_cart.wc-forward {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        width: auto !important;
        max-width: 100%;
        padding: 0 8px !important;
        font-family: inherit !important;
        font-size: 11px !important;
        line-height: 30px !important;
        text-indent: 0 !important;
        white-space: nowrap;
        overflow: visible;
    }

    .product-section .products-slider a.button.add_to_cart_button span,
    .extra-product-section .products-slider a.button.add_to_cart_button span,
    .woocommerce ul.products li.product a.button.add_to_cart_button span {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 11px !important;
    }

    .product-section .products-slider a.added_to_cart.wc-forward::before,
    .product-section .products-slider a.added_to_cart.wc-forward::after,
    .extra-product-section .products-slider a.added_to_cart.wc-forward::before,
    .extra-product-section .products-slider a.added_to_cart.wc-forward::after,
    .woocommerce ul.products li.product a.added_to_cart.wc-forward::before,
    .woocommerce ul.products li.product a.added_to_cart.wc-forward::after {
        display: none !important;
        content: none !important;
    }
}

/* Super Mart merged homepage slider */
.super-mart-hero{padding:24px 0 12px;background:#fff}.super-mart-hero-grid{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(320px,1fr);gap:14px}.super-mart-main-slider,.super-mart-main-slider .owl-stage-outer,.super-mart-main-slider .owl-stage,.super-mart-main-slider .owl-item{height:100%}.super-mart-slide{min-height:448px;background:#eef0f2 center/cover no-repeat;border-radius:4px;position:relative;overflow:hidden;display:flex;align-items:center}.super-mart-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.9),rgba(255,255,255,.12))}.super-mart-slide-content{position:relative;z-index:1;max-width:58%;padding:45px}.super-mart-slide-content p{margin:0 0 8px;color:#e52236}.super-mart-slide-content h2{font-size:42px;line-height:1.12;margin:0 0 20px;color:#135f2b}.super-mart-shop-btn,.super-mart-side-content a{display:inline-flex;align-items:center;gap:12px;background:#24ad50;color:#fff!important;padding:11px 16px;border-radius:3px;text-decoration:none}.super-mart-shop-btn i,.super-mart-side-content a i{background:#ff9d00;margin:-11px -16px -11px 2px;padding:13px}.super-mart-main-slider .owl-nav{position:absolute;left:14px;bottom:16px;display:flex;gap:8px}.super-mart-main-slider .owl-nav button{width:42px;height:42px!important;border-radius:50%!important;background:#24ad50!important;color:#fff!important}.super-mart-main-slider .owl-dots{position:absolute;right:18px;bottom:18px}.super-mart-side-banners{display:grid;grid-template-rows:1fr 1fr;gap:14px}.super-mart-side-banner{min-height:217px;background:#f9d6a8 center/cover no-repeat;border-radius:4px;position:relative;overflow:hidden;display:flex;align-items:center}.super-mart-side-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.82),rgba(255,255,255,.06))}.super-mart-side-content{position:relative;z-index:1;padding:28px 18px}.super-mart-side-content span{color:#ef2838}.super-mart-side-content h3{font-size:28px;color:#135f2b;margin:4px 0 10px}.super-mart-services{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}.super-mart-service-card{border:1px solid #ddd;border-radius:4px;min-height:92px;padding:14px;display:flex;align-items:center;gap:14px;background:#fff}.super-mart-service-icon{width:58px;height:58px;min-width:58px;border-radius:50%;background:#24ad50;color:#fff;display:grid;place-items:center;font-size:27px}.super-mart-service-card strong,.super-mart-service-card small{display:block}.super-mart-service-card strong{font-size:15px;color:#555}.super-mart-service-card small{font-size:12px;color:#999;margin-top:3px}
@media(max-width:991px){.super-mart-hero-grid{grid-template-columns:1fr}.super-mart-side-banners{grid-template-columns:1fr 1fr;grid-template-rows:auto}.super-mart-slide{min-height:370px}.super-mart-services{grid-template-columns:repeat(2,1fr)}}
@media(max-width:575px){.super-mart-hero{padding-top:12px}.super-mart-hero-grid{gap:10px}.super-mart-slide{min-height:300px}.super-mart-slide-content{max-width:82%;padding:24px}.super-mart-slide-content h2{font-size:28px}.super-mart-side-banners{grid-template-columns:1fr}.super-mart-side-banner{min-height:170px}.super-mart-services{grid-template-columns:1fr 1fr;gap:8px}.super-mart-service-card{padding:9px;min-height:80px}.super-mart-service-icon{width:44px;height:44px;min-width:44px;font-size:20px}.super-mart-service-card strong{font-size:12px}.super-mart-service-card small{font-size:10px}}

/* ==========================================================
 * User requested visual and interaction refinements
 * ========================================================== */

/* Complete header uses the requested green background. */
.header.header-one,
.header.header-one .navigator-wrapper,
.header.header-one .navigation-middle,
.header.header-one .main-navigation-area,
.header.header-one .navigation-middle-row,
.header.header-one .nav-area,
.header.header-one .navbar-area,
.header.header-one .navigation-content,
.header.header-one .main-navbar,
.header.header-one .mobile-menu,
.header.header-one .mobile-menu-wrapper,
.header.header-one .mean-container .mean-bar {
    background-color: #28a745 !important;
}

/* Keep logo, navigation, account and cart controls legible on green. */
.header.header-one .site-title,
.header.header-one .site-title a,
.header.header-one .site-description,
.header.header-one .main-menu-right,
.header.header-one .main-menu-right a,
.header.header-one .main-menu-right button,
.header.header-one .contact-area,
.header.header-one .contact-area a,
.header.header-one .contact-area p,
.header.header-one .contact-area span,
.header.header-one .mean-container a.meanmenu-reveal {
    color: #000000 !important;
}

/* Menu text stays white at all times, including on green header background. */
.header.header-one .main-navbar > ul > li > a,
.header.header-one .menubar > ul > li > a,
.header.header-one .menubar .menu-wrap > li > a,
.header.header-one .menubar .menu-wrap li > a {
    color: #ffffff !important;
}

.header.header-one .main-navbar > ul > li > a:hover,
.header.header-one .main-navbar > ul > li.current-menu-item > a,
.header.header-one .menubar > ul > li > a:hover,
.header.header-one .menubar .menu-wrap > li > a:hover,
.header.header-one .menubar .menu-wrap .menu-item.active > a,
.header.header-one .menubar .menu-wrap > li:hover > a,
.header.header-one .menubar .menu-wrap > li:focus-within > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
}

/* Search box remains clean and readable. */
.header.header-one .header-search-form,
.header.header-one .header-search-form form,
.header.header-one .header-search-input,
.header.header-one .header-search-select,
.header.header-one input[type="search"] {
    background: #ffffff !important;
}
.header.header-one .header-search-input,
.header.header-one .header-search-select,
.header.header-one input[type="search"] {
    color: #333333 !important;
}
.header.header-one .header-search-button {
    background: #ffffff !important;
    color: #28a745 !important;
}

/* White image panel with perfectly centered, uncropped product image. */
.product-section .products-slider .product-img,
.extra-product-section .products-slider .product-img,
.woocommerce ul.products li.product .product-img,
.woocommerce ul.products li.product .product-single .product-img {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    background: #ffffff !important;
    overflow: hidden;
}

.product-section .products-slider .product-img > a,
.extra-product-section .products-slider .product-img > a,
.woocommerce ul.products li.product .product-img > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.product-section .products-slider .product-img img,
.extra-product-section .products-slider .product-img img,
.woocommerce ul.products li.product .product-img img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 190px !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Clearly indicate that the complete card is a click target. */
.product-single.js-product-card {
    position: relative;
    cursor: pointer !important;
}
.product-single.js-product-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

/* Bigger, truly circular slider arrows with hover animation and shadow. */
.super-mart-main-slider .owl-nav {
    align-items: center;
}
.super-mart-main-slider .owl-nav button.owl-prev,
.super-mart-main-slider .owl-nav button.owl-next,
.super-mart-main-slider .owl-nav button {
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    background: #28a745 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}
.super-mart-main-slider .owl-nav button:hover,
.super-mart-main-slider .owl-nav button:focus {
    background: #218838 !important;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.30) !important;
    outline: none;
}
.super-mart-main-slider .owl-nav button span,
.super-mart-main-slider .owl-nav button i {
    font-size: 28px !important;
    line-height: 1 !important;
}

@media (max-width: 767px) {
    .product-section .products-slider .product-img img,
    .extra-product-section .products-slider .product-img img,
    .woocommerce ul.products li.product .product-img img,
    .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
        height: 135px !important;
    }

    .super-mart-main-slider .owl-nav button.owl-prev,
    .super-mart-main-slider .owl-nav button.owl-next,
    .super-mart-main-slider .owl-nav button {
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
        min-height: 52px !important;
    }
}

/* Final homepage layout fixes: keep hero controls inside the slider. */
.super-mart-main-slider {
    position: relative !important;
}
.super-mart-main-slider .owl-stage-outer {
    position: relative !important;
}
.super-mart-main-slider .owl-nav {
    position: absolute !important;
    left: 18px !important;
    right: auto !important;
    top: auto !important;
    bottom: 18px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transform: none !important;
    z-index: 30 !important;
}
.super-mart-main-slider .owl-nav button.owl-prev,
.super-mart-main-slider .owl-nav button.owl-next {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none;
}
.super-mart-main-slider .owl-nav button.owl-prev:hover,
.super-mart-main-slider .owl-nav button.owl-next:hover {
    transform: translateY(-2px) scale(1.06) !important;
}

/* Category carousel is moved directly below the header by the homepage script. */
body.home .mega-mart-category-after-header,
body.page-template-template-homepage .mega-mart-category-after-header {
    margin-top: 0 !important;
    position: relative;
    z-index: 5;
}

/* Dark green above-header strip requested by user. */
#above-header,
.header-above-info,
.header.header-one #above-header,
.header.header-one .header-above-info {
    background-color: #1B5E20 !important;
    color: #ffffff !important;
}

#above-header a,
#above-header p,
#above-header span,
#above-header i,
#above-header .widget,
#above-header .widget-title,
.header-above-info a,
.header-above-info p,
.header-above-info span,
.header-above-info i,
.header-above-info .widget,
.header-above-info .widget-title {
    color: #ffffff !important;
}

#above-header select,
.header-above-info select {
    color: #ffffff !important;
    background-color: #1B5E20 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Frontpage Category Section above Super Mart Slider */
.mega-mart-category-before-slider,
.mega-mart-category-after-header {
    width: 100%;
    position: relative;
    z-index: 3;
    margin: 0 0 18px;
    overflow: hidden;
}

.mega-mart-category-before-slider .breadcrumb-categories-slider,
.mega-mart-category-after-header .breadcrumb-categories-slider {
    width: 100%;
}

.mega-mart-category-before-slider .owl-stage,
.mega-mart-category-after-header .owl-stage {
    display: flex;
    align-items: stretch;
}

.mega-mart-category-before-slider .owl-item,
.mega-mart-category-after-header .owl-item {
    display: flex;
    justify-content: center;
}

@media (max-width: 991px) {
    .mega-mart-category-before-slider,
    .mega-mart-category-after-header {
        margin-bottom: 12px;
    }

    .mega-mart-category-before-slider .container,
    .mega-mart-category-after-header .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 575px) {
    .mega-mart-category-before-slider,
    .mega-mart-category-after-header {
        margin-bottom: 10px;
    }

    .mega-mart-category-before-slider .breadcrumb-categories-slider,
    .mega-mart-category-after-header .breadcrumb-categories-slider {
        padding-left: 0 !important;
        padding-right: 0 !important;
        touch-action: pan-y;
    }
}

/* Frontpage category carousel: always above the Super Mart hero. */
.mega-mart-home-category-section {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 20px;
}
.mega-mart-home-category-section .mega-mart-home-category-wrapper {
    width: 100%;
}
.mega-mart-home-category-section .breadcrumb-carousel,
.mega-mart-home-category-section .breadcrumb-categories-slider {
    width: 100%;
}
@media (max-width: 767px) {
    .mega-mart-home-category-section {
        margin-bottom: 12px;
    }
    .mega-mart-home-category-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* Restore original compact category section (remove added background/container) */
.mega-mart-home-category-section,
.mega-mart-home-category-section .container,
.mega-mart-home-category-wrapper,
.breadcrumb-categories-slider,
.breadcrumb-carousel{
    background: transparent !important;
    box-shadow:none !important;
    border:none !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
}

/* Frontpage category carousel: compact mobile and tablet layout */
@media (max-width: 991px) {
    .mega-mart-home-category-section {
        margin-bottom: 10px !important;
        overflow: hidden;
    }

    .mega-mart-home-category-section .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mega-mart-home-category-section .breadcrumb-categories-slider {
        padding: 8px 22px !important;
        min-height: 145px;
    }

    .mega-mart-home-category-section .owl-stage {
        display: flex;
        align-items: flex-start;
    }

    .mega-mart-home-category-section .owl-item {
        display: flex;
        justify-content: center;
    }

    .mega-mart-home-category-section .categories-item {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        text-align: center;
        padding: 0 2px;
    }

    .mega-mart-home-category-section .categories-item .categories-img {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
        margin: 0 auto;
        background: #fff;
    }

    .mega-mart-home-category-section .categories-item .categories-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mega-mart-home-category-section .categories-content {
        width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

    .mega-mart-home-category-section .categories-content h6 {
        margin: 0 0 5px !important;
        font-size: 14px !important;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mega-mart-home-category-section .categories-content .count-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        margin: 0;
        border-radius: 50px;
        font-size: 11px;
        line-height: 18px;
        color: #fff;
        background: #dc3545;
    }

    .mega-mart-home-category-section .categories-content .categories-categories {
        display: none !important;
    }

    .mega-mart-home-category-section .owl-nav button.owl-prev,
    .mega-mart-home-category-section .owl-nav button.owl-next {
        width: 24px !important;
        height: 24px !important;
        line-height: 24px !important;
        top: 54px !important;
        margin: 0 !important;
        font-size: 11px !important;
        color: #fff !important;
        background: #0b5d2a !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 6px rgba(0,0,0,.22) !important;
        z-index: 5;
    }

    .mega-mart-home-category-section .owl-nav button.owl-prev {
        left: 10px !important;
    }

    .mega-mart-home-category-section .owl-nav button.owl-next {
        right: 10px !important;
    }
}

@media (max-width: 479px) {
    .mega-mart-home-category-section .breadcrumb-categories-slider {
        min-height: 138px;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .mega-mart-home-category-section .categories-item .categories-img {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .mega-mart-home-category-section .categories-content h6 {
        font-size: 12px !important;
    }

    .mega-mart-home-category-section .owl-nav button.owl-prev,
    .mega-mart-home-category-section .owl-nav button.owl-next {
        top: 49px !important;
    }

    .mega-mart-home-category-section .owl-nav button.owl-prev {
        left: 4px !important;
    }

    .mega-mart-home-category-section .owl-nav button.owl-next {
        right: 4px !important;
    }
}

/* Category top spacing */

/* Super Mart hero: responsive desktop/tablet split and mobile stack */
.super-mart-hero .super-mart-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.super-mart-hero .super-mart-main-slider,
.super-mart-hero .super-mart-main-slider .owl-stage-outer,
.super-mart-hero .super-mart-main-slider .owl-stage,
.super-mart-hero .super-mart-main-slider .owl-item,
.super-mart-hero .super-mart-main-slider .super-mart-slide {
    height: 99% !important;
}

.super-mart-hero .super-mart-main-slider {
    min-width: 0;
    min-height: 448px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.super-mart-hero .super-mart-slide {
    min-height: 448px !important;
    background-position: center !important;
    background-size: cover !important;
}

.super-mart-hero .super-mart-side-banners {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    min-width: 0;
    min-height: 448px;
}

.super-mart-hero .super-mart-side-banner {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: 100%;
    background-position: center !important;
    background-size: cover !important;
}

.super-mart-hero .super-mart-slide-content,
.super-mart-hero .super-mart-side-content {
    overflow-wrap: anywhere;
}

.super-mart-hero .super-mart-slide-content h2 {
    font-size: clamp(30px, 3.2vw, 48px) !important;
}

.super-mart-hero .super-mart-side-content h3 {
    font-size: clamp(20px, 2vw, 30px) !important;
    line-height: 1.12;
}

/* Keep the two-column composition on tablets. */
@media (min-width: 768px) and (max-width: 991px) {
    .super-mart-hero .container {
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .super-mart-hero .super-mart-hero-grid {
        grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr) !important;
        gap: 12px !important;
    }

    .super-mart-hero .super-mart-main-slider,
    .super-mart-hero .super-mart-slide,
    .super-mart-hero .super-mart-side-banners {
        min-height: 360px !important;
    }

    .super-mart-hero .super-mart-side-banners {
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .super-mart-hero .super-mart-slide-content {
        max-width: 68% !important;
        padding: 28px !important;
    }

    .super-mart-hero .super-mart-slide-content h2 {
        font-size: clamp(27px, 4vw, 38px) !important;
        margin-bottom: 14px !important;
    }

    .super-mart-hero .super-mart-side-content {
        padding: 18px 14px !important;
        max-width: 72%;
    }

    .super-mart-hero .super-mart-side-content h3 {
        font-size: clamp(18px, 2.5vw, 24px) !important;
        margin-bottom: 8px !important;
    }

    .super-mart-hero .super-mart-side-content a,
    .super-mart-hero .super-mart-shop-btn {
        padding: 9px 12px !important;
        font-size: 13px !important;
    }
}

/* Mobile: slider first, then banner 1 and banner 2. */
@media (max-width: 767px) {
    .super-mart-hero {
        padding-top: 10px !important;
    }

    .super-mart-hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .super-mart-hero .super-mart-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .super-mart-hero .super-mart-main-slider,
    .super-mart-hero .super-mart-main-slider .owl-stage-outer,
    .super-mart-hero .super-mart-main-slider .owl-stage,
    .super-mart-hero .super-mart-main-slider .owl-item,
    .super-mart-hero .super-mart-main-slider .super-mart-slide {
        height: 318px !important;
        min-height: 318px !important;
    }

    .super-mart-hero .super-mart-slide {
        background-position: center center !important;
    }

    .super-mart-hero .super-mart-slide:before {
        background: linear-gradient(90deg, rgba(255,255,255,.84), rgba(255,255,255,.08)) !important;
    }

    .super-mart-hero .super-mart-slide-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 72% !important;
        padding: 20px 16px !important;
    }

    .super-mart-hero .super-mart-slide-content p {
        display: block !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .super-mart-hero .super-mart-slide-content h2 {
        display: block !important;
        font-size: clamp(24px, 7.5vw, 34px) !important;
        line-height: 1.08 !important;
        margin-bottom: 14px !important;
    }

    .super-mart-hero .super-mart-shop-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
    }

    .super-mart-hero .super-mart-side-banners {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        min-height: 0 !important;
    }

    .super-mart-hero .super-mart-side-banner {
        flex: none !important;
        width: 100% !important;
        min-height: 210px !important;
        height: 210px !important;
        background-position: center center !important;
    }

    .super-mart-hero .super-mart-side-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 64% !important;
        padding: 18px 12px !important;
    }

    .super-mart-hero .super-mart-side-content span {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .super-mart-hero .super-mart-side-content h3 {
        display: block !important;
        font-size: clamp(20px, 6vw, 27px) !important;
        line-height: 1.08 !important;
        margin: 4px 0 9px !important;
    }

    .super-mart-hero .super-mart-side-content a {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-nav {
        left: 10px !important;
        bottom: 10px !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-nav button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-dots {
        right: 12px !important;
        bottom: 12px !important;
    }
}

@media (max-width: 420px) {
    .super-mart-hero .super-mart-main-slider,
    .super-mart-hero .super-mart-main-slider .owl-stage-outer,
    .super-mart-hero .super-mart-main-slider .owl-stage,
    .super-mart-hero .super-mart-main-slider .owl-item,
    .super-mart-hero .super-mart-main-slider .super-mart-slide {
        height: 285px !important;
        min-height: 285px !important;
    }

    .super-mart-hero .super-mart-side-banner {
        min-height: 185px !important;
        height: 185px !important;
    }

    .super-mart-hero .super-mart-slide-content {
        max-width: 76% !important;
        padding: 16px 12px !important;
    }

    .super-mart-hero .super-mart-side-content {
        max-width: 67% !important;
        padding: 14px 10px !important;
    }
}

/* Mobile Super Mart slider text visibility and compact controls - final override */
@media (max-width: 767px) {
    .super-mart-hero .super-mart-main-slider,
    .super-mart-hero .super-mart-main-slider .owl-stage-outer,
    .super-mart-hero .super-mart-main-slider .owl-stage,
    .super-mart-hero .super-mart-main-slider .owl-item,
    .super-mart-hero .super-mart-slide {
        position: relative !important;
    }

    .super-mart-hero .super-mart-slide {
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .super-mart-hero .super-mart-slide::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.74) 42%, rgba(255,255,255,.05) 78%) !important;
        pointer-events: none !important;
    }

    .super-mart-hero .super-mart-slide-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 20 !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: 78% !important;
        padding: 18px 14px !important;
        margin: 0 !important;
        text-align: left !important;
        pointer-events: auto !important;
    }

    .super-mart-hero .super-mart-slide-content p,
    .super-mart-hero .super-mart-slide-content h2,
    .super-mart-hero .super-mart-slide-content .super-mart-shop-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
        text-indent: 0 !important;
    }

    .super-mart-hero .super-mart-slide-content p {
        color: #155d2b !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 0 0 7px !important;
    }

    .super-mart-hero .super-mart-slide-content h2 {
        color: #e7333f !important;
        font-size: clamp(23px, 7vw, 32px) !important;
        line-height: 1.12 !important;
        margin: 0 0 13px !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .super-mart-hero .super-mart-slide-content .super-mart-shop-btn {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        color: #fff !important;
        background: #28a745 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        padding: 9px 11px !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-nav {
        left: 9px !important;
        bottom: 9px !important;
        gap: 7px !important;
        z-index: 30 !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-nav button.owl-prev,
    .super-mart-hero .super-mart-main-slider .owl-nav button.owl-next,
    .super-mart-hero .super-mart-main-slider .owl-nav button {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-nav button span,
    .super-mart-hero .super-mart-main-slider .owl-nav button i {
        font-size: 17px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 420px) {
    .super-mart-hero .super-mart-slide-content {
        max-width: 82% !important;
        padding: 14px 11px !important;
    }

    .super-mart-hero .super-mart-slide-content h2 {
        font-size: clamp(21px, 7vw, 28px) !important;
    }

    .super-mart-hero .super-mart-main-slider .owl-nav button.owl-prev,
    .super-mart-hero .super-mart-main-slider .owl-nav button.owl-next,
    .super-mart-hero .super-mart-main-slider .owl-nav button {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
    }
}

/* ===== Editable Above Header Bar ===== */
.mega-custom-topbar {
    --mega-topbar-bg: #185f24;
    --mega-topbar-text: #ffffff;
    --mega-topbar-accent: #ffae00;
    --mega-topbar-deal: #ef334f;
    --mega-topbar-bottom: #22b14c;
    background: var(--mega-topbar-bg);
    color: var(--mega-topbar-text);
    border-bottom: 4px solid var(--mega-topbar-bottom);
    min-height: 68px;
    display: flex;
    align-items: center;
}
.mega-custom-topbar .container { width: 100%; }
.mega-custom-topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1.35fr;
    align-items: center;
    gap: 28px;
    min-height: 64px;
}
.mega-topbar-left,
.mega-topbar-center,
.mega-topbar-right {
    display: flex;
    align-items: center;
}
.mega-topbar-left { gap: 10px; }
.mega-topbar-center { justify-content: center; gap: 34px; }
.mega-topbar-right { justify-content: flex-end; gap: 12px; min-width: 0; }
.mega-custom-topbar a,
.mega-custom-topbar span { color: inherit; }
.mega-topbar-pill,
.mega-topbar-daily {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
}
.mega-topbar-pill { background: var(--mega-topbar-accent); }
.mega-topbar-daily { background: var(--mega-topbar-deal); }
.mega-topbar-pill i,
.mega-topbar-daily i { font-size: 15px; }
.mega-topbar-welcome {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    white-space: nowrap;
}
.mega-topbar-tracking,
.mega-topbar-widget-area,
.mega-topbar-widget-area a {
    color: #fff !important;
    font-size: 14px;
    text-decoration: underline;
    white-space: nowrap;
}
.mega-topbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.45);
    flex: 0 0 auto;
}
.mega-topbar-widget-area { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mega-topbar-widget { margin: 0; }
.mega-topbar-widget ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; }

@media (max-width: 1199px) {
    .mega-custom-topbar-inner { grid-template-columns: auto 1fr; gap: 18px; }
    .mega-topbar-left { grid-column: 1; }
    .mega-topbar-center { grid-column: 2; justify-content: flex-end; gap: 18px; }
    .mega-topbar-right { grid-column: 1 / -1; justify-content: center; padding-bottom: 10px; }
    .mega-custom-topbar { min-height: 86px; }
}
@media (max-width: 767px) {
    .mega-custom-topbar { min-height: auto; padding: 10px 0; border-bottom-width: 3px; }
    .mega-custom-topbar-inner { display: flex; flex-direction: column; gap: 9px; min-height: 0; }
    .mega-topbar-left,
    .mega-topbar-center,
    .mega-topbar-right { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 12px; }
    .mega-topbar-pill,
    .mega-topbar-daily { min-height: 30px; padding: 6px 11px; font-size: 12px; }
    .mega-topbar-welcome,
    .mega-topbar-tracking,
    .mega-topbar-widget-area,
    .mega-topbar-widget-area a { font-size: 12px; }
    .mega-topbar-divider { height: 16px; }
}

/* Hide the custom Above Header Bar on tablet and mobile devices. */
@media screen and (max-width: 991px) {
    .mega-custom-topbar {
        display: none !important;
    }
}

/* Homepage bottom-to-top reveal animation */
.home .mm-rise-reveal {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    transition:
        opacity 700ms ease var(--mm-reveal-delay, 0ms),
        transform 700ms cubic-bezier(.22, .61, .36, 1) var(--mm-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.home .mm-rise-reveal.mm-rise-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Keep carousel positioning stable while animating its items. */
.home .owl-stage,
.home .swiper-wrapper {
    transform-style: preserve-3d;
}

@media (max-width: 767px) {
    .home .mm-rise-reveal {
        transform: translate3d(0, 28px, 0);
        transition-duration: 560ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home .mm-rise-reveal,
    .home .mm-rise-reveal.mm-rise-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================
 * Product card alignment and cart button usability fix
 * ========================================================== */
.woocommerce ul.products li.product .product-single,
.product-section .products-slider .product-single,
.extra-product-section .products-slider .product-single {
    text-align: center !important;
}

.woocommerce ul.products li.product .product-content,
.product-section .products-slider .product-content,
.extra-product-section .products-slider .product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center !important;
}

.woocommerce ul.products li.product .product-content h3,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.product-section .products-slider .product-content h3,
.product-section .products-slider .price,
.product-section .products-slider .star-rating,
.extra-product-section .products-slider .product-content h3,
.extra-product-section .products-slider .price,
.extra-product-section .products-slider .star-rating {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .product-action,
.product-section .products-slider .product-action,
.extra-product-section .products-slider .product-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Keep the Add to cart label fully visible on narrow product cards. */
.woocommerce ul.products li.product .product-action a.button,
.product-section .products-slider .product-action a.button,
.extra-product-section .products-slider .product-action a.button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 160px !important;
    min-height: 38px !important;
    height: auto !important;
    padding: 6px 8px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.woocommerce ul.products li.product .product-action a.button > span,
.product-section .products-slider .product-action a.button > span,
.extra-product-section .products-slider .product-action a.button > span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.woocommerce ul.products li.product .product-action a.button > i,
.product-section .products-slider .product-action a.button > i,
.extra-product-section .products-slider .product-action a.button > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    line-height: 25px !important;
    margin: 0 !important;
    border-radius: 3px;
}

/* After AJAX add-to-cart, replace the old button visually with View cart. */
.woocommerce ul.products li.product .product-action a.add_to_cart_button.added,
.product-section .products-slider .product-action a.add_to_cart_button.added,
.extra-product-section .products-slider .product-action a.add_to_cart_button.added {
    display: none !important;
}

.woocommerce ul.products li.product .product-action a.added_to_cart.wc-forward,
.product-section .products-slider .product-action a.added_to_cart.wc-forward,
.extra-product-section .products-slider .product-action a.added_to_cart.wc-forward {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 160px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    margin: 0 auto !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .woocommerce ul.products li.product .product-action,
    .product-section .products-slider .product-action,
    .extra-product-section .products-slider .product-action {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .woocommerce ul.products li.product .product-action a.button,
    .product-section .products-slider .product-action a.button,
    .extra-product-section .products-slider .product-action a.button,
    .woocommerce ul.products li.product .product-action a.added_to_cart.wc-forward,
    .product-section .products-slider .product-action a.added_to_cart.wc-forward,
    .extra-product-section .products-slider .product-action a.added_to_cart.wc-forward {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 36px !important;
        padding: 6px 5px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 380px) {
    .woocommerce ul.products li.product .product-action a.button,
    .product-section .products-slider .product-action a.button,
    .extra-product-section .products-slider .product-action a.button,
    .woocommerce ul.products li.product .product-action a.added_to_cart.wc-forward,
    .product-section .products-slider .product-action a.added_to_cart.wc-forward,
    .extra-product-section .products-slider .product-action a.added_to_cart.wc-forward {
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }

    .woocommerce ul.products li.product .product-action a.button > i,
    .product-section .products-slider .product-action a.button > i,
    .extra-product-section .products-slider .product-action a.button > i {
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        line-height: 22px !important;
    }
}

/* Final Super Mart slider cleanup and clearer action buttons */
.super-mart-hero .super-mart-shop-btn,
.super-mart-hero .super-mart-side-content > a {
    min-height: 48px !important;
    padding: 0 0 0 18px !important;
    gap: 14px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255,255,255,.72) !important;
    border-radius: 5px !important;
    background: #22a844 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.22) !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}

.super-mart-hero .super-mart-shop-btn i,
.super-mart-hero .super-mart-side-content > a i {
    align-self: stretch !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    background: #ffad00 !important;
    color: #fff !important;
    font-size: 17px !important;
}

.super-mart-hero .super-mart-shop-btn:hover,
.super-mart-hero .super-mart-side-content > a:hover,
.super-mart-hero .super-mart-shop-btn:focus,
.super-mart-hero .super-mart-side-content > a:focus {
    background: #168d35 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.28) !important;
}

/* A single configured slide must not create empty carousel space. */
.super-mart-main-slider:not(.owl-loaded) > .super-mart-slide:not(:first-child) {
    display: none !important;
}

@media (max-width: 767px) {
    .super-mart-hero .super-mart-shop-btn,
    .super-mart-hero .super-mart-side-content > a {
        min-height: 42px !important;
        padding-left: 14px !important;
        gap: 10px !important;
        font-size: 13px !important;
    }

    .super-mart-hero .super-mart-shop-btn i,
    .super-mart-hero .super-mart-side-content > a i {
        min-width: 42px !important;
        padding: 0 12px !important;
        font-size: 15px !important;
    }
}

/* Product image display fix: large, centered and fully visible in every product card. */
.home .product-section .products-slider .product-img,
.home .extra-product-section .products-slider .product-img,
.home .woocommerce ul.products li.product .product-img,
.home .product-single .product-img {
    width: 100% !important;
    height: 290px !important;
    min-height: 290px !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f7f8fa !important;
    overflow: hidden !important;
}

.home .product-section .products-slider .product-img > a,
.home .extra-product-section .products-slider .product-img > a,
.home .woocommerce ul.products li.product .product-img > a,
.home .product-single .product-img > a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home .product-section .products-slider .product-img img,
.home .extra-product-section .products-slider .product-img img,
.home .woocommerce ul.products li.product .product-img img,
.home .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.home .product-single .product-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .home .product-section .products-slider .product-img,
    .home .extra-product-section .products-slider .product-img,
    .home .woocommerce ul.products li.product .product-img,
    .home .product-single .product-img {
        height: 235px !important;
        min-height: 235px !important;
        padding: 12px !important;
    }
}

@media (max-width: 767px) {
    .home .product-section .products-slider .product-img,
    .home .extra-product-section .products-slider .product-img,
    .home .woocommerce ul.products li.product .product-img,
    .home .product-single .product-img {
        height: 175px !important;
        min-height: 175px !important;
        padding: 8px !important;
    }
}

/* Full-card product image layout - final override */
.home .product-section .products-slider .product-img,
.home .extra-product-section .products-slider .product-img,
.home .woocommerce ul.products li.product .product-img,
.home .product-single .product-img {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f7f8fa !important;
    overflow: hidden !important;
}

.home .product-section .products-slider .product-img > a,
.home .extra-product-section .products-slider .product-img > a,
.home .woocommerce ul.products li.product .product-img > a,
.home .product-single .product-img > a {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home .product-section .products-slider .product-img img,
.home .extra-product-section .products-slider .product-img img,
.home .woocommerce ul.products li.product .product-img img,
.home .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.home .product-single .product-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1.32) !important;
    transform-origin: center !important;
    transition: transform .3s ease !important;
}

.home .product-single:hover .product-img img {
    transform: scale(1.38) !important;
}

.home .product-img .sale-ribbon {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .home .product-section .products-slider .product-img,
    .home .extra-product-section .products-slider .product-img,
    .home .woocommerce ul.products li.product .product-img,
    .home .product-single .product-img {
        height: 245px !important;
        min-height: 245px !important;
    }
}

@media (max-width: 767px) {
    .home .product-section .products-slider .product-img,
    .home .extra-product-section .products-slider .product-img,
    .home .woocommerce ul.products li.product .product-img,
    .home .product-single .product-img {
        height: 185px !important;
        min-height: 185px !important;
    }

    .home .product-section .products-slider .product-img img,
    .home .extra-product-section .products-slider .product-img img,
    .home .woocommerce ul.products li.product .product-img img,
    .home .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
    .home .product-single .product-img img {
        transform: scale(1.24) !important;
    }

    .home .product-single:hover .product-img img {
        transform: scale(1.28) !important;
    }
}

/* ==========================================================================
   Floating "Fly Cart" button — fixed to the right edge, vertically centered
   ========================================================================== */
.footer-cart-wrapper {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
}

.footer-cart-wrapper .big-price {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--sp-primary, #155825);
    box-shadow: 0 6px 18px rgba(21, 88, 37, 0.4);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-cart-wrapper .big-price:hover,
.footer-cart-wrapper .big-price:focus {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(21, 88, 37, 0.5);
}

.footer-cart-wrapper .small-price {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-cart-wrapper .small-price i {
    color: #ffffff;
    font-size: 22px;
}

.footer-cart-wrapper .fly-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sp-secondary2, #dc3546);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    border: 2px solid #ffffff;
}

/* Bump/pulse animation played briefly when a product is added to the cart */
.footer-cart-wrapper.mm-cart-bump .big-price {
    animation: mmCartBump 0.5s ease;
}

@keyframes mmCartBump {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.25); }
    55%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* The little icon that "flies" from the clicked Add to Cart button
   towards the floating cart button. */
.mm-fly-to-cart {
    position: fixed;
    z-index: 9999;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--sp-primary, #155825);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    pointer-events: none;
    transition: top 0.7s cubic-bezier(0.35, 0, 0.25, 1), left 0.7s cubic-bezier(0.35, 0, 0.25, 1), transform 0.7s ease, opacity 0.7s ease;
    opacity: 1;
}

.mm-fly-to-cart.mm-fly-active {
    transform: scale(0.35);
    opacity: 0.15;
}

@media (max-width: 991px) {
    .footer-cart-wrapper .big-price {
        width: 48px;
        height: 48px;
    }

    .footer-cart-wrapper .small-price i {
        font-size: 18px;
    }

    .footer-cart-wrapper {
        right: 14px;
    }
}

/* Keep the floating button from covering the mobile bottom nav bar on very small screens */
@media (max-width: 575px) {
    .footer-cart-wrapper {
        top: auto;
        bottom: 90px;
        transform: none;
    }
}
