:root {
    --bb-primary: #f37021;
    --bb-primary-dark: #d95b12;
    --bb-accent: #ed1c24;
    --bb-dark: #1a1a1a;
    --bb-muted: #4b5563;
    --bs-primary: #f37021;
    --bs-primary-rgb: 243, 112, 33;
    --bs-link-color: #f37021;
    --bs-link-hover-color: #c2410c;
}

body {
    background: #fcfaf8;
    color: var(--bb-dark);
}

a {
    color: var(--bb-primary);
}

a:hover {
    color: var(--bb-primary-dark);
}

.site-header {
    background: #fff;
}

.site-header .navbar-brand {
    color: var(--bb-primary);
}

.product-card {
    transition: all .22s ease;
    border: 1px solid #f1eae4;
    border-top: 3px solid var(--bb-primary);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #fed7aa;
    border-top-color: var(--bb-accent);
    box-shadow: 0 12px 24px rgba(243, 112, 33, 0.12) !important;
}

.product-card .card-img-top {
    height: 290px;
    object-fit: cover;
    border-bottom: 1px solid #f5efe9;
}

@media (max-width: 767.98px) {
    .product-card .card-img-top {
        height: 230px;
    }
}

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #f37021 65%, #ed1c24 100%);
}

.site-footer a:hover {
    color: #fff !important;
}

.nav-underline .nav-link {
    color: #1a1a1a;
    padding: .25rem .75rem;
    font-weight: 600;
}

.nav-underline .nav-link:hover {
    color: var(--bb-primary);
}

/* Tables */
.table thead th {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #4b5563;
}

/* Global Logo-Matched Buttons & Bootstrap Overrides */
.btn-primary {
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%) !important;
    border-color: #f37021 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #d95b12 0%, #c81920 100%) !important;
    border-color: #d95b12 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.28) !important;
}

.btn-outline-primary {
    color: #f37021 !important;
    border-color: #f37021 !important;
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%) !important;
    border-color: #f37021 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.22) !important;
}

.text-primary {
    color: #f37021 !important;
}

.bg-primary {
    background-color: #f37021 !important;
}

.border-primary {
    border-color: #f37021 !important;
}

.page-link {
    color: #1a1a1a;
    border-color: #e5e7eb;
}

.page-link:hover {
    color: #f37021;
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%) !important;
    border-color: #f37021 !important;
    color: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #f37021;
    box-shadow: 0 0 0 0.2rem rgba(243, 112, 33, 0.18);
}

.form-check-input:checked {
    background-color: #f37021;
    border-color: #f37021;
}

.breadcrumb-item a {
    color: #f37021;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #ed1c24;
    text-decoration: underline;
}

/* Misc */
code {
    color: #ed1c24;
    background: #fff5f5;
    padding: 1px 4px;
    border-radius: 3px;
}

.thumb:hover {
    outline: 2px solid var(--bb-primary);
}

.p-2 {
    padding: 1.2rem !important;
}

.text-white {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
    line-height: 25px;
}

/* Professional Hover Dropdown */
@media (min-width: 992px) {
    .custom-hover-dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }

    .custom-hover-dropdown>.dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        margin-top: 15px;
    }
}

.custom-hover-dropdown>.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12) !important;
    padding: 0.75rem 0;
    border: 1px solid rgba(243, 112, 33, 0.15) !important;
    border-top: 3px solid #f37021 !important;
    min-width: 220px;
}

.custom-hover-dropdown .dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.custom-hover-dropdown .dropdown-item:hover,
.custom-hover-dropdown .dropdown-item.active-sub-item {
    background-color: #fff7ed;
    color: #f37021;
    padding-left: 1.8rem;
    font-weight: 600;
}

.custom-hover-dropdown .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

/* ==========================================================================
   Modern Professional Site Header & Category Navbar (Editone Logo Palette)
   ========================================================================== */
.site-header {
    background: #ffffff;
    z-index: 1030;
    border-bottom: 0 !important;
    box-shadow: 0 4px 18px rgba(26, 26, 26, 0.07);
}

.header-main {
    background: #ffffff;
    border-bottom: 1px solid #f3ebe4;
    position: relative;
    z-index: 1036;
}

.brand-logo {
    max-height: 54px;
    width: auto;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.brand-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.28);
}

/* Search Pill Bar */
.header-search-form {
    max-width: 600px;
}

.search-pill-wrapper {
    display: flex;
    align-items: center;
    background: #fdfaf7;
    border: 1.5px solid #e5ddd5;
    border-radius: 999px;
    height: 38px;
    padding: 2px 4px 2px 14px;
    transition: all 0.25s ease;
}

