/* B2B Food - Component Styles */

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item a:hover {
    color: #14613f;
    background-color: rgba(20, 97, 63, 0.1);
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item i {
    font-size: 0.85rem;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    padding-right: 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    outline: none;
}

.search-input:focus {
    border-color: #14613f;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(20, 97, 63, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #14613f 0%, #0d4b30 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(20, 97, 63, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #0d4b30 0%, #083b26 100%);
    box-shadow: 0 4px 8px rgba(20, 97, 63, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.search-btn i {
    font-size: 0.9rem;
}

/* Mobile Search */
@media (max-width: 991px) {
    .search-input-group {
        max-width: 100%;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 8px 16px;
        padding-right: 45px;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
    }
}

/* Desktop Search - Navbar Integration */
@media (min-width: 992px) {
    .navbar .search-input-group {
        max-width: 300px;
    }
    
    .navbar .search-input {
        background-color: rgba(248, 249, 250, 0.5);
        border-color: rgba(233, 236, 239, 0.5);
    }
    
    .navbar .search-input:focus {
        background-color: #fff;
        border-color: #14613f;
    }
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: #fff;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #212529;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: #14613f;
}

.nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #14613f;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, #14613f, #0d4b30);
    border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #14613f 0%, #0d4b30 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(20, 97, 63, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d4b30 0%, #083b26 100%);
    box-shadow: 0 4px 8px rgba(20, 97, 63, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid #14613f;
    color: #14613f;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #14613f;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(20, 97, 63, 0.3);
}

/* ============================================
   WISHLIST & CART BUTTONS
   ============================================ */
.nav-link .fa-heart {
    color: #dc3545;
    font-size: 1.1rem;
}

.nav-link .fa-heart:hover {
    color: #c82333;
    transform: scale(1.1);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.5em;
    font-weight: 600;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.badge.rounded-pill {
    border-radius: 50rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-wrapper {
        padding: 8px 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* ============================================
   BRAND LIST ENHANCEMENTS
   ============================================ */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 16px rgba(20, 97, 63, 0.2) !important;
    transform: translateY(-3px);
}

.alphabet-link {
    min-width: 42px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.alphabet-link:hover {
    transform: scale(1.1);
}

.brand-card {
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(20, 97, 63, 0.2);
}

/* ============================================
   MODERN STOREFRONT
   ============================================ */
.mini-navbar { background: #eff5f0 !important; color: var(--muted); border-bottom: 1px solid var(--line); }
.main-navbar { border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(23, 33, 29, .05) !important; padding: .9rem 0; }
.navbar-brand { color: var(--ink); letter-spacing: -.04em; }
.navbar-brand .text-pistachio { color: var(--brand) !important; }
.navbar-nav .nav-link { color: #415048; border-radius: 9px; font-size: .92rem; padding: .5rem .7rem; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand) !important; background: var(--brand-soft); }
.search-input { border: 1px solid var(--line); background: #f8faf8; border-radius: 12px; padding: .7rem 3rem .7rem 1rem; }
.search-btn { background: var(--brand); box-shadow: none; border-radius: 9px; right: 5px; width: 34px; height: 34px; }
.search-btn:hover { background: var(--brand-strong); box-shadow: none; }
.breadcrumb-wrapper { background: transparent; border: 0; box-shadow: none; padding: .85rem 0; }
.breadcrumb-item a { color: var(--brand); }

.homepage-section { padding: 5.5rem 0; }
.homepage-stats { padding: 0 0 1.5rem; position: relative; z-index: 2; }
.stats-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -2rem; overflow: hidden; }
.stat-item { align-items: center; color: var(--ink); display: flex; gap: 1rem; justify-content: center; min-height: 116px; min-width: 0; padding: 1.5rem; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.stat-item > div { min-width: 0; }
.stat-item:hover { background: #f4f8f5; color: var(--brand); }
.stat-item:focus-visible { outline: 3px solid rgba(31, 111, 73, .35); outline-offset: -3px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-item strong, .stat-item span { display: block; }
.stat-item strong { font-size: 1.6rem; letter-spacing: -.06em; line-height: 1; }
.stat-item div > span { color: var(--muted); font-size: .82rem; margin-top: .35rem; overflow-wrap: anywhere; }
.stat-icon { align-items: center; background: var(--brand-soft); border-radius: 14px; color: var(--brand); display: inline-flex; flex: 0 0 42px; font-size: 1.05rem; height: 42px; justify-content: center; width: 42px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 2.25rem; }
.eyebrow { color: var(--brand); display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .7rem; text-transform: uppercase; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.055em; line-height: 1.08; margin: 0; max-width: 620px; }
.text-link { align-items: center; color: var(--brand); display: inline-flex; font-weight: 750; gap: .55rem; text-decoration: none; }
.text-link:hover { color: var(--brand-strong); }
.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.category-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); display: flex; gap: 1rem; min-height: 116px; padding: 1.15rem; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.category-card:hover { border-color: #b9d7c4; box-shadow: var(--shadow); color: var(--ink); transform: translateY(-3px); }
.category-icon { align-items: center; background: #f1f6f2; border-radius: 14px; color: var(--brand); display: flex; flex: 0 0 48px; height: 48px; justify-content: center; overflow: hidden; }
.category-icon img { height: 100%; object-fit: cover; width: 100%; }
.category-copy { min-width: 0; }
.category-copy strong, .category-copy small { display: block; }
.category-copy strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-copy small { color: var(--muted); font-size: .78rem; margin-top: .25rem; }
.category-arrow { color: var(--brand); font-size: .8rem; margin-left: auto; }
.brands-section { background: #eaf1eb; }
.brand-card { color: var(--ink); display: block; text-decoration: none; transform: none; }
.brand-card-inner { align-items: center; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); display: grid; gap: 1rem; grid-template-columns: 58px 1fr auto; min-height: 94px; padding: 1.05rem; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.brand-card:hover { color: var(--ink); transform: none; box-shadow: none; }
.brand-card:hover .brand-card-inner { border-color: #b9d7c4; box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-logo-wrap { align-items: center; background: #f5f7f4; border-radius: 12px; display: flex; height: 58px; justify-content: center; overflow: hidden; width: 58px; }
.brand-logo-wrap img { height: 100%; object-fit: contain; padding: .45rem; width: 100%; }
.brand-logo-wrap span { color: var(--brand); font-size: 1rem; font-weight: 800; }
.brand-card strong, .brand-card small { display: block; }
.brand-card strong { font-size: .95rem; }
.brand-card small { color: var(--muted); font-size: .78rem; margin-top: .25rem; }
.brand-card-inner > i { color: var(--brand); font-size: .8rem; }

.hero-banner-section .carousel-item, .hero-banner-single { min-height: 520px !important; overflow: hidden; }
.hero-banner-section .carousel-control-prev, .hero-banner-section .carousel-control-next { bottom: .75rem; height: 3rem; top: auto; width: 3rem; z-index: 3; }
.hero-banner-section .carousel-control-prev { left: 1rem; }
.hero-banner-section .carousel-control-next { right: 1rem; }
.hero-banner-section .carousel-indicators { bottom: 1.5rem; margin-bottom: 0; }
.hero-banner-section .carousel-item::before, .hero-banner-single::before { background: linear-gradient(112deg, #0f2d20 0%, #194c35 54%, #2b6f4e 100%); content: ""; inset: 0; position: absolute; }
.hero-banner-section .carousel-item::after, .hero-banner-single::after { background: radial-gradient(circle, rgba(230, 169, 76, .9) 0 2px, transparent 3px), radial-gradient(circle, rgba(255, 255, 255, .14) 0 1px, transparent 2px); background-size: 38px 38px, 19px 19px; content: ""; height: 330px; opacity: .45; position: absolute; right: 6%; top: 20%; transform: rotate(18deg); width: 330px; }
.hero-banner-section .carousel-item[style*="background-image"]::before, .hero-banner-single[style*="background-image"]::before { background: linear-gradient(90deg, rgba(10, 37, 25, .88), rgba(10, 37, 25, .42)); }
.hero-banner-section .hero-content { color: #fff; max-width: 720px; padding: 4.5rem 0; position: relative; z-index: 2; }
.hero-banner-section .carousel-item .hero-content { padding-bottom: 5.5rem; }
.hero-eyebrow { align-items: center; color: #d4efd8; display: flex; font-size: .72rem; font-weight: 800; gap: .5rem; letter-spacing: .12em; margin-bottom: 1.1rem; text-transform: uppercase; }
.hero-eyebrow i { color: var(--accent); }
.hero-banner-section h1 { color: #fff; font-size: clamp(2.75rem, 5vw, 5rem); font-weight: 750; letter-spacing: -.07em; line-height: .95; margin-bottom: 1.1rem; }
.hero-subtitle { color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 500; margin: 0; max-width: 620px; opacity: .94; }
.hero-description { color: #e9f3ec; font-size: 1rem; margin: .8rem 0 0; max-width: 580px; }
.hero-search { align-items: center; background: #fff; border-radius: 14px; box-shadow: 0 16px 32px rgba(4, 22, 13, .22); display: flex; gap: .7rem; margin-top: 2rem; max-width: 610px; padding: .45rem .45rem .45rem 1rem; }
.hero-search > i { color: var(--brand); }
.hero-search input { background: transparent; border: 0; color: var(--ink); flex: 1; font-size: .94rem; min-width: 0; outline: none; padding: .45rem 0; }
.hero-search input::placeholder { color: #79867e; }
.hero-search button { background: var(--brand); border: 0; border-radius: 10px; color: #fff; font-size: .86rem; font-weight: 750; padding: .7rem 1rem; }
.hero-search button:hover { background: var(--brand-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.btn-hero-primary, .btn-hero-secondary { align-items: center; display: inline-flex; gap: .6rem; justify-content: center; padding: .7rem 1rem; }
.btn-hero-primary { background: var(--accent); border-color: var(--accent); color: #2d220d; }
.btn-hero-primary:hover { background: #f0bc68; border-color: #f0bc68; color: #2d220d; }
.btn-hero-secondary { background: transparent; border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-hero-secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.preview-notice { align-items: center; background: #fff7db; border-bottom: 1px solid #f1dfaa; color: #5e4a15; display: flex; font-size: .85rem; gap: .55rem; justify-content: center; padding: .55rem 1rem; text-align: center; }
.preview-notice i { color: #b58019; }

/* Catalog, account and contact pages */
.catalogue-page { margin: -2.5rem -12px -3.5rem; }
.catalogue-hero { background: linear-gradient(120deg, #0f2d20, #1c5940); color: #fff; overflow: hidden; padding: 4.75rem 0 6rem; position: relative; }
.catalogue-hero::after { border: 1px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; height: 420px; position: absolute; right: -130px; top: -150px; width: 420px; }
.catalogue-hero .container { position: relative; z-index: 1; }
.catalogue-hero h1 { font-size: clamp(2.35rem, 5vw, 4.3rem); letter-spacing: -.065em; line-height: .98; margin: 0; max-width: 700px; }
.catalogue-hero p { color: #e2f1e7; font-size: 1.05rem; line-height: 1.55; margin: 1.2rem 0 0; max-width: 660px; }
.catalogue-figures { display: flex; gap: .75rem; margin-top: 2rem; }
.catalogue-figures div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; min-width: 134px; padding: .75rem 1rem; }
.catalogue-figures strong, .catalogue-figures span { display: block; }
.catalogue-figures strong { font-size: 1.35rem; letter-spacing: -.05em; }
.catalogue-figures span { color: #d4efd8; font-size: .75rem; margin-top: .2rem; }
.catalogue-content { padding-bottom: 2rem; padding-top: 2.5rem; }
.category-catalog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); display: block; height: 100%; min-height: 176px; overflow: hidden; position: relative; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.category-catalog-card:hover { border-color: #b9d7c4; box-shadow: var(--shadow); color: var(--ink); transform: translateY(-4px); }
.category-preview { display: flex; height: 62px; opacity: .13; overflow: hidden; }
.category-catalog-card-body { align-items: flex-start; display: flex; flex-direction: column; min-height: 176px; padding: 1.1rem; position: relative; }
.category-preview + .category-catalog-card-body { margin-top: -62px; }
.category-catalog-icon { align-items: center; background: var(--brand-soft); border-radius: 12px; color: var(--brand); display: flex; font-size: 1.2rem; height: 42px; justify-content: center; width: 42px; }
.category-catalog-title { font-size: .92rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; margin: .85rem 0 .35rem; }
.category-catalog-count { color: var(--muted); font-size: .75rem; }
.category-catalog-arrow { bottom: 1.1rem; color: var(--brand); font-size: .8rem; position: absolute; right: 1.1rem; }
.catalogue-footer { padding-bottom: 4rem; text-align: center; }

.auth-page, .contact-page { padding-bottom: 3.5rem; padding-top: 2.25rem; }
.auth-card, .contact-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.auth-card-header, .contact-header { background: linear-gradient(125deg, #e7f3ea, #f8fbf8); border-bottom: 1px solid var(--line); padding: 2.5rem 2rem 2rem; }
.auth-kicker { color: var(--brand); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .65rem; text-transform: uppercase; }
.auth-card-header h3, .contact-header h1 { color: var(--ink); font-size: clamp(1.85rem, 3.5vw, 2.55rem); font-weight: 750; letter-spacing: -.06em; }
.auth-card-header p, .contact-header p { color: var(--muted); margin: .55rem 0 0; }
.auth-card .card-body { padding: 2rem; }
.auth-card .input-group-text { background: #f5f8f5; border-color: var(--line); color: var(--brand); }
.customer-type-card { border-color: var(--line); box-shadow: none; transition: border-color .2s ease, background .2s ease; }
.customer-type-card.border-primary { background: var(--brand-soft); border-color: var(--brand) !important; }
.auth-card-footer { background: #f8faf8; border-color: var(--line); padding: 1rem; text-align: center; }
.password-guide { background: #f4f8f5; border-color: #c9dfcf; box-shadow: none; }
.password-guide .text-info { color: var(--brand) !important; }
.contact-body { padding: 2rem; }
.contact-form-panel { padding-right: 2rem; }
.contact-details-panel { border-left: 1px solid var(--line); padding-left: 2rem; }
.contact-details-panel h4 { font-weight: 750; letter-spacing: -.03em; }
.contact-details-panel .contact-info > div { background: #f8faf8; border-radius: 12px; margin-bottom: .65rem !important; padding: .9rem; }
.contact-details-panel .contact-info h6 { color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.contact-details-panel .contact-info a { color: var(--brand); font-weight: 650; }
.contact-page textarea.form-control { min-height: 145px; }

/* Product detail */
.product-detail-page { padding-top: .75rem; }
.product-media-card, .product-overview-card, .product-order-card { border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.product-media-card { min-height: 460px; }
.product-media-card .card-body { align-items: center; display: flex; justify-content: center; min-height: 460px; padding: 1.5rem; }
.product-media-card img { max-height: 410px; object-fit: contain; }
.product-image-modal .modal-dialog { margin: 1.5vh auto; max-width: min(1440px, 96vw); }
.product-image-modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 70px rgba(12, 24, 18, .28); overflow: hidden; }
.product-image-modal .modal-header { border-bottom-color: var(--line); padding: 1rem 1.4rem; }
.product-image-modal-body { align-items: center; background: #f7f8f6; display: flex; height: min(82vh, 1080px); justify-content: center; padding: 1rem; }
.product-image-modal .product-image-modal-image { display: block; height: 100%; max-height: none; max-width: 100%; object-fit: contain; width: 100%; }
.wishlist-heart-detail { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: 0 6px 18px rgba(23,33,29,.12) !important; }
.product-overview-header { background: linear-gradient(125deg, #123e2a, #1e6747); border: 0; padding: 1.65rem; }
.product-overview-header h1 { font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.04; }
.product-overview-header .text-white-50 { color: #d7eddd !important; }
.product-overview-card .card-body, .product-order-card .card-body { padding: 1.5rem; }
.brand-info { background: #f2f7f3; border: 1px solid #d9e8dc; border-radius: 14px; border-left: 4px solid var(--brand); }
.brand-info h6, .brand-info h6 a { color: var(--brand) !important; }
.product-description { background: #f8faf8; border: 0; border-radius: 14px; color: #425148; line-height: 1.6; }
.product-facts { margin-top: .6rem; }
.product-facts td { border-bottom: 1px solid #edf1ee; padding: .7rem .3rem; vertical-align: middle; }
.product-facts tr:last-child td { border-bottom: 0; }
.product-facts td:first-child { color: var(--muted); font-size: .82rem; width: 42%; }
.product-facts .badge { background: #eaf2ec !important; color: var(--brand); font-weight: 700; padding: .4rem .55rem; }
.product-order-header { background: #e9f3eb; border-bottom: 1px solid #cfe2d3; color: var(--ink); padding: 1rem 1.5rem; }
.product-order-header h6 { font-size: .94rem; font-weight: 750; }
.product-price-panel { background: #f5f9f6; border-radius: 16px; padding: 1.15rem; }
.product-price-panel h3 { color: var(--brand) !important; font-size: 2rem; font-weight: 800; letter-spacing: -.06em; }
.product-price-panel .text-success { color: var(--brand) !important; }
.product-order-controls .input-group .btn { border-color: var(--line); color: var(--brand); }
.product-order-controls .input-group .form-control { border-color: var(--line); box-shadow: none; }
.product-cart-button { background: var(--brand); border-color: var(--brand); box-shadow: 0 8px 18px rgba(20,97,63,.18); }
.product-cart-button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.similar-product-card { border: 1px solid var(--line) !important; border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.similar-product-card:hover { box-shadow: var(--shadow) !important; transform: translateY(-3px); }

@media (max-width: 991px) { .category-grid { grid-template-columns: repeat(2, 1fr); } .homepage-section { padding: 4rem 0; } }
@media (max-width: 767px) { .main-content { padding-top: 1rem; } .homepage-section { padding: 3.25rem 0; } .stats-panel { border-radius: 20px; grid-template-columns: repeat(2, 1fr); margin-top: -1rem; } .stat-item { justify-content: flex-start; min-height: 88px; padding: 1rem; } .stat-item + .stat-item { border-left: 0; } .stat-item:nth-child(even) { border-left: 1px solid var(--line); } .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); } .stat-item strong { font-size: 1.3rem; } .category-grid { gap: .75rem; grid-template-columns: 1fr; } .section-heading { margin-bottom: 1.5rem; } .hero-banner-section .carousel-item, .hero-banner-single { min-height: 540px !important; } .hero-banner-section .hero-content { padding: 3.25rem 0 2.5rem; } .hero-banner-section h1 { font-size: 2.7rem; } .hero-search { border-radius: 12px; gap: .45rem; margin-top: 1.5rem; padding-left: .8rem; } .hero-search button { padding: .65rem .75rem; } .hero-search input { font-size: .84rem; } .hero-banner-section .carousel-item::after, .hero-banner-single::after { height: 220px; right: -14%; top: 46%; width: 220px; } .preview-notice { font-size: .77rem; line-height: 1.4; padding: .5rem .85rem; } }
@media (max-width: 767px) { .catalogue-page { margin: -1rem -12px -2rem; } .catalogue-hero { padding: 3.25rem 0 4.5rem; } .catalogue-hero p { font-size: .94rem; } .catalogue-figures { margin-top: 1.5rem; } .catalogue-figures div { min-width: 118px; } .catalogue-content { padding-top: 1.5rem; } .category-catalog-card { min-height: 155px; } .category-catalog-card-body { min-height: 155px; } .auth-page, .contact-page { padding: 1rem 0 2.5rem; } .auth-card, .contact-shell { border-radius: 20px; } .auth-card-header, .contact-header, .auth-card .card-body, .contact-body { padding: 1.4rem; } .contact-form-panel { padding-right: calc(var(--bs-gutter-x) * .5); } .contact-details-panel { border-left: 0; border-top: 1px solid var(--line); padding-left: calc(var(--bs-gutter-x) * .5); padding-top: 1.5rem; } }
@media (max-width: 767px) { .product-detail-page { padding-top: 0; } .product-media-card, .product-media-card .card-body { min-height: 330px; } .product-media-card .card-body { padding: 1rem; } .product-media-card img { max-height: 285px; } .product-image-modal .modal-dialog { margin: 0; max-width: 100%; min-height: 100%; } .product-image-modal .modal-content { border-radius: 0; min-height: 100vh; } .product-image-modal-body { height: calc(100vh - 68px); padding: .75rem; } .product-overview-header, .product-overview-card .card-body, .product-order-card .card-body { padding: 1.2rem; } .product-overview-header h1 { font-size: 1.75rem; } .product-order-header { padding: .9rem 1.2rem; } .product-order-controls > div + div { margin-top: 1rem; } }

/* Brand Logo Styles */
.brand-logo-circle {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.card:hover .brand-logo-circle {
    border-color: #14613f;
}

/* ============================================
   AUTOCOMPLETE DROPDOWN
   ============================================ */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f8f9fa;
}

.autocomplete-item .article-number {
    font-weight: 600;
    color: #14613f;
    font-size: 0.9rem;
}

.autocomplete-item .article-name {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 2px;
}

.autocomplete-loading,
.autocomplete-no-results {
    padding: 10px 15px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================
   PRODUCT CARD - SELECTABLE ARTICLE NUMBER
   ============================================ */
.article-number-selectable {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
    transition: all 0.2s ease;
}

.article-number-selectable:hover {
    background-color: #e9ecef !important;
    box-shadow: 0 0 0 2px rgba(20, 97, 63, 0.1);
}

.article-number-selectable::selection {
    background-color: #14613f;
    color: white;
}

.article-number-selectable::-moz-selection {
    background-color: #14613f;
    color: white;
}

/* Prevent card click when selecting article number */
.clickable-card p[onclick] {
    position: relative;
    z-index: 5;
}

/* ============================================
   TURBO BLOCK MODUS
   ============================================ */
.block-mode-enabled {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.block-mode-enabled.blocking {
    opacity: 0.3;
    transform: scale(0.9);
    pointer-events: none;
}

.turbo-block-btn {
    transition: all 0.2s ease !important;
}

.turbo-block-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.7) !important;
}

.turbo-block-btn:active {
    transform: scale(0.9) !important;
}

.turbo-block-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Block Mode Alert */
.alert-danger h5 {
    margin-bottom: 0.25rem;
}

.alert-danger .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}
