/* Hayah storefront — design tokens + dark mode */

[data-bs-theme="dark"] {
    --brand-black: #e6edf3;
    --brand-white: #0d1117;
    --brand-muted: #8b949e;
    --brand-soft: #161b22;
    --brand-border: #30363d;
}

[data-bs-theme="dark"] .storefront-body {
    background: #0d1117;
    color: #e6edf3;
}

[data-bs-theme="dark"] .navbar-custom {
    background: rgba(22, 27, 34, 0.92);
    border-color: #30363d;
}

[data-bs-theme="dark"] .storefront-icon-btn {
    color: #e6edf3 !important;
}

[data-bs-theme="dark"] .storefront-icon-btn:hover {
    background: #21262d;
}

[data-bs-theme="dark"] .checkout-stepper {
    background: #161b22;
    border-color: #30363d;
}

[data-bs-theme="dark"] .checkout-step-dot {
    background: #0d1117;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .checkout-step.is-current .checkout-step-dot,
[data-bs-theme="dark"] .checkout-step.is-done .checkout-step-dot {
    background: #e6edf3;
    color: #0d1117;
    border-color: #e6edf3;
}

[data-bs-theme="dark"] .storefront-cart-btn .badge-cart {
    background: var(--brand-sale, #e24b2d);
    color: #fff;
}

[data-bs-theme="dark"] .navbar-custom .text-dark {
    color: #e6edf3 !important;
}

[data-bs-theme="dark"] .promo-bar {
    background: #010409;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: #161b22;
    border: 1px solid #30363d;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e6edf3;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: #21262d;
    color: #fff;
}

[data-bs-theme="dark"] .offcanvas {
    background: #161b22;
    color: #e6edf3;
}

[data-bs-theme="dark"] .list-group-item {
    background: transparent;
    color: #e6edf3;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .content-card {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #0d1117;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .text-muted {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .storefront-footer {
    background: #010409;
    border-top: 1px solid #30363d;
}

[data-bs-theme="dark"] .card-aside,
[data-bs-theme="dark"] .filter-sidebar-header,
[data-bs-theme="dark"] .product-card {
    background: #161b22;
    border-color: #30363d;
}

[data-bs-theme="dark"] .filter-title,
[data-bs-theme="dark"] .filter-section-title {
    color: #e6edf3;
}

[data-bs-theme="dark"] .btn-outline-dark {
    color: #e6edf3;
    border-color: #30363d;
}

[data-bs-theme="dark"] .btn-outline-dark:hover {
    background: #21262d;
    color: #fff;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e6edf3;
    --bs-table-border-color: #30363d;
}

/* Account area (kept from earlier) */
[data-bs-theme="dark"] .account-page {
    background: #0d1117;
    color: #e6edf3;
}

[data-bs-theme="dark"] .account-sidebar {
    background: #161b22;
    border-color: #30363d;
}

[data-bs-theme="dark"] .account-nav-link {
    color: #e6edf3;
}

[data-bs-theme="dark"] .account-nav-link:hover {
    background: #21262d;
    color: #fff;
}

[data-bs-theme="dark"] .account-nav-link.active {
    background: #fff;
    color: #111;
}

[data-bs-theme="dark"] .account-card {
    background: #161b22;
    border-color: #30363d;
    box-shadow: none;
}

[data-bs-theme="dark"] .account-card .card-header {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .account-table th {
    color: #8b949e;
}

[data-bs-theme="dark"] .account-table td,
[data-bs-theme="dark"] .account-kpi-value,
[data-bs-theme="dark"] .account-page-header h1 {
    color: #e6edf3;
}

[data-bs-theme="dark"] .account-theme-toggle {
    border-color: #30363d;
    color: #e6edf3;
    background: transparent;
}

[data-bs-theme="dark"] .account-theme-toggle:hover {
    background: #21262d;
}

[data-bs-theme="dark"] .account-default-badge {
    background: #238636;
    color: #fff;
}

/* Bootstrap color names do not follow dark theme — remap on the storefront */
[data-bs-theme="dark"] .bg-light {
    background-color: #161b22 !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #e6edf3 !important;
}

[data-bs-theme="dark"] .border-dark {
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .home-categories {
    background: #161b22;
}

[data-bs-theme="dark"] .section-title h2,
[data-bs-theme="dark"] .product-card-title,
[data-bs-theme="dark"] .product-card-name,
[data-bs-theme="dark"] .home-show-all {
    color: #e6edf3 !important;
}

[data-bs-theme="dark"] .home-show-all {
    border-bottom-color: #e6edf3;
}

[data-bs-theme="dark"] .category-box {
    background: #0d1117;
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(22, 27, 34, 0.92);
}

[data-bs-theme="dark"] .page-wrap {
    background: #0d1117;
}

[data-bs-theme="dark"] .content-card,
[data-bs-theme="dark"] .review-card,
[data-bs-theme="dark"] .review-form-box {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3;
    box-shadow: none;
}

[data-bs-theme="dark"] .img-main-container {
    background: #0d1117;
}

[data-bs-theme="dark"] .selector-label {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .btn-check:checked + .selector-label {
    background: #e6edf3;
    color: #0d1117;
    border-color: #e6edf3;
}

[data-bs-theme="dark"] .pdp-sticky-bar {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .alert-light,
[data-bs-theme="dark"] .alert-secondary {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

[data-bs-theme="dark"] .text-secondary {
    color: #8b949e !important;
}

[data-bs-theme="dark"] #oneProduct hr,
[data-bs-theme="dark"] .page-wrap hr {
    border-color: #30363d;
    opacity: 1;
}

[data-bs-theme="dark"] .btn-dark {
    background: #e6edf3;
    border-color: #e6edf3;
    color: #0d1117;
}

[data-bs-theme="dark"] .btn-dark:hover {
    background: #fff;
    border-color: #fff;
    color: #0d1117;
}