.search-pill-wrapper:focus-within {
    background: #ffffff;
    border-color: #f37021;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.search-lead-icon {
    color: #6b7280;
    font-size: 0.9rem;
    margin-right: 8px;
}

.search-pill-input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    height: 32px;
    min-height: 32px;
    font-size: 0.86rem;
    color: #1a1a1a;
}

.search-pill-input::placeholder {
    color: #9ca3af;
}

.search-pill-btn {
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    color: #ffffff !important;
    border: 0;
    border-radius: 999px;
    height: 30px;
    padding: 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(243, 112, 33, 0.25);
    transition: all 0.2s ease;
}

.search-pill-btn:hover {
    background: linear-gradient(135deg, #d95b12 0%, #c81920 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.35);
}

/* Header Action Links & Buttons */
.header-action-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    transition: all 0.2s ease;
}

.header-action-link:hover,
.header-action-link.active {
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    border-color: #f37021;
    color: #ffffff;
}

.header-action-link:hover i,
.header-action-link.active i {
    color: #ffffff !important;
}

.header-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-cart-btn:hover {
    background: #ffedd5;
    border-color: #f37021;
    color: #f37021;
    transform: translateY(-1px);
}

.cart-count-badge {
    background-color: #ed1c24 !important;
}

.header-user-btn {
    background: #fdfaf7;
    border: 1px solid #e5ddd5;
    border-radius: 999px;
    padding: 4px 14px 4px 5px;
    transition: all 0.2s ease;
}

.header-user-btn:hover,
.header-user-btn:focus {
    background: #fff7ed;
    border-color: #fdba74;
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-user-dropdown {
    border-radius: 16px;
    min-width: 265px;
    overflow: hidden;
    border: 1px solid #f1eae4 !important;
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.16) !important;
}

.user-dd-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 2.5px solid #f37021;
    padding: 14px 16px;
}

.user-dd-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.35);
}

.user-dd-role-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(243, 112, 33, 0.22);
    color: #fdba74;
    border: 1px solid rgba(243, 112, 33, 0.4);
}

.user-dd-admin-btn {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 11px;
    padding: 8px 12px;
    color: #c2410c !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.user-dd-admin-btn:hover {
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    border-color: #f37021;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.25);
}

.user-dd-admin-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f37021;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.user-dd-admin-btn:hover .user-dd-admin-icon {
    background: rgba(255, 255, 255, 0.22);
}

.user-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.18s ease;
}

.user-dd-item:hover {
    background: #fff7ed;
    color: #f37021 !important;
    transform: translateX(3px);
}

.user-dd-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f8f5f2;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.18s ease;
}

.user-dd-item:hover .user-dd-icon {
    background: #ffedd5;
    color: #f37021;
}

.user-dd-arrow {
    font-size: 0.72rem;
    color: #9ca3af;
    opacity: 0;
    transition: all 0.18s ease;
}

.user-dd-item:hover .user-dd-arrow {
    opacity: 1;
    color: #f37021;
    transform: translateX(2px);
}

.user-dd-footer {
    background: #fcfaf8;
}

.user-dd-logout {
    padding: 7px 10px;
    border-radius: 10px;
    color: #dc2626 !important;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.18s ease;
}

.user-dd-logout:hover {
    background: #fef2f2;
    color: #b91c1c !important;
}

.user-dd-logout-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.header-login-btn {
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #f37021;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    transition: all 0.2s ease;
}

.header-login-btn:hover {
    background: #ffedd5;
    color: #d95b12;
}

.header-signup-btn {
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    border: 0;
    box-shadow: 0 3px 10px rgba(243, 112, 33, 0.25);
    transition: all 0.2s ease;
}

.header-signup-btn:hover {
    background: linear-gradient(135deg, #d95b12 0%, #c81920 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Category Navigation Strip (Editone Logo Charcoal + Vibrant Orange/Red Combination) */
.header-cat-bar {
    background: linear-gradient(90deg, #1a1a1a 0%, #2b2b2b 50%, #1a1a1a 100%);
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2.5px solid #f37021;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    padding: 6px 16px;
    position: relative;
    z-index: 1035;
}

.header-cat-nav {
    gap: 8px;
    scrollbar-width: none;
}

.header-cat-nav::-webkit-scrollbar {
    display: none;
}

.cat-pill-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 15px !important;
    border-radius: 999px;
    transition: all 0.2s ease;
    position: relative;
}

.cat-pill-link:hover {
    color: #ffffff !important;
    background: rgba(243, 112, 33, 0.25);
}

.cat-pill-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f37021 0%, #ed1c24 100%);
    box-shadow: 0 2px 10px rgba(243, 112, 33, 0.4);
}

.cat-chevron {
    font-size: 0.7rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.custom-hover-dropdown:hover .cat-chevron {
    transform: rotate(180deg);
}
