:root {
    --brand-orange: #ff6a00;
    --brand-yellow: #ffc107;
    --brand-dark: #212529;
    --brand-light: #f8f9fa;
}

/* ==========================================
   1. GLOBAL LAYOUT
========================================== */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--brand-light);
}

.container {
    flex: 1;
}

/* ==========================================
   2. BRAND UTILITIES
========================================== */
.bg-orange {
    background-color: var(--brand-orange) !important;
    color: #fff !important;
}

.bg-yellow {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
}

.text-orange {
    color: var(--brand-orange) !important;
}

.text-yellow {
    color: var(--brand-yellow) !important;
}

/* ==========================================
   3. BUTTONS
========================================== */
.btn-primary {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.btn-primary:hover {
    background-color: #e65c00;
    border-color: #e65c00;
}

.btn-orange {
    background-color: var(--brand-orange);
    color: #fff;
    border: none;
    transition: 0.3s ease;
}

.btn-orange:hover {
    background-color: #e65c00;
    color: #fff;
}

.btn-yellow {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

.btn-yellow:hover {
    background-color: #e0a800;
    color: var(--brand-dark);
}

.btn-outline-orange {
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    background-color: transparent;
    transition: 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--brand-orange);
    color: #fff;
}

/* ==========================================
   4. NAVIGATION
========================================== */
.navbar-nav .nav-link {
    color: var(--brand-dark);
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--brand-yellow);
    color: var(--brand-dark) !important;
    font-weight: 500;
}

/* ==========================================
   5. HERO SECTION
========================================== */
.hero-section {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.15) 100%),
        url('/img/hero-bg2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    color: #fff;
    padding: 80px 40px;
    text-align: left;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.hero-section h1 span {
    color: var(--brand-orange);
    text-shadow: 0 0 20px rgba(255, 106, 0, 0.6);
}

.hero-section p {
    opacity: 0.9;
    font-size: 1.1rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    max-width: 480px;
}

.hero-section .hero-badge {
    display: inline-block;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.5);
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 300px;
        padding: 50px 20px;
        text-align: center;
        align-items: center;
        background-position: center center;
        background-size: cover;
    }

    .hero-section h1 {
        font-size: 1.7rem;
    }

    .hero-section p {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .hero-section .btn {
        font-size: 0.85rem !important;
        padding: 8px 24px !important;
    }
}

/* ==========================================
   6. SEARCH
========================================== */
.search-container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   7. PRODUCT CARDS (CLEAN VERSION)
========================================== */

/* Base card */
.product-card {
    padding: 10px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Image */
.card-img-top {
    height: 140px;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Description */
.product-card p {
    font-size: 12px;
    line-height: 1.4;
    max-height: 33px;
    overflow: hidden;
    color: #666;
}

/* Price */
.product-card .price {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-orange);
}

/* Card body spacing */
.product-card .card-body {
    padding: 12px 10px;
}

/* Button */
.product-card .btn {
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
}

/* =======================
   MOBILE (≤576px)
======================= */
@media (max-width: 576px) {
    .card-img-top {
        height: 120px;
    }

    .product-card h6 {
        font-size: 13px;
    }

    .product-card p {
        font-size: 11px;
        max-height: 32px;
    }

    .product-card h5 {
        font-size: 13px;
    }

    .product-card .btn {
        font-size: 11px;
        padding: 5px;
    }
}

/* =======================
   DESKTOP (≥992px)
======================= */
@media (min-width: 992px) {
    .product-card h6 {
        font-size: 14px;
    }

    .product-card p {
        font-size: 12px;
    }
}

/* ==========================================
   8. CATEGORY LIST
========================================== */
.category-title {
    background-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
}

/* Section heading accent bar */
.section-bar {
    display: inline-block;
    width: 5px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}

.list-group-item:hover {
    background-color: #f1f1f1;
}

/* ==========================================
   9. PRODUCT GALLERY (THUMBNAILS)
========================================== */
#thumbCol .img-thumbnail {
    border-color: #ddd;
    transition: 0.3s ease;
}

#thumbCol .img-thumbnail:hover,
#thumbCol .img-thumbnail.active-thumb {
    border-color: var(--brand-yellow) !important;
    border-width: 2px;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.4);
}

.vertical-thumb {
    padding: 0.25rem;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

/* Just in case Bootstrap or something tries nonsense */
.navbar-brand img {
    max-width: 40px;
    height: auto;
}

.thumb-col img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.thumb-col img:hover,
.thumb-col img.active-thumb {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.3);
}

.main-product-img {
    max-height: 420px;
    object-fit: contain;
}

.product-desc {
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-yellow {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
    border: none;
    transition: background 0.3s ease;
}

.btn-yellow:hover {
    background-color: #e0a800 !important;
}

.table thead {
    background-color: var(--brand-dark);
    color: white;
}

.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}

/* MOBILE */
@media (max-width: 576px) {
    .card-img-top {
        height: 120px !important;
    }

    .product-card h6 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .product-card p {
        font-size: 11px;
        max-height: 32px;
        margin-bottom: 6px;
    }

    .product-card .price {
        font-size: 16px;
    }

    .product-card .btn {
        font-size: 12px;
        padding: 6px;
    }
}

/* DESKTOP */
@media (min-width: 962px) {
    .product-card h6 {
        font-size: 15px;
    }

    .product-card p {
        font-size: 13px;
    }
}

/* TOP BAR */
.top-bar {
    background-color: var(--brand-dark);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.2s;
}

.top-bar a:hover {
    color: var(--brand-yellow);
}

/* MAIN HEADER */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-search .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--brand-orange);
}

.header-search .btn {
    border-radius: 0 20px 20px 0;
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 600;
    border: 1px solid var(--brand-yellow);
    padding: 0 20px;
}

.header-search .btn:hover {
    background-color: #e0a800;
}

/* NAV BAR TIER */
.nav-tier {
    background-color: var(--brand-orange);
}

.nav-tier .navbar-nav .nav-link {
    color: #fff;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 0;
}

.nav-tier .navbar-nav .nav-link:hover,
.nav-tier .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-yellow) !important;
}

@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }

    .header-search {
        margin-top: 10px;
    }

    .nav-tier .navbar-collapse {
        background-color: var(--brand-orange);
        padding: 10px;
    }
}