/* dealer.phuot4p.com - Master Stylesheet (Fluid Responsive Grid) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --bg-body: #f4f4f5;
    --bg-white: #ffffff;
    
    --brand-red: #8b0000;
    --brand-red-dark: #6e0000;
    --brand-red-bright: #a71d2a;
    
    --nav-black: #000000;
    --nav-dark: #1a1a1a;
    
    --price-red: #d97706;
    --price-orange: #ea580c;
    --emerald: #10b981;
    --emerald-light: #ecfdf5;
    
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    --border-color: #e5e7eb;
    --border-dark: #d1d5db;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand-logo-badge, .slide-title, .banner-card-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.015em;
}

/* --- DESKTOP HEADER (shown on screens > 768px) --- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-top: 135px;
}

.hero-slider-container {
    max-width: 1250px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.hero-slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 360px;
    box-shadow: var(--shadow-md);
    background: #000000;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
    background-size: cover;
    background-position: center;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 650px;
    color: #ffffff;
    z-index: 3;
}

.slide-badge {
    background: var(--brand-red);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
}

.slide-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.slide-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.slide-btn {
    padding: 12px 26px;
    font-size: 1rem;
}

.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    width: 25px;
    border-radius: 10px;
    background: #ffffff;
}

/* ── 3 COLLECTION BANNERS (High-End Glass & Gradient Styling) ── */
.banner-grid-container {
    max-width: 1250px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner-card {
    height: 135px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    padding: 1.1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-card::after {
    content: "→";
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    transition: all 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.banner-card:hover::after {
    background: #ffffff;
    color: #111827;
    transform: translateX(4px);
}

.banner-card.banner-1 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    border-left: 4px solid #38bdf8;
}

.banner-card.banner-2 {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    border-left: 4px solid #818cf8;
}

.banner-card.banner-3 {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 60%, #b91c1c 100%);
    border-left: 4px solid #f87171;
}

.banner-card-title {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.15;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-card-sub {
    font-size: 0.83rem;
    opacity: 0.9;
    margin-top: 6px;
    line-height: 1.35;
    max-width: 85%;
}

/* ── MODERN SORTING BAR ── */
.sorting-bar {
    max-width: 1250px;
    margin: 1.5rem auto;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sort-pills-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
    color: inherit;
}

.sort-pill, a.sort-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(6px);
}

.sort-pill:hover, a.sort-pill:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.sort-pill.active, a.sort-pill.active {
    background: #ffffff !important;
    color: #8b0000 !important;
    border-color: #ffffff !important;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
}

/* ── DESKTOP DROPDOWN MENU STYLING ── */
.desktop-nav-list li.has-dropdown {
    position: relative;
}

.desktop-nav-list li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav-list li.has-dropdown > a i.fa-chevron-down {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.desktop-nav-list li.has-dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.desktop-nav-list li.has-dropdown:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.header-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.header-dropdown-menu li a i {
    width: 18px;
    color: #8b0000;
    font-size: 0.9rem;
}

.header-dropdown-menu li a:hover {
    background: #fff1f2;
    color: #8b0000 !important;
    padding-left: 22px;
}

.header-dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.sort-pill-btn {
    padding: 7px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sort-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sort-pill-btn.active {
    border-color: #8b0000;
    background: linear-gradient(135deg, #8b0000, #c0392b);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.25);
}

.btn-filter-toggle {
    padding: 8px 20px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

.btn-filter-toggle:hover {
    background: #8b0000;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

/* ── FLUID RESPONSIVE PRODUCTS GRID & HIGH-END CARDS ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 345px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
    transform: translateY(-4px);
}

.product-thumb {
    position: relative;
    width: 100%;
    height: 205px;
    max-height: 205px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.product-thumb a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.btn-favorite-heart {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 5;
    transition: all 0.2s ease;
}

.btn-favorite-heart:hover {
    transform: scale(1.15);
    color: #ef4444;
}

.btn-favorite-heart.active {
    color: #ef4444;
    background: #fff1f2;
}

.badge-oem {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8b0000, #b91c1c);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.3);
}

.product-details {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    justify-content: space-between;
    background: #ffffff;
}

.product-vendor {
    font-size: 0.7rem;
    color: #8b0000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2px 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #8b0000;
}

.product-price-box {
    margin-top: auto;
    padding-top: 6px;
}

.price-wholesale {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ea580c;
    letter-spacing: -0.3px;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #ffffff;
}

.tier-table th, .tier-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tier-table th {
    background: #f8fafc;
    color: #111827;
    font-weight: 700;
}

.calculator-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.calc-result-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.88rem;
}

.calc-row.final {
    border-top: 2px solid #8b0000;
    padding-top: 8px;
    margin-top: 6px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #8b0000;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
}

.btn-primary {
    background: #8b0000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #6e0000;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    color: #111827;
    font-size: 0.9rem;
    outline: none;
}

.form-control:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

/* Sleek, Modern Compact Breadcrumb System */
.site-breadcrumb {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.site-breadcrumb a {
    color: #64748b;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s ease;
}

.site-breadcrumb a:hover {
    color: #8b0000;
    text-decoration: none !important;
}

.site-breadcrumb .breadcrumb-separator {
    font-size: 0.65rem;
    color: #cbd5e1;
    margin: 0 2px;
}

.site-breadcrumb .breadcrumb-current {
    color: #8b0000;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
    display: inline-block;
    vertical-align: middle;
}

.detail-container {
    max-width: 1250px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-box {
    position: relative;
    width: 100%;
    height: 420px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--brand-red);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.option-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.option-pill-btn {
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.option-pill-btn:hover, .option-pill-btn.active {
    border-color: var(--brand-red);
    background: #fff5f5;
    color: var(--brand-red);
    font-weight: 700;
}

.mockup-visualizer-box {
    position: relative;
}

.logo-overlay-element {
    position: absolute;
    width: 75px;
    height: 75px;
    border: 2px dashed var(--brand-red);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.detail-tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-top: 2.5rem;
    gap: 20px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.tab-content-panel {
    display: none;
    background: #ffffff;
    padding: 2rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.tab-content-panel.active {
    display: block;
}

.auth-container {
    max-width: 950px;
    margin: 3rem auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border: 1px solid var(--border-color);
}

.auth-banner-side {
    background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red));
    color: #ffffff;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-form-side {
    padding: 2.5rem;
}

.demo-login-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1.2rem;
}

/* ── ULTRA-SLEEK MODERN DARK FOOTER ── */
.wave-container {
    display: none;
}

footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 3.5rem 2rem 2rem;
    position: relative;
    border-top: 4px solid #8b0000;
}

footer::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b0000 0%, #ef4444 50%, #8b0000 100%);
}

.footer-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: #8b0000;
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    font-size: 0.88rem;
    line-height: 2.2;
    padding: 0;
    margin: 0;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.footer-contact-item i {
    color: #ef4444;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer-social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.footer-payment-badge {
    background: #ffffff;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.floating-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: #10b981;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════
   MODERN 2-TIER STICKY HEADER SYSTEM
   ═══════════════════════════════════════════════════════════ */

.site-header-sticky {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-top: 110px; /* 55px tier1 + 44px tier2 + 11px safety */
}

/* ── SHARED INNER CONTAINER ── */
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── TIER 1: White Top Bar ── */
.header-tier1 {
    background: #ffffff;
    border-bottom: 1px solid #e8eaed;
    height: 62px;
}

/* Desktop Logo */
.desktop-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.desktop-logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b0000, #c0392b);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 0 3px 10px rgba(139,0,0,0.35);
}

.desktop-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.desktop-logo-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: #111827;
    letter-spacing: -0.3px;
}

.desktop-logo-sub {
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Bar */
.header-search-bar {
    flex: 1;
    max-width: 540px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.header-search-input {
    width: 100%;
    padding: 10px 90px 10px 42px;
    border-radius: 25px;
    border: 1.5px solid #e5e7eb;
    outline: none;
    font-size: 0.9rem;
    background: #f8fafc;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-input:focus {
    border-color: #8b0000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}

.header-search-btn {
    position: absolute;
    right: 5px;
    background: #8b0000;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search-btn:hover {
    background: #6e0000;
}

/* Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-select-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 0.88rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 10px;
}

.header-mini-select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.82rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    max-width: 120px;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #374151;
    font-size: 1.05rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

.header-user-btn {
    width: auto;
    border-radius: 20px;
    padding: 0 14px;
    gap: 6px;
}

.header-user-name {
    font-size: 0.82rem;
    font-weight: 700;
}

.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ea580c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-cta-btn {
    background: linear-gradient(135deg, #8b0000, #c0392b);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.header-cta-btn:hover {
    opacity: 0.88;
}

/* ── TIER 2: Dark Nav Bar ── */
.header-tier2 {
    background: #111827;
    height: 46px;
}

.desktop-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    flex: 1;
}

.desktop-nav-list li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d1d5db;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.desktop-nav-list li a:hover,
.desktop-nav-list li a.active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.desktop-nav-list li a.active {
    color: #fca5a5;
}

.nav-admin-link {
    color: #fbbf24 !important;
}

.has-dropdown > a .fa-chevron-down {
    font-size: 0.65rem;
    opacity: 0.6;
}

.nav-hotline-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #8b0000, #c0392b);
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.nav-hotline-pill:hover {
    opacity: 0.88;
}

/* ── MOBILE HEADER (< 769px) hidden desktop tiers ── */
.phuot4p-mobile-header-bar {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 60px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
}

.phuot4p-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.phuot4p-badge-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #8b0000, #c0392b);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(139,0,0,0.3);
}

.phuot4p-logo-text {
    font-weight: 900;
    font-size: 1.12rem;
    color: #111827;
    letter-spacing: -0.3px;
}

.phuot4p-logo-text span {
    color: #8b0000;
    font-size: 0.78rem;
    font-weight: 800;
}

.phuot4p-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phuot4p-icon-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.phuot4p-icon-circle-btn:hover,
.phuot4p-icon-circle-btn:focus {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

.mobile-search-dropdown-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── OFFCANVAS DRAWER ── */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 82vw;
    max-width: 340px;
    background: #fff;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-drawer-panel.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.drawer-close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    color: #475569;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    padding: 1.2rem;
    overflow-y: auto;
    flex: 1;
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.drawer-selectors-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 1.2rem;
}

.drawer-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.drawer-nav-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.drawer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.drawer-nav-list li a:hover {
    background: #f1f5f9;
    color: #8b0000;
}

.drawer-contact-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

/* ── MOBILE MEDIA QUERY ── */
@media (max-width: 768px) {
    .header-tier1,
    .header-tier2 {
        display: none !important;
    }

    .phuot4p-mobile-header-bar {
        display: flex !important;
    }

    body {
        padding-top: 62px !important;
        padding-bottom: 65px !important;
    }
}

/* ── MOBILE CONTENT RESPONSIVE (non-header) ── */
@media (max-width: 768px) {
    .hero-slider-container {
        padding: 0 10px;
        margin: 0.8rem auto;
    }

    .hero-slider-wrapper {
        height: 220px;
    }

    .slide-item {
        padding: 1.2rem 1rem;
    }

    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .slide-desc {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
    }

    .banner-grid-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 10px;
    }

    .sorting-bar {
        padding: 0 10px;
    }

    /* 2-COLUMN MOBILE PRODUCTS GRID */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px;
    }

    .product-card {
        height: 295px !important;
    }

    .product-thumb {
        height: 160px !important;
    }

    .product-details {
        padding: 0.6rem 0.5rem;
    }

    .product-title {
        font-size: 0.82rem;
        margin: 2px 0 4px;
        line-height: 1.2;
    }

    .price-wholesale {
        font-size: 0.95rem;
    }

    .detail-container {
        padding: 0 10px;
        margin: 0.8rem auto;
    }

    .detail-grid, .auth-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 1rem !important;
    }

    .main-image-box {
        height: 270px !important;
    }

    .dash-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .mobile-bottom-bar {
        display: flex !important;
    }

    .floating-chat-btn {
        bottom: 65px;
        right: 12px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}


/* ── MOBILE BOTTOM NAV BAR ── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    color: #6b7280;
    gap: 3px;
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}

.mobile-bar-item i {
    font-size: 1.15rem;
}

.mobile-bar-item.active,
.mobile-bar-item:hover {
    color: #8b0000;
    font-weight: 800;
}

/* ── DASH LAYOUT ── */
.dash-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1250px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}


/* end of dealer-style.css */


/* ══ END OF DEALER-STYLE.CSS ══ */




/* MOBILE BOTTOM BAR */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    color: #6b7280;
    gap: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-bar-item i {
    font-size: 1.15rem;
}

.mobile-bar-item.active, .mobile-bar-item:hover {
    color: #8b0000;
    font-weight: 800;
}



.phuot4p-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.phuot4p-badge-circle {
    width: 38px;
    height: 38px;
    background: #8b0000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.phuot4p-logo-text {
    font-weight: 900;
    font-size: 1.15rem;
    color: #111827;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
}

.phuot4p-logo-text span {
    color: #8b0000;
    font-size: 0.8rem;
    font-weight: 800;
}

.phuot4p-mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phuot4p-icon-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phuot4p-icon-circle-btn:hover {
    background: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
}

.mobile-search-dropdown-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Offcanvas Drawer Panel */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82vw;
    max-width: 340px;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-drawer-panel.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    color: #475569;
    font-size: 1.1rem;
    cursor: pointer;
}

.drawer-body {
    padding: 1.2rem;
    overflow-y: auto;
    flex: 1;
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.drawer-selectors-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 1.2rem;
}

.drawer-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-select-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-custom-select {
    width: 100%;
    padding: 9px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.drawer-custom-select:focus,
.drawer-custom-select:hover {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.drawer-nav-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.drawer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.drawer-nav-list li a:hover {
    background: #f1f5f9;
    color: #8b0000;
}

.drawer-contact-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

/* UNIFIED MOBILE MEDIA QUERY (< 769px) */
@media (max-width: 768px) {
    .phuot4p-mobile-header-bar {
        display: flex !important;
    }

    .top-red-header {
        display: none !important;
    }

    .main-nav-bar {
        display: none !important;
    }

    .sub-nav-strip {
        padding: 6px 10px !important;
        gap: 6px !important;
        height: 38px !important;
        background: #f1f5f9 !important;
    }

    .sub-nav-strip span:first-child {
        display: none !important;
    }

    .sub-nav-link {
        padding: 4px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 16px !important;
    }

    .hero-slider-container {
        padding: 0 10px;
        margin: 0.5rem auto 1rem;
    }

    .hero-slider-wrapper {
        height: 275px !important;
    }

    .slide-item {
        padding: 1.2rem 1.1rem 2rem !important;
        align-items: flex-start !important;
    }

    .slide-badge {
        font-size: 0.68rem !important;
        padding: 3px 9px !important;
        margin-bottom: 6px !important;
    }

    .slide-title {
        font-size: 1.15rem !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .slide-desc {
        font-size: 0.78rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.35 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-actions {
        gap: 8px !important;
    }

    .slide-btn {
        padding: 7px 14px !important;
        font-size: 0.78rem !important;
    }

    .slider-indicators {
        bottom: 8px !important;
    }

    .banner-grid-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 10px;
    }

    .banner-card {
        height: 120px !important;
        padding: 1rem 1.2rem !important;
    }

    .banner-card-title {
        font-size: 1.2rem !important;
    }

    .banner-card-sub {
        font-size: 0.78rem !important;
    }

    .sorting-bar {
        padding: 10px 12px !important;
        margin: 1rem auto !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .sort-pills-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 4px;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
    }

    .sort-pills-group span {
        flex-shrink: 0 !important;
        align-self: center;
    }

    .sort-pill-btn {
        padding: 5px 12px !important;
        font-size: 0.78rem !important;
        flex-shrink: 0 !important;
    }

    .btn-filter-toggle {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
    }

    /* 2-COLUMN MOBILE PRODUCTS GRID */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px;
    }

    .product-card {
        height: 290px !important;
    }

    .product-thumb {
        height: 155px !important;
    }

    .product-details {
        padding: 0.5rem 0.4rem;
    }

    .product-title {
        font-size: 0.8rem;
        margin: 2px 0 4px;
        line-height: 1.2;
    }

    .price-wholesale {
        font-size: 0.95rem;
    }

    .badge-oem {
        font-size: 0.6rem !important;
        padding: 2px 7px !important;
    }

    .btn-favorite-heart {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.78rem !important;
    }
}

.product-detail-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.25;
    word-break: break-word;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Product Price Box & Quantity Stepper */
.product-price-box {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: #d97706;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}

.price-sublabel {
    font-size: 0.82rem;
    color: #6b7280;
}

.custom-qty-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.qty-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-stepper-wrap {
    display: inline-flex;
    align-items: center;
    border: 2px solid #8b0000;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.qty-btn {
    border: none;
    background: #fff5f5;
    padding: 6px 14px;
    font-weight: 900;
    cursor: pointer;
    color: #8b0000;
    font-size: 1.1rem;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #ffe4e6;
}

.qty-input {
    width: 80px;
    text-align: center;
    border: none;
    font-weight: 900;
    font-size: 1.1rem;
    color: #111827;
    outline: none;
    padding: 4px 0;
    font-family: 'Roboto', sans-serif;
}

/* Catalog Page Main Container & Components (Desktop Default) */
.catalog-page-container {
    max-width: 1250px;
    margin: 1.8rem auto 4rem;
    padding: 0 1.5rem;
}

.catalog-control-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sort-pills-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
}

.sort-pills-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.sort-pills-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.sort-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid #cbd5e1 !important;
    display: inline-block;
}

.sort-pill:hover {
    background: #e2e8f0 !important;
    color: #8b0000 !important;
    border-color: #8b0000 !important;
}

.sort-pill.active {
    background: #8b0000 !important;
    color: #ffffff !important;
    border-color: #8b0000 !important;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.25);
}

.hero-cat-pill {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.hero-cat-pill:hover, .hero-cat-pill.active {
    background: #8b0000;
    color: #ffffff !important;
    border-color: #8b0000;
}

.catalog-count-info {
    font-size: 0.86rem;
    color: #64748b;
    font-weight: 600;
}

.mobile-cat-pill-strip {
    display: none;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px 2px;
    margin-bottom: 0.25rem;
}

.mobile-cat-pill-strip::-webkit-scrollbar {
    display: none;
}

.mobile-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.mobile-cat-pill:hover, .mobile-cat-pill.active {
    background: linear-gradient(135deg, #8b0000, #b91c1c);
    color: #ffffff !important;
    border-color: #8b0000;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
}

.catalog-main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.catalog-sidebar-filter {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-filter-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

.filter-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #4b5563;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.cat-link:hover, .cat-link.active {
    color: #8b0000 !important;
    font-weight: 800;
    background: #fff1f2;
}

.sidebar-guarantee-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #475569;
}

/* --- MOBILE MEDIA QUERIES (< 768px) --- */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .container-xl, .container, .detail-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .site-breadcrumb {
        font-size: 0.74rem !important;
        margin-bottom: 0.5rem !important;
    }

    .site-breadcrumb .breadcrumb-current {
        max-width: 170px !important;
    }

    .mobile-cat-pill-strip {
        display: flex !important;
    }

    .catalog-page-container {
        padding: 0 10px !important;
        margin: 0.8rem auto 3rem !important;
    }

    .catalog-control-bar {
        padding: 0.85rem 1rem !important;
        margin-bottom: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .sort-pills-wrap {
        width: 100% !important;
    }

    .sort-pills-scroll {
        width: 100% !important;
    }

    .catalog-main-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .catalog-sidebar-filter {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .form-row-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .detail-grid, .auth-container, .bg-white {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 0.85rem !important;
        border-radius: 12px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-detail-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    .main-image-box {
        width: 100% !important;
        max-width: 100% !important;
        height: 270px !important;
        border-radius: 10px !important;
    }

    .main-image-box img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    .thumb-strip {
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch;
    }

    .thumb-item {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }

    .option-pills {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
    }

    .option-pill-btn {
        flex-shrink: 0 !important;
        padding: 7px 13px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .detail-tabs-header {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin-top: 1.5rem !important;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 8px 13px !important;
        font-size: 0.82rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .tab-content-panel {
        padding: 1rem !important;
        border-radius: 10px !important;
    }

    .lightbox-nav-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .lightbox-nav-btn.prev { left: 8px !important; }
    .lightbox-nav-btn.next { right: 8px !important; }

    .lightbox-stage {
        max-width: 98vw !important;
        max-height: 62vh !important;
    }

    .lightbox-img {
        max-height: 62vh !important;
    }

    .dash-layout-grid {
        grid-template-columns: 1fr !important;
    }

    footer {
        padding: 2.5rem 1.2rem 90px !important;
    }

    .mobile-bottom-bar {
        display: flex !important;
    }

    .floating-chat-btn {
        bottom: 72px !important;
        right: 12px !important;
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        z-index: 9999 !important;
    }

    body {
        padding-top: 62px !important;
        padding-bottom: 65px !important;
    }
}

/* --- EXPLICIT HIGH CONTRAST SORTING PILLS FIX --- */
.sort-pills-scroll a.sort-pill,
a.sort-pill,
.sort-pill {
    display: inline-block !important;
    padding: 7px 16px !important;
    border-radius: 20px !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.15s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sort-pills-scroll a.sort-pill:hover,
a.sort-pill:hover {
    background-color: #e2e8f0 !important;
    color: #8b0000 !important;
    border-color: #8b0000 !important;
}

.sort-pills-scroll a.sort-pill.active,
a.sort-pill.active,
.sort-pill.active {
    background-color: #8b0000 !important;
    background-image: linear-gradient(135deg, #8b0000, #b91c1c) !important;
    color: #ffffff !important;
    border-color: #8b0000 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25) !important;
}

/* --- PERFECT MOBILE GALLERY IMAGE CENTERING & FIX --- */
.detail-grid {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.gallery-container {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.main-image-box,
.mockup-visualizer-box {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

#main-product-img,
.main-image-box img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
    display: block !important;
    flex-shrink: 1 !important;
}

@media (max-width: 768px) {
    .main-image-box,
    .mockup-visualizer-box {
        height: 270px !important;
    }

    .custom-quote-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .home-commitments-section {
        padding: 0 10px !important;
        margin: 1rem auto !important;
    }

    .home-commitments-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .home-commitment-card {
        padding: 10px 8px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 6px !important;
    }

    .home-commitment-card h4 {
        font-size: 0.8rem !important;
    }

    .home-commitment-card p {
        font-size: 0.72rem !important;
    }
}
