/* ============================================ */
/* ============ RESET & VARIABLES ============ */
/* ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #FF4D6D;
    --primary-dark: #E63950;
    --primary-light: #FFE5EA;
    --secondary: #6C5CE7;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E17055;
    --bg: #F8F9FC;
    --card: #FFF;
    --text: #1A1D29;
    --muted: #6C7293;
    --border: #E8EAF0;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(26, 29, 41, .06);
    --shadow-md: 0 8px 24px rgba(26, 29, 41, .08);
    --shadow-lg: 0 16px 48px rgba(26, 29, 41, .12);
}

html, body {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

*, *::before, *::after {
    min-width: 0;
}

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

.page-pad {
    padding: 32px 16px 60px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

/* ============================================ */
/* ============ TOP BAR & MAIN HEADER ============ */
/* ============================================ */
.top-bar {
    background: linear-gradient(90deg, #FF4D6D, #6C5CE7);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-inner {
    display: flex;
    justify-content: space-between;
}

.main-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
}

.logo-mark { font-size: 26px; }
.logo-text span { color: var(--primary); }

.search-bar {
    flex: 1;
    display: flex;
    max-width: 560px;
    background: var(--bg);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
}

.header-actions { display: flex; gap: 8px; }

.h-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-size: 12px;
    color: var(--muted);
    position: relative;
    transition: all .2s;
}

.h-action:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.h-action span { font-size: 20px; }

.cart-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.cat-nav {
    background: #fff;
    border-top: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    gap: 4px;
    padding: 6px 0;
    overflow-x: auto;
}

.nav-link {
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================ */
/* ============ HERO SECTION ============ */
/* ============================================ */
.hero-section { padding: 20px 0; }

.hero-banner {
    background: linear-gradient(120deg, #FF4D6D 0%, #6C5CE7 100%);
    border-radius: var(--r-xl);
    padding: 70px 50px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.badge-hot {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-content p {
    font-size: 17px;
    margin-bottom: 26px;
}

/* ============================================ */
/* ============ BUTTONS ============ */
/* ============================================ */
.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, #FF4D6D, #E63950);
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(255, 77, 109, .35);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 77, 109, .4);
}

.btn-primary.block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    transition: all .2s;
    font-family: inherit;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline.small {
    padding: 6px 16px;
    font-size: 12px;
}

/* ============================================ */
/* ============ SECTIONS ============ */
/* ============================================ */
.section { padding: 40px 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 26px;
    font-weight: 800;
}

.section-head a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.flash-section {
    background: linear-gradient(90deg, #FFF5F7 0%, #F3F0FF 100%);
    border-radius: var(--r-xl);
    margin: 20px 0;
    padding: 40px 0;
}

/* ============================================ */
/* ============ CATEGORY GRID ============ */
/* ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.cat-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 26px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    border: 1px solid var(--border);
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cat-icon {
    font-size: 34px;
    margin-bottom: 10px;
    width: 66px;
    height: 66px;
    margin: 0 auto 12px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card span {
    font-weight: 700;
    font-size: 14px;
}

/* ============================================ */
/* ============ PRODUCT CARD ============ */
/* ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pc-media {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f7;
}

.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, #FF3B30, #FF4D6D);
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.badge-concentration {
    position: absolute;
    top: 12px;
    right: 52px;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    z-index: 3;
}

.badge-gender {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, .95);
    color: #1A1D29;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, .06);
}

.wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    font-size: 16px;
    z-index: 3;
    border: none;
    cursor: pointer;
}

.pc-body { padding: 14px; }

.pc-name {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    color: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.pc-name:hover { color: var(--primary); }

.pc-short {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.pc-notes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #D63384;
    font-weight: 600;
    margin-bottom: 6px;
    font-style: italic;
    line-height: 1.3;
    min-height: 16px;
}

.pc-rating {
    font-size: 12px;
    color: #FFC107;
    margin-bottom: 8px;
}

.pc-rating span {
    color: var(--muted);
}

.pc-volume {
    display: inline-block;
    background: #FFF5F7;
    color: #FF4D6D;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 4px;
}

.pc-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pc-price .old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 13px;
}

.pc-price .now {
    font-weight: 800;
    font-size: 17px;
    color: var(--primary);
}

/* ✅ Product CTA — FIXED for text overflow */
.pc-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: 100% !important;
}

.btn-cart,
.btn-buy {
    padding: 9px 6px !important;
    border-radius: var(--r-sm);
    font-weight: 700 !important;
    font-size: 11.5px !important;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all .2s;
}

.btn-cart {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-cart:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-buy {
    background: linear-gradient(135deg, #FF4D6D, #E63950);
    color: #fff;
}

.btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 77, 109, .4);
}

/* ============================================ */
/* ============ FEATURES ============ */
/* ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature {
    background: #fff;
    padding: 26px;
    border-radius: var(--r-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.feature .fi {
    font-size: 32px;
    width: 66px;
    height: 66px;
    margin: 0 auto 12px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature h4 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ============================================ */
/* ============ FOOTER ============ */
/* ============================================ */
.site-footer {
    background: #1A1D29;
    color: #B5B9CC;
    padding: 50px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 15px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #B5B9CC;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ============================================ */
/* ============ FLASH MESSAGES ============ */
/* ============================================ */
.flash-msg {
    max-width: 1240px;
    margin: 12px auto 0;
    padding: 12px 20px;
    border-radius: var(--r-md);
    font-weight: 600;
}

.flash-msg.success {
    background: #DFF7E9;
    color: #0B8F47;
}

.flash-msg.error {
    background: #FFE5EA;
    color: #C0182D;
}

/* ============================================ */
/* ============ PRODUCT FILTERS ============ */
/* ============================================ */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
}

.page-title small {
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.sort-form select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    font-weight: 600;
    background: #fff;
}

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

.breadcrumb a { color: var(--primary); }

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    font-weight: 700;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
}

.pagination a:hover:not(.active) {
    background: var(--primary-light);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: var(--r-xl);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ============================================ */
/* ============ PRODUCT DETAIL ============ */
/* ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 32px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.pd-main-image {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #f5f5f7;
    aspect-ratio: 1/1;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.pd-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--r-sm);
    cursor: pointer;
    border: 2px solid transparent;
}

.pd-thumbs img:hover { border-color: var(--primary); }

.badge-sale.big {
    padding: 8px 16px;
    font-size: 15px;
}

.pd-info h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.pd-rating {
    color: #FFC107;
    margin-bottom: 14px;
}

.pd-rating span {
    color: var(--muted);
    font-size: 13px;
}

.pd-price {
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pd-price .old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 18px;
}

.pd-price .now {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.save-badge {
    background: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.pd-stock {
    font-size: 14px;
    margin-bottom: 14px;
}

.pd-stock.in {
    color: var(--success);
    font-weight: 700;
}

.pd-stock.out {
    color: var(--danger);
    font-weight: 700;
}

.pd-short {
    color: var(--muted);
    margin-bottom: 20px;
}

.pd-brand {
    margin: 12px 0;
    font-size: 14px;
}

.pd-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qty-stepper {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.qty-stepper button {
    padding: 8px 14px;
    background: var(--bg);
    font-size: 16px;
    font-weight: 700;
}

.qty-stepper input {
    width: 60px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 700;
}

.pd-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-cart-lg,
.btn-buy-lg {
    flex: 1;
    padding: 15px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 15px;
}

.btn-cart-lg {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-cart-lg:hover {
    background: var(--primary);
    color: #fff;
}

.btn-buy-lg {
    background: linear-gradient(90deg, var(--primary), #E63950);
    color: #fff;
}

.btn-wish-lg {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-weight: 600;
}

.pd-trust {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.pd-tabs {
    margin-top: 40px;
    background: #fff;
    border-radius: var(--r-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.tab-heads {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

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

.review-form {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-form input,
.review-form select,
.review-form textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
}

.review-item {
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--bg);
    margin-bottom: 12px;
}

.rv-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #FFC107;
}

/* ============================================ */
/* ============ CART ============ */
/* ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.cart-items {
    background: #fff;
    border-radius: var(--r-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--r-md);
}

.ci-info a {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.ci-price { color: var(--primary); font-weight: 700; }

.ci-qty input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.ci-total { font-weight: 700; }
.ci-remove { color: var(--danger); font-size: 18px; }

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cart-summary {
    background: #fff;
    padding: 24px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary h3 { font-size: 18px; margin-bottom: 16px; }

.sum-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.sum-row.discount { color: var(--success); }

.sum-row.total {
    font-size: 18px;
    font-weight: 800;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.coupon-box {
    display: flex;
    gap: 6px;
    margin: 16px 0;
}

.coupon-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    outline: none;
}

.coupon-box button {
    padding: 10px 18px;
    background: var(--secondary);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 700;
}

.link-danger {
    color: var(--danger);
    font-weight: 600;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

/* ============================================ */
/* ============ CHECKOUT ============ */
/* ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.checkout-block {
    background: #fff;
    padding: 24px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.checkout-block h3 {
    margin-bottom: 16px;
    font-size: 17px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid .full { grid-column: span 2; }

.form-grid input,
.form-grid select,
.checkout-block textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    font-size: 14px;
    width: 100%;
    font-family: inherit;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,77,109,.1);
}

.form-grid label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.pay-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 10px;
    cursor: pointer;
}

.pay-opt:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.saved-addr {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 10px;
    cursor: pointer;
}

.saved-addr:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.saved-addr input {
    flex-shrink: 0;
    margin-top: 4px;
}

/* ============================================ */
/* ============ SUCCESS ============ */
/* ============================================ */
.success-card {
    max-width: 560px;
    margin: 40px auto;
    background: #fff;
    padding: 50px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-card h1 {
    font-size: 26px;
    margin-bottom: 16px;
}

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

.success-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================ */
/* ============ TRACK ============ */
/* ============================================ */
.track-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin-bottom: 30px;
}

.track-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
}

.track-result {
    background: #fff;
    padding: 30px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.track-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    position: relative;
    padding-left: 20px;
}

.track-step {
    display: flex;
    gap: 14px;
    position: relative;
}

.track-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
    flex-shrink: 0;
}

