/* Premium, professional styling for Dejar Auto Supplies */

:root {
    --primary-color: #d7263d;
    --primary-strong: #b21d33;
    --accent: #ff9f1c;
    --dark-color: #0f172a;
    --dark-soft: #1e3a5f;
    --muted: #64748b;
    --text: #0f172a;
    --safaricom-green: #16a34a;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.95);
    --card-glow: rgba(15, 23, 42, 0.08);
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 45%, #fdf2f2 100%);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -80px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(215, 38, 61, 0.12), transparent 70%);
}

body::after {
    top: 120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.12), transparent 70%);
}

main {
    overflow-x: hidden;
}

section {
    scroll-margin-top: 95px;
}

main section,
main .contact-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Top info bar */
.top-bar {
    background: linear-gradient(90deg, var(--dark-color), var(--dark-soft));
    color: #f8fbff;
    text-align: center;
    padding: 10px 6%;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.top-bar p {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 6.5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    margin: 14px 16px;
    position: sticky;
    top: 10px;
    z-index: 120;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

header .logo h1 {
    font-size: 21px;
    color: var(--text);
    margin: 0;
    font-weight: 800;
}

header .logo h1 span {
    color: var(--primary-color);
    font-weight: 800;
    margin-left: 4px;
}

header .logo small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-search {
    flex: 1 1 420px;
    display: flex;
    justify-content: center;
}

.nav-search input {
    width: 100%;
    max-width: 520px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    background: #fff;
    color: var(--text);
}

.nav-search input:focus {
    outline: none;
    border-color: rgba(230, 57, 70, 0.32);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

nav#site-nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
}

nav#site-nav a {
    text-decoration: none;
    color: #425266;
    font-weight: 600;
    padding: 6px 0;
    white-space: nowrap;
}

nav#site-nav a.active,
nav#site-nav a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.small-btn,
.outline,
.cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.small-btn {
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.12);
    letter-spacing: 0.01em;
}

.small-btn.outline {
    background: transparent;
    color: var(--dark-color);
    border: 1px solid rgba(17, 38, 61, 0.16);
    box-shadow: none;
}

.cart-icon {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--dark-color);
    box-shadow: 0 8px 20px rgba(17, 38, 61, 0.05);
}

.cart-icon span {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 6px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    color: var(--dark-color);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(4, 9, 14, 0.84), rgba(30, 58, 95, 0.72)), url('https://images.unsplash.com/photo-1517102504702-7c70fbc5c1f5?auto=format&fit=crop&q=80&w=1400') center/cover no-repeat;
    min-height: 78vh;
    padding: 78px 6.5%;
    border-radius: 28px;
    margin: 20px 16px 0;
    color: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 55%);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content .hero-eyebrow {
    font-weight: 700;
    opacity: 0.95;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-content h2 {
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.05;
    margin-bottom: 12px;
    font-weight: 800;
    max-width: 760px;
    letter-spacing: -0.03em;
}

.hero-content h2,
.hero-content p {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-content p {
    max-width: 680px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cta-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn {
    background: linear-gradient(90deg, var(--primary-color), #ff7b5c);
    color: #fff;
    box-shadow: 0 12px 32px rgba(215, 38, 61, 0.22);
}

.cta-btn:hover,
.secondary-btn:hover,
.small-btn:hover,
.btn-buy-now:hover,
.btn-primary-style:hover,
.btn-mpesa-pay:hover {
    transform: translateY(-2px);
}

.cta-btn:hover {
    background: var(--primary-strong);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-btn:focus,
.secondary-btn:focus,
.small-btn:focus,
.btn-buy-now:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.16);
}

/* Highlights / Cards */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: -36px 6.5% 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: linear-gradient(180deg, #fff, #f8fbff);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 14px 34px var(--card-glow);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.2), transparent);
    opacity: 0.85;
}

.feature-card i {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 6px;
}

.feature-card h3 {
    margin: 6px 0;
    color: var(--text);
    font-size: 1.04rem;
}

/* Section shell */
.stats-section,
.brand-matrix,
.vehicle-section,
.about-section,
.trust-section,
.order-process-section,
.featured-deals-section,
.catalog-section,
.reviews-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin: 24px 16px 0;
    padding: 36px 6%;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.section-title {
    font-size: clamp(24px, 2.3vw, 30px);
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 800;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), #ff9a8d);
    margin-top: 8px;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.16);
}

.faq-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.faq-title::after {
    margin-top: 0;
}

.faq-title i {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.faq-toggle,
.vehicle-toggle,
.engine-oils-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.faq-toggle:focus-visible,
.vehicle-toggle:focus-visible,
.engine-oils-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 6px;
    border-radius: 12px;
}

.faq-section.is-open .faq-toggle i,
.vehicle-section.is-open .vehicle-toggle i,
.engine-oils-section.is-open .engine-oils-toggle i {
    transform: rotate(180deg);
}

.faq-section.is-open .faq-content,
.vehicle-section.is-open .vehicle-content,
.engine-oils-section.is-open .engine-oils-content {
    display: block;
}

.faq-content {
    margin-top: 18px;
}

.vehicle-content {
    margin-top: 12px;
}

.faq-toggle .section-title {
    margin-bottom: 0;
}

.vehicle-toggle .section-title,
.engine-oils-toggle .section-title {
    margin-bottom: 0;
}

.faq-toggle .section-title::after,
.vehicle-toggle .section-title::after,
.engine-oils-toggle .section-title::after {
    margin-top: 8px;
}

.section-description {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 20px;
    font-size: 0.98rem;
}

/* Stats */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.stats-card {
    background: linear-gradient(180deg, #fff, #f7fbff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.stats-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 6px;
}

/* Brand matrix */
.brand-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.brand-matrix-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--dark-color);
}

