/* --- Product variants (weight picker) --- */
.variant-option {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    font-family: "Inter", "Open Sans", sans-serif;
}

.variant-option:hover {
    border-color: #099547;
    color: #099547;
}

.variant-option.active {
    background: #099547;
    border-color: #099547;
    color: #fff;
    box-shadow: 0 2px 8px rgba(9, 149, 71, 0.25);
}

.variant-block {
    padding: 14px 0;
}

/* ============================================
   BANGLAR HAAT - UI Enhancement Styles
   ============================================ */

/* --- Smooth page-wide animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Header polish --- */
.app-header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.search-pill {
    transition: box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.search-pill:focus-within {
    box-shadow: 0 0 0 3px rgba(9, 149, 71, 0.25);
    border-color: #099547;
}

.search-pill .btn {
    transition: all 0.3s ease;
}

.search-pill .btn:hover {
    background-color: #01431D !important;
    transform: scale(1.02);
}

.cart-icon {
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background-color: #e8f5e9;
    transform: scale(1.08);
}

.cart-count .count {
    background-color: #e53935 !important;
    animation: fadeIn 0.3s ease;
    font-weight: 700;
}

.user-icon {
    transition: all 0.3s ease;
}

.user-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* --- Nav bar polish --- */
.nav-link-btn {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #099547;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link-btn:hover::after {
    width: 100%;
}

.category-btn {
    transition: all 0.3s ease;
}

.category-btn:hover {
    color: #01431D;
}

.category-dropdown {
    animation: fadeInUp 0.25s ease;
    border: 1px solid #e8f5e9;
}

.category-dropdown a {
    transition: all 0.2s ease;
    position: relative;
    padding-left: 18px;
}

.category-dropdown a:hover {
    padding-left: 24px;
    color: #099547;
    font-weight: 600;
}

/* --- Banner section --- */
.banner-section .content {
    animation: slideInLeft 0.8s ease;
}

.banner-section .image {
    animation: fadeIn 1s ease;
}

.banner-section .image img {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12));
    transition: transform 0.5s ease;
}

.banner-section .image img:hover {
    transform: scale(1.03);
}

.banner-section .shop-now-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.banner-section .shop-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.banner-section .shop-now-btn:hover::before {
    left: 100%;
}

/* --- Service info cards (shipping, support etc) --- */
.nbh-card {
    position: relative;
    overflow: hidden;
}

.nbh-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #099547;
    transition: height 0.4s ease;
}

.nbh-card:hover::before {
    height: 100%;
}

/* --- Top categories --- */
.top-categories {
    animation: fadeInUp 0.6s ease;
}

.top-catagory-item .image-container {
    position: relative;
    overflow: hidden;
}

.top-catagory-item .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(9, 149, 71, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: 20px;
}

.top-catagory-item:hover .image-container::after {
    opacity: 1;
}

/* --- Product cards --- */
.product-item .custom-badge {
    animation: fadeIn 0.5s ease;
}

.product-item .content .price {
    position: relative;
}

.product-item .content .price .old-price {
    position: relative;
}

.product-item .content .price .old-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #e53935;
}

.product-item .add-btn {
    position: relative;
    overflow: hidden;
}

.product-item .add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.product-item .add-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* --- Section headers --- */
.section-header h2 {
    position: relative;
    display: inline-block;
}

/* --- Swiper navigation --- */
.swiper-custom-button {
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-custom-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* --- Other items section --- */
.other-item .thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
}

.other-item .thumb .content .shop-now-btn {
    position: relative;
    overflow: hidden;
}

.other-item .thumb .content .shop-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.other-item .thumb .content .shop-now-btn:hover::before {
    left: 100%;
}

/* --- Footer enhancements --- */
.footer {
    position: relative;
}

.footer h4 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #099547;
    border-radius: 2px;
}

.text-center .footer h4::after,
.text-md-start .footer h4::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-link-list li a {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link-list li a:hover {
    padding-left: 6px;
    color: #099547 !important;
}

.footer .social-link li a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(150, 179, 151, 0.4);
}

.footer .social-link li a:hover {
    background: rgba(9, 149, 71, 0.2);
    border-color: #099547;
    transform: translateY(-3px);
}

.footer .contact-us-info li {
    transition: all 0.2s ease;
}

.footer .contact-us-info li:hover {
    transform: translateX(4px);
}

.footer .contact-us-info li .icon {
    transition: all 0.3s ease;
}

.footer .contact-us-info li:hover .icon {
    transform: scale(1.15);
}

/* --- Cart sidebar polish --- */
.cart-sidebar {
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-item {
    transition: all 0.25s ease;
    border-radius: 8px;
    padding: 8px;
}

.cart-item:hover {
    background: #f8fdf9;
}

.remove-cart-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.remove-cart-item:hover {
    transform: scale(1.2);
}

.submit-btn {
    transition: all 0.3s ease !important;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 149, 71, 0.3);
}

/* --- Breadcrumbs --- */
.breadcrumb li a {
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #099547 !important;
}

/* --- Auth pages --- */
.auth-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.auth-card .auth-btn {
    transition: all 0.3s ease;
}

.auth-card .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 149, 71, 0.3);
}

/* --- Global link styling --- */
a {
    transition: color 0.2s ease;
}

