
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

 .back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}
/*** Spinner End ***/


/*** Header Cart Button Start ***/
.header-cart-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-color, #81c408);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px var(--primary-shadow, rgba(129, 196, 8, 0.3));
    transition: all 0.3s ease;
    text-decoration: none;
}
.header-cart-btn:hover {
    transform: scale(1.1);
    color: #fff !important;
}
.header-cart-btn i {
    color: #fff !important;
}
/*** Header Cart Button End ***/

/*** Header Wishlist Button ***/
.header-wishlist-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid var(--primary-color, #81c408);
    color: var(--primary-color, #81c408) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.header-wishlist-btn:hover {
    background: var(--primary-color, #81c408);
    color: #fff !important;
    transform: scale(1.1);
}
.header-wishlist-btn:hover i {
    color: #fff !important;
}
/*** Header Wishlist Button End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.border-secondary {
    transition: 0.5s;
}

.btn.border-secondary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/*** Topbar Start ***/
.fixed-top {
    transition: 0.5s;
    background: var(--bs-white);
    border: 0;
}

.topbar {
    padding: 20px;
    border-radius: 230px 100px;
}

.topbar .top-info {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link a {
    letter-spacing: 1px;
}

.topbar .top-link a small:hover {
    color: var(--bs-secondary) !important;
    transition: 0.5s;
}

.topbar .top-link a small:hover i {
    color: var(--bs-primary) !important;
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    transition: .5s;
}

.navbar {
    height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}
/*** Navbar End ***/

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(248, 223, 173, 0.1), rgba(248, 223, 173, 0.1)), url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item {
    position: relative;
}

.carousel-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    background: linear-gradient(rgba(255, 181, 36, 0.7), rgba(255, 181, 36, 0.7));
}

.carousel-control-next,
.carousel-control-prev {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    border: 1px solid var(--bs-white);
    background: var(--bs-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-next {
    margin-right: 20px;
}

.carousel-control-prev {
    margin-left: 20px;
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cart-page-header-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 152px !important;
    }
}

@media (max-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 97px !important;
    }
}
/*** Hero Header end ***/


/*** featurs Start ***/
.featurs .featurs-item .featurs-icon {
    position: relative;
    width: 120px;
    height: 120px;
}

.featurs .featurs-item .featurs-icon::after {
    content: "";
    width: 35px;
    height: 35px;
    background: var(--bs-secondary);
    position: absolute;
    bottom: -10px;
    transform: translate(-50%);
    transform: rotate(45deg);
    background: var(--bs-secondary);
    
}
/*** featurs End ***/


/*** service Start ***/
.service .service-item .service-content {
    position: relative;
    width: 250px; 
    height: 130px; 
    top: -50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

/*** service End ***/


/*** Fruits Start ***/
.fruite .tab-class .nav-item a.active {
    background: var(--bs-secondary) !important;
}

.fruite .tab-class .nav-item a.active span {
    color: var(--bs-white) !important; 
}

.fruite .fruite-categorie .fruite-name {
    line-height: 40px;
}

.fruite .fruite-categorie .fruite-name a {
    transition: 0.5s;
}

.fruite .fruite-categorie .fruite-name a:hover {
    color: var(--bs-secondary);
}

.fruite .fruite-item {
    height: 100%;
    transition: 0.5s;
}
.fruite .fruite-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: 0.5s;
}

.fruite .fruite-item .fruite-img img:hover {
    transform: scale(1.3);
}
/*** Fruits End ***/


/*** vesitable Start ***/
.vesitable .vesitable-item {
    height: 100%;
    transition: 0.5s;
}

.vesitable .vesitable-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.vesitable .vesitable-item .vesitable-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.vesitable .vesitable-item .vesitable-img img {
    transition: 0.5s;
}

.vesitable .vesitable-item .vesitable-img img:hover {
    transform: scale(1.2);
}

.vesitable .owl-stage {
    margin: 50px 0;
    position: relative;
}

.vesitable .owl-nav .owl-prev {
    position: absolute;
    top: -8px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;

}

.vesitable .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.vesitable .owl-nav .owl-next {
    position: absolute;
    top: -8px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.vesitable .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** vesitable End ***/


/*** Banner Section Start ***/
.banner .banner-btn:hover {
    background: var(--bs-primary);
}
/*** Banner Section End ***/


/*** Facts Start ***/
.counter {
    height: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.counter i {
    font-size: 60px;
    margin-bottom: 25px;
}

.counter h4 {
    color: var(--bs-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter h1 {
    margin-bottom: 0;
}
/*** Facts End ***/


/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** testimonial End ***/


/*** Single Page Start ***/
.pagination {
    display: inline-block;
}
  
.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}
  
.pagination a:hover:not(.active) {background-color: var(--bs-primary)}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}
/*** Single Page End ***/


/*** Footer Start ***/
.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, .5);
    transition: 0.5s;
}

.footer .footer-item .btn-link:hover {
    color: var(--bs-secondary) !important;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}
/*** Footer End ***/


/* Banner slider mobile */
@media (max-width: 768px) {
    .banner-slider {
        height: 220px !important;
    }
    .banner-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 20px !important;
    }
}