.vehicle-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-top: 24px;
    padding-left: 0;
    list-style: none;
    counter-reset: vehicle-item;
}

.vehicle-list li {
    position: relative;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 12px 12px 48px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.vehicle-list li::before {
    counter-increment: vehicle-item;
    content: counter(vehicle-item);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #ff7b5c);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.18);
}

.vehicle-name {
    display: block;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 3px;
}

.vehicle-models {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.vehicle-list li,
.info-card,
.trust-card,
.process-card,
.deal-card,
.review-card {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card h3,
.trust-card h3,
.process-card h3,
.deal-card h3,
.review-card h4 {
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 800;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.about-text ul {
    margin: 12px 0 0 18px;
    color: var(--muted);
}

.about-info-cards {
    display: grid;
    gap: 16px;
}

/* Trust / process / deals */
.trust-cards,
.process-grid,
.deals-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.trust-card i,
.process-card i {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 8px;
}

.deal-card {
    min-height: 100%;
}

.deal-tag {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.deal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.deal-footer span {
    font-weight: 800;
    color: var(--safaricom-green);
}

/* Catalog */
.catalog-section {
    padding: 36px 6%;
}

.catalog-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--dark-color);
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.section-carousel {
    position: relative;
}

.carousel-stage {
    position: relative;
    min-height: 360px;
    padding: 8px 0 6px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    width: 100%;
    align-items: stretch;
}

.carousel-slide {
    display: flex;
    width: 100%;
    flex: 0 0 100%;
    justify-content: center;
    align-items: stretch;
    animation: fadeInSlide 0.3s ease;
}

.carousel-slide.active {
    display: flex;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 38, 61, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    width: 28px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.2);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.18);
}

.carousel-btn:hover {
    transform: translateY(-2px);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.product-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef4fa;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(17, 38, 61, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.deal-card {
    height: 100%;
}

.product-carousel .carousel-slide {
    display: flex;
}

.product-carousel .carousel-slide.active {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.product-carousel .product-card {
    width: min(100%, 520px);
    margin: 0 auto;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-details {
    padding: 18px;
}

.product-details h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 700;
}

.compatibility {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.price {
    color: var(--safaricom-green);
    font-weight: 800;
}

.btn-buy-now {
    background: linear-gradient(90deg, var(--dark-color), #23405e);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 38, 61, 0.12);
}

.btn-buy-now:hover {
    background: linear-gradient(90deg, var(--primary-color), #ff7b5c);
}

/* Reviews & contact */
.reviews-section {
    padding: 36px 6%;
}

.review-card p {
    color: var(--muted);
    margin-bottom: 10px;
}

.stars {
    color: #f4b400;
    margin-bottom: 8px;
}

.sticky-cta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 16px 0;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 58, 95, 0.95));
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sticky-cta-bar .small-btn.outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.info-card:hover,
.trust-card:hover,
.process-card:hover,
.deal-card:hover,
.review-card:hover,
.feature-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: start;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    margin: 24px 16px 0;
    padding: 36px 6%;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form {
    background: #fff;
    padding: 22px;
    border-radius: 18px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fbfdff;
}

.contact-form button {
    width: 100%;
    border: none;
    border-radius: 10px;
}

.bottom-footer {
    background: #09111f;
    color: #94a3b8;
    text-align: center;
    padding: 22px;
    font-size: 14px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.02em;
}

.hero-side-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.hero-side-card h3 {
    margin: 6px 0 10px;
    font-size: 1.15rem;
}

.hero-side-card ul {
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
}

.hero-side-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-side-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-side-brands span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.bottom-footer p {
    max-width: 960px;
    margin: 0 auto;
}

.catalog-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search-count {
    color: var(--muted);
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    min-width: min(340px, 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.search-box input {
    border: none;
    background: transparent;
    box-shadow: none;
    width: 100%;
    padding: 0;
}

.empty-state {
    color: var(--muted);
    font-style: italic;
    padding: 12px 0;
}

.engine-oils-section,
.faq-section,
.built-by-section {
    margin: 24px 16px 0;
    padding: 36px 6%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-card-grid .feature-card {
    min-height: 100%;
}

.oil-section {
    margin: 24px 16px 0;
    padding: 36px 6%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.brand-accordion {
    display: grid;
    gap: 16px;
}

.brand-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.brand-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border: none;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.04), rgba(255, 255, 255, 0.96));
    cursor: pointer;
    text-align: left;
}

.brand-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.brand-title {
    margin-bottom: 0;
}

.brand-title::after {
    margin-top: 6px;
}

.brand-toggle i {
    transition: transform 0.25s ease;
    color: var(--primary-color);
}

.brand-panel.is-open .brand-toggle i {
    transform: rotate(180deg);
}

.brand-content {
    padding: 0 20px 20px;
}

.brand-content .shell-grid,
.brand-content .oil-grid {
    margin-top: 6px;
}

.brand-order-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.quick-order-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(230, 57, 70, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-order-btn:hover,
.quick-order-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(230, 57, 70, 0.2);
}

.quick-order-btn:focus-visible {
    outline: 2px solid rgba(230, 57, 70, 0.35);
    outline-offset: 3px;
}

.shell-section .section-description {
    max-width: 820px;
}

.shell-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.shell-card .oil-card-visual {
    min-height: 230px;
    background-color: #f8fafc;
    background-size: contain, cover;
    background-position: center, center;
    padding: 14px;
}

.shell-card .oil-card-body {
    padding-top: 16px;
}

.shell-card .oil-header {
    margin-bottom: 8px;
}

.shell-card .oil-price {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .shell-grid {
        grid-template-columns: 1fr;
    }

    .shell-card .oil-card-visual {
        min-height: 210px;
    }
}

.oil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.oil-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
    align-items: center;
}

.filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select-label {
    font-weight: 700;
    color: var(--dark-color);
}

.filter-select {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--dark-color);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.oil-filter-bar .filter-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--dark-color);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.oil-filter-bar .filter-btn:hover,
.oil-filter-bar .filter-btn.active {
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(230, 57, 70, 0.16);
}

.organized-inventory-section {
    margin-top: 40px;
}

.inventory-note {
    color: var(--muted);
    max-width: 780px;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.inventory-category {
    margin-top: 34px;
}

.inventory-heading {
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: var(--text);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.organized-inventory-section {
    margin-top: 40px;
}

.quick-order-small-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-order-small-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(230, 57, 70, 0.18);
}

.inventory-note {
    color: var(--muted);
    max-width: 780px;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.inventory-category {
    margin-top: 34px;
}

.inventory-heading {
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: var(--text);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.oil-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.oil-card-body {
    padding: 18px 18px 20px;
}

.oil-card-visual {
    min-height: 156px;
    padding: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    position: relative;
    isolation: isolate;
    background-image: var(--oil-image, none), var(--oil-gradient, linear-gradient(135deg, #111827 0%, #374151 100%));
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
}

.oil-card-visual::before,
.oil-card-visual::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.oil-card-visual::before {
    width: 120px;
    height: 120px;
    top: -24px;
    right: -20px;
    background: rgba(255, 255, 255, 0.12);
}

.oil-card-visual::after {
    width: 78px;
    height: 78px;
    bottom: -18px;
    left: -18px;
    background: rgba(255, 255, 255, 0.08);
}

.oil-card-visual span {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.oil-card-visual p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    max-width: 240px;
}

.oil-visual-shell {
    --oil-gradient: linear-gradient(135deg, #0d1b2a 0%, #1b4332 52%, #52b788 100%);
}

.oil-visual-total {
    --oil-gradient: linear-gradient(135deg, #1d3557 0%, #457b9d 50%, #a8dadc 100%);
}

.oil-visual-mobil {
    --oil-gradient: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
}

.oil-visual-castrol {
    --oil-gradient: linear-gradient(135deg, #7c2d12 0%, #dc2626 55%, #f59e0b 100%);
}

.oil-visual-oem {
    --oil-gradient: linear-gradient(135deg, #312e81 0%, #6d28d9 45%, #8b5cf6 100%);
}

.oil-card-body h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 800;
}

.oil-category-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.oil-category-list li {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}

.oil-category-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary-color);
}

.oil-card h3 {
    margin: 10px 0 8px;
    color: var(--text);
    font-weight: 800;
}

.oil-card p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.oil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.oil-price {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
}

.oil-type {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oil-fit {
    margin-top: 10px;
}

.oil-fit strong {
    color: var(--text);
}

.add-review-box {
    margin-top: 24px;
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.add-review-box h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.add-review-box input,
.add-review-box textarea {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fbfdff;
}

.btn-primary-style,
.btn-mpesa-pay {
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
}

.review-feedback {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
}

.review-feedback.review-success {
    color: var(--safaricom-green);
}

.review-feedback.review-error {
    color: #b21d33;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.faq-answer {
    padding: 0 16px 14px;
    color: var(--muted);
}

.built-by-card {
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.built-by-card a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.built-by-card strong {
    color: var(--dark-color);
}

#quick-order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 17, 31, 0.72);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

#quick-order-modal.active {
    display: flex;
}

.modal-content {
    width: min(100%, 460px);
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(9, 17, 31, 0.24);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header img {
    max-width: 120px;
}

.modal-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
}

.modal-detail {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.modal-price {
    color: var(--primary-color);
    font-size: 22px;
}

.modal-payment-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-note {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

#quick-order-modal h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
}

.mpesa-input-wrapper input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-actions button {
    flex: 1 1 180px;
}

.btn-cancel {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
}

#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.24);
    text-decoration: none;
    z-index: 1800;
}

/* Utilities and responsive rules */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 1200;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.24);
}

a,
button,
input,
textarea {
    transition: var(--transition);
}

.hidden {
    display: none;
}

.payment-text {
    margin: 0;
    padding: 8px 0 0 0;
    color: #111827;
    font-weight: 600;
}

.payment-text#display-paybill,
.payment-text#display-account {
    color: #111827;
    font-weight: 700;
    background: transparent;
    border-radius: 0;
    cursor: auto;
    font-size: 16px;
    line-height: 1.4;
}


@media (max-width: 920px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 48px 4%;
        margin: 12px 12px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .nav-search {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        justify-content: stretch;
        margin-top: 4px;
    }

    .nav-search input {
        max-width: none;
        width: 100%;
    }

    nav#site-nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-icons {
        margin-left: auto;
    }

    .nav-icons .small-btn.outline {
        display: none;
    }

    header {
        padding: 12px 5%;
    }
}

@media (max-width: 768px) {
    .card-pair {
        grid-template-columns: 1fr;
    }

    .carousel-stage {
        min-height: 440px;
    }
}

@media (max-width: 720px) {

    .hero-highlights,
    .stats-section,
    .trust-cards,
    .process-grid,
    .deals-grid,
    .reviews-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 200px;
    }

    .price-action {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-buy-now,
    .cta-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .deals-grid,
    .feature-card-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .featured-deals-section,
    .catalog-section,
    .engine-oils-section,
    .oil-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .deals-grid,
    .feature-card-grid,
    .product-grid,
    .oil-grid {
        gap: 12px;
    }

    .oil-filter-bar {
        gap: 8px;
        margin-bottom: 18px;
    }

    .oil-filter-bar .filter-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .deal-card,
    .feature-card,
    .product-card,
    .oil-card {
        border-radius: 16px;
        padding: 0;
    }

    .oil-card-body {
        padding: 16px;
    }

    .oil-card-visual {
        min-height: 128px;
        padding: 16px;
    }

    .oil-card-visual span {
        font-size: 1.55rem;
    }

    .deal-card p,
    .section-description,
    .compatibility,
    .feature-card p,
    .oil-card p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .deal-footer,
    .price-action {
        flex-direction: column;
        align-items: stretch;
    }

    .deal-footer span,
    .price {
        text-align: left;
    }

    .catalog-topbar,
    .catalog-hint {
        align-items: stretch;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .catalog-hint .search-box {
        min-width: 0;
        width: 100%;
    }

    .carousel-stage {
        min-height: auto;
    }

    .carousel-controls {
        margin-top: 12px;
    }

    .stats-section,
    .brand-matrix,
    .vehicle-section,
    .oil-section,
    .about-section,
    .trust-section,
    .order-process-section,
    .featured-deals-section,
    .catalog-section,
    .reviews-section,
    .contact-section {
        margin: 16px 10px 0;
        padding: 24px 4%;
    }

    .vehicle-section {
        padding-top: 14px;
    }

    .vehicle-section .section-title {
        font-size: clamp(19px, 4.6vw, 23px);
        margin-bottom: 4px;
    }

    .vehicle-section .section-title::after {
        width: 44px;
        height: 3px;
        margin-top: 5px;
    }

    .vehicle-section .section-description {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .vehicle-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        margin-top: 12px;
    }

    .vehicle-list li {
        padding: 8px 8px 8px 38px;
    }

    .vehicle-list li::before {
        left: 8px;
        top: 8px;
        width: 18px;
        height: 18px;
        font-size: 0.66rem;
    }

    .vehicle-models {
        font-size: 0.78rem;
        line-height: 1.22;
    }

    .about-grid {
        gap: 16px;
    }

    .about-text p,
    .about-text ul {
        font-size: 0.92rem;
    }

    .about-text ul {
        margin: 10px 0 0 16px;
    }

    .about-info-cards {
        gap: 10px;
    }

    .info-card,
    .trust-card,
    .process-card {
        padding: 16px;
    }

    .trust-section {
        padding-top: 14px;
    }

    .trust-section .section-title {
        font-size: clamp(19px, 4.6vw, 23px);
        margin-bottom: 4px;
    }

    .trust-section .section-title::after {
        width: 44px;
        height: 3px;
        margin-top: 5px;
    }

    .trust-section .section-description {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .trust-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .trust-card {
        padding: 12px;
    }

    .trust-card i {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .trust-card h3 {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .trust-card p {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .featured-deals-section {
        padding-top: 14px;
    }

    .featured-deals-section .section-title {
        font-size: clamp(19px, 4.6vw, 23px);
        margin-bottom: 4px;
    }

    .featured-deals-section .section-title::after {
        width: 44px;
        height: 3px;
        margin-top: 5px;
    }

    .featured-deals-section .section-description {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .deals-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .deal-card {
        padding: 12px;
    }

    .deal-card h3 {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .deal-card p {
        font-size: 0.8rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .deal-tag {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .deal-footer {
        gap: 6px;
        margin-top: 8px;
    }

    .deal-footer span {
        font-size: 0.86rem;
    }

    .featured-deals-section .section-title,
    .catalog-section .section-title {
        font-size: clamp(19px, 4.6vw, 23px);
        margin-bottom: 4px;
    }

    .featured-deals-section .section-description,
    .catalog-section .section-description,
    .catalog-hint,
    .carousel-hint {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .catalog-topbar,
    .catalog-hint {
        gap: 10px;
    }

    .category-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    .carousel-stage {
        min-height: 300px;
        padding-top: 4px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-card img {
        height: 160px;
    }

    .product-details {
        padding: 14px;
    }

    .product-details h3 {
        font-size: 0.98rem;
    }

    .compatibility {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .deal-card {
        padding: 16px;
    }

    .deal-tag {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .deal-footer {
        margin-top: 10px;
        gap: 8px;
    }

    .deal-footer span {
        font-size: 0.92rem;
    }

    .trust-section .carousel-stage {
        min-height: 300px;
    }

    .trust-card p,
    .process-card p,
    .info-card p {
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .vehicle-list {
        grid-template-columns: 1fr;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   ADMIN DASHBOARD STYLES (Unified with main branding)
   ========================================================================= */

.admin-header {
    background: linear-gradient(90deg, var(--dark-color), var(--dark-soft));
    color: white;
    padding: 18px 6.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav-info {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.dashboard-box h3 {
    color: var(--dark-color);
    margin-bottom: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-box label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.dashboard-box input,
.dashboard-box select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: #fbfdff;
}

.dashboard-box input:focus,
.dashboard-box select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.1);
}

.invoice-preview {
    background: #fdfdfd;
    border: 1px dashed #bbb;
    padding: 30px;
    border-radius: 4px;
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.table-invoice {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table-invoice th,
.table-invoice td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.orders-table th,
.orders-table td {
    border-bottom: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.orders-table th {
    background: #f5f5f5;
    font-weight: 700;
}

.orders-table button {
    min-width: 110px;
}

.table-invoice th {
    background: #f5f5f5;
    font-weight: 700;
}

.text-right {
    text-align: right !important;
}

.btn-print {
    background: #2b2d42;
    color: white;
    width: auto;
    padding: 10px 20px;
    margin-top: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-print:hover {
    background: #1f212f;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.muted-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-strong);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--dark-color);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

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

.bg-light {
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 6.5%;
}

.container h2 {
    color: var(--text);
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}