/* --- Quantity increase/decrease buttons --- */
.quantity-increase-decrease button {
    transition: all 0.2s ease;
}

.quantity-increase-decrease button:hover {
    background-color: #099547 !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* --- Loading spinners --- */
.spinner-border {
    animation-duration: 0.75s;
}

/* --- Smooth scroll behavior --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection color --- */
::selection {
    background: #099547;
    color: #fff;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================
   MOBILE ENHANCEMENTS
   ============================================ */

/* --- Mobile: Bottom sticky action bar --- */
@media (max-width: 991px) {
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 1000;
    }

    .mobile-bottom-bar a,
    .mobile-bottom-bar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        background: none;
        border: none;
        color: #555;
        font-size: 10px;
        font-weight: 600;
        font-family: "Inter", sans-serif;
        text-decoration: none;
        padding: 4px 12px;
        transition: color 0.2s ease;
    }

    .mobile-bottom-bar a.active,
    .mobile-bottom-bar a:hover {
        color: #099547;
    }

    .mobile-bottom-bar svg {
        width: 22px;
        height: 22px;
    }

    /* Add bottom padding so content isn't hidden behind bar */
    body {
        padding-bottom: 65px;
    }

    /* Hide desktop cart + login from header on mobile */
    .app-header .cart-count .text {
        display: none;
    }
}

/* --- Mobile: Better touch targets --- */
@media (max-width: 767px) {
    /* Larger tap areas for product cards */
    .product-item .add-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 42px;
    }

    /* Better product grid spacing */
    .product-item {
        margin-bottom: 12px;
    }

    /* Quantity buttons bigger for touch */
    .quantity-increase-decrease button {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }

    /* Category grid: better spacing */
    .top-category-grid {
        gap: 12px;
    }

    .top-catagory-item .image-container {
        border-radius: 14px;
    }

    /* Service cards - more compact on mobile */
    .nbh-card {
        height: auto !important;
        padding: 16px 12px !important;
    }

    .icon-container {
        width: 44px !important;
        height: 44px !important;
    }

    .content-container h5 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .content-container p {
        font-size: 11px !important;
        line-height: 1.4;
    }

    /* Better banner on mobile */
    .banner-section .content h6 {
        font-size: 11px !important;
        letter-spacing: 2px;
    }

    .banner-section .content h1 {
        font-size: 26px !important;
        letter-spacing: -0.5px;
        line-height: 1.15;
    }

    .banner-section .content p {
        font-size: 12px !important;
        margin-bottom: 16px;
    }

    .banner-section .shop-now-btn {
        font-size: 12px !important;
        padding: 8px 24px !important;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 16px !important;
        padding-bottom: 10px;
    }

    .section-header h2 {
        font-size: 22px !important;
        letter-spacing: -0.5px;
    }

    .section-header::after {
        width: 40px;
        height: 2px;
    }

    .other-items-section .section-header h2 {
        font-size: 24px !important;
    }

    /* Footer mobile center alignment */
    .footer h4 {
        font-size: 16px;
        text-align: center;
    }

    .footer h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer .footer-link-list {
        text-align: center;
    }

    /* Cart sidebar full width on mobile */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Product detail page mobile */
    .product-details-info {
        padding: 0 !important;
    }

    .product-details-info .product-details-block-item {
        padding: 8px 0;
    }

    .add-to-cart {
        width: 100%;
        text-align: center;
        padding: 14px 24px !important;
        font-size: 16px !important;
        border-radius: 12px;
    }

    /* Swiper nav buttons - hidden on mobile, use swipe */
    .swiper-custom-button {
        display: none !important;
    }

    /* Other items section mobile */
    .other-item .thumb .content {
        padding: 16px !important;
    }

    .other-item .thumb .content h6 {
        font-size: 12px;
        margin-bottom: 6px !important;
    }

    .other-item .thumb .content h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .other-item .thumb .content .shop-now-btn {
        font-size: 11px !important;
        padding: 6px 18px !important;
    }

    /* Product swiper: show 2 items on mobile */
    .home-section .swiper-slide {
        width: 48% !important;
    }
}

/* --- Small phones --- */
@media (max-width: 374px) {
    .banner-section .content h1 {
        font-size: 22px !important;
    }

    .product-item .content .title a {
        font-size: 12px;
    }

    .product-item .content .price {
        font-size: 14px;
    }

    .product-item .add-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    .top-category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

/* --- Pull to refresh visual cue (iOS) --- */
@media (max-width: 991px) {
    body {
        overscroll-behavior-y: contain;
    }
}

/* --- Disable hover effects on touch devices --- */
@media (hover: none) {
    .product-item:hover {
        box-shadow: none;
        border-color: #e2e2e2;
        transform: none;
    }

    .product-item:hover .thumb img {
        transform: none;
    }

    .top-catagory-item:hover {
        transform: none;
    }

    .top-catagory-item:hover .image-container {
        border-color: transparent;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .nbh-card:hover {
        background-color: white;
        box-shadow: none;
    }

    .nbh-card:hover .icon-container {
        background-color: transparent;
        border-color: #09954773;
    }

    .nbh-card:hover .icon-container svg path {
        fill: #01431D;
    }

    /* Use active state instead for touch feedback */
    .product-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .top-catagory-item:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }

    .product-item .add-btn:active {
        background: #099547;
        transform: scale(0.97);
    }
}
