/* ============================================ */
/* ============ 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;
}