/* Bestsellers cards mobile */
#bestsellersContainer .col-6 {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 15px;
}

#bestsellersContainer .fruite-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Vegetable carousel mobile */
.vesiteam-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== MOBILE FONT FIXES - AGGRESSIVE ===== */
@media (max-width: 768px) {
    /* Carousel продукти - ГОЛЕМИ шрифтове */
    .vesiteam-item,
    .vegetable-carousel .vesiteam-item,
    #vegetableCarousel .vesiteam-item {
        font-size: 18px !important;
    }
    
    .vesiteam-item div,
    .vesiteam-item span,
    .vesiteam-item a,
    .vesiteam-item p,
    .vesiteam-item h4,
    .vesiteam-item h5,
    #vegetableCarousel div,
    #vegetableCarousel span,
    #vegetableCarousel a {
        font-size: inherit;
    }
    
    /* Принудително големи шрифтове за всички текстови елементи */
    .vesiteam-item .p-3 > div:first-child,
    .vesiteam-item .p-3 > div:first-child a {
        font-size: 22px !important;
        font-weight: 700 !important;
    }
    
    .vesiteam-item .p-3 > div:nth-child(2) {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    .vesiteam-item .btn,
    #vegetableCarousel .btn {
        font-size: 15px !important;
        padding: 10px 18px !important;
    }
    
    /* Bestsellers */
    #bestsellersContainer h6,
    #bestsellersContainer h6 a {
        font-size: 18px !important;
        font-weight: 600 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    #bestsellersContainer .text-muted,
    #bestsellersContainer p {
        font-size: 14px !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    #bestsellersContainer .fw-bold,
    #bestsellersContainer span[style*="font-weight: 700"] {
        font-size: 20px !important;
    }
    
    #bestsellersContainer .btn,
    #bestsellersContainer .btn-sm {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    
    #bestsellersContainer .fruite-img img {
        height: 140px !important;
    }
    
    /* Category badges */
    .vesiteam-item .bg-primary,
    #bestsellersContainer .bg-secondary {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    /* Общи заглавия */
    .container h1.display-4,
    .container h1.display-5 {
        font-size: 26px !important;
    }
    
    .container h1.mb-0,
    .vesitable h1 {
        font-size: 24px !important;
    }
}

/*** ========== MOBILE RESPONSIVE ========== ***/

