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

[data-bs-theme="dark"] {
    color-scheme: dark;
    --brand-black: #FCF4E9;
    --brand-white: #14263A;
    --brand-cream: #FCF4E9;
    --brand-surface: #14263A;
    --brand-muted: #C9BBA8;
    --brand-soft: #193049;
    --brand-sale: #C9898C;
    --brand-accent: #C9898C;
    --brand-border: #2C4664;
    --color-black: #FCF4E9;
    --color-black-hover: #E4C4C6;
    --color-white: #14263A;
    --color-white-hover: #1C334C;
    --ecom-surface: #14263A;
    --ecom-border: #2C4664;
    --bs-body-bg: #0E1A28;
    --bs-body-color: #FCF4E9;
    --bs-body-bg-rgb: 14, 26, 40;
    --bs-heading-color: #FCF4E9;
    --bs-emphasis-color: #FCF4E9;
    --bs-secondary-color: #C9BBA8;
    --bs-link-color: #E4C4C6;
    --bs-link-hover-color: #F3DDE0;
    --bs-card-bg: #14263A;
    --bs-secondary-bg: #14263A;
    --bs-tertiary-bg: #193049;
    --bs-border-color: #2C4664;
    --bs-light-rgb: 252, 244, 233;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .storefront-body {
    background: #0E1A28 !important;
    background-color: #0E1A28 !important;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .navbar-custom {
    background: rgba(14, 26, 40, 0.92);
    border-color: #2C4664;
}

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

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

[data-bs-theme="dark"] .checkout-stepper {
    background: #14263A;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .checkout-step-dot {
    background: #0E1A28;
    border-color: #2C4664;
    color: #FCF4E9;
}

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

[data-bs-theme="dark"] .storefront-cart-btn .badge-cart {
    background: #C9898C;
    color: #193049;
}

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

[data-bs-theme="dark"] .promo-bar {
    background: #09131F;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .mega-panel {
    background: #14263A;
    color: #FCF4E9;
    border-top-color: #2C4664;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .mega-link:hover {
    color: #C9898C;
}

[data-bs-theme="dark"] .mobile-dept {
    border-bottom-color: #2C4664;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: #14263A;
    border: 1px solid #2C4664;
}

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

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

[data-bs-theme="dark"] .dropdown-item.active {
    background: #193049;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .offcanvas {
    background: #14263A;
    color: #FCF4E9;
}

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

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .content-card {
    background: #14263A;
    border-color: #2C4664;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #0E1A28;
    border-color: #2C4664;
    color: #FCF4E9;
}

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

[data-bs-theme="dark"] .storefront-footer {
    background: #09131F;
    border-top: 1px solid #2C4664;
    color: #FCF4E9 !important;
}

[data-bs-theme="dark"] .storefront-footer .footer-heading {
    color: #FCF4E9 !important;
}

[data-bs-theme="dark"] .price-current,
[data-bs-theme="dark"] .storefront-main a:hover,
[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .product-card-name:hover,
[data-bs-theme="dark"] .home-show-all:hover {
    color: #C9898C;
}

[data-bs-theme="dark"] .card-aside,
[data-bs-theme="dark"] .filter-sidebar-header,
[data-bs-theme="dark"] .product-card {
    background: #14263A;
    border-color: #2C4664;
}

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

[data-bs-theme="dark"] .btn-outline-dark {
    color: #FCF4E9;
    border-color: #2C4664;
}

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

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #FCF4E9;
    --bs-table-border-color: #2C4664;
}

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

[data-bs-theme="dark"] .account-sidebar {
    background: #14263A;
    border-color: #2C4664;
}

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

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

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

[data-bs-theme="dark"] .account-card {
    background: #14263A;
    border-color: #2C4664;
    box-shadow: none;
}

[data-bs-theme="dark"] .account-card .card-header {
    background: #14263A;
    border-color: #2C4664;
    color: #FCF4E9;
}

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

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

[data-bs-theme="dark"] .account-theme-toggle {
    border-color: #2C4664;
    color: #FCF4E9;
    background: transparent;
}

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

[data-bs-theme="dark"] .account-address-btn {
    border-color: #C9BBA8;
    background: transparent;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .account-address-btn:hover {
    background: #193049;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .account-address-btn.is-primary {
    background: #FCF4E9;
    border-color: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .account-address-btn.is-primary:hover {
    background: #fff;
    color: #193049;
}

[data-bs-theme="dark"] .account-address-btn.is-danger {
    border-color: #8a3a3a;
    background: transparent;
    color: #f0c4c4;
}

[data-bs-theme="dark"] .account-address-btn.is-danger:hover {
    background: #2a1a1a;
    color: #f0c4c4;
}

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

/* Bootstrap / style.css color names do not follow dark theme */
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-body,
[data-bs-theme="dark"] .bg-body-tertiary,
[data-bs-theme="dark"] .text-bg-light {
    background-color: #14263A !important;
}

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

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

[data-bs-theme="dark"] .hero-content,
[data-bs-theme="dark"] .hero-content h1,
[data-bs-theme="dark"] .hero-content .lead,
[data-bs-theme="dark"] .hero-content span,
[data-bs-theme="dark"] .hero-content p,
[data-bs-theme="dark"] .hero-content .text-white {
    color: #fff !important;
    opacity: 1 !important;
}

[data-bs-theme="dark"] .hero-img {
    filter: none !important;
    opacity: 1;
}

[data-bs-theme="dark"] .hero-content .btn-light {
    background-color: transparent !important;
    border-color: #F7EFE6 !important;
    color: #F7EFE6 !important;
}

[data-bs-theme="dark"] .hero-content .btn-light:hover,
[data-bs-theme="dark"] .hero-content .btn-light:focus-visible {
    background-color: #F7EFE6 !important;
    border-color: #F7EFE6 !important;
    color: #152238 !important;
}

[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: #FCF4E9 !important;
}

[data-bs-theme="dark"] .product-save-amount {
    color: #3fb950;
}

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

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

[data-bs-theme="dark"] .navbar {
    background-color: rgba(14, 26, 40, 0.92);
}

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

[data-bs-theme="dark"] .content-card,
[data-bs-theme="dark"] .review-card,
[data-bs-theme="dark"] .review-form-box {
    background: #14263A !important;
    border-color: #2C4664 !important;
    color: #FCF4E9;
    box-shadow: none;
}

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

[data-bs-theme="dark"] .selector-label {
    background: #14263A;
    border-color: #2C4664;
    color: #FCF4E9;
}

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

[data-bs-theme="dark"] .pdp-sticky-bar {
    background: #14263A;
    border-color: #2C4664;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .alert-light,
[data-bs-theme="dark"] .alert-secondary {
    background: #14263A;
    border-color: #2C4664;
    color: #FCF4E9;
}

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

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

[data-bs-theme="dark"] .btn-dark,
[data-bs-theme="dark"] .btn-primary {
    background: #FCF4E9;
    border-color: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .btn-dark:hover,
[data-bs-theme="dark"] .btn-dark:focus,
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus {
    background: #C9898C;
    border-color: #C9898C;
    color: #FCF4E9;
}

/* Cart, checkout, receipt — beat #cart-page .card and style.css whites */
[data-bs-theme="dark"] #cart-page .card,
[data-bs-theme="dark"] #cart-page .card-body,
[data-bs-theme="dark"] .checkout-page .card,
[data-bs-theme="dark"] .checkout-page .card-body,
[data-bs-theme="dark"] .checkout-summary-card .card,
[data-bs-theme="dark"] .receipt-card {
    background-color: #14263A !important;
    background: #14263A !important;
    color: #FCF4E9;
    border-color: #2C4664 !important;
    box-shadow: none;
}

[data-bs-theme="dark"] .cart-img,
[data-bs-theme="dark"] .cart-img-frame {
    background-color: #0E1A28 !important;
}

[data-bs-theme="dark"] .checkout-hero {
    background: #09131F;
}

[data-bs-theme="dark"] #cart-page .form-control,
[data-bs-theme="dark"] #cart-page .form-select,
[data-bs-theme="dark"] .checkout-page .form-control,
[data-bs-theme="dark"] .checkout-page .form-select,
[data-bs-theme="dark"] .checkout-page .form-select option {
    background-color: #0E1A28 !important;
    color: #FCF4E9 !important;
    border-color: #2C4664;
}

[data-bs-theme="dark"] #cart-page .card-title,
[data-bs-theme="dark"] #cart-page h1,
[data-bs-theme="dark"] #cart-page h5,
[data-bs-theme="dark"] #cart-page h6,
[data-bs-theme="dark"] .checkout-page h1,
[data-bs-theme="dark"] .checkout-page h5,
[data-bs-theme="dark"] .checkout-page h6,
[data-bs-theme="dark"] .receipt-card h2 {
    color: #FCF4E9;
}

[data-bs-theme="dark"] #cart-page hr,
[data-bs-theme="dark"] .checkout-page hr {
    border-color: #2C4664;
    opacity: 1;
}

[data-bs-theme="dark"] .receipt-totals {
    background-color: #0E1A28 !important;
    color: #FCF4E9;
    border: 1px solid #2C4664;
}

[data-bs-theme="dark"] .receipt-icon {
    background: #123524;
    color: #3fb950;
}

[data-bs-theme="dark"] .input-group-text {
    background: #14263A;
    border-color: #2C4664;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #0E1A28 !important;
    color: #FCF4E9 !important;
    border-color: #C9BBA8;
}

[data-bs-theme="dark"] .form-control:-webkit-autofill,
[data-bs-theme="dark"] .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0E1A28 inset;
    -webkit-text-fill-color: #FCF4E9;
    caret-color: #FCF4E9;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: #0E1A28;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #FCF4E9;
    border-color: #FCF4E9;
}

[data-bs-theme="dark"] .form-select option {
    background: #14263A;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #C9BBA8;
    opacity: 1;
}

[data-bs-theme="dark"] .alert-light {
    background-color: #14263A !important;
    border-color: #2C4664 !important;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .alert-light a {
    color: #E4C4C6;
}

[data-bs-theme="dark"] #cart-page .cart-change-quantity-btn,
[data-bs-theme="dark"] #cart-page .cart-change-quantity-btn-disable {
    background-color: #0E1A28;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #FCF4E9;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: #193049;
    color: #fff;
    border-color: #C9BBA8;
}

[data-bs-theme="dark"] .storefront-auth-card {
    background: #14263A;
    border-color: rgba(255, 255, 255, 0.08);
    color: #FCF4E9;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .storefront-auth-brand {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%),
        linear-gradient(160deg, #0d1117 0%, #193049 100%);
}

[data-bs-theme="dark"] .storefront-auth-form-wrap {
    background: transparent;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .storefront-auth-title,
[data-bs-theme="dark"] .storefront-auth-card .form-label,
[data-bs-theme="dark"] .storefront-auth-card .form-check-label {
    color: #FCF4E9;
}

[data-bs-theme="dark"] .storefront-auth-subtitle,
[data-bs-theme="dark"] .storefront-auth-card .text-muted {
    color: #C9BBA8 !important;
}

[data-bs-theme="dark"] .storefront-auth-card .form-control {
    background: #0E1A28 !important;
    color: #FCF4E9 !important;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .storefront-auth-card .form-control:focus {
    background: #0E1A28 !important;
    color: #FCF4E9 !important;
    border-color: #C9898C;
    box-shadow: 0 0 0 0.18rem rgba(201, 137, 140, 0.35);
}

[data-bs-theme="dark"] .storefront-auth-card .form-check-input {
    background-color: #0E1A28;
    border-color: #C9BBA8;
}

[data-bs-theme="dark"] .storefront-auth-card .form-check-input:checked {
    background-color: #C9898C;
    border-color: #C9898C;
}

[data-bs-theme="dark"] .storefront-auth-card a {
    color: #E4C4C6;
}

[data-bs-theme="dark"] .storefront-auth-card a:hover {
    color: #F3DDE0;
}

[data-bs-theme="dark"] .storefront-auth-card .branding-logo-link,
[data-bs-theme="dark"] .storefront-auth-card .branding-logo-link:hover {
    color: inherit;
}

[data-bs-theme="dark"] .storefront-auth-card .btn-dark {
    background: #FCF4E9;
    border-color: #FCF4E9;
    color: #0E1A28;
}

[data-bs-theme="dark"] .storefront-auth-card .btn-dark:hover {
    background: #C9898C;
    border-color: #C9898C;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .storefront-auth-password {
    background: #0E1A28;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .storefront-auth-password:focus-within {
    border-color: #C9898C;
    box-shadow: 0 0 0 0.18rem rgba(201, 137, 140, 0.35);
}

[data-bs-theme="dark"] .storefront-auth-password .form-control,
[data-bs-theme="dark"] .storefront-auth-password .btn {
    background: #0E1A28 !important;
    color: #FCF4E9 !important;
}

[data-bs-theme="dark"] .storefront-auth-password .btn:hover {
    background: #193049 !important;
}

/* Light buttons stay cream with navy text. Dark surfaces use cream text. */
[data-bs-theme="dark"] .btn-custom {
    background-color: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .btn-custom:hover {
    background-color: #E4C4C6;
    color: #193049;
}

[data-bs-theme="dark"] .btn-custom-dark {
    background-color: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .btn-custom-dark:hover {
    background-color: #C9898C;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .text-black,
[data-bs-theme="dark"] .fc-black,
[data-bs-theme="dark"] .navbar-toggler,
[data-bs-theme="dark"] .navbar-custom .navbar-toggler {
    color: #FCF4E9 !important;
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .page-link {
    background: #14263A;
    color: #FCF4E9;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background: #FCF4E9;
    color: #193049;
    border-color: #FCF4E9;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] .form-select {
    color: #C9BBA8;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #0E1A28;
    color: #FCF4E9;
    border-color: #2C4664;
}

[data-bs-theme="dark"] .img-wrapper {
    background-color: #193049;
}

[data-bs-theme="dark"] .product-card .btn-cart-overlay {
    background: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .product-card .btn-cart-overlay:hover {
    background: #C9898C;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .carousel-control-prev-icon,
[data-bs-theme="dark"] .carousel-control-next-icon,
[data-bs-theme="dark"] .custom-ctrl-icon {
    background-color: #FCF4E9 !important;
    filter: none;
}

[data-bs-theme="dark"] .custom-ctrl {
    background: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .custom-ctrl:hover,
[data-bs-theme="dark"] .custom-ctrl:focus-visible {
    background: #C9898C;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .custom-ctrl.is-disabled,
[data-bs-theme="dark"] .custom-ctrl:disabled {
    opacity: 0.4;
}

[data-bs-theme="dark"] .custom-ctrl.is-disabled:hover,
[data-bs-theme="dark"] .custom-ctrl:disabled:hover {
    background: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .footer-social-bar {
    border-top-color: #2C4664;
}

[data-bs-theme="dark"] .footer-social-bar .social-link {
    background: #14263A;
    color: #FCF4E9;
}

[data-bs-theme="dark"] .footer-social-bar .social-link:hover {
    background: #FCF4E9;
    color: #193049;
}

[data-bs-theme="dark"] .filter-section-toggle:focus-visible {
    outline-color: #FCF4E9;
}

[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .offcanvas-body,
[data-bs-theme="dark"] .dropdown-item {
    color: #FCF4E9;
}
