/* ==========================================================================
   SUPER ECOMMERCE - DYNAMIC CUSTOMIZABLE SHOP THEME
   Fully driven by Admin Color Customizer CSS Variables
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL BASE & TYPOGRAPHY
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--body-bg, #f8fafc);
    color: var(--body-text, #0f172a);
    font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container-xl {
    max-width: 1320px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --------------------------------------------------------------------------
   GLOBAL FORM INPUTS & TEXT CONTROLS (LTR & LEFT-ALIGNED CURSOR/TEXT)
   -------------------------------------------------------------------------- */
input,
textarea,
select,
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]) {
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]),
textarea {
    cursor: text !important;
}

/* All input and textarea placeholders */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    float: none !important;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.text-primary-var {
    color: var(--primary-color, #4f46e5) !important;
}

#content {
    padding-top: 0 !important;
}

#navbar_top.theme-header {
    background: var(--header-bg, #ffffff) !important;
    border-bottom: 1.5px solid var(--card-border, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

/* 1. Top Announcement Bar */
.top-announcement-bar {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--card-border, #e2e8f0);
    font-size: 12.5px;
    color: var(--body-text, #0f172a);
}

.top-announcement-left,
.top-announcement-right {
    font-weight: 500;
}

.announcement-contact a {
    color: var(--body-text, #0f172a);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.announcement-contact a:hover {
    color: var(--primary-color, #4f46e5);
}

.top-divider {
    color: var(--card-border, #cbd5e1);
    opacity: 0.6;
}

.top-utility-link {
    color: var(--body-text, #0f172a);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.top-utility-link:hover {
    color: var(--primary-color, #4f46e5);
}

/* 2. Mobile Header Area */
.mobile-header {
    background: var(--header-bg, #ffffff);
    border-bottom: 1px solid var(--card-border, #e2e8f0);
    padding: 6px 0;
}

.mobile-hamburger-btn {
    font-size: 22px;
    color: var(--body-text, #0f172a);
    padding: 6px;
    cursor: pointer;
    line-height: 1;
}

.mobile-brand-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.mobile-cart-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, var(--secondary-color, #06b6d4) 100%);
    color: #ffffff !important;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.mobilecart-qty {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9999px;
    padding: 1px 5px;
    line-height: 1.2;
    border: 2px solid #ffffff;
}

.mobile-search-wrapper {
    position: relative;
}

.mobile-search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 9999px;
    padding: 4px 6px 4px 16px;
    transition: border-color 0.2s ease;
    cursor: text;
}

.mobile-search-input-group:focus-within {
    border-color: var(--primary-color, #4f46e5);
}

.mobile-search-input-group input {
    border: none;
    outline: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 13px;
    color: var(--body-text, #0f172a);
    background: transparent;
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    cursor: text !important;
    padding: 0 4px;
}

.mobile-search-input-group input::placeholder {
    text-align: left !important;
    direction: ltr !important;
    float: none !important;
}

.mobile-search-input-group button {
    border: none;
    background: var(--primary-color, #4f46e5);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 3. Main Header Area (Desktop) */
.main-header {
    background: var(--header-bg, #ffffff);
}

.header-brand-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo-wrap a:hover img {
    transform: scale(1.02);
}

/* All Categories Button & Dropdown beside Logo */
.header-all-cat-wrap {
    position: relative;
}

.header-all-cat-btn.header-cat-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid var(--card-border, #e2e8f0);
    color: var(--body-text, #0f172a);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-all-cat-btn.header-cat-icon-only:hover,
.header-all-cat-btn.header-cat-icon-only.active {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary-color, #4f46e5);
    color: var(--primary-color, #4f46e5);
    transform: scale(1.05);
}

/* Dropdown Menu */
.header-all-cat-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 250px;
    background: var(--card-bg, #ffffff);
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    z-index: 1060;
    display: none;
    overflow: visible !important;
}

.header-all-cat-dropdown.show {
    display: block;
}

.all-cat-dropdown-header {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 14px 14px 0 0;
}

.all-cat-dropdown-body {
    overflow: visible !important;
    position: relative;
}

.all-cat-item {
    position: relative;
}

.all-cat-anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--body-text, #0f172a);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.all-cat-item:hover > .all-cat-anchor {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color, #4f46e5);
}

.all-cat-anchor .cat-dropdown-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.cat-icon-fallback {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color, #4f46e5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Subcategory & Childcategory Flyout - Unclipped & Wide */
.all-subcat-flyout {
    position: absolute;
    top: 0;
    left: 100%;
    width: 480px;
    min-height: 100%;
    max-height: 520px;
    overflow-y: auto;
    background: var(--card-bg, #ffffff);
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 0 14px 14px 0;
    box-shadow: 12px 14px 35px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    z-index: 1070;
    display: none;
}

.all-cat-item:hover > .all-subcat-flyout {
    display: block;
}

.subcat-grid-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.subcat-group-box {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 8px;
    padding: 10px 12px;
}

.subcat-title-anchor {
    color: var(--body-text, #0f172a);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: color 0.15s ease;
}

.subcat-title-anchor:hover {
    color: var(--primary-color, #4f46e5);
}

.childcat-nested-link {
    color: var(--body-text, #475569);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s ease;
    display: block;
}

.childcat-nested-link:hover {
    color: var(--primary-color, #4f46e5);
    padding-left: 3px;
}

.see-all-cat-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #4f46e5);
    text-decoration: none;
}

.fs-xxs {
    font-size: 9px;
}

/* Dark Mode Pill in Header */
.theme-mode-pill {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid var(--card-border, #e2e8f0) !important;
}

.theme-mode-pill:hover {
    border-color: var(--primary-color, #4f46e5) !important;
    background: rgba(79, 70, 229, 0.06) !important;
}

.header-search-wrap {
    max-width: 580px;
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--card-border, #e2e8f0);
    border-radius: 9999px;
    padding: 4px 6px 4px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    cursor: text;
}

.search-input-group:focus-within {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.search-leading-icon {
    color: #94a3b8;
    font-size: 15px;
    margin-right: 10px;
    pointer-events: none;
    user-select: none;
}

.modern-search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text, #0f172a);
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    cursor: text !important;
    padding: 0 4px;
}

.modern-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    text-align: left !important;
    direction: ltr !important;
    float: none !important;
}

.modern-search-btn {
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, var(--secondary-color, #06b6d4) 100%);
    color: #ffffff !important;
    border-radius: 9999px;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.modern-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

/* Search Live Results Dropdown */
.search_result {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1.5px solid var(--card-border, #e2e8f0);
    z-index: 1050;
    overflow: hidden;
}

.search_result:empty,
.search_result:not(:has(*)) {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search_result:not(:empty) {
    display: block;
}

.search_result ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search_result li {
    border-bottom: 1px solid var(--card-border, #e2e8f0);
}

.search_result li:last-child {
    border-bottom: none;
}

.search_result li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--body-text, #0f172a);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.search_result li a:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary-color, #4f46e5);
}

.search_result img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

/* Header Action Pills */
.header-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.02);
    border: 1.5px solid var(--card-border, #e2e8f0);
    color: var(--body-text, #0f172a) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-action-pill:hover {
    border-color: var(--primary-color, #4f46e5);
    color: var(--primary-color, #4f46e5) !important;
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.header-action-pill i {
    font-size: 15px;
}

/* Shopping Cart Widget */
.header-cart-widget {
    position: relative;
}

.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, var(--secondary-color, #06b6d4) 100%);
    color: #ffffff !important;
    padding: 7px 18px 7px 16px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    transition: all 0.25s ease;
}

.header-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.cart-icon-wrapper {
    position: relative;
    font-size: 18px;
    line-height: 1;
    margin-right: 4px;
}

.cart-badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9999px;
    padding: 2px 5px;
    line-height: 1.2;
    border: 2px solid #ffffff;
    min-width: 18px;
    text-align: center;
}

.cart-text-wrap {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.cart-label {
    display: none !important;
}

.cart-amount {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.2px;
}

/* Mini Cart Dropdown */
.modern-mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 330px;
    background: #ffffff;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cart-widget:hover .modern-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-header {
    font-size: 14px;
    color: var(--body-text, #0f172a);
}

.bg-soft-primary {
    background: rgba(79, 70, 229, 0.1);
}

.mini-cart-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--card-border, #e2e8f0);
}

.mini-cart-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--body-text, #0f172a);
    text-decoration: none;
    line-height: 1.3;
}

.mini-cart-item-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--price-color, #4f46e5);
}

.btn-checkout-now {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-bg, #4f46e5);
    color: var(--btn-text, #ffffff) !important;
    padding: 10px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.btn-checkout-now:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}



/* Submenu Dropdown */
.modern-submenu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1020;
}

.nav-cat-item:hover > .modern-submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--body-text, #0f172a);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.submenu-anchor:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color, #4f46e5);
}

.cat-dropdown-icon-img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.fs-xs {
    font-size: 10px;
    opacity: 0.6;
}

/* Childmenu Dropdown */
.modern-childmenu-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 210px;
    background: #ffffff;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s ease;
    z-index: 1025;
}

.submenu-list-item:hover > .modern-childmenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.childmenu-anchor {
    display: block;
    padding: 7px 12px;
    border-radius: 6px;
    color: var(--body-text, #0f172a);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.childmenu-anchor:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color, #4f46e5);
}

/* Hot Deals Highlight Badge */
.hot-deals-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ef4444 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hot-deals-badge-link:hover {
    background: #ef4444;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.badge-discount-mini {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 9999px;
    line-height: 1.2;
}

.hot-deals-badge-link:hover .badge-discount-mini {
    background: #ffffff;
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   HERO BANNER & SLIDER
   -------------------------------------------------------------------------- */
.home-slider-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.slider-img {
    border-radius: 20px;
    max-height: 420px;
    object-fit: cover;
}

.side-banner {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.side-banner img {
    border-radius: 18px;
    transition: transform 0.4s ease;
}

.side-banner:hover img {
    transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   CATEGORY STORIES STRIP
   -------------------------------------------------------------------------- */
.category-stories-wrapper {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 22px;
    padding: 18px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.category-stories-scroll {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.category-story-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 85px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.category-story-card:hover {
    transform: translateY(-4px);
}

.category-story-img-wrap {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--card-bg, #ffffff);
    border: 2.5px solid var(--card-border, #e2e8f0);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.category-story-card:hover .category-story-img-wrap {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: scale(1.06);
}

.category-story-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-story-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--body-text, #0f172a);
    transition: color 0.2s ease;
    text-align: center;
}

.category-story-card:hover .category-story-title {
    color: var(--primary-color, #4f46e5);
}

/* --------------------------------------------------------------------------
   SECTION CARDS & HEADERS
   -------------------------------------------------------------------------- */
.section-card {
    background: var(--card-bg, #ffffff);
    border-radius: 5px;
    padding: 24px;
    border: 1px solid var(--card-border, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid var(--card-border, #e2e8f0);
}

.section-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--body-text, #0f172a);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .flash-icon {
    color: var(--primary-color, #4f46e5);
    font-size: 24px;
}

.sale-badge {
    background: var(--primary-color, #4f46e5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.see-all-link {
    color: var(--primary-color, #4f46e5);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(79, 70, 229, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}

.see-all-link:hover {
    background: var(--primary-color, #4f46e5);
    color: #ffffff;
}

/* Offer Timer */
.offer_timer {
    display: flex;
    gap: 6px;
    align-items: center;
}

.offer_timer .syotimer-cell {
    background: var(--primary-color, #4f46e5);
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    min-width: 35px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   PRODUCT CARDS & BUTTONS
   -------------------------------------------------------------------------- */
.product-card {
    background: var(--card-bg, #ffffff);
    border-radius: 6px;
    border: 1px solid var(--card-border, #e2e8f0);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    margin: 0 3px;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Square aspect ratio — padding-top trick keeps it 1:1 */
.product-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

/* Image fills the entire square — no inner padding */
.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--discount-badge-bg, #10b981);
    color: var(--discount-badge-text, #ffffff);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 4px 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name a {
    color: var(--product-title-color, #1e293b);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    transition: color 0.2s ease;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.product-name a:hover {
    color: var(--primary-color, #4f46e5);
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--price-color, #4f46e5);
}

.product-original del {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 4px;
}

.btn-order-now {
    background: var(--btn-bg, #4f46e5);
    color: var(--btn-text, #ffffff) !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    padding: 5px 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    border: none;
}

.btn-order-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   FOOTER STYLING
   -------------------------------------------------------------------------- */
footer, .footer-section, .footer-area {
    background-color: var(--footer-bg, #0f172a) !important;
    color: var(--footer-text, #94a3b8) !important;
}

footer a, .footer-section a, .footer-area a {
    color: var(--footer-text, #94a3b8) !important;
    transition: color 0.2s ease;
}

footer a:hover, .footer-section a:hover, .footer-area a:hover {
    color: var(--primary-color, #4f46e5) !important;
}

/* --------------------------------------------------------------------------
   CAROUSEL NAVIGATION ARROWS — hide icon spans, style buttons only
   -------------------------------------------------------------------------- */
.owl-carousel .owl-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    background: var(--card-bg, #ffffff) !important;
    color: var(--body-text, #0f172a) !important;
    border: 1.5px solid var(--card-border, #e2e8f0) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;          /* hide any text/icon inside */
    line-height: 1 !important;
    padding: 0 !important;
}

/* Remove icon spans that owl injects */
.owl-carousel .owl-nav button span {
    display: none !important;
}

.owl-carousel .owl-nav button.owl-prev::after {
    content: "\276E";                  /* ‹ chevron */
    font-size: 12px;
    line-height: 1;
    color: inherit;
}

.owl-carousel .owl-nav button.owl-next::after {
    content: "\276F";                  /* › chevron */
    font-size: 12px;
    line-height: 1;
    color: inherit;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary-color, #4f46e5) !important;
    color: #ffffff !important;
    border-color: var(--primary-color, #4f46e5) !important;
}

/* Carousel gap between cards ≤ 5px */
.product_slider.owl-carousel .owl-item {
    padding: 2px 0;
}


/* ==========================================================================
   CATEGORY / SUBCATEGORY / CHILDCATEGORY PAGE STYLES
   ========================================================================== */

/* ── Topbar ── */
.cat-topbar {
    border-bottom: 1px solid var(--card-border, #e2e8f0);
    padding-bottom: 10px;
}

.cat-breadcrumb .breadcrumb {
    font-size: 13px;
    gap: 2px;
}

.cat-breadcrumb .breadcrumb-item a {
    color: var(--primary-color, #4f46e5);
    text-decoration: none;
    font-weight: 600;
}

.cat-breadcrumb .breadcrumb-item.active {
    color: var(--body-text, #0f172a);
    font-weight: 700;
}

.cat-result-count {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.cat-sort-icon {
    color: var(--primary-color, #4f46e5);
    font-size: 14px;
}

.cat-sort-select {
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border, #e2e8f0);
    background: var(--card-bg, #fff);
    color: var(--body-text, #0f172a);
    padding: 4px 8px;
    cursor: pointer;
}

.cat-filter-toggle-btn {
    background: var(--primary-color, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 12px;
    border: none;
}

/* ── Sidebar ── */
.cat-sidebar {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.cat-sidebar-header {
    background: var(--primary-color, #4f46e5);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px;
    display: flex;
    align-items: center;
}

.cat-filter-group {
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border, #e2e8f0);
}

.cat-filter-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color, #4f46e5);
    margin-bottom: 8px;
}

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

.cat-filter-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
    color: var(--body-text, #0f172a);
    transition: color 0.15s;
}

.cat-filter-check-label:hover {
    color: var(--primary-color, #4f46e5);
}

.cat-checkbox {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color, #4f46e5);
    cursor: pointer;
    flex-shrink: 0;
}

/* Sidebar plain link (for childcat page) */
.cat-sidebar-link {
    display: block;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--body-text, #0f172a);
    text-decoration: none;
    transition: all 0.15s;
}

.cat-sidebar-link:hover,
.cat-sidebar-link.active {
    background: var(--primary-color, #4f46e5);
    color: #fff !important;
    padding-left: 10px;
}

/* ── Price Range ── */
.cat-price-display {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cat-price-pill {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color, #4f46e5);
    background: rgba(79,70,229,0.07);
    border-radius: 6px;
    padding: 3px 6px;
    gap: 2px;
}

.cat-price-pill input[type="text"] {
    border: none;
    background: transparent;
    width: 46px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color, #4f46e5);
    outline: none;
    padding: 0;
}

.cat-price-sep {
    font-weight: 700;
    color: #94a3b8;
}

.cat-price-slider.ui-slider {
    height: 4px;
    border-radius: 4px;
    background: var(--card-border, #e2e8f0);
    border: none;
}

.cat-price-slider .ui-slider-range {
    background: var(--primary-color, #4f46e5);
    border-radius: 4px;
}

.cat-price-slider .ui-slider-handle {
    width: 14px;
    height: 14px;
    top: -5px;
    border-radius: 50%;
    background: var(--primary-color, #4f46e5);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    outline: none;
}

/* ── Sidebar Buttons ── */
.cat-apply-btn {
    background: var(--primary-color, #4f46e5);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 10px;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: filter 0.2s;
}

.cat-apply-btn:hover { filter: brightness(1.1); color: #fff !important; }

.cat-reset-btn {
    background: transparent;
    color: var(--body-text, #0f172a) !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 10px;
    border: 1px solid var(--card-border, #e2e8f0);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.cat-reset-btn:hover {
    background: var(--card-border, #e2e8f0);
}

/* ── Product Grid ── */
.cat-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 1200px) {
    .cat-product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .cat-product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .cat-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pagination ── */
.cat-pagination .pagination {
    gap: 4px;
}

.cat-pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid var(--card-border, #e2e8f0);
    color: var(--primary-color, #4f46e5);
    font-size: 13px;
    padding: 5px 12px;
    background: var(--card-bg, #fff);
    transition: all 0.2s;
}

.cat-pagination .page-item.active .page-link {
    background: var(--primary-color, #4f46e5);
    border-color: var(--primary-color, #4f46e5);
    color: #fff;
}

.cat-pagination .page-link:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff;
    border-color: var(--primary-color, #4f46e5);
}

/* ── Empty State ── */
.cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 12px;
}

.cat-empty-icon {
    font-size: 56px;
    color: var(--card-border, #e2e8f0);
}

.cat-empty p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* ── Meta Description ── */
.cat-meta-desc {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

/* ── Mobile Sidebar Drawer ── */
@media (max-width: 991px) {
    #catSidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 260px;
        height: 100vh;
        z-index: 1060;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 0;
    }

    #catSidebar .cat-sidebar {
        border-radius: 0;
        height: 100%;
    }

    #catSidebar.cat-sidebar-open {
        left: 0;
    }

    .cat-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1059;
        display: none;
    }

    .cat-sidebar-overlay.active {
        display: block;
    }
}

/* ==========================================================================
   PRODUCT DETAILS PAGE STYLES
   ========================================================================== */

.pd-page {
    min-height: 60vh;
}

/* ── Main card ── */
.pd-main-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* ── Gallery ── */
.pd-gallery-col {
    padding: 16px;
    border-right: 1px solid var(--card-border, #e2e8f0);
    position: relative;
}

.pd-discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: var(--discount-badge-bg, #10b981);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
}

.pd-main-slider .pd-slide-item {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.pd-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pd-thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid var(--card-border, #e2e8f0);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

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

.pd-thumb-item:hover,
.pd-thumb-item.active {
    border-color: var(--primary-color, #4f46e5);
}

/* ── Info column ── */
.pd-info-col {
    padding: 24px;
}

.pd-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--body-text, #0f172a);
    line-height: 1.35;
    margin-bottom: 10px;
}

.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pd-stars { display: flex; gap: 2px; }

.pd-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: #ffc107;
}

.pd-review-link {
    font-size: 12px;
    color: var(--primary-color, #4f46e5);
    text-decoration: underline;
}

/* ── Price ── */
.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pd-price-now {
    font-size: 28px;
    font-weight: 900;
    color: var(--price-color, #4f46e5);
    letter-spacing: -0.5px;
}

.pd-price-old {
    font-size: 15px;
    color: #94a3b8;
}

.pd-save-tag {
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
}

/* ── Meta chips ── */
.pd-meta-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pd-chip {
    background: rgba(79,70,229,0.07);
    color: var(--body-text, #0f172a);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid var(--card-border, #e2e8f0);
}

.pd-divider {
    border-color: var(--card-border, #e2e8f0);
    margin: 14px 0;
}

/* ── Attribute selectors ── */
.pd-attr-group {
    margin-bottom: 14px;
}

.pd-attr-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pd-color-selector,
.pd-size-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Color circles */
.pd-radio-input { display: none; }

.pd-color-label {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, transform 0.15s;
}

.pd-radio-input:checked + .pd-color-label {
    border-color: var(--primary-color, #4f46e5);
    transform: scale(1.15);
}

.pd-check-icon {
    font-size: 14px;
    color: #fff;
    display: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.pd-radio-input:checked + .pd-color-label .pd-check-icon {
    display: block;
}

/* Size boxes */
.pd-size-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--body-text, #0f172a);
    transition: all 0.15s;
}

.pd-size-label:hover {
    border-color: var(--primary-color, #4f46e5);
    color: var(--primary-color, #4f46e5);
}

.pd-radio-input:checked + .pd-size-label {
    background: var(--primary-color, #4f46e5);
    color: #fff !important;
    border-color: var(--primary-color, #4f46e5);
}

/* ── Quantity ── */
.pd-qty-row {
    margin-bottom: 16px;
}

.pd-qty-box {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
}

.pd-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--card-bg, #f8fafc);
    color: var(--body-text, #0f172a);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-qty-btn:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff;
}

.pd-qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1.5px solid var(--card-border, #e2e8f0);
    border-right: 1.5px solid var(--card-border, #e2e8f0);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    background: var(--card-bg, #fff);
    color: var(--body-text, #0f172a);
    outline: none;
}

/* ── Action buttons ── */
.pd-action-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pd-btn-cart {
    flex: 1;
    background: transparent;
    color: var(--primary-color, #4f46e5);
    border: 2px solid var(--primary-color, #4f46e5);
    border-radius: 9999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.pd-btn-cart:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff;
}

.pd-btn-order {
    flex: 1;
    background: var(--btn-bg, #4f46e5);
    color: #fff !important;
    border: none;
    border-radius: 9999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.pd-btn-order:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Call button ── */
.pd-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff !important;
    border-radius: 9999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    transition: filter 0.2s;
}

.pd-call-btn:hover {
    filter: brightness(1.1);
    color: #fff !important;
}

/* ── Shipping box ── */
.pd-shipping-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(79,70,229,0.06);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--body-text, #0f172a);
}

.pd-shipping-box > i {
    font-size: 18px;
    color: var(--primary-color, #4f46e5);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Tabs ── */
.pd-tabs-wrap {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.pd-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid var(--card-border, #e2e8f0);
    background: var(--body-bg, #f8fafc);
}

.pd-tabs li { margin: 0; }

.pd-tab {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.pd-tab:hover {
    color: var(--primary-color, #4f46e5);
}

.pd-tab.active {
    color: var(--primary-color, #4f46e5);
    border-bottom-color: var(--primary-color, #4f46e5);
    background: var(--card-bg, #fff);
}

.pd-tab-content-wrap {
    padding: 24px;
}

.pd-tab-pane { display: none; }
.pd-tab-pane.active { display: block; }

.pd-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--body-text, #0f172a);
}

.pd-description img { max-width: 100%; border-radius: 8px; margin: 10px 0; }

/* ── Reviews ── */
.pd-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--body-text, #0f172a);
    margin: 0;
}

.pd-write-review-btn {
    background: var(--primary-color, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s;
}

.pd-write-review-btn:hover { filter: brightness(1.1); }

.pd-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.pd-review-card {
    background: var(--body-bg, #f8fafc);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 10px;
    padding: 14px;
}

.pd-reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pd-reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

.pd-reviewer-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--body-text, #0f172a);
}

.pd-review-date {
    font-size: 11px;
    color: #94a3b8;
}

.pd-review-stars { margin-bottom: 6px; }

.pd-review-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.pd-review-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    color: #94a3b8;
    gap: 10px;
}

.pd-review-empty-icon { font-size: 48px; }

/* ── Review Modal ── */
.pd-modal-content {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
}

.pd-modal-header {
    background: var(--primary-color, #4f46e5);
    color: #fff;
    border: none;
    padding: 14px 20px;
}

.pd-modal-header .btn-close { filter: invert(1); }

/* Star rating input */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rating input { display: none; }

.rating label {
    font-size: 26px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.15s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: #ffc107;
}

/* ── Related ── */
.pd-related-wrap .section-card { border: none; padding: 0; }

/* ── Video ── */
.pd-video-wrap {
    border-radius: 10px;
    overflow: hidden;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    background: var(--footer-bg, #081621) !important;
    color: var(--footer-text, #8b9cb0) !important;
    margin-top: 0;
}

/* ── Feature bar ── */
.footer-features {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .footer-features-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}

.footer-feature-item:hover {
    background: rgba(255,255,255,0.08);
}

.footer-feature-item > i {
    font-size: 24px;
    color: var(--primary-color, #4f46e5);
    flex-shrink: 0;
}

.ff-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

.ff-sub {
    font-size: 11px;
    color: #64748b;
}

/* ── Main footer ── */
.footer-main {
    padding: 40px 0;
}

.footer-logo {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-hotline {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #4f46e5) !important;
    text-decoration: none;
    margin-bottom: 4px;
    transition: filter 0.2s;
}

.footer-hotline:hover { filter: brightness(1.2); }

.footer-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8 !important;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social-icon:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff !important;
    border-color: var(--primary-color, #4f46e5);
}

/* ── Link columns ── */
.footer-col-title {
    font-size: 13px;
    font-weight: 800;
    color: #f1f5f9 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color, #4f46e5);
    display: inline-block;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-list a {
    color: #64748b !important;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s, padding-left 0.15s;
}

.footer-link-list a i { font-size: 10px; color: var(--primary-color, #4f46e5); }

.footer-link-list a:hover {
    color: var(--primary-color, #4f46e5) !important;
    padding-left: 4px;
}

/* ── Category pills ── */
.footer-cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-cat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-cat-pill:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff !important;
    border-color: var(--primary-color, #4f46e5);
}

.footer-cat-img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Bottom bar ── */
.footer-bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 18px;
}

.footer-pay-label {
    font-size: 11px;
    color: #64748b;
}

/* ── Mobile Bottom Nav ── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--card-bg, #ffffff);
    border-top: 1px solid var(--card-border, #e2e8f0);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.mbn-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #94a3b8 !important;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 52px;
}

.mbn-item > i,
.mbn-icon-wrap > i {
    font-size: 20px;
    line-height: 1.2;
}

.mbn-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mbn-icon-wrap .mobilecart-qty {
    top: -5px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mbn-item.active,
.mbn-item:hover {
    color: var(--primary-color, #ef4a23) !important;
    background: color-mix(in srgb, var(--primary-color, #ef4a23) 10%, transparent);
}

/* Body padding for mobile nav */
@media (max-width: 991px) {
    body { padding-bottom: 62px; }
}

/* ── Scroll to top ── */
.scroll-top-btn {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1050;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #ef4a23);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.scroll-top-btn.visible {
    display: flex;
}

.scroll-top-btn:hover {
    background: var(--btn-bg, #ef4a23);
    filter: brightness(0.92);
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .scroll-top-btn { bottom: 24px; }
}

/* ── Select style for product cards with color/size options ── */
.btn-select-now {
    background: transparent !important;
    color: var(--primary-color, #4f46e5) !important;
    border: 1.5px solid var(--primary-color, #4f46e5) !important;
    box-shadow: none !important;
}

.btn-select-now:hover {
    background: var(--primary-color, #4f46e5) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   REFERENCE-STYLE PRODUCT CARD (AliExpress-inspired)
   .pc-ref — used inside owl-carousel sliders & cat-product-grid
   ========================================================================== */

/* Reset old .product-card margin inside pc-ref */
.product-card.pc-ref {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border, #e8ecf0);
    background: var(--card-bg, #ffffff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin: 0 3px;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.product-card.pc-ref:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--primary-color, #4f46e5);
}

/* ── Full-width clickable wrapper ── */
.pc-ref-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Image area ── */
.pc-ref-img {
    position: relative;
    width: 100%;
    padding-top: 100%;      /* 1:1 square */
    overflow: hidden;
    background: #f4f6f8;
}

.pc-ref-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card.pc-ref:hover .pc-ref-img img {
    transform: scale(1.07);
}

/* Discount badge — top-left like AliExpress */
.pc-ref-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--discount-badge-bg, #ef4a23);
    color: var(--discount-badge-text, #ffffff);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 2;
    line-height: 1.5;
}

/* Color/size indicator — top-right */
.pc-ref-opt-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 4px;
    display: flex;
    gap: 3px;
    align-items: center;
    z-index: 2;
}

/* ── Body ── */
.pc-ref-body {
    padding: 7px 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Product name — 2-line clamp */
.pc-ref-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--body-text, #1e293b);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

/* Feature/highlight tag */
.pc-ref-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color, #4f46e5);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-ref-tag i { font-size: 10px; }

/* Price row */
.pc-ref-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.pc-ref-price {
    font-size: 14px;
    font-weight: 900;
    color: var(--price-color, #ef4a23);
    letter-spacing: -0.3px;
}

.pc-ref-old {
    font-size: 11px;
    color: #b0bec5;
}

/* Stars + review count row */
.pc-ref-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.pc-ref-stars {
    display: flex;
    gap: 1px;
    font-size: 10px;
    color: #ffc107;
    line-height: 1;
}

.pc-ref-sold {
    font-size: 10px;
    color: #90a4ae;
    white-space: nowrap;
}

/* ── Dark mode adjustments ── */
[data-theme="dark"] .product-card.pc-ref {
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .pc-ref-img {
    background: #1e2a36;
}

[data-theme="dark"] .pc-ref-name {
    color: #e2e8f0;
}

[data-theme="dark"] .pc-ref-old {
    color: #546e7a;
}

/* ==========================================================================
   TABBED CATEGORY SECTION  (Reference style — AliExpress)
   ========================================================================== */

.cat-tab-section {
    overflow: visible;
}

/* ── Tab bar wrapper ── */
.cat-tab-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--card-border, #e8ecf0);
    background: var(--card-bg, #fff);
    position: relative;
    padding: 0 4px;
}

/* Arrow buttons */
.cat-tab-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--card-border, #e2e8f0);
    background: var(--card-bg, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--body-text, #374151);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.cat-tab-arrow:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff;
    border-color: var(--primary-color, #4f46e5);
}

/* Scrollable tab strip */
.cat-tab-scroll {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cat-tab-scroll::-webkit-scrollbar { display: none; }

/* Tab list */
.cat-tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    white-space: nowrap;
}

.cat-tab-list li { flex-shrink: 0; }

/* Individual tab button */
.cat-tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-tab-btn:hover {
    color: var(--primary-color, #4f46e5);
}

.cat-tab-btn.active {
    color: var(--primary-color, #4f46e5);
    border-bottom-color: var(--primary-color, #4f46e5);
}

/* Category icon/image in tab */
.cat-tab-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--card-border, #e2e8f0);
    flex-shrink: 0;
}

.cat-tab-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(79,70,229,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--primary-color, #4f46e5);
    flex-shrink: 0;
}

/* ── Product panels ── */
.cat-tab-panels {
    padding: 12px 0 4px;
}

.cat-tab-panel {
    display: none;
}

.cat-tab-panel.active {
    display: block;
    animation: fadeInPanel 0.25s ease;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cat-panel-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0 2px;
}

/* Product grid inside panel */
.cat-panel-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 1200px) {
    .cat-panel-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
    .cat-panel-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .cat-panel-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-tab-btn { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 400px) {
    .cat-panel-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   PROMO BANNER STRIP + WHY BUY TRUST SECTION
   ========================================================================== */

/* ── Promo banner strip ── */
.promo-banner-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.promo-banner-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    aspect-ratio: 16/6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.promo-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.promo-banner-item:hover img {
    transform: scale(1.04);
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.promo-banner-item:hover .promo-banner-overlay {
    opacity: 1;
}

.promo-banner-cta {
    background: #fff;
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Why Buy Section ── */
.why-buy-section {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 14px;
    padding: 28px 24px;
    overflow: hidden;
}

.why-buy-header {
    text-align: center;
    margin-bottom: 24px;
}

.why-buy-icon-main {
    font-size: 36px;
    color: var(--primary-color, #4f46e5);
    display: block;
    margin-bottom: 8px;
}

.why-buy-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--body-text, #0f172a);
    margin-bottom: 4px;
}

.why-buy-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.why-buy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .why-buy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .why-buy-grid { grid-template-columns: 1fr; }
}

.why-buy-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--card-border, #e2e8f0);
    background: var(--body-bg, #f8fafc);
    transition: all 0.25s ease;
}

.why-buy-card:hover {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 4px 16px rgba(79,70,229,0.1);
    transform: translateY(-2px);
}

.why-buy-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--wc, #4f46e5) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--wc, #4f46e5);
}

.why-buy-text h5 {
    font-size: 13px;
    font-weight: 800;
    color: var(--body-text, #0f172a);
    margin: 0 0 4px;
}

.why-buy-text p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Dark mode */
[data-theme="dark"] .why-buy-card {
    background: rgba(255,255,255,0.03);
}

/* ==========================================================================
   NEW ARRIVALS — Infinite Scroll Grid
   ========================================================================== */

/* Count badge next to title */
.na-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #4f46e5);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Product grid */
.na-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

@media (max-width: 1200px) { .na-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .na-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .na-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px)  { .na-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card entrance animation */
.na-card {
    animation: naFadeIn 0.35s ease both;
}

@keyframes naFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Staggered delay for batches */
.na-card:nth-child(6n+1)  { animation-delay: 0.00s; }
.na-card:nth-child(6n+2)  { animation-delay: 0.04s; }
.na-card:nth-child(6n+3)  { animation-delay: 0.08s; }
.na-card:nth-child(6n+4)  { animation-delay: 0.12s; }
.na-card:nth-child(6n+5)  { animation-delay: 0.16s; }
.na-card:nth-child(6n+6)  { animation-delay: 0.20s; }

/* ── Skeleton loader ── */
.na-skeleton-wrap { padding: 4px 0 8px; }

.na-skeleton {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border, #e8ecf0);
    background: var(--card-bg, #fff);
}

.na-sk-img {
    width: 100%;
    padding-top: 100%;
    background: var(--body-bg, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.na-sk-img::after,
.na-sk-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.55) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: skShimmer 1.4s infinite ease-in-out;
}

.na-sk-line {
    margin: 7px 8px 4px;
    border-radius: 4px;
    background: var(--body-bg, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.na-sk-lg { height: 11px; width: 90%; }
.na-sk-sm { height: 9px;  width: 55%; margin-bottom: 7px; }
.na-sk-md { height: 10px; width: 40%; margin-bottom: 10px; }

@keyframes skShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* Dark mode skeleton */
[data-theme="dark"] .na-sk-img,
[data-theme="dark"] .na-sk-line {
    background: rgba(255,255,255,0.06);
}

/* ── End message ── */
.na-end-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    border-top: 1px dashed var(--card-border, #e2e8f0);
    margin-top: 12px;
    animation: naFadeIn 0.4s ease;
}

.na-end-msg i { font-size: 16px; }

/* ==========================================================================
   HOT DEALS PAGE
   ========================================================================== */

/* ── Hero banner ── */
.hd-hero {
    background: linear-gradient(135deg, #1a0533 0%, #4f1b7a 40%, #c0392b 100%);
    padding: 28px 0 24px;
    position: relative;
    overflow: hidden;
}

.hd-hero::before {
    content: '🔥';
    position: absolute;
    font-size: 160px;
    right: -10px;
    top: -20px;
    opacity: 0.08;
    line-height: 1;
}

.hd-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hd-hero-text { flex: 1; }

.hd-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hd-hero-text h1 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.1;
}

.hd-hero-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Timer */
.hd-hero-timer-wrap { text-align: center; }

.hd-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hd-hero-timer-wrap .offer_timer {
    display: flex;
    gap: 6px;
}

.hd-hero-timer-wrap .syotimer-cell {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    color: #fff;
    min-width: 52px;
}

.hd-hero-timer-wrap .syotimer-cell__value {
    font-size: 22px;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.hd-hero-timer-wrap .syotimer-cell__unit {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 2px;
    display: block;
}

/* ── Sidebar ── */
.hd-sidebar { display: flex; flex-direction: column; gap: 14px; }

.hd-sidebar-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
}

.hd-sidebar-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--body-text, #0f172a);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hd-sidebar-title i { color: var(--primary-color, #4f46e5); }

.hd-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #4f46e5);
}

.hd-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--primary-color, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hd-filter-btn:hover { opacity: 0.88; color: #fff; }

/* Stats card */
.hd-stats-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hd-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hd-stat-item > i {
    font-size: 22px;
    flex-shrink: 0;
}

.hd-stat-item > div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hd-stat-val {
    font-size: 15px;
    font-weight: 900;
    color: var(--body-text, #0f172a);
}

.hd-stat-lbl {
    font-size: 11px;
    color: #64748b;
}

/* ── Top bar ── */
.hd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 10px;
    margin-bottom: 14px;
}

.hd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.hd-breadcrumb a {
    color: var(--primary-color, #4f46e5);
    font-weight: 600;
    text-decoration: none;
}

.hd-breadcrumb i { font-size: 11px; color: #94a3b8; }
.hd-breadcrumb span { font-weight: 700; color: var(--body-text, #0f172a); }

.hd-result-count {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.hd-sort-select {
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--body-text, #374151);
    background: var(--card-bg, #fff);
    cursor: pointer;
    outline: none;
}

/* ── Product Grid ── */
.hd-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 1200px) { .hd-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .hd-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .hd-product-grid { grid-template-columns: repeat(2, 1fr); } }

/* 🔥 hot badge on each card */
.hd-hot-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: #ff4747;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
    animation: hdPulse 2s infinite;
}

@keyframes hdPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,71,71,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(255,71,71,0); }
}

/* ── Pagination ── */
.hd-pagination .pagination { justify-content: center; flex-wrap: wrap; gap: 4px; }
.hd-pagination .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid var(--card-border, #e2e8f0);
    color: var(--body-text, #374151);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    background: var(--card-bg, #fff);
    margin: 0;
}
.hd-pagination .page-item.active .page-link {
    background: var(--primary-color, #4f46e5);
    border-color: var(--primary-color, #4f46e5);
    color: #fff;
}

/* ── Empty state ── */
.hd-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.hd-empty i { font-size: 56px; display: block; margin-bottom: 12px; }
.hd-empty h4 { font-size: 18px; font-weight: 800; color: var(--body-text,#0f172a); margin-bottom: 8px; }
.hd-empty p  { font-size: 13px; margin-bottom: 16px; }

/* Dark mode */
[data-theme="dark"] .hd-sort-select { background: var(--header-bg,#1e2a36); color: #e2e8f0; }
[data-theme="dark"] .hd-hero { background: linear-gradient(135deg,#0f0020 0%,#2d0f50 40%,#7b1010 100%); }

/* ── Hot Deals Timer: force horizontal layout ── */
#hd_timer,
#hd_timer .syotimer,
#hd_timer .syotimer__body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

#hd_timer .syotimer-cell {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 48px;
    color: #fff;
}

#hd_timer .syotimer-cell__value {
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: block !important;
}

#hd_timer .syotimer-cell__unit {
    font-size: 9px !important;
    text-transform: uppercase !important;
    opacity: 0.7 !important;
    margin-top: 3px !important;
    display: block !important;
}

/* ── Hot Deals Price Filter sidebar ── */
#hd_price_slider {
    margin: 10px 4px 14px;
}

/* ==========================================================================
   AUTH PAGES — Login & Register (Split Panel)
   ========================================================================== */

/* ── Full-page split layout ── */
.auth-page-wrap {
    display: flex;
    min-height: calc(100vh - 140px);
    background: var(--body-bg, #f8fafc);
}

/* ── Centered layout (Single Column) ── */
.auth-page-wrap.auth-page-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 16px;
    min-height: calc(100vh - 160px);
}

.auth-center-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card-logo a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-card-logo a:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.auth-logo-img {
    max-height: 50px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.auth-logo-brand-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--body-text, #0f172a);
    display: inline-block;
}

.auth-form-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

@media (max-width: 575px) {
    .auth-page-wrap.auth-page-centered {
        padding: 30px 12px;
    }
    .auth-form-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
    .auth-site-title {
        font-size: 22px;
    }
}

/* Dark mode for centered auth */
[data-theme="dark"] .auth-form-card {
    background: #111e2e;
    border-color: #1e3247;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .auth-site-title {
    color: #ffffff;
}

/* ── Left decorative panel ── */
.auth-left-panel {
    flex: 0 0 42%;
    background: linear-gradient(145deg, #1e1b4b 0%, #4f46e5 50%, #7c3aed 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px;
    right: -80px;
}

.auth-left-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -60px;
    left: -40px;
}

/* Brand */
.auth-brand { margin-bottom: 28px; }

.auth-logo {
    height: 44px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.auth-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Panel content */
.auth-panel-content { flex: 1; }

.auth-panel-content h2 {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-panel-content > p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Features list */
.auth-features { display: flex; flex-direction: column; gap: 14px; }

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
}

.auth-feature-item i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Illustration emoji */
.auth-panel-illustration {
    font-size: 72px;
    text-align: right;
    line-height: 1;
    opacity: 0.25;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ── Right form panel ── */
.auth-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
}

/* Form header */
.auth-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-form-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}

.auth-form-header h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--body-text, #0f172a);
    margin-bottom: 4px;
}

.auth-form-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Form fields */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--body-text, #374151);
    margin-bottom: 5px;
}

.auth-optional-tag {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 4px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--card-border, #e2e8f0);
    border-radius: 10px;
    background: var(--card-bg, #fff);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap:focus-within {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.auth-input-prefix {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: var(--body-bg, #f8fafc);
    border-right: 1.5px solid var(--card-border, #e2e8f0);
    height: 42px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.auth-input {
    flex: 1;
    height: 42px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px;
    font-size: 13px;
    color: var(--body-text, #0f172a);
}

.auth-input::placeholder { color: #94a3b8; }

.auth-input::-webkit-outer-spin-button,
.auth-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.auth-eye-btn {
    background: none;
    border: none;
    padding: 0 12px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    height: 42px;
    transition: color 0.2s;
}

.auth-eye-btn:hover { color: var(--primary-color, #4f46e5); }

.auth-field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
}

/* Forgot password row */
.auth-forgot-row {
    text-align: right;
    margin-top: -6px;
}

.auth-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #4f46e5);
    text-decoration: none;
}

.auth-forgot-link:hover { text-decoration: underline; }

/* Submit button */
.auth-submit-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(79,70,229,0.35);
    margin-top: 4px;
}

.auth-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-submit-btn:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border, #e2e8f0);
}

/* Switch panel (login/register toggle) */
.auth-switch {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-switch p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.auth-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid var(--primary-color, #4f46e5);
    color: var(--primary-color, #4f46e5);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-switch-btn:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff;
}

/* Back home link */
.auth-back-home {
    text-align: center;
    margin-top: 16px;
}

.auth-back-home a {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-back-home a:hover { color: var(--primary-color, #4f46e5); }

/* Terms */
.auth-terms { margin-top: -4px; }

.auth-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    line-height: 1.5;
}

.auth-check-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary-color, #4f46e5);
    flex-shrink: 0;
}

.auth-terms-link {
    color: var(--primary-color, #4f46e5);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .auth-page-wrap { flex-direction: column; min-height: auto; }
    .auth-left-panel {
        flex: none;
        padding: 28px 24px 22px;
    }
    .auth-panel-content h2 { font-size: 20px; }
    .auth-panel-illustration { display: none; }
    .auth-features { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .auth-feature-item { flex: calc(50% - 5px); }
    .auth-right-panel { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .auth-features { flex-direction: column; }
    .auth-feature-item { flex: none; }
}

/* Dark mode */
[data-theme="dark"] .auth-input-wrap { background: var(--card-bg,#1e2a36); }
[data-theme="dark"] .auth-input { color: #e2e8f0; }
[data-theme="dark"] .auth-input-prefix { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .auth-alert-error { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.3); }

/* ==========================================================================
   AUTH PAGES — Theme-Aware Color Classes & Forgot Password Extras
   ========================================================================== */

/* ── Left panel: use primary theme color ── */
.auth-left-panel {
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--primary-color, #4f46e5) 90%, #000 10%) 0%,
        var(--primary-color, #4f46e5) 50%,
        color-mix(in srgb, var(--primary-color, #4f46e5) 70%, #7c3aed 30%) 100%
    ) !important;
}

/* ── Icon wrap variants ── */
.auth-form-icon-wrap.auth-icon-primary {
    background: linear-gradient(135deg,
        var(--primary-color, #4f46e5),
        color-mix(in srgb, var(--primary-color, #4f46e5) 70%, #7c3aed 30%)
    );
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color, #4f46e5) 40%, transparent);
}

.auth-form-icon-wrap.auth-icon-success {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary-color, #4f46e5) 60%, #10b981 40%),
        var(--primary-color, #4f46e5)
    );
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color, #4f46e5) 35%, transparent);
}

.auth-form-icon-wrap.auth-icon-warning {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary-color, #4f46e5) 50%, #f59e0b 50%),
        var(--primary-color, #4f46e5)
    );
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color, #4f46e5) 30%, transparent);
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
    .auth-form-icon-wrap.auth-icon-primary,
    .auth-form-icon-wrap.auth-icon-success,
    .auth-form-icon-wrap.auth-icon-warning {
        background: linear-gradient(135deg, var(--primary-color, #4f46e5), #7c3aed);
        box-shadow: 0 8px 20px rgba(79,70,229,0.35);
    }
}

/* ── Submit button variants ── */
.auth-submit-btn {
    background: linear-gradient(135deg,
        var(--primary-color, #4f46e5),
        color-mix(in srgb, var(--primary-color, #4f46e5) 70%, #7c3aed 30%)
    );
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color, #4f46e5) 40%, transparent);
}

.auth-submit-btn.auth-btn-success {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary-color, #4f46e5) 65%, #10b981 35%),
        var(--primary-color, #4f46e5)
    );
}

.auth-submit-btn.auth-btn-warning {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary-color, #4f46e5) 55%, #f59e0b 45%),
        var(--primary-color, #4f46e5)
    );
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .auth-submit-btn,
    .auth-submit-btn.auth-btn-success,
    .auth-submit-btn.auth-btn-warning {
        background: linear-gradient(135deg, var(--primary-color, #4f46e5), #7c3aed) !important;
        box-shadow: 0 4px 14px rgba(79,70,229,0.35) !important;
    }
}

/* ── Auth switch button ── */
.auth-switch-btn {
    border-color: var(--primary-color, #4f46e5);
    color: var(--primary-color, #4f46e5);
}

.auth-switch-btn:hover {
    background: var(--primary-color, #4f46e5);
    color: #fff;
}

/* ── Auth focus ── */
.auth-input-wrap:focus-within {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #4f46e5) 15%, transparent);
}

/* ── Steps indicator (forgot password) ── */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 18px 0 22px;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.auth-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--card-border, #e2e8f0);
    background: var(--card-bg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    transition: all 0.25s;
}

.auth-step.active .auth-step-dot {
    background: var(--primary-color, #4f46e5);
    border-color: var(--primary-color, #4f46e5);
    color: #fff;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--primary-color, #4f46e5) 40%, transparent);
}

.auth-step span {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.auth-step.active span {
    color: var(--primary-color, #4f46e5);
}

.auth-step-line {
    flex: 1;
    height: 2px;
    background: var(--card-border, #e2e8f0);
    min-width: 40px;
    margin: 0 4px;
    margin-bottom: 16px;
}

/* ── Success alert ── */
.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ── Forgot link: use theme color ── */
.auth-forgot-link {
    color: var(--primary-color, #4f46e5);
}

/* ── Terms link ── */
.auth-terms-link {
    color: var(--primary-color, #4f46e5);
}

/* ── Back home link hover ── */
.auth-back-home a:hover {
    color: var(--primary-color, #4f46e5);
}

/* ── Checkbox accent ── */
.auth-check-label input[type="checkbox"] {
    accent-color: var(--primary-color, #4f46e5);
}