/* Shop page toolbar */
@media (max-width: 768px) {
    /* Shop search + sort toolbar */
    .fruite .row.g-4.align-items-center.mb-2 > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Product cards - 2 per row on mobile */
    .fruite .col-md-6.col-lg-6.col-xl-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .fruite-item .p-4,
    .fruite-item .p-3 {
        padding: 15px !important;
    }
    
    .fruite-item h4,
    .fruite-item h4 a,
    .fruite-item h5,
    .fruite-item h6 {
        font-size: 20px !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }
    
    .fruite-item .p-4 p,
    .fruite-item .p-3 p,
    .fruite-item p {
        font-size: 16px !important;
        height: auto !important;
        min-height: 40px !important;
        line-height: 1.4 !important;
    }
    
    .fruite-item .fs-5,
    .fruite-item .fw-bold,
    .fruite-item span[style*="font-weight"] {
        font-size: 22px !important;
        font-weight: 700 !important;
    }
    
    .fruite-item .add-to-cart-btn,
    .fruite-item .btn {
        padding: 10px 20px !important;
        font-size: 16px !important;
    }
    
    .fruite-item .add-to-cart-btn .me-2,
    .fruite-item .btn .me-1 {
        margin-right: 6px !important;
    }
    
    /* Vesiteam carousel items */
    .vesiteam-item h4,
    .vesiteam-item h5,
    .vesiteam-item div > a {
        font-size: 22px !important;
        font-weight: 600 !important;
    }
    
    .vesiteam-item p {
        font-size: 16px !important;
    }
    
    .vesiteam-item .btn {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }
    
    /* Product detail page */
    .container-fluid.py-5.mt-5 .container.py-5 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Product detail - info column full width */
    #productInfoContainer {
        margin-top: 15px;
    }
    
    /* Product detail - hide sidebar on mobile */
    .container-fluid.py-5.mt-5 .col-lg-4.col-xl-3 {
        display: none;
    }
    
    .container-fluid.py-5.mt-5 .col-lg-8.col-xl-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Related products grid - 2 per row */
    #inlineRelatedProducts .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Checkout table */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table img.rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .table-responsive .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Coupon input */
    #couponInput {
        font-size: 14px;
    }
    
    /* Cart page table */
    .cart-page .table-responsive td,
    .cart-page .table-responsive th {
        white-space: nowrap;
        font-size: 13px;
    }
    
    /* Global search modal */
    #globalSearchResults .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Nav header */
    .navbar .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Hero section */
    .hero-header h1 {
        font-size: 24px !important;
    }
    
    /* Trust badges on product page - stack vertically */
    .pd-trust-badges {
        flex-direction: column !important;
    }
    
    /* Price range slider label */
    #priceRangeLabel {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Product cards - still 2 per row but tighter */
    .fruite .col-md-6.col-lg-6.col-xl-4 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .fruite-item .p-4,
    .fruite-item .p-3 {
        padding: 12px !important;
    }
    
    .fruite-item h4,
    .fruite-item h5,
    .fruite-item h6 {
        font-size: 18px !important;
        font-weight: 600 !important;
    }
    
    .fruite-item p {
        font-size: 14px !important;
    }
    
    .fruite-item .d-flex.justify-content-between {
        flex-direction: column;
        gap: 8px;
    }
    
    .fruite-item .add-to-cart-btn,
    .fruite-item .btn {
        width: 100%;
        text-align: center;
        font-size: 15px !important;
        padding: 10px 16px !important;
    }
    
    .fruite-item .fs-5,
    .fruite-item .fw-bold {
        font-size: 20px !important;
    }
    
    /* Product image */
    .fruite-img img {
        height: 140px !important;
    }
    
    /* Related products - single column */
    #inlineRelatedProducts .col-lg-3,
    #inlineRelatedProducts .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Checkout - reduce padding */
    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Product detail price */
    .pd-price {
        font-size: 18px !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix horizontal scroll on all pages */
html, body {
    overflow-x: hidden;
}

/* Notification mobile fix */
@media (max-width: 768px) {
    #shopNotification {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        transform: translateY(-100px) !important;
    }
    #shopNotification[style*="translateX(0)"] {
        transform: translateY(0) !important;
    }
}

/* Delivery info box - default styles (overridable via visual editor) */
.pd-delivery {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
}
.pd-delivery-icon {
    color: #22c55e;
}
.pd-delivery .fa-clock-o.pd-delivery-icon {
    color: #666;
}

/* Tags - default styles */
.pd-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pd-tag {
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Stock indicator - default styles */
.pd-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pd-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.pd-stock-ok .pd-stock-dot { background: #22c55e; }
.pd-stock-ok .pd-stock-text { color: #22c55e; font-size: 13px; }
.pd-stock-low .pd-stock-dot { background: #f59e0b; }
.pd-stock-low .pd-stock-text { color: #f59e0b; font-size: 13px; font-weight: 500; }
.pd-stock-out .pd-stock-dot { background: #ef4444; }
.pd-stock-out .pd-stock-text { color: #ef4444; font-size: 13px; font-weight: 500; }
.pd-stock-notify {
    margin-left: 8px;
    background: none;
    border: 1px solid var(--primary-color, #81c408);
    color: var(--primary-color, #81c408);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    cursor: pointer;
}

/* Countdown timer - default styles */
.pd-countdown {
    background: linear-gradient(135deg, #fee2e2, #fef3c7);
    border-radius: 10px;
    padding: 12px 16px;
}
.pd-countdown-label {
    font-size: 12px;
    color: #b91c1c;
    font-weight: 600;
    margin-bottom: 6px;
}
.pd-countdown-timer {
    display: flex;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}

/* SKU - default styles */
.pd-sku {
    font-size: 12px;
    color: #999;
}

/* Price - default styles */
.pd-old-price {
    color: #999;
    font-size: 0.75em;
    font-weight: normal;
}
.pd-promo-price {
    color: #28a745;
}

/* Trust badges - default styles */
.pd-trust {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pd-trust-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
}

/* Share buttons - default styles */
.pd-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.pd-share-label {
    font-size: 13px;
    color: #999;
}
.pd-share-link {
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.pd-share-fb { color: #1877f2; }
.pd-share-viber { color: #7360f2; }
.pd-share-copy { color: #666; font-size: 16px; }

/* Rating - default styles */
.pd-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pd-rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-star {
    color: #ffc107;
    font-size: 18px;
}
.pd-rating-value {
    color: #666;
    font-size: 14px;
}
.pd-rating-count {
    color: #999;
    font-size: 13px;
}
.pd-rating-btn {
    font-size: 12px;
    padding: 4px 12px;
}

/* Wishlist button - default styles */
.pd-wishlist {
    font-size: 14px;
}


