/* KitHomeDepot GMC Compliance & Professional Retail E-Commerce Styling */
:root {
    --khd-primary: #0f172a;
    --khd-primary-dark: #020617;
    --khd-primary-light: #1e3a8a;
    --khd-accent: #2563eb;
    --khd-orange: #f97316;
    --khd-emerald: #10b981;
    --khd-text-dark: #0f172a;
    --khd-text-body: #334155;
    --khd-text-muted: #64748b;
    --khd-bg-light: #f8fafc;
    --khd-border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--khd-text-body) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Hide Default Flatsome Header & Empty Footer Placeholders */
#header, .header-wrapper, #footer, .footer-wrapper {
    display: none !important;
}

h1, h2, h3, h4, h5, h6,
.khd-logo-text,
.khd-nav-menu > li > a,
.khd-footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    color: var(--khd-text-dark);
}

.khd-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. TOP ANNOUNCEMENT BAR */
.khd-top-bar {
    background: #090d16;
    color: #e2e8f0;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.khd-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.khd-top-left, .khd-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.khd-sep {
    opacity: 0.4;
}
.khd-top-bar a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

/* 2. MAIN HEADER */
.khd-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}
.khd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
}
.khd-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.khd-logo-badge {
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.khd-logo-titles {
    display: flex;
    flex-direction: column;
}
.khd-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    line-height: 1.1;
}
.khd-logo-accent {
    color: #2563eb;
}
.khd-tagline {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Search Bar */
.khd-header-search {
    flex: 1;
    max-width: 520px;
}
.khd-search-form {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.khd-search-form:focus-within {
    border-color: #2563eb;
}
.khd-search-input {
    flex: 1;
    border: none !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.khd-search-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}
.khd-search-btn:hover {
    background: #2563eb;
}

/* Header Actions */
.khd-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.khd-help-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #e2e8f0;
    padding-right: 20px;
}
.khd-help-icon {
    color: #2563eb;
}
.khd-help-info {
    display: flex;
    flex-direction: column;
}
.khd-help-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}
.khd-help-phone {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}
.khd-action-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.khd-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}
.khd-cart-icon-wrapper {
    position: relative;
    color: #0f172a;
}
.khd-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.khd-cart-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.khd-cart-label {
    font-size: 11px;
    color: #64748b;
}
.khd-cart-total {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Nav Strip */
.khd-nav-strip {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.khd-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.khd-nav-menu > li > a {
    display: block;
    color: #f8fafc;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.khd-nav-menu > li > a:hover {
    background: #2563eb;
    color: #ffffff;
}

.khd-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}
.khd-burger-line {
    width: 22px;
    height: 2px;
    background: #0f172a;
}

/* 3. PRODUCT TRUST BOX */
.khd-product-trust-box {
    margin: 24px 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.khd-trust-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.khd-trust-col {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.khd-trust-icon {
    font-size: 20px;
    line-height: 1;
}
.khd-trust-content strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}
.khd-trust-content span {
    font-size: 12px;
    color: #64748b;
}
.khd-payment-pill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
    flex-wrap: wrap;
}
.khd-pill-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.khd-pay-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.khd-pay-badge.paypal { background: #003087; color: #ffffff; border-color: #003087; }
.khd-pay-badge.visa { background: #1a1f71; color: #ffffff; border-color: #1a1f71; }
.khd-pay-badge.mc { background: #eb001b; color: #ffffff; border-color: #eb001b; }
.khd-pay-badge.amex { background: #006fcf; color: #ffffff; border-color: #006fcf; }
.khd-pay-badge.disc { background: #f97316; color: #ffffff; border-color: #f97316; }

/* 4. FOOTER */
.khd-footer {
    background: #090d16;
    color: #cbd5e1;
    padding: 50px 0 20px 0;
    margin-top: 60px;
    border-top: 4px solid #2563eb;
    font-size: 14px;
}
.khd-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.khd-footer-logo {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}
.khd-footer-about {
    font-size: 13px;
    line-height: 1.6;
    margin: 14px 0 18px 0;
    color: #94a3b8;
}
.khd-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}
.khd-c-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.khd-c-item a {
    color: #60a5fa;
    text-decoration: none;
}
.khd-footer-heading {
    color: #ffffff !important;
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}
.khd-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #2563eb;
}
.khd-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.khd-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}
.khd-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.khd-footer-subtext {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}
.khd-payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.khd-pay-badge-lg {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
}
.khd-security-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #60a5fa;
}
.khd-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}
.khd-footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.khd-footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
}
.khd-footer-bottom-links a:hover {
    color: #ffffff;
}

/* 5. CONTACT FORM */
.khd-contact-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}
.khd-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.khd-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.khd-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}
.khd-req { color: #ef4444; }
.khd-input, .khd-textarea {
    width: 100%;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}
.khd-btn-primary {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.khd-btn-primary:hover {
    background: #2563eb;
}
.khd-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
}
.khd-alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .khd-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .khd-top-bar-inner {
        justify-content: center;
        text-align: center;
    }
    .khd-top-right { display: none; }
    .khd-header-inner {
        flex-wrap: wrap;
    }
    .khd-mobile-menu-toggle {
        display: flex;
    }
    .khd-nav-strip {
        display: none;
    }
    .khd-nav-strip.is-open {
        display: block;
    }
    .khd-nav-menu {
        flex-direction: column;
    }
    .khd-nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .khd-help-card {
        display: none;
    }
    .khd-trust-row {
        flex-direction: column;
    }
}
