/* Custom Colors - Generated by Admin Panel */
/* Primary: #e0c0c0 | Secondary: #808080 | Accent: #406060 | Category Badge: #b8860b */

:root {
    --bs-primary: #e0c0c0 !important;
    --bs-secondary: #808080 !important;
    --primary-color: #e0c0c0;
    --primary-dark: #c2a2a2;
    --primary-light: #efcfcf;
    --primary-button: #9f7f7f;
    --primary-button-hover: #816161;
    --primary-price: #6d4d4d;
    --primary-title: #543434;
    --secondary-color: #808080;
    --secondary-dark: #6c6c6c;
    --accent-color: #406060;
    --category-badge-color: #b8860b;
    --category-badge-dark: #a47200;
    --primary-shadow: rgba(224, 192, 192, 0.4);
    --primary-shadow-hover: rgba(224, 192, 192, 0.5);
}

/* Primary Color */
.bg-primary, .btn-primary { background-color: #e0c0c0 !important; }
.text-primary, h1.text-primary, h2.text-primary, h3.text-primary, h4.text-primary, a.text-primary { color: #e0c0c0 !important; }
.btn-primary, .btn-primary:focus { background-color: #e0c0c0 !important; border-color: #e0c0c0 !important; }
.btn-primary:hover { background-color: #c2a2a2 !important; border-color: #c2a2a2 !important; }
.border-primary { border-color: #e0c0c0 !important; }
.btn-outline-primary { color: #e0c0c0 !important; border-color: #e0c0c0 !important; }
.btn-outline-primary:hover { background-color: #e0c0c0 !important; color: #fff !important; }

/* Secondary Color */
.bg-secondary { background-color: #808080 !important; }
.text-secondary { color: #808080 !important; }
.btn-secondary { background-color: #808080 !important; border-color: #808080 !important; }
.btn-secondary:hover { background-color: #626262 !important; }
.border-secondary { border-color: #808080 !important; }
.btn.border-secondary:hover { background: #808080 !important; color: #fff !important; }
.btn-outline-secondary { color: #808080 !important; border-color: #808080 !important; }
.btn-outline-secondary:hover { background-color: #808080 !important; }

/* Accent Color */
.bg-accent, .btn-accent { background-color: #406060 !important; }
.text-accent { color: #406060 !important; }
.btn-accent { background-color: #406060 !important; border-color: #406060 !important; color: #fff !important; }
.btn-accent:hover { background-color: #224242 !important; border-color: #224242 !important; }
.border-accent { border-color: #406060 !important; }
.btn-outline-accent { color: #406060 !important; border-color: #406060 !important; }
.btn-outline-accent:hover { background-color: #406060 !important; color: #fff !important; }

/* Accent for badges, notifications, promotions */
.badge-accent, .promo-badge, .sale-badge, .new-badge { background-color: #406060 !important; color: #fff !important; }
.floating-cart-count { background: #406060 !important; }

/* Category Badge Color - за етикетите върху продуктите */
.category-badge, .cat-badge, .product-category-badge { 
    background-color: #b8860b !important; 
    color: #fff !important; 
}
/* Override Bootstrap bg-secondary за category badges в products.js */
.fruite-item .bg-secondary, .product-card .bg-secondary, .vesiteam-item .bg-secondary { 
    background-color: #b8860b !important; 
    color: #fff !important; 
}
/* Override bg-primary за category badges */
.fruite-item .position-absolute.bg-primary, .product-card .position-absolute.bg-primary { 
    background-color: #b8860b !important; 
    color: #fff !important; 
}

/* Specific Elements */
.topbar { background-color: #e0c0c0 !important; }
.spinner-grow.text-primary { color: #e0c0c0 !important; }
.navbar-brand h1 { color: #e0c0c0 !important; }
.back-to-top { background-color: #e0c0c0 !important; }
.dropdown-menu.bg-secondary { background-color: #808080 !important; }

/* Icons */
.fa-search.text-primary, .fas.text-primary, .fab.text-primary, .bi.text-primary { color: #e0c0c0 !important; }
.fa-star.text-primary { color: #e0c0c0 !important; }

/* Form Elements */
.form-control:focus { border-color: #e0c0c0 !important; box-shadow: 0 0 0 0.2rem rgba(224, 192, 192, 0.25) !important; }

/* Carousel & Footer */
.carousel-item .btn { background-color: #e0c0c0 !important; }
.footer .btn-link:hover { color: #e0c0c0 !important; }

/* Generic Links Override (Bootstrap hardcodes #81c408 in <a>) */
a { color: #e0c0c0; }
a:hover { color: #c2a2a2; }
.breadcrumb-item a { color: #e0c0c0 !important; }
.breadcrumb-item a:hover { color: #c2a2a2 !important; }
.nav-link { color: #e0c0c0; }
.nav-link:hover, .nav-link:focus { color: #c2a2a2; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: #e0c0c0; }
.page-link { color: #e0c0c0; }
.page-link:hover, .page-link:focus { color: #c2a2a2; }
.page-item.active .page-link { background-color: #e0c0c0; border-color: #e0c0c0; }
.link-primary { color: #e0c0c0 !important; }
.link-primary:hover, .link-primary:focus { color: #c2a2a2 !important; }
.btn-link { color: #e0c0c0; }
.btn-link:hover { color: #c2a2a2; }
.btn:focus { box-shadow: 0 0 0 .25rem rgba(224, 192, 192, 0.25); }
.btn-close:focus { box-shadow: 0 0 0 .25rem rgba(224, 192, 192, 0.25); }
.dropdown-item.active, .dropdown-item:active { background-color: #e0c0c0; }
.dropdown-menu-dark .dropdown-item.active { background-color: #e0c0c0; }
.list-group-item.active { background-color: #e0c0c0; border-color: #e0c0c0; }
.progress-bar { background-color: #e0c0c0; }
.accordion-button:not(.collapsed) { color: #c2a2a2; }

/* Sidebar Categories */
.fruite-categorie .fruite-name a { color: #e0c0c0 !important; }
.fruite-categorie .fruite-name a:hover { color: #808080 !important; }
.fruite-categorie .fruite-name i.fas { color: #e0c0c0 !important; }

/* Category Tabs */
#categoryTabs .category-tab:hover { color: #e0c0c0; border-bottom-color: rgba(224, 192, 192, 0.4); }
#categoryTabs .category-tab.active { color: #e0c0c0 !important; border-bottom-color: #e0c0c0; font-weight: 600; background: none !important; }
.cat-scroll-btn:hover { background: #e0c0c0; color: #fff; border-color: #e0c0c0; }

/* ===== Category Tabs Layout ===== */
.category-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
}
#categoryTabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0;
    flex: 1;
}
#categoryTabs::-webkit-scrollbar { display: none; }
#categoryTabs .nav-item {
    margin: 0;
    flex-shrink: 0;
}
#categoryTabs .category-tab {
    display: inline-block;
    padding: 10px 20px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.25s ease;
    background: none !important;
    border-radius: 0 !important;
    white-space: nowrap;
}
.cat-scroll-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.cat-scroll-left { margin-right: 8px; }
.cat-scroll-right { margin-left: 8px; }

/* Notification & Banner elements */
.banner-nav:hover { background: #e0c0c0; }
.banner-dot.active { background: #e0c0c0; }

/* Product Thumbnails */
.product-thumb:hover { border-color: #e0c0c0 !important; }
.product-thumb.active { border-color: #e0c0c0 !important; }

/* ===== Floating Cart Button ===== */
.floating-cart-btn {
    background: linear-gradient(135deg, #e0c0c0, #c2a2a2) !important;
    box-shadow: 0 4px 20px rgba(224, 192, 192, 0.4) !important;
}
.floating-cart-btn:hover {
    box-shadow: 0 6px 25px rgba(224, 192, 192, 0.5) !important;
}

/* ===== Fashion Theme Color Overrides ===== */
body.theme-fashion {
    --primary-color: #e0c0c0;
    --secondary-color: #808080;
}

body.theme-fashion .fruite-item .add-to-cart-btn:hover,
body.theme-fashion .fruite-item .btn.border:hover,
body.theme-fashion .btn-primary:hover,
body.theme-fashion .add-to-cart-btn:hover {
    background: #e0c0c0 !important;
    border-color: #e0c0c0 !important;
}

body.theme-fashion .sale-label { background: #e0c0c0; }
body.theme-fashion .nav-pills .nav-link.active,
body.theme-fashion .nav-tabs .nav-link.active { color: #e0c0c0 !important; border-bottom-color: #e0c0c0; }
body.theme-fashion a:hover { color: #e0c0c0; }


/* ══════════════════════════════════════════════════════════════ */
/* KALINA PERSISTENT OVERRIDES — survives every admin save        */
/* Generated from brand colors via adjustBrightness                */
/* ══════════════════════════════════════════════════════════════ */

/* Buy buttons — darker brand variant for readability */
a.add-to-cart-btn, a.card-buy-btn,
.fruite-item a.add-to-cart-btn, .fruite-item a.btn.add-to-cart-btn,
.fruite-item .btn.add-to-cart-btn, .btn.add-to-cart-btn, .card-buy-btn {
    background: #9f7f7f !important;
    background-color: #9f7f7f !important;
    color: #fff !important;
    border: 1px solid #9f7f7f !important;
    border-color: #9f7f7f !important;
    box-shadow: 0 3px 10px rgba(159, 127, 127, 0.35) !important;
}
a.add-to-cart-btn:hover, a.card-buy-btn:hover,
.fruite-item a.add-to-cart-btn:hover, .fruite-item a.btn.add-to-cart-btn:hover,
.fruite-item .btn.add-to-cart-btn:hover, .btn.add-to-cart-btn:hover, .card-buy-btn:hover {
    background: #816161 !important;
    background-color: #816161 !important;
    color: #fff !important;
    border-color: #816161 !important;
    box-shadow: 0 6px 18px rgba(129, 97, 97, 0.45) !important;
}
a.add-to-cart-btn i, a.card-buy-btn i, .btn.add-to-cart-btn i,
a.add-to-cart-btn i.text-primary, .btn.add-to-cart-btn i.text-primary,
a.add-to-cart-btn i.fa, .btn.add-to-cart-btn i.fa {
    color: #fff !important;
}

/* Price — darker brand shade, readable on pastel footer */
.price-now, .fruite-item .price-now, .card-price-footer .price-now {
    color: #6d4d4d !important;
}

/* Product title — deep mauve, elegant */
.fruite-item .product-card-title,
.fruite-item .product-card-title a {
    color: #543434 !important;
}
.fruite-item:hover .product-card-title,
.fruite-item:hover .product-card-title a,
.fruite-item:hover h4 {
    color: #9f7f7f !important;
}

/* ══════════════════════════════════════════════════════ */
/* Equal-height product cards — prevents uneven grid       */
/* ══════════════════════════════════════════════════════ */
.row > [class*=col-] {
    display: flex !important;
    flex-direction: column !important;
}
.fruite-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.card-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
/* Title — STRICTLY 1 line with ellipsis (no wrap) */
.fruite-item .product-card-title,
.fruite-item h4.product-card-title {
    min-height: 1.5em !important;
    max-height: 1.5em !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: help;
}
.fruite-item .product-card-title a {
    display: inline-block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: bottom !important;
}

/* ═══════════════════════════════════════════════════════════ */
/* MOBILE-SECTION-TIGHTENING — compact mobile layout             */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* 1. Reduce py-5 (48px/48px) and py-4 (24px/24px) to tighter mobile spacing */
    .container-fluid.py-5,
    section.py-5,
    div.py-5 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .container-fluid.py-4,
    div.py-4 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    
    /* 2. Reduce my-5 (48/48 margin) to my-2 */
    .container-fluid.my-5,
    div.my-5,
    .my-5 {
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }
    .mt-5 { margin-top: 16px !important; }
    .mb-5 { margin-bottom: 16px !important; }
    
    /* 3. Hide the gray placeholder banner (bg-secondary with no content) */
    .container-fluid.banner.bg-secondary {
        display: none !important;
    }
    
    /* 4. Hide testimonial section if empty (no child content beyond whitespace) */
    .container-fluid.testimonial:not(:has(.owl-carousel-item, .testimonial-item, .card, img)) {
        display: none !important;
    }
    /* Fallback for browsers without :has() — use small height as a heuristic */
    @supports not selector(:has(*)) {
        .container-fluid.testimonial.py-5 {
            min-height: 0;
            padding: 0 !important;
        }
    }
    
    /* 5. Hide empty container-fluid py-5 (only padding, no meaningful content) */
    .container-fluid.py-5:empty,
    .container-fluid.py-5:not(:has(h1, h2, h3, h4, h5, h6, .row, img, button, p, a, .card, .owl-carousel)) {
        display: none !important;
    }
    
    /* 6. Footer: reduce mt-5 and pt-5 */
    footer.mz-footer,
    footer.mz-footer.mt-5 {
        margin-top: 16px !important;
        padding-top: 24px !important;
    }
    
    /* 7. Reduce gap after hero — tighter transition to first content */
    #bannerSliderSection + div.container-fluid,
    #bannerSliderSection + section {
        padding-top: 16px !important;
    }
    
    /* 8. Section headers inside fruite/vesitable — reduce bottom margin */
    .fruite .row.g-4.mb-4,
    .vesitable .row.g-4.mb-4 {
        margin-bottom: 12px !important;
    }
    
    /* 9. Recently viewed section — already py-4 handled above; tighten further if only 1-2 items */
    #recentlyViewedSection {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    /* 10. Container padding for tighter side margins */
    .container-fluid.fruite,
    .container-fluid.vesitable,
    .container-fluid.py-5 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* 11. Product cards: tighter row gap */
    .row.g-4 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
    
    /* 12. Section titles — reduce bottom spacing */
    .fruite h1, .vesitable h1, .py-5 h1 {
        margin-bottom: 8px !important;
    }
    .fruite p.mb-0, .vesitable p.mb-0 {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* PRODUCT-PAGE-TIGHTENING — fix gap under header (mobile)       */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    /* Header is sticky on mobile (takes flow space) — breadcrumb
       should NOT compensate with extra 100px margin-top */
    .breadcrumb-wrap {
        margin-top: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 4px !important;
    }
    
    /* Breadcrumb bar itself tighter */
    .breadcrumb-wrap .breadcrumb {
        margin-bottom: 0 !important;
        font-size: 12px !important;
    }
    
    /* First container after breadcrumb — remove excess top padding */
    .breadcrumb-wrap + .container-fluid.py-4,
    .breadcrumb-wrap + .container-fluid.py-5 {
        padding-top: 8px !important;
    }
    
    /* Main product image/content — tighter spacing */
    .container-fluid.py-4 .container.py-2 {
        padding-top: 4px !important;
    }
    
    /* Product image column — remove top margin if any */
    .container-fluid.py-4 .row > .col-lg-6:first-child,
    .container-fluid.py-4 .row > .col-md-6:first-child,
    .container-fluid.py-4 .row > [class*=col-]:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* PRODUCT-CTA-DARK-BUTTONS — darker text + border on product    */
/* detail CTAs (Add to cart / Quick order / Wishlist heart)      */
/* ═══════════════════════════════════════════════════════════ */

/* PRODUCT-CTA-HOVER-FX — elegant fill + lift on hover */

/* Base: outlined style in dark dusty rose */
.pd-add-btn, #addToCartDetailBtn,
.quick-order-btn, #quickOrderDetailBtn {
    color: #b07a7a !important;
    border: 2px solid #b07a7a !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
    transition: color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease !important;
    z-index: 0;
}

/* Sliding fill — pseudo-element that expands from left to right */
.pd-add-btn::before, #addToCartDetailBtn::before,
.quick-order-btn::before, #quickOrderDetailBtn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #b07a7a 0%, #945d5d 100%);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover: fill expands, text + icon → white, lift + shadow */
.pd-add-btn:hover, #addToCartDetailBtn:hover,
.quick-order-btn:hover, #quickOrderDetailBtn:hover {
    color: #fff !important;
    border-color: #945d5d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(176, 122, 122, 0.35),
                0 2px 4px rgba(148, 93, 93, 0.25) !important;
}
.pd-add-btn:hover::before, #addToCartDetailBtn:hover::before,
.quick-order-btn:hover::before, #quickOrderDetailBtn:hover::before {
    width: 100%;
}

/* Active/click: tiny press */
.pd-add-btn:active, #addToCartDetailBtn:active,
.quick-order-btn:active, #quickOrderDetailBtn:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 6px rgba(176, 122, 122, 0.25) !important;
}

/* Icons */
.pd-add-btn i, #addToCartDetailBtn i,
.pd-add-btn i.fa, .pd-add-btn i.text-primary,
.quick-order-btn i, #quickOrderDetailBtn i {
    color: #b07a7a !important;
    transition: color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.pd-add-btn:hover i, #addToCartDetailBtn:hover i { color: #fff !important; }
.quick-order-btn:hover i, #quickOrderDetailBtn:hover i {
    color: #fff !important;
    animation: bolt-flash 0.6s ease-in-out;
}
@keyframes bolt-flash {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(-8deg); }
    60% { transform: scale(1.1) rotate(4deg); }
}

/* Shopping bag icon — little bump */
.pd-add-btn:hover i.fa-shopping-bag, #addToCartDetailBtn:hover i.fa-shopping-bag {
    animation: bag-bounce 0.5s ease-in-out;
}
@keyframes bag-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px) rotate(-5deg); }
    70% { transform: translateY(-1px) rotate(3deg); }
}

/* ═══ Wishlist heart button ═══ */
.wishlist-btn, .pd-wishlist-btn, button[class*=wishlist] {
    color: #b07a7a !important;
    border: 2px solid #b07a7a !important;
    background: transparent !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.wishlist-btn i, .pd-wishlist-btn i, button[class*=wishlist] i {
    color: #b07a7a !important;
    transition: all 0.3s ease !important;
}
.wishlist-btn:hover, .pd-wishlist-btn:hover, button[class*=wishlist]:hover {
    background: #b07a7a !important;
    border-color: #945d5d !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 18px rgba(176, 122, 122, 0.4) !important;
}
.wishlist-btn:hover i, .pd-wishlist-btn:hover i {
    color: #fff !important;
    animation: heart-beat 0.7s ease-in-out;
}
@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.35); }
    40% { transform: scale(0.95); }
    60% { transform: scale(1.2); }
    80% { transform: scale(0.98); }
}


/* Cross-sell section: Често купувани заедно */
#crossSellTotal strong,
#crossSellTotal span {
    color: #6d4d4d !important;
}

#crossSellTotal button,
#crossSellTotal .btn {
    color: #b07a7a !important;
    border: 2px solid #b07a7a !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
    transition: color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease !important;
    z-index: 0;
}
#crossSellTotal button::before,
#crossSellTotal .btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #b07a7a 0%, #945d5d 100%);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#crossSellTotal button:hover,
#crossSellTotal .btn:hover {
    color: #fff !important;
    border-color: #945d5d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(176, 122, 122, 0.35),
                0 2px 4px rgba(148, 93, 93, 0.25) !important;
}
#crossSellTotal button:hover::before,
#crossSellTotal .btn:hover::before {
    width: 100%;
}
#crossSellTotal button i,
#crossSellTotal .btn i {
    color: #b07a7a !important;
    transition: color 0.35s ease, transform 0.3s ease !important;
}
#crossSellTotal button:hover i,
#crossSellTotal .btn:hover i {
    color: #fff !important;
    animation: bag-bounce 0.5s ease-in-out;
}
#crossSellTotal button:active,
#crossSellTotal .btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* CROSSSELL-BTN-HOVER marker */
/* ═══════════════════════════════════════════════════════════ */
/* BRAND-TITLE-PD — product title + related section in elegant   */
/* dusty rose Marck Script (matches section titles)              */
/* ═══════════════════════════════════════════════════════════ */


/* RECOMMENDED-SECTION-COLORS — brand text color for titles + prices */
/* Target h4 Препоръчани продукти next to #featuredProducts */
#featuredProducts ~ h4,
h4.mb-4:has(+ #featuredProducts),
.col-lg-12 > h4.mb-4 {
    color: #9f7f7f !important;
}

/* Featured/Препоръчани product item prices */
#featuredProducts h5.price-now,
#featuredProducts .fw-bold.price-now {
    color: #b07a7a !important;
}

/* Also product name link inside featured — already .text-dark black, keep it */

/* PD-DELIVERY-PINK — override delivery info box to brand pink */
.pd-delivery {
    background: #fbeeee !important;
    color: #543434 !important;
}
.pd-delivery-icon {
    color: #b07a7a !important;
}
.pd-delivery .fa-truck.pd-delivery-icon {
    color: #945d5d !important;
}
.pd-delivery .fa-clock-o.pd-delivery-icon {
    color: #9f7f7f !important;
}

/* Product detail title (h4.pd-title) — ONLY color, keep default font */
h4.pd-title,
.pd-title {
    color: #9f7f7f !important;
}

/* Related products + recently viewed section titles — ONLY color */
#inlineRelatedSection h4,
#inlineRelatedSection > h4.fw-bold,
#recentlyViewedSection h4,
#recentlyViewedSection > h4.fw-bold {
    color: #9f7f7f !important;
}

/* ═══════════════════════════════════════════════════════════ */
/* RELATED-PRODUCTS-IMG-FIX — equal image heights regardless of  */
/* natural aspect ratio (fix crooked card in inline related)     */
/* ═══════════════════════════════════════════════════════════ */

/* Target image wrapper in related products + any product grid */
/* Target ONLY the inner image wrapper (.border > .position-relative) */
#inlineRelatedProducts .border > .position-relative:first-child {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}
#inlineRelatedProducts .border > .position-relative:first-child > a,
#inlineRelatedProducts .border > .position-relative:first-child > a > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
#inlineRelatedProducts .border > .position-relative:first-child img {
    object-fit: cover !important;
}

/* Also fix equal-height for .fruite-img on main shop grids */
.fruite-item .fruite-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.fruite-item .fruite-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ═══════════════════════════════════════════════════════════ */
/* HEADER-MOBILE-PERFECT — logo centered, no gap to hero         */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    /* Remove navbar padding so logo has room */
    .container-fluid.fixed-top .navbar,
    .navbar.navbar-light.bg-white {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    
    /* Remove navbar-brand inner padding */
    .navbar-brand {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Logo: 90px + 4px total padding = fits cleanly in 94px, header remains ~95px */
    .navbar-brand img {
        height: 90px !important;
        max-height: 90px !important;
        display: block !important;
        margin: 0 !important;
    }
    
    /* Remove 10px gap between header and hero */
    #bannerSliderSection,
    .container-fluid.px-0#bannerSliderSection,
    div#bannerSliderSection {
        margin-top: 0 !important;
    }
    
    /* Header itself — reduce height to fit logo tightly */
    .container-fluid.fixed-top {
        min-height: 0 !important;
    }
    .container-fluid.fixed-top .container.px-0 {
        min-height: 0 !important;
    }
    
    /* Burger button stays aligned */
    .navbar-toggler {
        padding: 6px 10px !important;
        margin-right: 4px !important;
    }
}

/* Tablet 576-991: logo 95px */
@media (min-width: 577px) and (max-width: 991px) {
    .navbar-brand img {
        height: 95px !important;
        max-height: 95px !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER-MOBILE-COMPACT — compact dark footer on mobile         */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Inner container py-5 (96px padding) — too much */
    .container-fluid.bg-dark.footer > .container.py-5 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    /* Top row: shop name + newsletter + social — tighter spacing */
    .container-fluid.bg-dark.footer .pb-4.mb-4 {
        padding-bottom: 16px !important;
        margin-bottom: 16px !important;
    }
    
    /* Shop title in footer — smaller */
    .container-fluid.bg-dark.footer h1.text-primary {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    /* Hide newsletter input on mobile (rarely used, big) */
    .container-fluid.bg-dark.footer .col-lg-6 .position-relative.mx-auto {
        display: none !important;
    }
    
    /* Social icons — show but smaller, inline under shop name */
    .container-fluid.bg-dark.footer .col-lg-3:last-child .d-flex {
        padding-top: 8px !important;
        justify-content: flex-start !important;
    }
    .container-fluid.bg-dark.footer .btn-md-square.rounded-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    /* Hide Why People Like us section (decorative review section) */
    .container-fluid.bg-dark.footer .row.g-5 > .col-lg-3:first-child {
        display: none !important;
    }
    
    /* 3 remaining link columns: Информация / Акаунт / Контакти — tighter */
    .container-fluid.bg-dark.footer .row.g-5 {
        --bs-gutter-y: 12px;
    }
    .container-fluid.bg-dark.footer .row.g-5 > div {
        margin-bottom: 8px !important;
    }
    
    /* Link column titles — smaller */
    .container-fluid.bg-dark.footer h4.text-light {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    /* Footer links — tighter */
    .container-fluid.bg-dark.footer .btn.btn-link,
    .container-fluid.bg-dark.footer a.btn-link {
        padding: 2px 0 !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    /* Payments icons row */
    .container-fluid.bg-dark.footer .pt-4 img {
        max-width: 200px !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* PRODUCT-PAGE-CLEANUP-V2 — hide desktop sidebar + tighten      */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    /* Hide empty sidebar with categories/search — already accessible via main nav */
    .container-fluid.py-4 > .container > .row.g-4 > .col-lg-4.col-xl-3,
    .container-fluid.py-4 .row.g-4 > .col-lg-4 > .row.g-4.fruite {
        display: none !important;
    }
    
    /* Tighten bg-dark footer padding */
    .container-fluid.bg-dark.footer,
    .container-fluid.bg-dark.text-white-50.footer,
    footer.bg-dark {
        padding-top: 24px !important;
        padding-bottom: 16px !important;
        margin-top: 16px !important;
    }
    
    /* Footer columns stack — tighter gaps */
    .container-fluid.bg-dark.footer .col-lg-3,
    .container-fluid.bg-dark.footer .col-lg-4,
    .container-fluid.bg-dark.footer .col-md-6 {
        margin-bottom: 20px !important;
    }
    .container-fluid.bg-dark.footer .col-lg-3:last-child,
    .container-fluid.bg-dark.footer .col-lg-4:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Smaller h4/h5 in footer on mobile */
    .container-fluid.bg-dark.footer h4,
    .container-fluid.bg-dark.footer h5 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    /* Newsletter input tighter */
    .container-fluid.bg-dark.footer .input-group {
        margin-top: 8px !important;
    }
    
    /* Copyright strip tighter */
    .container-fluid.copyright.py-4 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    /* Tabs inside product — reduce padding */
    .container-fluid.py-4 .tab-content {
        padding: 8px !important;
    }
    .container-fluid.py-4 .nav-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Inline related products — max 4 items on mobile */
    #inlineRelatedProducts {
        max-height: 900px;
        overflow: hidden;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* MOBILE-CARD-COMPACT — tighter product cards on mobile         */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Tighter card inner padding */
    .fruite-item { margin-bottom: 8px !important; }
    .fruite-item .p-2, .fruite-item .p-3, .fruite-item .p-4 {
        padding: 8px !important;
    }
    
    /* Image height — smaller on mobile */
    .fruite-item .fruite-img img,
    .fruite-item img[style*=height] {
        max-height: 160px !important;
        height: 160px !important;
        object-fit: cover !important;
    }
    
    /* Tighter price row */
    .fruite-item .price-now {
        font-size: 16px !important;
    }
    .fruite-item .card-price-footer,
    .fruite-item div[style*=margin] {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    
    /* Compact button */
    .fruite-item .add-to-cart-btn,
    .fruite-item .card-buy-btn,
    .fruite-item .btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    
    /* Category badge — smaller */
    .fruite-item .category-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    /* Stars row — smaller */
    .card-stars-row, .fruite-item .stars {
        font-size: 10px !important;
        margin: 2px 0 !important;
    }
    
    /* Stock badge tighter */
    .fruite-item div[style*=color] {
        margin: 2px 0 !important;
    }
    
    /* Description — 1 line max to save height */
    .fruite-item .card-desc-text,
    .fruite-item p.mb-0 {
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin: 2px 0 !important;
    }
    
    /* Recently viewed — even more compact */
    #recentlyViewedSection .fruite-item img {
        max-height: 100px !important;
        height: 100px !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* BRAND-CUSTOM-CURSOR — dusty rose arrow only (no rings)        */
/* ═══════════════════════════════════════════════════════════ */

body, html, a, button, .btn, [onclick], label, select, .nav-link,
.add-to-cart-btn, .card-buy-btn, .navbar-brand, .banner-dot, .banner-nav,
[role=button], .owl-nav button, .clickable, .product-card-title,
.vesiteam-item-title, .fruite-item, .fruite-item a, .fruite-img,
a:hover, button:hover, .btn:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2228%22 height=%2228%22 viewBox=%220 0 28 28%22><path d=%22M4 2 L4 22 L10 16 L14 25 L17 24 L13 15 L21 15 Z%22 fill=%22%239f7f7f%22 stroke=%22%23ffffff%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/></svg>') 2 2, default;
}

/* Text inputs keep standard I-beam */
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], input[type=number], textarea {
    cursor: text;
}

/* Mobile/touch: default system cursor */
@media (hover: none), (pointer: coarse) {
    body, html, a, button, .btn, [onclick] { cursor: auto; }
}

/* HERO-MAGIC-EFFECTS — elegant hero banner animations           */
/* ═══════════════════════════════════════════════════════════ */

/* Ken Burns — slow zoom + pan on hero image */
.hero-magic .banner-slide img {
    animation: kenBurns 22s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
}
@keyframes kenBurns {
    0%   { transform: scale(1.0) translate(0, 0); }
    50%  { transform: scale(1.08) translate(-1.5%, -0.5%); }
    100% { transform: scale(1.12) translate(1.5%, 0.5%); }
}

/* Soft vignette — subtle dark edges for cinematic feel */
.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(40, 20, 30, 0.22) 100%);
    z-index: 2;
}

/* Light shimmer sweep — cinematic pass of light */
.hero-shimmer {
    position: absolute;
    top: 0;
    left: -50%;
    width: 60%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 230, 230, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 80%
    );
    transform: skewX(-18deg);
    animation: shimmerSweep 9s ease-in-out infinite;
    z-index: 3;
}
@keyframes shimmerSweep {
    0%, 30% { left: -60%; opacity: 0; }
    50%     { opacity: 1; }
    70%     { left: 120%; opacity: 0; }
    100%    { left: 120%; opacity: 0; }
}

/* Floating petals */
.hero-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}
.hero-petals .petal {
    position: absolute;
    top: -8%;
    color: rgba(255, 220, 225, 0.85);
    text-shadow: 0 2px 8px rgba(120, 60, 80, 0.25), 0 0 20px rgba(255, 200, 210, 0.3);
    font-size: 28px;
    user-select: none;
    animation-name: petalFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}
@keyframes petalFall {
    0%   { transform: translate3d(0, -10vh, 0) rotate(0deg);    opacity: 0; }
    10%  { opacity: 0.9; }
    50%  { transform: translate3d(30px, 50vh, 0) rotate(180deg); }
    90%  { opacity: 0.9; }
    100% { transform: translate3d(-20px, 110vh, 0) rotate(360deg); opacity: 0; }
}
/* Vary each petal: start position, speed, delay, size, color */
.hero-petals .p1  { left:  5%; font-size: 24px; animation-duration: 14s; animation-delay: 0s;    color: rgba(255, 210, 220, 0.85); }
.hero-petals .p2  { left: 14%; font-size: 18px; animation-duration: 19s; animation-delay: 2s;    color: rgba(255, 230, 235, 0.75); }
.hero-petals .p3  { left: 24%; font-size: 30px; animation-duration: 16s; animation-delay: 4s;    color: rgba(255, 195, 210, 0.90); }
.hero-petals .p4  { left: 33%; font-size: 20px; animation-duration: 21s; animation-delay: 1s;    color: rgba(255, 220, 225, 0.80); }
.hero-petals .p5  { left: 42%; font-size: 26px; animation-duration: 17s; animation-delay: 6s;    color: rgba(255, 240, 240, 0.70); }
.hero-petals .p6  { left: 54%; font-size: 22px; animation-duration: 15s; animation-delay: 3s;    color: rgba(255, 210, 220, 0.85); }
.hero-petals .p7  { left: 64%; font-size: 28px; animation-duration: 20s; animation-delay: 5s;    color: rgba(255, 225, 230, 0.80); }
.hero-petals .p8  { left: 74%; font-size: 18px; animation-duration: 23s; animation-delay: 0.5s;  color: rgba(255, 200, 215, 0.90); }
.hero-petals .p9  { left: 84%; font-size: 24px; animation-duration: 18s; animation-delay: 7s;    color: rgba(255, 215, 225, 0.80); }
.hero-petals .p10 { left: 93%; font-size: 20px; animation-duration: 22s; animation-delay: 2.5s;  color: rgba(255, 230, 235, 0.75); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-magic .banner-slide img,
    .hero-shimmer,
    .hero-petals .petal {
        animation: none !important;
    }
}

/* VESITEAM-TITLE-HIGH-SPECIFICITY — beats style.css .vesiteam-item .p-3 > div:first-child */
.vesiteam-item .p-3 .vesiteam-item-title,
.vesiteam-item .p-3 .vesiteam-item-title a,
.vesiteam-item .p-3 > div.vesiteam-item-title,
.vesiteam-item .p-3 > div.vesiteam-item-title a,
.vesiteam-item .p-3 > div:first-child.vesiteam-item-title,
.vesiteam-item .p-3 > div:first-child.vesiteam-item-title a {
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
    color: #543434 !important;
}

/* Also boost bestsellers h6 specificity */
#bestsellersContainer .fruite-item h6.product-card-title,
#bestsellersContainer .fruite-item .p-2 h6,
#bestsellersContainer h6.product-card-title {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #543434 !important;
}

/* VESITEAM TITLE DEFAULT — elegant size at all breakpoints */
.vesiteam-item-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #543434 !important;
    line-height: 1.35 !important;
}
.vesiteam-item-title a {
    color: inherit !important;
    text-decoration: none !important;
}
@media (min-width: 768px) {
    .vesiteam-item-title { font-size: 16px !important; }
}

/* ── Carousel card title (vesiteam-item) — 1 line + tooltip + marquee ── */
.vesiteam-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.vesiteam-item .p-3,
.vesiteam-item > div:last-child {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.vesiteam-item .p-3 > .d-flex:last-child {
    margin-top: auto !important;
}
.vesiteam-item-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: help;
    position: relative;
}
.vesiteam-item-title a {
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: bottom !important;
}
/* Marquee on hover — slides text if it overflows */
.vesiteam-item:hover .vesiteam-item-title a,
.fruite-item:hover .product-card-title a {
    animation: title-marquee 8s ease-in-out;
}
@keyframes title-marquee {
    0%, 15% { transform: translateX(0); }
    50%, 60% { transform: translateX(calc(-100% + 150px)); }
    90%, 100% { transform: translateX(0); }
}
/* Description — strictly 2 lines, truncate */
.card-desc-text {
    min-height: 2.8em !important;
    max-height: 2.8em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* Footer always sticks to bottom */
.card-price-footer {
    margin-top: auto !important;
}

/* ══════════════════════════════════════════════════════ */
/* Equal-height owl-carousel items                         */
/* ══════════════════════════════════════════════════════ */
.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}
.owl-carousel .owl-item {
    display: flex !important;
    height: auto !important;
    flex-shrink: 0 !important;
}
.owl-carousel .owl-item > div {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.owl-carousel .owl-item .fruite-item,
.owl-carousel .owl-item > div > div.fruite-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════ */
/* MOBILE HEADER FIX — responsive logo + banner + spacing  */
/* ══════════════════════════════════════════════════════ */

/* Tablet & mobile: reasonable logo, banner, and no negative top */
@media (max-width: 991px) {
    .container-fluid.fixed-top {
        top: 0 !important;
        position: sticky !important;
    }
    .navbar-brand img {
        height: 95px !important;
        max-height: 95px !important;
        width: auto !important;
    }
    .banner-slider {
        height: 280px !important;
        max-height: 45vh !important;
    }
    .banner-slide img {
        object-fit: cover !important;
        object-position: center !important;
    }
    /* Hero and section spacing */
    #bannerSliderSection { margin-top: 10px; }
    .container-fluid.vesitable,
    .container-fluid.fruite,
    .container-fluid.banner {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    /* H1 headings — slightly smaller on mobile for Marck Script */
    .vesitable h1,
    .fruite h1,
    #bestsellersContainer + h1 {
        font-size: 2.5rem !important;
    }
    /* banner-mobile-fix — Orchid banner responsive on mobile */
    .container-fluid.banner.bg-secondary {
        min-height: 200px !important;
        max-height: 240px !important;
        background-position: 100% center !important;
        background-size: auto 100% !important;
        background-repeat: no-repeat !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .container-fluid.banner.bg-secondary > .container {
        min-height: 200px !important;
    }
    /* Navbar padding — more breathing room */
    .navbar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Small phones */
@media (max-width: 576px) {
    /* ═══ MOBILE PRODUCT TITLE ELEGANT ═══ */
    .fruite-item .product-card-title,
    .fruite-item h4.product-card-title,
    .fruite-item h4,
    .fruite-item h4 a,
    .vesiteam-item-title,
    .vesiteam-item h4,
    .fruite-item h6.product-card-title,
    .fruite-item h6 {
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.35 !important;
        letter-spacing: 0.2px !important;
        margin-bottom: 4px !important;
    }
    .fruite-item .card-desc-text,
    .fruite-item p,
    .vesiteam-item p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .card-stars-row,
    .product-rating {
        font-size: 10px !important;
    }
    .price-now {
        font-size: 15px !important;
        font-weight: 700 !important;
    }
    .card-price {
        font-size: 14px !important;
    }
    /* Remove aggressive bolding on all card internals */
    .fruite-item .fs-5,
    .fruite-item .fw-bold,
    .fruite-item span[style*=font-weight] {
        font-size: 14px !important;
        font-weight: 400 !important;
    }
    /* Also target bestsellers and price blocks */
    .fruite-item h6,
    .fruite-item .price-now,
    #bestsellersContainer h6,
    #bestsellersContainer .price-now {
        font-weight: 400 !important;
    }

    .navbar-brand img {
        height: 90px !important;
        max-height: 90px !important;
    }
    .banner-slider {
        height: 220px !important;
        max-height: 35vh !important;
    }
    .vesitable h1,
    .fruite h1 {
        font-size: 2rem !important;
    }
    /* Navbar menu button on right, logo on left */
    .navbar > .navbar-brand { margin-right: auto; }
}

/* Navbar elegant font — same Marck Script as headings     */
/* ══════════════════════════════════════════════════════ */
.navbar-nav .nav-link,
.navbar .nav-link {
    font-family: 'Marck Script', 'Brush Script MT', cursive !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
}

/* Rating stars — always gold, regardless of brand palette */
.card-stars-row i,
.product-rating i,
.fruite-item .card-stars-row i,
.fruite-item .product-rating i {
    color: #ffc107 !important;
}
