/**
 * BKP Cart — premium storefront overrides (default theme)
 */
:root {
    --bk-premium-bg: #f7f3ef;
    --bk-premium-surface: #ffffff;
    --bk-premium-ink: #5c0a0a;
    --bk-premium-muted: #6b5344;
    --bk-premium-accent: #c9a227;
    --bk-premium-radius: 14px;
    --bk-premium-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --bk-premium-shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.06);
}

body {
    background-color: var(--bk-premium-bg) !important;
    color: var(--bk-premium-ink);
    -webkit-font-smoothing: antialiased;
}

.topbar {
    background: linear-gradient(90deg, #5c0a0a 0%, #3d0606 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .topbar-link,
.topbar .dropdown-toggle {
    color: rgba(255, 255, 255, 0.88) !important;
}

.topbar .text-primary,
.topbar i.text-primary {
    color: var(--bk-premium-accent) !important;
}

.navbar-stuck-menu {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(92, 10, 10, 0.08) !important;
    border-bottom: 1px solid rgba(92, 10, 10, 0.06) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar-stuck-menu .navbar-stuck-toggler,
.search_button {
    background: linear-gradient(135deg, #5c0a0a 0%, #8b1515 100%) !important;
    border-color: transparent !important;
}

.navbar-stuck-menu .nav-link {
    color: var(--bk-premium-ink) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.65rem 0.9rem !important;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-stuck-menu .nav-link:hover,
.navbar-stuck-menu .nav-item.active .nav-link {
    color: var(--bk-premium-ink) !important;
    background: rgba(201, 162, 39, 0.12);
}

.navbar-stuck-menu .category-menu-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5c0a0a 0%, #7a1010 100%) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.55rem 1rem !important;
    margin-right: 0.75rem;
    box-shadow: 0 6px 16px rgba(92, 10, 10, 0.25);
}

.navbar-stuck-menu .category-menu-toggle-btn-text,
.navbar-stuck-menu .category-menu-toggle-btn svg {
    color: #fff !important;
}

.navbar-stuck-menu .btn.dropdown-toggle {
    color: var(--bk-premium-ink) !important;
    font-weight: 600;
}

.mobile-head .navbar-light {
    border-bottom: 1px solid rgba(92, 10, 10, 0.06);
}

/* Header logo — modest bump; full logo + tagline (no aspect-ratio crop) */
.mobile-head .system-logo-element {
    max-height: none;
    max-width: min(280px, 38vw);
    display: flex;
    align-items: center;
}

.mobile-head .system-logo-element img {
    object-fit: contain;
    width: auto;
    height: auto;
    max-height: 78px;
    max-width: 280px;
    aspect-ratio: auto;
}

@media (max-width: 767px) {
    .mobile-head .system-logo-element img {
        max-height: 50px;
        max-width: 200px;
    }
}

.mobile-head .form-control.appended-form-control {
    border-radius: 12px 0 0 12px !important;
    border: 1px solid rgba(92, 10, 10, 0.12) !important;
    min-height: 44px;
}

.mobile-head .input-group-append-overlay .input-group-text {
    border-radius: 0 12px 12px 0 !important;
}

.navbar-stuck-menu .navbar-nav:not(.__mega-nav) {
    flex-wrap: wrap;
    gap: 0.15rem;
}

.brands-slider .__brand-item img,
.owl-carousel.brands-slider img {
    object-fit: contain !important;
    background: #fff !important;
    padding: 8px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(201, 162, 39, 0.25);
}

.categories--slider img,
.__category-item img {
    object-fit: cover !important;
    background: #fff !important;
}

.navbar-light,
header .bg-light:not(.topbar) {
    background: var(--bk-premium-surface) !important;
    box-shadow: var(--bk-premium-shadow-sm);
}

.card,
.others-store-card,
.__inline-10 .card,
.feature-product,
.product-single-hover {
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: var(--bk-premium-radius) !important;
    box-shadow: var(--bk-premium-shadow-sm) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.others-store-card:hover,
.product-single-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--bk-premium-shadow) !important;
}

.product-single-hover img,
.flash_deal_product img,
.__img-125px,
.get-view-by-onclick img,
.latest-product-margin img,
.feature-product-list img,
.top-rated-image img,
.best-selling-image img {
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 10px !important;
    border-radius: 12px !important;
}

.section-header,
.__inline-10 h2,
.__inline-10 h3.section-title {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--bk-premium-ink) !important;
}

.view-all-btn-text,
.text-capitalize.view-all-btn-text {
    color: var(--bk-premium-accent) !important;
    font-weight: 600;
}

.btn--primary,
.search_button,
.btn-primary {
    background: linear-gradient(135deg, #5c0a0a 0%, #8b1515 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.btn--primary:hover,
.btn-primary:hover {
    filter: brightness(1.08);
}

.__inline-10 .feature-section,
.reliability-section {
    background: linear-gradient(180deg, #ffffff 0%, #eef1f6 100%) !important;
    border-radius: var(--bk-premium-radius);
}

footer,
.__inline-10 footer {
    background: #0b1220 !important;
    color: rgba(255, 255, 255, 0.85);
}

footer a,
footer .widget-list-link {
    color: rgba(255, 255, 255, 0.72) !important;
}

footer a:hover {
    color: var(--bk-premium-accent) !important;
}

.web-text-primary,
.text-primary {
    color: var(--bk-premium-accent) !important;
}

.form-control:focus {
    border-color: var(--bk-premium-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.18) !important;
}

.__inline-52 .bg-primary-light {
    background: linear-gradient(135deg, rgba(92, 10, 10, 0.06) 0%, rgba(201, 162, 39, 0.12) 100%) !important;
    border: 1px solid rgba(92, 10, 10, 0.08);
    border-radius: var(--bk-premium-radius) !important;
}

.__inline-52 .brand_div-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.__inline-52 .brand_div {
    background: #fff;
    border-radius: var(--bk-premium-radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--bk-premium-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--bk-premium-ink);
    font-weight: 600;
}

.__inline-52 .brand_div:hover {
    transform: translateY(-3px);
    box-shadow: var(--bk-premium-shadow);
    text-decoration: none;
}

.__inline-52 .brand_div img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    border: 3px solid rgba(201, 162, 39, 0.35);
}

.hero-slider img,
.__slide-img,
.cz-carousel .carousel-item img {
    object-fit: cover !important;
    border-radius: var(--bk-premium-radius);
}

.login-card,
.register-card,
.tracking-page .card {
    border-radius: var(--bk-premium-radius) !important;
    border: 1px solid rgba(92, 10, 10, 0.08) !important;
    box-shadow: var(--bk-premium-shadow-sm) !important;
}

.login-card h2,
.register-card h2 {
    color: var(--bk-premium-ink) !important;
}

.tracking-page .btn--primary,
.login-card .btn--primary,
.register-card .btn--primary {
    background: linear-gradient(135deg, #5c0a0a 0%, #8b1515 100%) !important;
}

.text-primary,
.tracking-page .text-primary {
    color: var(--bk-premium-accent) !important;
}

.tracking-page .bg-section2 {
    background: linear-gradient(135deg, rgba(92, 10, 10, 0.04) 0%, rgba(201, 162, 39, 0.08) 100%) !important;
    border-radius: 12px;
}

.bkp-cart-dropdown {
    min-width: 21rem !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden;
    margin-top: 0.65rem !important;
}

.bkp-cart-dropdown-head {
    background: linear-gradient(135deg, #5c0a0a 0%, #7a1010 100%) !important;
    color: #fff !important;
    margin-bottom: 0 !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.bkp-cart-dropdown-head h6,
.bkp-cart-dropdown-head i {
    color: #fff !important;
}

.bkp-cart-dropdown-close {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.bkp-cart-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.bkp-cart-dropdown-body {
    background: #fff !important;
}

.bkp-cart-empty-state {
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
}

.bkp-cart-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(92, 10, 10, 0.12) 0%, rgba(201, 162, 39, 0.22) 100%);
    border: 2px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 8px 20px rgba(92, 10, 10, 0.12);
}

.bkp-cart-empty-icon i {
    color: #5c0a0a !important;
    font-size: 1.75rem !important;
}

.bkp-cart-empty-state h6 {
    color: var(--bk-premium-ink) !important;
    letter-spacing: -0.01em;
}

.bkp-cart-empty-text {
    color: #6b5344 !important;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
}

.cart-dropdown .widget-cart-item:not(:last-child) {
    border-bottom-color: rgba(92, 10, 10, 0.08) !important;
}

.cart-dropdown .dropdown-saved-amount {
    background: rgba(201, 162, 39, 0.12) !important;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}

.cart-dropdown .progress.__progress {
    background: rgba(92, 10, 10, 0.08) !important;
}

.cart-dropdown .progress-bar {
    background: linear-gradient(90deg, #5c0a0a 0%, #c9a227 100%) !important;
}

.navbar-tool .navbar-tool-icon-box.bg-secondary {
    background: linear-gradient(135deg, #5c0a0a 0%, #8b1515 100%) !important;
}

.navbar-tool .navbar-tool-icon-box.bg-secondary .navbar-tool-icon,
.navbar-tool .navbar-tool-icon-box.bg-secondary i.navbar-tool-icon {
    color: #fff !important;
}

.navbar-tool .navbar-tool-icon-box.bg-secondary svg path {
    fill: #fff !important;
}

.navbar-tool-label {
    background: var(--bk-premium-accent) !important;
    color: #1a1a1a !important;
}

/* Site-wide page loader (product filters, AJAX, etc.) */
#loading.loading-parent {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#loading.loading-parent:not(.d--none),
#loading.loading-parent[style*="display: block"],
#loading.loading-parent[style*="display: grid"] {
    display: flex !important;
}

.bkp-page-loader {
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: var(--bk-premium-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--bk-premium-shadow);
    border: 1px solid rgba(92, 10, 10, 0.08);
    min-width: 9rem;
}

.bkp-page-loader__visual {
    position: relative;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
}

.bkp-page-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(201, 162, 39, 0.22);
    border-top-color: #5c0a0a;
    border-right-color: #c9a227;
    animation: bkp-loader-spin 0.9s cubic-bezier(0.45, 0.05, 0.35, 0.95) infinite;
}

.bkp-page-loader__core {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(92, 10, 10, 0.08) 0%, rgba(201, 162, 39, 0.15) 100%);
    animation: bkp-loader-pulse 1.6s ease-in-out infinite;
}

.bkp-page-loader__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bk-premium-muted);
}

.global-loader {
    background-color: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.global-loader .loader {
    display: none !important;
}

@keyframes bkp-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bkp-loader-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.65;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}
