/* Custom Colors - Generated by Admin Panel */
/* Primary: #56682F | Secondary: #808080 | Accent: #B05B2C | Category Badge: #b8860b */

:root {
    --bs-primary: #56682F !important;
    --bs-secondary: #808080 !important;
    --primary-color: #56682F;
    --primary-dark: #3C4820;
    --primary-light: #7A8C4C;
    --primary-button: #B05B2C;
    --primary-button-hover: #8C4622;
    --secondary-color: #808080;
    --secondary-dark: #6c6c6c;
    --accent-color: #B05B2C;
    --category-badge-color: #b8860b;
    --category-badge-dark: #a47200;
    --primary-shadow: rgba(86, 104, 47, 0.4);
    --primary-shadow-hover: rgba(86, 104, 47, 0.5);
}

/* Primary Color */
.bg-primary, .btn-primary { background-color: #56682F !important; }
.text-primary, h1.text-primary, h2.text-primary, h3.text-primary, h4.text-primary, a.text-primary { color: #56682F !important; }
.btn-primary, .btn-primary:focus { background-color: #56682F !important; border-color: #56682F !important; }
.btn-primary:hover { background-color: #3C4820 !important; border-color: #3C4820 !important; }
.border-primary { border-color: #56682F !important; }
.btn-outline-primary { color: #56682F !important; border-color: #56682F !important; }
.btn-outline-primary:hover { background-color: #56682F !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: #B05B2C !important; }
.text-accent { color: #B05B2C !important; }
.btn-accent { background-color: #B05B2C !important; border-color: #B05B2C !important; color: #fff !important; }
.btn-accent:hover { background-color: #8C4622 !important; border-color: #8C4622 !important; }
.border-accent { border-color: #B05B2C !important; }
.btn-outline-accent { color: #B05B2C !important; border-color: #B05B2C !important; }
.btn-outline-accent:hover { background-color: #B05B2C !important; color: #fff !important; }

/* Accent for badges, notifications, promotions */
.badge-accent, .promo-badge, .sale-badge, .new-badge { background-color: #B05B2C !important; color: #fff !important; }
.floating-cart-count { background: #B05B2C !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: #56682F !important; }
.spinner-grow.text-primary { color: #56682F !important; }
.navbar-brand h1 { color: #56682F !important; }
.back-to-top { background-color: #56682F !important; }
.dropdown-menu.bg-secondary { background-color: #808080 !important; }

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

/* Form Elements */
.form-control:focus { border-color: #56682F !important; box-shadow: 0 0 0 0.2rem rgba(86, 104, 47, 0.25) !important; }

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

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

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

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

/* ===== 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: #56682F; }
.banner-dot.active { background: #56682F; }

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

/* ===== Floating Cart Button ===== */
.floating-cart-btn {
    background: linear-gradient(135deg, #56682F, #3C4820) !important;
    box-shadow: 0 4px 20px rgba(86, 104, 47, 0.4) !important;
}
.floating-cart-btn:hover {
    box-shadow: 0 6px 25px rgba(86, 104, 47, 0.5) !important;
}

/* ===== Fashion Theme Color Overrides ===== */
body.theme-fashion {
    --primary-color: #56682F;
    --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: #56682F !important;
    border-color: #56682F !important;
}

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

/* ══════════════════════════════════════════════════════ */
/* BUY BUTTON OVERRIDE — wins over all template rules     */
/* ══════════════════════════════════════════════════════ */
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: #B05B2C !important;
    background-color: #B05B2C !important;
    color: #fff !important;
    border: 1px solid #B05B2C !important;
    border-color: #B05B2C !important;
    box-shadow: 0 3px 10px rgba(176,91,44,0.32) !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: #8C4622 !important;
    background-color: #8C4622 !important;
    color: #fff !important;
    border-color: #8C4622 !important;
    box-shadow: 0 6px 18px rgba(140,70,34,0.42) !important;
}
/* Icon inside button always white */
a.add-to-cart-btn i,
a.add-to-cart-btn i.text-primary,
a.card-buy-btn i,
.btn.add-to-cart-btn i,
.btn.add-to-cart-btn i.text-primary {
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════ */
/* PRICE COLOR — darker for readability                    */
/* ══════════════════════════════════════════════════════ */
.price-now,
.fruite-item .price-now,
.card-price-footer .price-now {
    color: #7a5656 !important;
}

/* ══════════════════════════════════════════════════════ */
/* PRODUCT TITLE — brand-aligned dark mauve                */
/* ══════════════════════════════════════════════════════ */
.fruite-item .product-card-title,
.fruite-item .product-card-title a {
    color: #5a3a3a !important;
}
.fruite-item:hover .product-card-title,
.fruite-item:hover .product-card-title a,
.fruite-item:hover h4 {
    color: #B05B2C !important;
}

/* ══════════════════════════════════════════════════════ */
/* RATING STARS — always golden                            */
/* ══════════════════════════════════════════════════════ */
.card-stars-row i,
.product-rating i,
.fruite-item .card-stars-row i,
.fruite-item .product-rating i {
    color: #ffc107 !important;
}


/* ══════════════════════════════════════════════════════ */
/* KG: All product card titles & prices → dusty rose     */
/* Overrides inline color:#333 / class text-dark         */
/* ══════════════════════════════════════════════════════ */
/* Shop grid cards (static + dynamic) */
.card-title-wrap a,
.card-title-wrap a:link,
.card-title-wrap a:visited {
    color: #6d4d4d !important;
}
.card-title-wrap a:hover { color: #543434 !important; }

/* Популярни букети carousel on home (vesiteam-item) */
.vesiteam-item h4 a,
.vesiteam-item h4 a.text-dark,
.vesiteam-item h4 a:link,
.vesiteam-item h4 a:visited { color: #6d4d4d !important; }
.vesiteam-item h4 a:hover { color: #543434 !important; }

/* Препоръчани продукти (sidebar featured) */
#featuredProducts h6 a,
#featuredProducts h6 a.text-dark,
#featuredProducts h6 a:link,
#featuredProducts h6 a:visited { color: #6d4d4d !important; }
#featuredProducts h6 a:hover { color: #543434 !important; }
#featuredProducts h5,
#featuredProducts h5.fw-bold,
#featuredProducts .fw-bold { color: #6d4d4d !important; }

/* Най-продавани (bestsellers) */
#bestsellersContainer h6 a,
#bestsellersContainer h6 a.text-dark,
#bestsellersContainer h4 a,
#bestsellersContainer h4 a.text-dark { color: #6d4d4d !important; }
#bestsellersContainer h6 a:hover,
#bestsellersContainer h4 a:hover { color: #543434 !important; }

/* Recently-viewed / related products */
#recentlyViewedList h6 a,
#recentlyViewedList h6 a.text-dark,
#relatedProducts h6 a,
#relatedProducts h6 a.text-dark,
#relatedProducts h4 a.text-dark { color: #6d4d4d !important; }

/* All prices (text-dark, inline color:#111 / #000) */
.card-price,
.card-price.text-dark,
p.card-price,
p.card-price.text-dark,
.fruite-item .card-price,
.vesiteam-item .card-price { color: #6d4d4d !important; }

/* Product detail page title (shop-detail.html) */
.product-title.text-dark,
h1.product-title,
h4.product-title { color: #6d4d4d !important; }
/* ══════════════════════════════════════════════════════ */



/* Extra: Unify home page titles to match price color exactly */
#homeProductsContainer h4,
#homeProductsContainer h4 a,
#homeProductsContainer h4 a.text-dark,
#homeProductsContainer h6,
#homeProductsContainer h6 a,
#homeProductsContainer h6 a.text-dark,
.home-products h4 a,
.home-products h6 a { color: #6d4d4d !important; }

#homeProductsContainer h4 a:hover,
#homeProductsContainer h6 a:hover { color: #543434 !important; }

/* Also override --primary-title usage in case cards read from var() */
.fruite-item .product-card-title,
.fruite-item .product-card-title a,
.fruite-item h4.product-card-title,
.fruite-item h6.product-card-title { color: #6d4d4d !important; }
.fruite-item .product-card-title a:hover { color: #543434 !important; }

/* All black-ish body texts inside card containers → dusty rose */
.fruite-item h4,
.fruite-item h5,
.fruite-item h6,
.fruite-item .fs-5 { color: #6d4d4d !important; }

/* Bootstrap text-dark utility in card context */
.fruite-item .text-dark,
.vesiteam-item .text-dark,
#homeProductsContainer .text-dark,
#productsContainer .text-dark,
#bestsellersContainer .text-dark,
#featuredProducts .text-dark,
#relatedProducts .text-dark,
#recentlyViewedList .text-dark { color: #6d4d4d !important; }


/* ══════════════════════════════════════════════════════ */
/* FINAL: Force all remaining #543434 / #b07a7a → #6d4d4d */
/* (higher specificity than existing rules)              */
/* ══════════════════════════════════════════════════════ */
/* Bestsellers h6 title (was #543434 with high specificity) */
#bestsellersContainer .fruite-item h6.product-card-title,
#bestsellersContainer .fruite-item h6.product-card-title a,
#bestsellersContainer .fruite-item .p-2 h6,
#bestsellersContainer .fruite-item .p-2 h6 a,
#bestsellersContainer h6.product-card-title,
#bestsellersContainer h6.product-card-title a { color: #6d4d4d !important; }

/* Vesiteam title (Популярни букети — was #543434) */
.vesiteam-item-title,
.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 { color: #6d4d4d !important; }

/* Featured sidebar prices (were #b07a7a — lighter rose) */
#featuredProducts h5.price-now,
#featuredProducts .fw-bold.price-now,
#featuredProducts h5.price-now.fw-bold,
#featuredProducts .price-now { color: #6d4d4d !important; }

/* Hover states for consistency */
#bestsellersContainer .fruite-item h6.product-card-title a:hover,
.vesiteam-item-title a:hover { color: #543434 !important; }


/* ══════════════════════════════════════════════════════ */
/* Section headings → dusty rose #6d4d4d                 */
/* ══════════════════════════════════════════════════════ */
/* Shop page main title "Магазин за цветя и букети" */
.container-fluid.fruite > .container > h1,
.container-fluid.fruite > .container > h1.mb-4,
.container-fluid.fruite h1.mb-4 { color: #6d4d4d !important; }

/* Shop sidebar section headings (Категории, Цена, Филтри, Препоръчани продукти, Пакетни оферти) */
.col-lg-3.order-last h4,
.col-lg-3.order-lg-first h4,
.col-lg-3 > .row > .col-lg-12 > div > h4,
.col-lg-3 > .row > .col-lg-12 > h4,
.col-lg-3 h4 { color: #6d4d4d !important; }

/* Recently-viewed section ("Наскоро разглеждани") */
#recentlyViewedSection h4,
#recentlyViewedSection .container > h4,
#recentlyViewedSection h4.fw-bold { color: #6d4d4d !important; }

/* Recently-viewed item names (span with inline color:#333) */
#recentlyViewedSection .recently-viewed-grid a span,
.recently-viewed-grid a > span:first-of-type { color: #6d4d4d !important; }

/* Categories list section label on shop (if any fruite-categorie headings) */
.fruite-categorie h4,
.list-unstyled.fruite-categorie + h4 { color: #6d4d4d !important; }
/* ══════════════════════════════════════════════════════ */


/* Mobile portrait mode image fix */
@media (max-width: 767px) {
    body.portrait-mode .fruite-item .fruite-img,
    body.portrait-mode .fruite-img {
        aspect-ratio: 3 / 4 !important;
        max-height: 360px !important;
    }
    body.portrait-mode .fruite-item .fruite-img img,
    body.portrait-mode .fruite-img img,
    body.portrait-mode .fruite-item img[style*=height] {
        height: 100% !important;
        max-height: 360px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    body.portrait-mode #productsContainer img[style*=height] {
        height: auto !important;
        max-height: 360px !important;
        aspect-ratio: 3 / 4 !important;
    }
    /* Non-portrait mode keeps 160px cap */
    body:not(.portrait-mode) .fruite-item .fruite-img img,
    body:not(.portrait-mode) .fruite-item img[style*=height] {
        max-height: 160px !important;
        height: 160px !important;
        object-fit: cover !important;
    }
}


/* ═══ Shop.html portrait mode fixes (kalina-garden patch) ═══ */
/* Clamp image wrapper height on mobile — wrapper has inline height:420px */
@media (max-width: 767px) {
    body.portrait-mode #productsContainer > [class*="col-"] > div > div:first-child {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        max-height: 360px !important;
    }
}
/* Also clamp on tablet/small desktop — 420px is only for large screens */
@media (max-width: 991px) {
    body.portrait-mode #productsContainer > [class*="col-"] > div > div:first-child {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        max-height: 380px !important;
    }
}

/* Center title, stars, description, and price in portrait mode on shop.html */
body.portrait-mode #productsContainer .card-title-wrap {
    text-align: center !important;
}
body.portrait-mode #productsContainer .card-title-wrap a {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}
body.portrait-mode #productsContainer .card-stars-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
body.portrait-mode #productsContainer .card-stars-wrap > div,
body.portrait-mode #productsContainer .product-rating {
    justify-content: center !important;
}
body.portrait-mode #productsContainer .card-desc-wrap {
    text-align: center !important;
}
/* Price row: stack vertically centered in portrait */
body.portrait-mode #productsContainer .card-price,
body.portrait-mode #productsContainer p.fw-bold.mb-0 {
    text-align: center !important;
    width: 100% !important;
}
/* Make the buy button and price row stack centered */
body.portrait-mode #productsContainer > [class*="col-"] > div > div:last-child > div:last-child {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}
/* Make buy button wider on portrait */
body.portrait-mode #productsContainer .add-to-cart-btn {
    min-width: 120px;
    justify-content: center !important;
}


/* ═══ Vesiteam carousel cards — fix image aspect ratio + portrait mode centering ═══ */
/* Fixed 3:4 aspect ratio on ALL carousel images regardless of natural dimensions */
.vesitable .owl-carousel .vesiteam-img,
#vegetableCarousel .vesiteam-img {
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
    position: relative !important;
}
.vesitable .owl-carousel .vesiteam-img a,
#vegetableCarousel .vesiteam-img a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.vesitable .owl-carousel .vesiteam-img img,
#vegetableCarousel .vesiteam-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* In portrait mode, center title, rating, description, price row */
body.portrait-mode .vesiteam-item .p-3,
body.portrait-mode .vesiteam-item .p-4 {
    text-align: center !important;
}
body.portrait-mode .vesiteam-item .vesiteam-item-title,
body.portrait-mode .vesiteam-item-title {
    text-align: center !important;
}
body.portrait-mode .vesiteam-item .vesiteam-item-title a {
    text-align: center !important;
    justify-content: center !important;
}
body.portrait-mode .vesiteam-item .product-rating {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
body.portrait-mode .vesiteam-item p,
body.portrait-mode .vesiteam-item .card-desc-text {
    text-align: center !important;
}
body.portrait-mode .vesiteam-item .d-flex.justify-content-between {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Икона в бутона Купи - винаги бяла (бие .text-primary на каросел/бестселъри) */
.fruite-item a.add-to-cart-btn i,.fruite-item .btn.add-to-cart-btn i,.fruite-item a.card-buy-btn i,.add-to-cart-btn i,.card-buy-btn i{color:#fff !important}