.track-step::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: -20px;
    width: 2px;
    background: var(--border);
}

.track-step:last-child::before { display: none; }

/* ============================================ */
/* ============ STATUS BADGES ============ */
/* ============================================ */
.status-badge {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block;
}

.status-badge.pending { background: #FFF4D5; color: #A17600; }
.status-badge.processing { background: #E0ECFF; color: #0952C8; }
.status-badge.shipped { background: #E6F6FF; color: #0078A8; }
.status-badge.delivered { background: #DFF7E9; color: #0B8F47; }
.status-badge.cancelled { background: #FFE5EA; color: #C0182D; }
.status-badge.returned { background: #F3E5F5; color: #7B1FA2; }

/* ============================================ */
/* ============ DATA TABLE ============ */
/* ============================================ */
.data-table {
    width: 100%;
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: collapse;
    border: 1px solid var(--border);
}

.data-table thead { background: #F8F9FC; }

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 18px;
    border-top: 1px solid #F0F2F7;
    font-size: 14px;
    color: var(--text);
}

.data-table tbody tr:hover { background: #FBFCFE; }

.data-table a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ============================================ */
/* ============ AUTH ============ */
/* ============================================ */
.auth-card {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    padding: 36px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card input {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    font-family: inherit;
}

.auth-card input:focus { border-color: var(--primary); }

.auth-link {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
}

.err {
    background: #FFE5EA;
    color: #C0182D;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    margin-bottom: 12px;
    font-size: 14px;
}

/* ============================================ */
/* ============ ACCOUNT ============ */
/* ============================================ */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.account-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.account-sidebar h3 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-sidebar a,
.account-sidebar button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px;
    transition: all .2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.account-sidebar a:hover,
.account-sidebar button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.logout-form { margin-top: 8px; }

.account-main {
    background: #fff;
    padding: 26px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.account-main h2 { margin-bottom: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-grid.four { grid-template-columns: repeat(4, 1fr); }

.stat-card {
    background: linear-gradient(135deg, #FFF5F7, #F3F0FF);
    padding: 22px;
    border-radius: var(--r-lg);
    text-align: center;
}

.stat-card span { font-size: 28px; }
.stat-card h3 { font-size: 24px; margin: 8px 0 4px; }
.stat-card p { color: var(--muted); font-size: 13px; }

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.profile-form label { font-weight: 700; font-size: 14px; }

.profile-form input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    font-family: inherit;
}

.profile-form input:focus { border-color: var(--primary); }

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.address-card {
    background: var(--bg);
    padding: 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}

.address-card strong { display: block; margin-bottom: 8px; }
.address-card p { margin-bottom: 4px; font-size: 14px; }

.notif-list { display: flex; flex-direction: column; gap: 10px; }

.notif-item {
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--bg);
    border-left: 4px solid var(--border);
}

.notif-item.unread {
    border-left-color: var(--primary);
    background: var(--primary-light);
}

.notif-item strong { display: block; margin-bottom: 4px; }
.notif-item small { color: var(--muted); }

/* ============================================ */
/* ============ SAVED ADDRESSES (Checkout) ============ */
/* ============================================ */
.saved-addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.saved-addr-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    cursor: pointer;
    transition: all .25s;
    position: relative;
}

.saved-addr-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.saved-addr-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.saved-addr-head strong { color: var(--primary); font-size: 15px; }
.saved-addr-head span { font-size: 13px; color: var(--muted); font-weight: 600; }

.saved-addr-card small {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.btn-use-address {
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-use-address:hover { background: var(--primary-dark); }

/* ============================================ */
/* ============ ACTION LINKS ============ */
/* ============================================ */
.action-link {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    margin-bottom: 4px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.action-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================ */
/* ============ ADMIN PANEL ============ */
/* ============================================ */

.admin-body {
    background: #F4F6FA;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ✅ Force block layout — no grid conflict */
.admin-layout {
    display: block !important;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* ============ ADMIN SIDEBAR — FORCE FIX ============ */
.admin-sidebar,
.admin-sidebar * {
    box-sizing: border-box;
}

.admin-sidebar {
    background: linear-gradient(180deg, #1A1D29 0%, #232735 100%);
    color: #fff;
    padding: 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 260px !important;
    max-width: 260px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
                background .3s ease,
                color .3s ease;
    scrollbar-width: thin;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    column-count: 1 !important;
    gap: 0 !important;
}

.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 3px;
}
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }

/* NAV — SINGLE COLUMN FORCE */
.admin-sidebar .sidebar-nav,
.admin-sidebar nav {
    display: block !important;
    flex: 1 !important;
    padding: 8px 12px 20px !important;
    width: 100% !important;
    grid-template-columns: none !important;
    column-count: 1 !important;
    column-gap: 0 !important;
    gap: 0 !important;
}

.admin-sidebar .sidebar-link,
.admin-sidebar nav a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: all .2s cubic-bezier(.4, 0, .2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    grid-column: auto !important;
    column-span: none !important;
    float: none !important;
    clear: both !important;
    break-inside: avoid !important;
    color: rgba(232, 234, 240, .75) !important;
    background: transparent !important;
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar nav a:hover {
    background: rgba(255, 77, 109, .12) !important;
    color: #fff !important;
    transform: translateX(3px) !important;
}

.admin-sidebar .sidebar-link.active,
.admin-sidebar nav a.active {
    background: linear-gradient(135deg, #FF4D6D, #E63950) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(255, 77, 109, .35) !important;
    transform: translateX(0) !important;
}

.admin-sidebar .sidebar-section-title {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 16px 12px 8px !important;
    margin-top: 4px !important;
    width: 100% !important;
    color: rgba(232, 234, 240, .35) !important;
    grid-column: auto !important;
    column-span: all !important;
    break-inside: avoid !important;
    clear: both !important;
}

.admin-sidebar .sidebar-divider {
    display: block !important;
    height: 1px !important;
    margin: 14px 12px !important;
    border-radius: 1px !important;
    width: calc(100% - 24px) !important;
    background: rgba(255, 255, 255, .08) !important;
    break-inside: avoid !important;
}

.admin-sidebar .sidebar-badge {
    background: #FF4D6D !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    min-width: 20px !important;
    text-align: center !important;
    box-shadow: 0 2px 6px rgba(255,77,109,.4) !important;
    margin-left: auto !important;
}

.admin-sidebar .logout-link,
.admin-sidebar .sidebar-logout button {
    color: #E17055 !important;
}

.admin-sidebar .logout-link:hover,
.admin-sidebar .sidebar-logout button:hover {
    background: rgba(225, 112, 85, .15) !important;
    color: #C0182D !important;
}

.admin-sidebar .sidebar-header {
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 80px !important;
    border-bottom: 1px solid rgba(128, 128, 128, .1) !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.admin-sidebar .sidebar-logo {
    max-height: 42px !important;
    max-width: 180px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)) !important;
}

.admin-sidebar .sidebar-close {
    display: none !important;
    background: rgba(255, 255, 255, .1) !important;
    border: none !important;
    color: inherit !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

.admin-sidebar .theme-toggle-wrap {
    padding: 12px 16px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.admin-sidebar .theme-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border: 1.5px solid transparent !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, .06) !important;
    color: rgba(232, 234, 240, .85) !important;
}

.admin-sidebar .theme-toggle-btn:hover {
    background: rgba(255, 200, 100, .15) !important;
    color: #FFC107 !important;
    transform: translateY(-1px) !important;
}

.admin-sidebar .sidebar-footer {
    padding: 14px 20px !important;
    font-size: 11px !important;
    text-align: center !important;
    border-top: 1px solid rgba(128, 128, 128, .08) !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: rgba(232, 234, 240, .3) !important;
}

/* LIGHT THEME */
.admin-sidebar[data-theme="light"] {
    background: #FFFFFF !important;
    color: #1A1D29 !important;
    border-right: 1px solid #E8EAF0 !important;
    box-shadow: 4px 0 24px rgba(26, 29, 41, .05) !important;
}

.admin-sidebar[data-theme="light"] .sidebar-link,
.admin-sidebar[data-theme="light"] nav a {
    color: #6C7293 !important;
}

.admin-sidebar[data-theme="light"] .sidebar-link:hover,
.admin-sidebar[data-theme="light"] nav a:hover {
    background: #FFF5F7 !important;
    color: #FF4D6D !important;
}

.admin-sidebar[data-theme="light"] .sidebar-link.active,
.admin-sidebar[data-theme="light"] nav a.active {
    background: linear-gradient(135deg, #FF4D6D, #E63950) !important;
    color: #fff !important;
}

.admin-sidebar[data-theme="light"] .sidebar-section-title {
    color: #A0A4B0 !important;
}

.admin-sidebar[data-theme="light"] .sidebar-divider {
    background: #E8EAF0 !important;
}

.admin-sidebar[data-theme="light"] .theme-toggle-btn {
    background: #FFF5F7 !important;
    color: #FF4D6D !important;
    border-color: #FFE5EA !important;
}

.admin-sidebar[data-theme="light"] .theme-toggle-btn:hover {
    background: #FF4D6D !important;
    color: #fff !important;
}

.admin-sidebar[data-theme="light"] .sidebar-footer {
    color: #A0A4B0 !important;
}

/* ============ ADMIN MAIN ============ */
.admin-main {
    margin-left: 260px !important;
    padding: 28px 32px 60px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: margin-left .3s cubic-bezier(.4, 0, .2, 1);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E8EAF0;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-topbar h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1A1D29;
    margin: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6C7293;
}

.admin-topbar-right .btn-outline.small {
    padding: 8px 16px;
    border: 2px solid #FF4D6D;
    color: #FF4D6D;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}

.admin-topbar-right .btn-outline.small:hover {
    background: #FF4D6D;
    color: #fff;
}

/* ============ HAMBURGER BUTTON ============ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1A1D29;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-btn:hover span { background: #FF4D6D; }

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============ SIDEBAR OVERLAY ============ */
.sidebar-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .5) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 9998 !important;
    opacity: 0;
    transition: opacity .3s;
}

.sidebar-overlay.show {
    display: block !important;
    opacity: 1 !important;
}

/* ============ ADMIN STATS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid.four { grid-template-columns: repeat(4, 1fr); }

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(26, 29, 41, .05);
    border: 1px solid #EEF0F5;
    transition: all .25s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 29, 41, .08);
}

.stat-card span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.stat-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1A1D29;
    margin: 0 0 4px;
}

.stat-card p {
    color: #6C7293;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* ============ ADMIN SECTION TITLE ============ */
.admin-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1D29;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E8EAF0;
}

/* ============ ADMIN FORM ============ */
.admin-form {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(26, 29, 41, .05);
    border: 1px solid #EEF0F5;
    max-width: 100%;
}

.admin-form h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1A1D29;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E8EAF0;
}

.admin-form h3:first-child { margin-top: 0; }

.admin-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1A1D29;
    margin-bottom: 6px;
    margin-top: 14px;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="url"],
.admin-form input[type="datetime-local"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8EAF0;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all .2s;
    box-sizing: border-box;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #FF4D6D;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, .1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form .check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-weight: 600;
    cursor: pointer;
}

.admin-form .check-label input {
    width: auto;
    margin: 0;
}

/* ============ ADMIN ACTIONS ROW ============ */
.admin-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    flex: 1;
    min-width: 180px;
    padding: 11px 16px;
    border: 1px solid #E8EAF0;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
}

.inline-form input:focus { border-color: #FF4D6D; }

/* ============ FILTER TABS ============ */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    background: #fff;
    color: #6C7293;
    text-decoration: none;
    border: 1px solid #E8EAF0;
    transition: all .2s;
}

.filter-tabs a:hover {
    border-color: #FF4D6D;
    color: #FF4D6D;
}

.filter-tabs a.active {
    background: linear-gradient(90deg, #FF4D6D, #E63950);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 77, 109, .3);
}

/* ============ BULK ACTIONS BAR ============ */
.bulk-actions-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(26, 29, 41, .04);
    flex-wrap: wrap;
}

.bulk-actions-bar label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.bulk-actions-bar select {
    padding: 9px 14px;
    border: 1px solid #E8EAF0;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
}

.bulk-actions-bar button {
    padding: 9px 20px;
    background: #FF4D6D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* ============ STATUS UPDATE FORM ============ */
.status-update-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-update-form .form-grid { margin-bottom: 0; }

.status-update-form button,
.status-update-form .btn-outline {
    align-self: flex-start;
}

/* ============ ADMIN TWO COLUMN ============ */
.admin-two-col {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.admin-form-col .admin-form { position: sticky; top: 20px; }
.admin-list-col { overflow-x: auto; }

/* ============ ORDER HEADER ============ */
.order-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.total-line {
    font-size: 18px;
    color: var(--primary);
}

/* ============ ADMIN LOGIN ============ */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF4D6D 0%, #6C5CE7 100%);
    padding: 20px;
}

.admin-login-body .auth-card {
    max-width: 420px;
    width: 100%;
    margin: 0;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.admin-login-body .auth-card h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1A1D29;
}

.admin-login-body .auth-card input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #E8EAF0;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: inherit;
}

.admin-login-body .auth-card input:focus { border-color: #FF4D6D; }

/* ============================================ */
/* ============ RESPONSIVE ============ */
/* ============================================ */

/* Desktop — sidebar always visible */
@media (min-width: 901px) {
    .admin-sidebar {
        transform: translateX(0) !important;
    }
    .admin-sidebar .sidebar-close {
        display: none !important;
    }
    .admin-main {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
    }
}

/* Tablet — 900px and below */
@media (max-width: 900px) {
    /* ✅ CRITICAL: Sidebar hidden by default */
    .admin-sidebar {
        transform: translateX(-100%) !important;
        width: 280px !important;
        max-width: 85vw !important;
        min-width: 260px !important;
        box-shadow: 4px 0 30px rgba(0,0,0,.3) !important;
    }

    /* When opened */
    .admin-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Close button visible */
    .admin-sidebar .sidebar-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Main content — full width, no margin */
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px 16px 60px !important;
    }

    /* Topbar — hamburger visible */
    .admin-topbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .hamburger-btn {
        display: flex !important;
    }

    .admin-topbar h1 {
        font-size: 18px !important;
        margin: 0 !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .admin-topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    .admin-topbar-right .btn-outline.small {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Forms single column */
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-grid .full {
        grid-column: auto !important;
    }

    /* Tables — horizontal scroll */
    .data-table {
        font-size: 12px !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Stats grid — 2 columns */
    .stats-grid,
    .stats-grid.four {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 16px 10px !important;
    }

    .stat-card span { font-size: 24px !important; }
    .stat-card h3 { font-size: 18px !important; }
    .stat-card p { font-size: 11px !important; }

    /* Two column layouts stack */
    .order-two-col,
    .admin-two-col,
    .account-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr !important;
    }

    .account-sidebar { position: static !important; }
    .cart-summary { position: static !important; }

    /* Product detail */
    .product-detail {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 20px !important;
    }

    /* Filter tabs scroll */
    .filter-tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar { display: none; }

    .filter-tabs a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

/* Mobile — 640px and below */
@media (max-width: 640px) {
    .container {
        padding: 0 12px !important;
    }

    .page-pad {
        padding: 16px 12px 100px !important;
    }

    .hero-content h1 { font-size: 26px; }
    .hero-banner { padding: 40px 24px; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .page-title { font-size: 20px !important; }

    .section-head h2 { font-size: 20px !important; }

    .page-header-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .cart-item {
        grid-template-columns: 60px 1fr !important;
    }

    .cart-item .ci-qty,
    .cart-item .ci-total,
    .cart-item .ci-remove {
        grid-column: 2 !important;
    }

    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .saved-addresses-list {
        grid-template-columns: 1fr !important;
    }

    /* Admin name hide on very small screens */
    .admin-topbar-right span:last-child {
        display: none !important;
    }

    .search-bar {
        order: 3;
        flex: 1 0 100%;
    }
}

/* Very small — 400px and below */
@media (max-width: 400px) {
    .stats-grid,
    .stats-grid.four {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet-only — between 641px and 992px */
@media (max-width: 992px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .account-sidebar {
        position: static;
    }

    .stats-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

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

    .admin-form-col .admin-form {
        position: static;
    }
}

@media (max-width: 1200px) {
    .stats-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================ */
/* ============ BANGLA FONT ============ */
/* ============================================ */
html[lang="bn"] body,
html[lang="bn"] input,
html[lang="bn"] button,
html[lang="bn"] select,
html[lang="bn"] textarea,
html[lang="bn"] .btn-primary,
html[lang="bn"] .btn-outline {
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', Arial, sans-serif;
}
/* =========================================================
   📱 MOBILE ACCOUNT SIDEBAR — Horizontal Chips (Option A)
   ========================================================= */
@media (max-width: 768px) {

    /* Container — stack vertically */
    .account-container,
    .account-wrap,
    .account-layout {
        display: block !important;
    }

    /* Sidebar — horizontal scrollable chips */
    .account-sidebar {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        margin: 0 -16px 20px;
        border-bottom: 1px solid #F0F2F7;
        border-radius: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 50;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .account-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* Hide "My Account" heading */
    .account-sidebar h3,
    .account-sidebar .sidebar-heading,
    .account-sidebar .sidebar-title {
        display: none !important;
    }

    /* Chip container */
    .account-sidebar ul,
    .account-sidebar nav,
    .account-sidebar .sidebar-menu {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Individual chips */
    .account-sidebar a,
    .account-sidebar button,
    .account-sidebar li > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        margin: 0;
        background: #FFF5F7;
        border-radius: 20px;
        color: #1A1D29;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        text-decoration: none;
        border: 1px solid #F0F2F7;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    /* Chip icon spacing */
    .account-sidebar a i,
    .account-sidebar a svg,
    .account-sidebar a .icon {
        font-size: 14px;
        margin-right: 2px;
    }

    /* Active chip */
    .account-sidebar a.active,
    .account-sidebar a:hover,
    .account-sidebar button:hover {
        background: #FF4D6D;
        color: #fff;
        border-color: #FF4D6D;
        box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
    }

    /* Logout chip — special color */
    .account-sidebar a[href*="logout"],
    .account-sidebar .logout-link {
        background: #FFF0F0;
        color: #D63384;
        border-color: #F8D7DA;
    }

    .account-sidebar a[href*="logout"]:hover,
    .account-sidebar .logout-link:hover {
        background: #D63384;
        color: #fff;
    }

    /* Main content — full width */
    .account-main,
    .account-content {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

/* =========================================================
   📱 MOBILE ACCOUNT SIDEBAR — Horizontal Chips (Option A)
   ========================================================= */
@media (max-width: 768px) {

    /* Container — stack vertically */
    .account-layout {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Sidebar — horizontal sticky chips bar */
    .account-sidebar {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff;
        padding: 12px 12px 14px !important;
        margin: 0 -16px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #F0F2F7;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 50;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }

    .account-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* Hide user info card in sidebar on mobile */
    .account-sidebar .sidebar-user {
        display: none !important;
    }

    /* Chips — each link is a pill button */
    .account-sidebar > a,
    .account-sidebar > form > button,
    .account-sidebar .logout-form button {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 14px !important;
        margin: 0 !important;
        background: #FFF5F7 !important;
        border-radius: 20px !important;
        color: #1A1D29 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap;
        text-decoration: none !important;
        border: 1px solid #F0F2F7 !important;
        transition: all 0.2s ease;
        flex-shrink: 0;
        min-width: auto !important;
        width: auto !important;
    }

    /* Icon size */
    .account-sidebar > a > i,
    .account-sidebar > a > span {
        font-size: 14px;
    }

    /* Hover / Active */
    .account-sidebar > a:hover,
    .account-sidebar > a.active,
    .account-sidebar > form > button:hover {
        background: #FF4D6D !important;
        color: #fff !important;
        border-color: #FF4D6D !important;
        box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
        transform: translateY(-1px);
    }

    /* Logout — special styling */
    .account-sidebar .logout-form {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .account-sidebar .logout-form button {
        background: #FFF0F0 !important;
        color: #D63384 !important;
        border-color: #F8D7DA !important;
        cursor: pointer;
    }

    .account-sidebar .logout-form button:hover {
        background: #D63384 !important;
        color: #fff !important;
        border-color: #D63384 !important;
    }

    /* Main content — full width, no side padding issues */
    .account-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px 30px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .account-sidebar > a,
    .account-sidebar > form > button {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   📱 MOBILE ACCOUNT SIDEBAR — Horizontal Chips (Option A)
   ========================================================= */
@media (max-width: 768px) {

    .account-layout {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .account-sidebar {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff;
        padding: 12px 12px 14px !important;
        margin: 0 -16px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #F0F2F7;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 50;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }

    .account-sidebar::-webkit-scrollbar {
        display: none;
    }

    .account-sidebar .sidebar-user {
        display: none !important;
    }

    .account-sidebar > a,
    .account-sidebar > form > button,
    .account-sidebar .logout-form button {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 14px !important;
        margin: 0 !important;
        background: #FFF5F7 !important;
        border-radius: 20px !important;
        color: #1A1D29 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap;
        text-decoration: none !important;
        border: 1px solid #F0F2F7 !important;
        transition: all 0.2s ease;
        flex-shrink: 0;
        min-width: auto !important;
        width: auto !important;
    }

    .account-sidebar > a:hover,
    .account-sidebar > a.active,
    .account-sidebar > form > button:hover {
        background: #FF4D6D !important;
        color: #fff !important;
        border-color: #FF4D6D !important;
        box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
        transform: translateY(-1px);
    }

    .account-sidebar .logout-form {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .account-sidebar .logout-form button {
        background: #FFF0F0 !important;
        color: #D63384 !important;
        border-color: #F8D7DA !important;
        cursor: pointer;
    }

    .account-sidebar .logout-form button:hover {
        background: #D63384 !important;
        color: #fff !important;
        border-color: #D63384 !important;
    }

    .account-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px 30px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .account-sidebar > a,
    .account-sidebar > form > button {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
}

/* MOBILE ACCOUNT SIDEBAR — Horizontal Chips */
@media (max-width: 768px) {
    .account-layout {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .account-sidebar {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff;
        padding: 12px 12px 14px !important;
        margin: 0 -16px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #F0F2F7;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 50;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }
    .account-sidebar::-webkit-scrollbar { display: none; }
    .account-sidebar .sidebar-user { display: none !important; }
    .account-sidebar > a,
    .account-sidebar > form > button,
    .account-sidebar .logout-form button {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 14px !important;
        margin: 0 !important;
        background: #FFF5F7 !important;
        border-radius: 20px !important;
        color: #1A1D29 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap;
        text-decoration: none !important;
        border: 1px solid #F0F2F7 !important;
        transition: all 0.2s ease;
        flex-shrink: 0;
        min-width: auto !important;
        width: auto !important;
    }
    .account-sidebar > a:hover,
    .account-sidebar > a.active,
    .account-sidebar > form > button:hover {
        background: #FF4D6D !important;
        color: #fff !important;
        border-color: #FF4D6D !important;
        box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
        transform: translateY(-1px);
    }
    .account-sidebar .logout-form {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .account-sidebar .logout-form button {
        background: #FFF0F0 !important;
        color: #D63384 !important;
        border-color: #F8D7DA !important;
        cursor: pointer;
    }
    .account-sidebar .logout-form button:hover {
        background: #D63384 !important;
        color: #fff !important;
        border-color: #D63384 !important;
    }
    .account-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px 30px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}

/* =========================================================
   MOBILE ACCOUNT SIDEBAR — Horizontal Chips (Option A)
   ========================================================= */
@media (max-width: 768px) {
    .account-layout {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .account-sidebar {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff;
        padding: 12px 12px 14px !important;
        margin: 0 -16px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #F0F2F7;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 50;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }
    .account-sidebar::-webkit-scrollbar {
        display: none;
    }
    .account-sidebar .sidebar-user {
        display: none !important;
    }
    .account-sidebar > a,
    .account-sidebar > form > button,
    .account-sidebar .logout-form button {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 14px !important;
        margin: 0 !important;
        background: #FFF5F7 !important;
        border-radius: 20px !important;
        color: #1A1D29 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap;
        text-decoration: none !important;
        border: 1px solid #F0F2F7 !important;
        flex-shrink: 0;
        width: auto !important;
    }
    .account-sidebar > a:hover,
    .account-sidebar > a.active,
    .account-sidebar > form > button:hover {
        background: #FF4D6D !important;
        color: #fff !important;
        border-color: #FF4D6D !important;
        box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
    }
    .account-sidebar .logout-form {
        display: inline-block !important;
        margin: 0 !important;
    }
    .account-sidebar .logout-form button {
        background: #FFF0F0 !important;
        color: #D63384 !important;
        border-color: #F8D7DA !important;
    }
    .account-main {
        width: 100% !important;
        padding: 0 16px 30px !important;
        box-sizing: border-box;
    }
}

/* ═══════════════════════════════════════════════════════════
   🔧 CHIPS HORIZONTAL SCROLL FIX — swipe working
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    body .account-sidebar,
    body aside.account-sidebar {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        overscroll-behavior-x: contain !important;
        scroll-behavior: smooth !important;
        scrollbar-width: thin !important;
        scrollbar-color: #FF4D6D #FFF5F7 !important;
        padding-bottom: 8px !important;
        cursor: grab !important;
    }

    /* Show subtle scrollbar on mobile */
    body .account-sidebar::-webkit-scrollbar {
        display: block !important;
        height: 4px !important;
    }

    body .account-sidebar::-webkit-scrollbar-track {
        background: #FFF5F7 !important;
        border-radius: 4px !important;
    }

    body .account-sidebar::-webkit-scrollbar-thumb {
        background: #FF4D6D !important;
        border-radius: 4px !important;
    }

    /* Ensure parent doesn't clip */
    body .account-layout,
    body .account-main,
    body .account-container {
        overflow-x: visible !important;
    }

    /* Prevent chip text from being cut */
    body .account-sidebar > a,
    body .account-sidebar .logout-form button {
        scroll-snap-align: start !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBILE MENU DROPDOWN — Collapsible sub-menus
   ═══════════════════════════════════════════════════════════ */
.mob-nav-group {
    border-bottom: 1px solid #F5F6F9;
}

.mob-nav-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    color: #1A1D29;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all .15s;
}

.mob-nav-toggle:hover {
    background: #FFF5F7;
    color: #FF4D6D;
}

.mob-arrow {
    font-size: 14px;
    color: #A0A4B0;
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 10px;
}

.mob-nav-group.open .mob-arrow {
    transform: rotate(180deg);
    color: #FF4D6D;
}

.mob-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #F8F9FC;
    border-top: 1px solid #F0F2F7;
}

.mob-nav-group.open .mob-submenu {
    max-height: 800px;
}

.mob-submenu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 42px;
    color: #4B4B5C;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid #F5F6F9;
    transition: all .15s;
}

.mob-submenu a:last-child {
    border-bottom: none;
}

.mob-submenu a:hover {
    background: #FFF5F7;
    color: #FF4D6D;
    padding-left: 48px;
}

.mob-submenu .mmi {
    font-size: 16px;
    width: 22px;
}

/* ═══════════════════════════════════════════════════════════
   📱 NESTED SUB-MENU — Third-level dropdown
   ═══════════════════════════════════════════════════════════ */
.mob-nav-group-sub {
    border-bottom: 1px solid #EEF0F4;
}
.mob-nav-group-sub:last-child {
    border-bottom: none;
}

.mob-nav-toggle-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px 12px 42px;
    background: #F8F9FC;
    border: none;
    color: #4B4B5C;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all .15s;
}
.mob-nav-toggle-sub:hover {
    background: #FFF5F7;
    color: #FF4D6D;
}

.mob-arrow-sub {
    font-size: 12px;
    color: #A0A4B0;
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
}
.mob-nav-group-sub.open .mob-arrow-sub {
    transform: rotate(180deg);
    color: #FF4D6D;
}

.mob-submenu-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #F0F2F7;
}
.mob-nav-group-sub.open .mob-submenu-sub {
    max-height: 600px;
}

.mob-submenu-sub a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 60px;
    color: #4B4B5C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #E5E8EE;
    transition: all .15s;
}
.mob-submenu-sub a:last-child {
    border-bottom: none;
}
.mob-submenu-sub a:hover {
    background: #FFE5EA;
    color: #FF4D6D;
    padding-left: 66px;
}
.mob-submenu-sub .mmi {
    font-size: 14px;
    width: 20px;
}

/* ═══════════════════════════════════════════════════════════
   🖥️ DESKTOP CATEGORY DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.nav-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.nav-caret {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.6;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 999;
    border: 1px solid #F0F2F7;
    margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 8px;
    color: #1A1D29 !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
    background: transparent !important;
    border: none !important;
    min-width: auto !important;
}

.nav-dropdown-menu a:hover {
    background: #FFF5F7 !important;
    color: #FF4D6D !important;
}

.nav-dropdown-menu a span {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBILE HEADER — Search bar + icons layout fix
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .main-header .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

    .mobile-hamburger {
        flex: 0 0 auto;
        order: 1;
    }

    .logo {
        flex: 1 1 auto;
        order: 2;
        justify-content: flex-start;
    }

    .header-actions {
        flex: 0 0 auto;
        order: 3;
        gap: 0;
        margin-left: auto;
    }

    .h-action {
        min-width: 42px;
        padding: 6px 6px;
    }

    .h-action span {
        font-size: 20px;
    }

    /* Search bar full width on mobile */
    .search-bar {
        order: 4;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
        border-radius: 12px;
        display: flex;
        align-items: stretch;
    }

    .search-bar input {
        flex: 1 1 auto;
        min-width: 0;
        padding: 12px 14px;
        font-size: 14px;
    }

    .search-bar button {
        flex: 0 0 auto;
        padding: 0 18px;
        border-radius: 0 12px 12px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    /* Language switcher hidden on mobile (already) */
    .lang-switcher { display: none; }
}

/* Very small screens */
@media (max-width: 400px) {
    .h-action {
        min-width: 38px;
        padding: 5px 4px;
    }
    .h-action span { font-size: 18px; }
    .logo img { max-height: 32px; }
}

/* Desktop dropdown */
.nav-dropdown { position: relative; display: inline-block; flex-shrink: 0; }
.nav-caret { font-size: 10px; margin-left: 2px; opacity: 0.6; }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all .2s ease;
    z-index: 999; border: 1px solid #F0F2F7; margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
    display: flex !important; align-items: center; gap: 10px;
    padding: 10px 14px !important; border-radius: 8px;
    color: #1A1D29 !important; text-decoration: none;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: all .15s; background: transparent !important;
    border: none !important; min-width: auto !important;
}
.nav-dropdown-menu a:hover { background: #FFF5F7 !important; color: #FF4D6D !important; }
.nav-dropdown-menu a span { font-size: 16px; width: 20px; text-align: center; }

/* Mobile sub-sub menu */
.mob-nav-group-sub { border-bottom: 1px solid #EEF0F4; }
.mob-nav-group-sub:last-child { border-bottom: none; }
.mob-nav-toggle-sub {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 12px 20px 12px 42px;
    background: #F8F9FC; border: none; color: #4B4B5C;
    font-size: 13.5px; font-weight: 600; font-family: inherit;
    text-align: left; cursor: pointer; transition: all .15s;
}
.mob-nav-toggle-sub:hover { background: #FFF5F7; color: #FF4D6D; }
.mob-arrow-sub { font-size: 12px; color: #A0A4B0; transition: transform .25s; margin-left: auto; padding-left: 8px; }
.mob-nav-group-sub.open .mob-arrow-sub { transform: rotate(180deg); color: #FF4D6D; }
.mob-submenu-sub { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #F0F2F7; }
.mob-nav-group-sub.open .mob-submenu-sub { max-height: 600px; }
.mob-submenu-sub a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px 10px 60px; color: #4B4B5C;
    text-decoration: none; font-size: 13px; font-weight: 500;
    border-bottom: 1px solid #E5E8EE; transition: all .15s;
}
.mob-submenu-sub a:hover { background: #FFE5EA; color: #FF4D6D; padding-left: 66px; }
.mob-submenu-sub .mmi { font-size: 14px; width: 20px; }

/* Mobile header layout */
@media (max-width: 768px) {
    .main-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; }
    .mobile-hamburger { flex: 0 0 auto; order: 1; }
    .logo { flex: 1 1 auto; order: 2; justify-content: flex-start; }
    .header-actions { flex: 0 0 auto; order: 3; gap: 0; margin-left: auto; }
    .h-action { min-width: 42px; padding: 6px 6px; }
    .h-action span { font-size: 20px; }
    .search-bar { order: 4; flex: 0 0 100%; max-width: 100%; width: 100%; margin-top: 4px; border-radius: 12px; display: flex; align-items: stretch; }
    .search-bar input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; font-size: 14px; }
    .search-bar button { flex: 0 0 auto; padding: 0 18px; border-radius: 0 12px 12px 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
    .lang-switcher { display: none; }
}
@media (max-width: 400px) {
    .h-action { min-width: 38px; padding: 5px 4px; }
    .h-action span { font-size: 18px; }
    .logo img { max-height: 32px; }
}

/* Nested Sub-menu (Level 3) */
.mob-nav-group-sub { border-bottom: 1px solid #EEF0F4; }
.mob-nav-group-sub:last-child { border-bottom: none; }
.mob-nav-toggle-sub {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 12px 20px 12px 42px; background: #F8F9FC;
    border: none; color: #4B4B5C; font-size: 13.5px; font-weight: 600;
    font-family: inherit; text-align: left; cursor: pointer; transition: all .15s;
}
.mob-nav-toggle-sub:hover { background: #FFF5F7; color: #FF4D6D; }
.mob-arrow-sub {
    font-size: 12px; color: #A0A4B0; transition: transform .25s ease;
    margin-left: auto; padding-left: 8px;
}
.mob-nav-group-sub.open .mob-arrow-sub { transform: rotate(180deg); color: #FF4D6D; }
.mob-submenu-sub {
    max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #F0F2F7;
}
.mob-nav-group-sub.open .mob-submenu-sub { max-height: 600px; }
.mob-submenu-sub a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px 10px 60px; color: #4B4B5C; text-decoration: none;
    font-size: 13px; font-weight: 500; border-bottom: 1px solid #E5E8EE; transition: all .15s;
}
.mob-submenu-sub a:last-child { border-bottom: none; }
.mob-submenu-sub a:hover { background: #FFE5EA; color: #FF4D6D; padding-left: 66px; }
.mob-submenu-sub .mmi { font-size: 14px; width: 20px; }

/* ═══════════════════════════════════════════════════════════
   🖥️ DESKTOP DROPDOWN — Click state (.open class)
   ═══════════════════════════════════════════════════════════ */
.nav-dropdown.open > .nav-dropdown-menu,
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.nav-dropdown.open > .nav-link {
    background: #FFE5EA !important;
    color: #FF4D6D !important;
}

.cat-nav,
.cat-nav .nav-inner {
    overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBILE SEARCH BAR — Smaller & higher up
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Reduce gap in header */
    .main-header .header-inner {
        gap: 6px !important;
        padding: 8px 0 !important;
    }

    /* Search bar — smaller & tighter */
    .search-bar {
        order: 4 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 2px !important;
        margin-bottom: 4px !important;
        border-radius: 10px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    .search-bar input {
        padding: 10px 14px !important;
        font-size: 13.5px !important;
        height: 42px !important;
    }

    .search-bar button {
        padding: 0 16px !important;
        height: 42px !important;
        border-radius: 0 10px 10px 0 !important;
        font-size: 15px !important;
    }

    /* Reduce space below header */
    .header-inner {
        margin-bottom: 0 !important;
    }

    /* Tighten logo area */
    .logo img { max-height: 34px !important; }
    .logo-mark { font-size: 20px !important; }
}

/* Very small screens */
@media (max-width: 400px) {
    .search-bar {
        height: 38px !important;
        min-height: 38px !important;
    }
    .search-bar input {
        height: 38px !important;
        font-size: 13px !important;
    }
    .search-bar button {
        height: 38px !important;
        padding: 0 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBILE SEARCH BAR — Narrower width
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .search-bar {
        order: 4 !important;
        flex: 0 0 auto !important;              /* Don't stretch */
        max-width: 78% !important;              /* Limit width */
        width: 78% !important;
        margin-left: auto !important;           /* Center-ish */
        margin-right: auto !important;
        margin-top: 2px !important;
        margin-bottom: 6px !important;
        border-radius: 10px !important;
        height: 42px !important;
        min-height: 42px !important;
        display: flex !important;
    }

    .search-bar input {
        padding: 10px 14px !important;
        font-size: 13.5px !important;
        height: 42px !important;
        min-width: 0 !important;
    }

    .search-bar button {
        padding: 0 16px !important;
        height: 42px !important;
        border-radius: 0 10px 10px 0 !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
    }
}

/* Smaller screens */
@media (max-width: 400px) {
    .search-bar {
        max-width: 82% !important;
        width: 82% !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   🖥️ DESKTOP DROPDOWN — Caret button & Click-open state
   ═══════════════════════════════════════════════════════════ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Caret button — separate click target */
.nav-caret-btn {
    background: transparent;
    border: none;
    color: #A0A4B0;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 10px 8px 4px;
    margin: 0;
    line-height: 1;
    transition: all .2s;
    border-radius: 0 8px 8px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-caret-btn:hover {
    color: #FF4D6D;
    background: #FFE5EA;
}
.nav-dropdown.open .nav-caret-btn {
    transform: rotate(180deg);
    color: #FF4D6D;
}

/* Dropdown menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 9999;
    border: 1px solid #F0F2F7;
    margin-top: 6px;
    pointer-events: none;
}

/* Open via CSS hover OR via .open class (JS click) */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 8px;
    color: #1A1D29 !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
    background: transparent !important;
    border: none !important;
    min-width: auto !important;
}
.nav-dropdown-menu a:hover {
    background: #FFF5F7 !important;
    color: #FF4D6D !important;
}
.nav-dropdown-menu a span {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Ensure parent nav container doesn't clip dropdown */
.cat-nav,
.cat-nav .nav-inner {
    overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════
   🔧 FIX — Remove overflow on desktop cat-nav
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    .cat-nav,
    .cat-nav .nav-inner,
    .cat-nav .nav-inner .nav-dropdown {
        overflow: visible !important;
    }
    
    .cat-nav .nav-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 6px 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD STYLES (moved from partials/product-card.php)
   ═══════════════════════════════════════════════════════════ */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #F0F2F5;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 77, 109, .12);
  border-color: #FFE5EA;
}
.product-card .pc-media { position: relative; }
.product-card .badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #FF3B30, #FF4D6D);
  color: #fff; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 59, 48, .35);
  z-index: 3;
}
.product-card .badge-concentration {
  position: absolute; top: 10px; right: 52px;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff; padding: 4px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800;
  z-index: 3;
}
.product-card .badge-gender {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  color: #1A1D29; padding: 4px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  z-index: 3; max-width: 90%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .wish-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border: none; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: all .2s;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.product-card .wish-btn:hover {
  background: #FF4D6D;
  transform: scale(1.15);
}
.product-card .pc-notes {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #D63384; font-weight: 600;
  margin-bottom: 6px; font-style: italic;
  line-height: 1.3; min-height: 16px;
}
.product-card .pc-short {
  font-size: 12px; color: #6C7293;
  margin-bottom: 6px; line-height: 1.3; min-height: 16px;
}
.product-card .pc-volume {
  display: inline-block;
  background: #FFF5F7; color: #FF4D6D;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 8px; margin-top: 4px;
}
.product-card .pc-rating {
  font-size: 13px; color: #FFC107;
  margin-bottom: 6px; letter-spacing: 1px;
}
.product-card .pc-rating span {
  color: #6C7293; font-size: 12px; letter-spacing: 0;
}
.product-card .pc-cta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-top: 8px; width: 100%;
}
.product-card .btn-cart,
.product-card .btn-buy {
  padding: 9px 6px; border-radius: 8px;
  font-weight: 700; font-size: 11.5px;
  cursor: pointer; border: none; text-align: center;
  text-decoration: none; transition: all .2s;
  font-family: inherit; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  min-width: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; line-height: 1.2;
}
.product-card .btn-cart {
  background: #FFE5EA; color: #FF4D6D;
}
.product-card .btn-cart:hover {
  background: #FF4D6D; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,77,109,.25);
}
.product-card .btn-buy {
  background: linear-gradient(135deg, #FF4D6D, #E63950);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,77,109,.25);
}
.product-card .btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,77,109,.4);
}
.product-card .pc-name {
  font-size: 14px;
  font-weight: 700;
  color: #1A1D29;
  text-decoration: none;
  display: block;
  line-height: 1.35;
  margin-bottom: 4px;
}
.product-card .pc-name:hover { color: #FF4D6D; }
.product-card .pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.product-card .pc-price .old {
  font-size: 12px;
  color: #A0A4B0;
  text-decoration: line-through;
}
.product-card .pc-price .now {
  font-size: 18px;
  font-weight: 800;
  color: #FF4D6D;
}
.product-card .pc-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   📞 CALL DROPDOWN (Header)
   ═══════════════════════════════════════════════════════════ */
.h-action-dropdown {
    position: relative;
    display: inline-block;
}

.h-action-dropdown .h-action {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.h-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s ease;
    z-index: 9999;
    border: 1px solid #F0F2F7;
    pointer-events: none;
}

.h-action-dropdown.open .h-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.h-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #1A1D29 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all .15s;
}

.h-dropdown-item:hover {
    background: #FFF5F7;
    color: #FF4D6D !important;
}

.h-di-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .h-dropdown-menu {
        right: -10px;
        min-width: 200px;
    }
    .h-dropdown-item {
        font-size: 13px;
        padding: 10px 12px;
    }
    .h-di-icon {
        width: 28px;
        height: 28px;
    }
}

/* ═══════════════════════════════════════════════════════════
   📱 TOP BAR — Mobile responsive (show both)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .top-bar {
        font-size: 10.5px !important;
        padding: 5px 0 !important;
    }
    .top-bar .top-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0 8px !important;
    }
    .top-bar .top-inner span {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    .top-bar .top-inner span:last-child {
        display: inline-flex !important;   /* override previous rule */
        font-size: 10px !important;
    }
    .top-bar .top-inner span:first-child {
        font-size: 10px !important;
    }
}

@media (max-width: 400px) {
    .top-bar { font-size: 9.5px !important; padding: 4px 0 !important; }
    .top-bar .top-inner span:first-child { font-size: 9.5px !important; }
    .top-bar .top-inner span:last-child { font-size: 9px !important; }
}

/* ═══════════════════════════════════════════════════════════
   ⬆️ FOOTER TO TOP — NUCLEAR OVERRIDE (highest specificity)
   ═══════════════════════════════════════════════════════════ */
html body .footer-to-top-btn {
    position: fixed !important;
    bottom: 100px !important;
    right: 24px !important;
    z-index: 99999 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #FF4D6D 0%, #E63950 100%) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4) !important;
    transition: opacity .3s, visibility .3s, transform .3s !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    outline: none !important;
}

html body .footer-to-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

html body .footer-to-top-btn svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    stroke: #fff !important;
    stroke-width: 2.8 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

html body .footer-to-top-btn:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: 0 12px 32px rgba(255, 77, 109, 0.55) !important;
}



@media (max-width: 480px) {
    html body .footer-to-top-btn {
        bottom: 84px !important;
        right: 14px !important;
        width: 44px !important;
        height: 44px !important;
    }
}

@media (max-width: 768px) {
    html body .footer-to-top-btn,
    body .footer-to-top-btn {
        bottom: 80px !important;
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        box-shadow: 0 4px 14px rgba(255, 77, 109, 0.35) !important;
    }
    html body .footer-to-top-btn svg,
    body .footer-to-top-btn svg {
        width: 16px !important;
        height: 16px !important;
        stroke-width: 3 !important;
    }
}

@media (max-width: 480px) {
    html body .footer-to-top-btn,
    body .footer-to-top-btn {
        bottom: 76px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
    }
    html body .footer-to-top-btn svg,
    body .footer-to-top-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
}

@media (max-width: 360px) {
    html body .footer-to-top-btn,
    body .footer-to-top-btn {
        width: 34px !important;
        height: 34px !important;
        bottom: 72px !important;
        right: 10px !important;
    }
    html body .footer-to-top-btn svg,
    body .footer-to-top-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}
