/* ============================================================
   BINCO ECOMMERCE – Global Stylesheet
   eBay-inspired: Blue #0064d2, Orange accent #f5a623
   ============================================================ */

/* ─── Google Font: Inter ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #0064d2;
    --primary-dark: #004fa3;
    --primary-light: #e8f0fe;
    --accent: #f5a623;
    --accent-dark: #d4891a;
    --accent-light: #fef6e9; /* Soft orange for sections */
    --danger: #e53e3e;
    --success: #38a169;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-blue-soft: #f0f7ff;
    --bg-green-soft: #f0fdf4;
    --card: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ─── Themed Section Utilities ─── */
.section-curved {
    border-radius: 40px;
    padding: 60px 0;
    margin-bottom: 40px;
    overflow: hidden;
}
.bg-soft-blue { background-color: var(--bg-blue-soft); }
.bg-soft-orange { background-color: var(--accent-light); }
.bg-soft-green { background-color: var(--bg-green-soft); }
.bg-primary-deep { background-color: #042940; color: #fff; } /* Deep teal/blue */

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
input, textarea, select { font-family: inherit; }

/* ─── Scrollbar ─── */


/* ─── MAIN HEADER ─── */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    color: var(--text);
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}
.logo-bi { color: var(--primary); }
.logo-nco { color: var(--accent); }

.search-bar {
    display: flex;
    gap: 10px;
    height: 42px;
    flex: 1;
    max-width: 650px;
    margin: 0 30px;
}
.search-category-wrap {
    position: relative;
    border-right: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
}
.search-category {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0 30px 0 15px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    height: 100%;
    outline: none;
}
.search-category-wrap i {
    position: absolute;
    right: 10px;
    font-size: 10px;
    color: var(--text-muted);
    pointer-events: none;
}
.search-bar input {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 20px;
    outline: none;
    font-size: 14px;
}
.search-bar button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    width: 60px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-bar button:hover {
    background: var(--accent-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}
.header-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.header-action-item:hover {
    color: #fff;
    opacity: 0.8;
}
.header-icon {
    font-size: 24px;
    position: relative;
}
.cart-icon .cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-text {
    display: flex;
    flex-direction: column;
}
.text-top {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
}
.text-bottom {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* ─── SECONDARY NAVBAR ─── */
.secondary-navbar {
    background-color: var(--primary-light);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.shop-categories {
    display: flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    gap: 10px;
}

/* ─── CATEGORY DROPDOWN ─── */
.cat-dropdown-wrap { position: relative; }
.cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.cat-dropdown-wrap:hover .cat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cat-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.cat-dropdown ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.cat-dropdown ul li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.cat-dropdown-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}
.cat-dropdown-icon {
    width: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--primary);
}
.cat-dropdown-all {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 4px;
}
.cat-dropdown-all a {
    font-weight: 600 !important;
    color: var(--primary) !important;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0 0 0 20px;
    gap: 25px;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; color: #fff; }

.track-order a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.track-order a:hover { opacity: 0.7; color: #fff; }

/* Hide mobile toggle on desktop */
.mobile-menu-toggle { display: none; }
@media (max-width: 991px) {
    .search-bar { display: none; }
    .header-text { display: none; }
    .secondary-navbar { display: none; }
    .mobile-menu-toggle { display: none; }
    .main-header { padding: 10px 0; }
    .brand-logo { font-size: 24px; }
}

/* ─── CATEGORY BAR ─── */
.category-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.category-nav {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
}
.category-nav li a {
    display: block;
    padding: 10px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.category-nav li a:hover,
.category-nav li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.category-nav li a i { margin-right: 5px; }

/* ─── HERO ─── */
.hero-section {
    background: linear-gradient(135deg, #0064d2 0%, #004fa3 50%, #1a1a2e 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 30%;
    width: 300px; height: 300px;
    background: rgba(245,166,35,0.08);
    border-radius: 50%;
}
.hero-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.hero-text { max-width: 540px; color: #fff; }
.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(245,166,35,0.3);
}

/* ─── CUSTOM SLIDER (Home Page) ─── */
.hero-slider-wrap {
    padding: 24px 0;
    background: transparent;
}
#heroCarousel {
    height: calc(100vh - 220px);
    border-radius: 0px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.carousel-inner, .carousel-item, .slider-img {
    height: 100%;
}
.slider-img {
    transition: transform 10s ease;
}
.carousel-item.active .slider-img {
    transform: scale(1.1);
}
.carousel-caption {
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 0;
    z-index: 10;
}
.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ─── PROMO CARDS ─── */
.promo-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.promo-img-wrap {
    height: 100%;
}
.promo-img-wrap img {
    height: 100%;
}
.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}
.promo-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.promo-content p { font-size: 14px; margin: 0; opacity: 0.9; }
.promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 4px;
}
.hero-text h1 { font-size: 46px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-text .highlight { color: var(--accent); }
.hero-text p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid var(--accent);
}
.btn-shop:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

.btn-sell {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}
.btn-sell:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.hero-stats { display: flex; gap: 20px; }
.stat-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 20px 24px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(4px);
    min-width: 100px;
}
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ─── SECTION STYLES ─── */
.section-block { padding: 50px 0; }
.bg-light-custom { background: #f0f4ff; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 22px; font-weight: 700; }
.see-all { color: var(--primary); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.see-all.light { color: rgba(255,255,255,0.8); }
.see-all:hover { text-decoration: underline; }

/* ─── CATEGORIES GRID ─── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    text-align: center;
}
.category-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { font-size: 26px; color: var(--primary); }

/* ─── PRODUCTS GRID ─── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

/* ─── PRODUCTS GRID ─── */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); 
    gap: 20px; 
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Important for grid row alignment */
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 5;
}

/* Product Image Section */
.product-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%; /* Force 1:1 Square Ratio */
    overflow: hidden;
    background: #f8f9fc;
}
.product-img-wrap img { 
    position: absolute;
    top: 50%; left: 50%;
    width: 85%; height: 85%;
    object-fit: contain; /* Professional look for electronic/mixed goods */
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease; 
}
.product-card:hover .product-img-wrap img { transform: translate(-50%, -50%) scale(1.08); }

/* Product Info & Alignment */
.product-info { 
    padding: 16px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the price/actions to bottom if title is short */
}

.product-cat { 
    font-size: 10.5px; 
    font-weight: 700; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    margin-bottom: 4px;
}

.product-name { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text); 
    line-height: 1.4;
    margin: 0 0 8px 0;
    /* Rigid 2-line title restriction */
    height: 40px; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover { color: var(--primary); }

.product-rating { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    margin-bottom: 8px; 
    font-size: 12px; 
}
.product-rating i { color: var(--accent); font-size: 11px; }

/* The 'Honest Fix': Baseline alignment */
.product-price { 
    margin-top: auto; /* Pushes everything below this to the very bottom of the card */
    display: flex; 
    align-items: baseline; 
    gap: 8px; 
    margin-bottom: 12px;
}
.price-current { font-size: 18px; font-weight: 800; color: var(--text); }
.price-old { font-size: 13.5px; color: var(--text-muted); text-decoration: line-through; }

.stock-info { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.stock-info.low-stock { color: var(--danger); }

.product-actions { display: flex; gap: 8px; }

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.02); }
.btn-add-cart.disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

.btn-wishlist {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-wishlist:hover, .btn-wishlist.active { background: #fff5f5; border-color: var(--danger); color: var(--danger); }

/* ─── DEALS SECTION ─── */
.deals-section { background: #e3f2fd; } /* Soft sky blue */
.deals-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.deals-header h2 { color: var(--text-dark); font-size: 24px; font-weight: 700; }
.deals-header p { color: var(--text-muted); font-size: 14px; }
/* ─── TRUST SECTION ─── */
.trust-section { background: var(--primary); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.trust-item { text-align: center; color: #fff; }
.trust-item i { font-size: 32px; color: var(--accent); margin-bottom: 10px; display: block; }
.trust-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ─── PAGE TITLE ─── */
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

/* ─── FILTER SIDEBAR ─── */
.filter-sidebar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.filter-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 20px; }
.filter-group h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; }
.cat-filter-list { list-style: none; }
.cat-filter-list li a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text); transition: var(--transition); border-bottom: 1px solid #f0f4ff; }
.cat-filter-list li a:hover, .cat-filter-list li a.active { color: var(--primary); font-weight: 600; }
.cat-count { color: var(--text-muted); font-size: 12px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.btn-apply-filter { width: 100%; background: var(--primary); color: #fff; border: none; padding: 8px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px; transition: var(--transition); }
.btn-apply-filter:hover { background: var(--primary-dark); }
.btn-clear-filter { display: block; text-align: center; margin-top: 10px; color: var(--danger); font-size: 13px; font-weight: 600; }

.sort-bar { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.sort-controls { display: flex; align-items: center; gap: 10px; }
.sort-select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 13px; outline: none; cursor: pointer; }

/* ─── PRODUCT DETAIL ─── */
.breadcrumb-nav { font-size: 13px; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--primary); }
.breadcrumb-nav a:hover { text-decoration: underline; }
.product-detail-images { position: sticky; top: 120px; }
.main-image-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 380px; background: #f8f9fc; }
.main-product-img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail-row { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 65px; height: 65px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s; flex-shrink: 0; }
.thumb.active, .thumb:hover { border-color: var(--primary); }
.detail-title { font-size: 24px; font-weight: 700; line-height: 1.3; margin: 8px 0; }
.detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.detail-rating .stars i { color: var(--accent); }
.rating-num { font-weight: 700; color: var(--text); }
.dot { color: var(--border); }
.in-stock { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }
.detail-price { margin: 12px 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dp-current { font-size: 32px; font-weight: 800; color: var(--primary); }
.dp-old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.dp-badge { background: #dcfce7; color: #16a34a; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.detail-desc { background: var(--bg); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--text-muted); margin: 10px 0; line-height: 1.7; }
.seller-info { font-size: 14px; color: var(--text-muted); margin: 10px 0; }
.detail-actions { display: flex; gap: 12px; margin: 18px 0; }
.btn-add-cart-lg { flex: 1; background: var(--primary); color: #fff; padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); border: 2px solid var(--primary); }
.btn-add-cart-lg:hover { background: var(--primary-dark); }
.btn-add-cart-lg.disabled { background: #cbd5e0; border-color: #cbd5e0; cursor: not-allowed; }
.btn-wishlist-lg { background: #fff; border: 2px solid var(--border); color: var(--text-muted); padding: 14px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-wishlist-lg:hover { border-color: var(--danger); color: var(--danger); background: #fff5f5; }
.delivery-info { margin-top: 14px; }
.delivery-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); padding: 5px 0; border-bottom: 1px solid var(--border); }
.delivery-item i { color: var(--primary); width: 16px; }

/* Reviews */
.reviews-section { background: var(--card); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.reviews-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.reviews-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.big-rating { font-size: 52px; font-weight: 800; color: var(--text); line-height: 1; }
.big-stars i { font-size: 22px; color: var(--accent); }
.review-card { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.review-stars i { color: var(--accent); font-size: 13px; }
.review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.review-comment { font-size: 14px; color: var(--text); line-height: 1.6; }
.no-reviews { color: var(--text-muted); font-style: italic; margin: 16px 0; }
.star-rating-input { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating-input input[type="radio"] { display: none; }
.star-rating-input label { cursor: pointer; font-size: 24px; color: #d1d5db; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--accent); }
.review-textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-family: inherit; font-size: 14px; resize: vertical; outline: none; transition: border-color 0.2s; }
.review-textarea:focus { border-color: var(--primary); }
.btn-submit-review { background: var(--primary); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; margin-top: 10px; transition: var(--transition); }
.btn-submit-review:hover { background: var(--primary-dark); }
.write-review { margin-top: 24px; }
.write-review h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.login-to-review { margin-top: 16px; color: var(--text-muted); }
.login-to-review a { color: var(--primary); font-weight: 600; }
.related-section h3 { font-size: 20px; font-weight: 700; }

/* ─── CART ─── */
.cart-table { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto auto; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-img { width: 80px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-details h4 { font-size: 14px; font-weight: 600; }
.cart-details h4 a:hover { color: var(--primary); }
.cart-details .unit-price { font-size: 13px; color: var(--text-muted); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { background: var(--bg); border: 1px solid var(--border); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-num { font-weight: 600; min-width: 24px; text-align: center; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.cart-subtotal { font-weight: 700; color: var(--primary); white-space: nowrap; }
.remove-btn { color: var(--text-muted); font-size: 16px; transition: var(--transition); }
.remove-btn:hover { color: var(--danger); }
.coupon-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.coupon-section h5 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; font-family: inherit; font-size: 14px; outline: none; }
.coupon-input:focus { border-color: var(--primary); }
.btn-coupon { background: var(--primary); color: #fff; border: none; padding: 9px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 14px; }
.btn-coupon:hover { background: var(--primary-dark); }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.remove-coupon { color: var(--danger); font-size: 13px; font-weight: 600; }
.cart-continue { margin-top: 14px; }
.btn-continue { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: var(--transition); }
.btn-continue:hover { background: var(--border); }

.order-summary-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.order-summary-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bg); }
.summary-row.total { font-size: 18px; font-weight: 700; border-bottom: none; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--border); color: var(--primary); }
.summary-row.discount { color: var(--success); }
.free-ship { color: var(--success); font-weight: 600; }
.btn-checkout { display: block; width: 100%; background: var(--accent); color: #fff; border: none; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 15px; margin-top: 15px; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-checkout:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secure-badges { text-align: center; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.secure-badges i { color: var(--success); margin-right: 4px; }

/* ─── CHECKOUT ─── */
.checkout-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.checkout-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.checkout-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bg); }
.checkout-item-name em { color: var(--text-muted); margin-left: 4px; }
.payment-options { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-option { cursor: pointer; flex: 1; min-width: 120px; }
.payment-option input { display: none; }
.payment-box { border: 2px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; transition: var(--transition); font-size: 13px; font-weight: 600; }
.payment-box i { display: block; font-size: 22px; margin-bottom: 6px; color: var(--primary); }
.payment-option input:checked + .payment-box { border-color: var(--primary); background: var(--primary-light); }

/* ─── ORDER SUCCESS ─── */
.success-page { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 80px; color: var(--success); margin-bottom: 20px; animation: pop 0.5s ease; }
@keyframes pop { 0%{transform:scale(0)} 80%{transform:scale(1.1)} 100%{transform:scale(1)} }
.success-page h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.success-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ─── STATUS BADGES ─── */
.badge-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.badge-status.pending { background: #fef9c3; color: #92400e; }
.badge-status.processing { background: #dbeafe; color: #1e40af; }
.badge-status.shipped { background: #ede9fe; color: #5b21b6; }
.badge-status.delivered { background: #dcfce7; color: #166534; }
.badge-status.cancelled { background: #fee2e2; color: #991b1b; }
.badge-status.return_requested { background: #ffedd5; color: #9a3412; }
.badge-status.return_approved { background: #e0f2fe; color: #075985; }
.badge-status.returned { background: #f1f5f9; color: #475569; }
.badge-status.large { font-size: 14px; padding: 6px 16px; }

/* ─── ORDERS TABLE ─── */
.orders-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table thead tr { background: var(--bg); }
.orders-table th { padding: 12px 16px; font-weight: 700; text-align: left; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.orders-table td { padding: 13px 16px; border-top: 1px solid var(--border); }
.btn-view-order { background: var(--primary-light); color: var(--primary); padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; transition: var(--transition); }
.btn-view-order:hover { background: var(--primary); color: #fff; }

/* ─── ORDER DETAIL ─── */
.order-detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.order-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.order-timeline { display: flex; gap: 0; margin: 20px 0; }
.timeline-step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--text-muted); }
.timeline-step::before { content: ''; position: absolute; top: 12px; left: 50%; width: 100%; height: 2px; background: var(--border); }
.timeline-step:last-child::before { display: none; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--border); margin: 0 auto 6px; }
.timeline-step.active .timeline-dot { background: var(--primary); }
.timeline-step.active { color: var(--primary); font-weight: 600; }
.timeline-step.done .timeline-dot { background: var(--success); }

/* ─── SELLER ─── */
.seller-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.seller-header h2 { font-size: 24px; font-weight: 700; }
.btn-add-product { background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-add-product:hover { background: var(--primary-dark); }
.seller-stats { display: flex; gap: 16px; margin-bottom: 16px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.stat-box i { font-size: 26px; color: var(--primary); }
.stat-box .stat-num { font-size: 28px; font-weight: 800; }
.seller-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.action-btns { display: flex; gap: 8px; }
.btn-edit { background: #dbeafe; color: #1e40af; padding: 6px 10px; border-radius: 6px; font-size: 13px; transition: var(--transition); }
.btn-edit:hover { background: var(--primary); color: #fff; }
.btn-del { background: #fee2e2; color: #991b1b; padding: 6px 10px; border-radius: 6px; font-size: 13px; transition: var(--transition); }
.btn-del:hover { background: var(--danger); color: #fff; }
.btn-seller-secondary { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-dark); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13.5px; transition: var(--transition); }
.btn-seller-secondary:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-seller-secondary:disabled { opacity: 0.6; cursor: not-allowed; border-color: var(--border); color: var(--text-muted); }

/* ─── AUTH PAGES ─── */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: #ffffff; }
.auth-card { background: var(--card); border-radius: 20px; padding: 40px; width: 100%; max-width: 500px; box-shadow: 0 20px 60px rgba(0,100,210,0.12); }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.auth-header h2 { font-size: 24px; font-weight: 700; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-btn { width: 100%; background: var(--primary); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.auth-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,100,210,0.3); }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.forgot-password-link { font-size: 13px; color: var(--primary); font-weight: 500; transition: var(--transition); }
.forgot-password-link:hover { text-decoration: underline; color: var(--primary-dark); }

/* ─── DASHBOARD ─── */
.dashboard-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.dash-main { min-width: 0; }
.dash-user-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-bottom: 12px; word-break: break-word; }
.dash-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--primary); }
.dash-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dash-user-card h4 { font-size: 16px; font-weight: 700; }
.seller-badge { display: inline-block; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.dash-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); transition: var(--transition); }
.dash-nav a:last-child { border-bottom: none; }
.dash-nav a i { width: 18px; color: var(--text-muted); }
.dash-nav a:hover, .dash-nav a.active { background: var(--primary-light); color: var(--primary); }
.dash-nav a:hover i, .dash-nav a.active i { color: var(--primary); }
.logout-link { color: var(--danger) !important; }
.logout-link:hover { background: #fee2e2 !important; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash-stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.dash-stat-card i { font-size: 24px; color: var(--primary); display: block; margin-bottom: 8px; }
.dash-stat-card .stat-num { font-size: 26px; font-weight: 800; display: block; }
.dash-stat-card span:last-child { font-size: 12px; color: var(--text-muted); }
.dash-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }

/* ─── PROFILE ─── */
.profile-pic-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin: 0 auto; }
.profile-pic-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 38px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 64px; color: #d1d5db; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* ─── FOOTER ─── */
.site-footer { background: #1a1a2e; color: #99a3b8; padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-logo { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 220px; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a { font-size: 18px; transition: transform 0.2s, filter 0.2s; }
.social-links a:hover { transform: scale(1.1); filter: brightness(1.2); }
.social-links a .fa-facebook { color: #1877F2; }
.social-links a .fa-instagram { color: #E1306C; }
.social-links a .fa-twitter { color: #1DA1F2; }
.social-links a .fa-youtube { color: #FF0000; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul { 
    list-style: none; 
    padding-left: 0; /* Add this */
    margin: 0;       /* Add this */
}
.footer-col ul li { margin-bottom: 8px; font-size: 13.5px; }
.footer-col ul li a { color: #99a3b8; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.payment-badges { display: flex; gap: 8px; }
.payment-badges span { background: rgba(255,255,255,0.08); border-radius: 5px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #c9d4e8; }

/* ─── FORM CONTROLS ─── */
.form-control, .form-select { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s; background: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,100,210,0.08); }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); display: block; }

/* Password Toggle */
.password-group { position: relative; }
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: var(--transition);
}
.password-toggle:hover { color: var(--primary); }
.password-group .form-control { padding-right: 45px; }

/* ─── DASHBOARD VARIATIONS ─── */
.variation-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.variation-item .badge {
    font-size: 10px;
    padding: 2px 6px;
}
.variation-item {
    font-family: inherit;
}

/* ─── ALERTS ─── */
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error, .alert-danger { background: #fff5f5; color: #991b1b; border-color: #fecaca; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }


/* ─── MOBILE SIDEBAR (Global Hidden) ─── */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: none; /* Hidden on desktop */
    flex-direction: column;
}
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    display: none; /* Hidden on desktop */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
}
.mobile-nav a {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}
.mobile-nav a i {
    width: 20px;
    text-align: center;
    color: #888;
}
.mobile-nav a:hover {
    background: #f8f9fa;
    color: var(--primary);
}
.sidebar-divider {
    padding: 15px 20px 5px;
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mobile-sidebar.active { transform: translateX(280px); }
.mobile-sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .hero-stats { display: none; }
    .footer-grid { 
    display: grid; 
    /* Changed to 6 columns: */
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; 
    gap: 32px; 
    margin-bottom: 36px; 
}
    .dashboard-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 32px; }
}
@media (max-width: 768px) {
    /* Top Bar & Category Bar Fixes */
    .top-bar { display: none !important; }
    .category-bar { display: none !important; }
    
    /* Show Mobile Sidebar */
    .mobile-sidebar { display: flex; }
    .mobile-sidebar-overlay { display: block; }
    
    /* Navbar & Search Fixes */
    .main-header .container { flex-wrap: wrap; position: relative; justify-content: space-between; }
    
    .brand-logo { 
        order: 1; 
        font-size: 24px; 
        position: static;
        transform: none;
        margin: 0;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        gap: 0;
    }
    .brand-logo .logo-bi { font-size: inherit; }
    
    .header-actions { order: 2; gap: 15px; width: auto; justify-content: flex-end; margin-left: auto; margin-top: 5px; }
    /* Hide the account icon on mobile to give more space */
    .header-actions > .header-action-item { display: none !important; }
    
    .mobile-menu-toggle { display: none !important; }
    
    .search-bar { order: 4; width: 100%; flex: 1 1 100%; margin-top: 15px; min-width: unset; }
    .search-bar input { padding: 8px 16px; font-size: 14px; height: 42px; border-radius: 20px 0 0 20px; }
    .search-bar button { padding: 8px 18px; height: 42px; border-radius: 0 20px 20px 0; }
    
    /* Hero */
    .hero-section { padding: 40px 0; }
    .hero-text h1 { font-size: 28px; }
    #heroCarousel { height: 240px !important; }
    .carousel-caption { bottom: 0 !important; padding-bottom: 15px !important; }
    .carousel-caption h1 { font-size: 1.8rem !important; margin-bottom: 5px !important; line-height: 1.2 !important; }
    .carousel-caption p.lead { font-size: 13px !important; margin-bottom: 10px !important; }
    .hero-actions.mt-4 { margin-top: 5px !important; }
    .carousel-caption .btn-shop { padding: 8px 16px !important; font-size: 13px !important; }
    
    /* Grids */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cart-row { grid-template-columns: 70px 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    /* Dashboard & Profile Fixes */
    .dash-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .dash-stat-card { padding: 10px 4px; }
    .dash-stat-card i { font-size: 16px; margin-bottom: 2px; }
    .dash-stat-card .stat-num { font-size: 18px; }
    .dash-stat-card span:last-child { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    
    .dash-user-card { padding: 20px; margin-bottom: 16px; }
    .dash-avatar, .dash-avatar-placeholder {
        width: 64px; height: 64px; font-size: 26px; margin-bottom: 12px;
    }
    .dash-user-card h4 { font-size: 16px; }
    .dash-nav a { padding: 13px 18px; font-size: 14px; }
    
    /* Orders Table Mobile Fixes */
    .orders-table th { padding: 10px 8px; font-size: 10px; }
    .orders-table td { padding: 10px 8px; font-size: 12px; }
    .btn-view-order { padding: 4px 8px; font-size: 11px; }
    
    /* Show Mobile Sidebar on mobile/tablet */
    .mobile-sidebar { display: flex; }
    .mobile-sidebar-overlay { display: block; }
    
    /* Seller & Auth */
    .seller-stats { flex-direction: column; }
    .auth-card { padding: 28px 20px; }
}
@media (max-width: 576px) {
    /* Dynamic Slider Mobile Sizes */
    .hero-slider-wrap { padding: 8px 0 !important; }
    #heroCarousel { height: 220px !important; border-radius: 12px; }
    #heroCarousel .p-5 { padding: 1.5rem !important; }
    .hero-title { font-size: 28px !important; margin-bottom: 8px !important; line-height: 1.1 !important; }
    .hero-subtitle { font-size: 12px !important; margin-bottom: 4px !important; }
    .hero-desc { font-size: 12px !important; margin-bottom: 12px !important; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .btn-shop-orange { padding: 8px 16px !important; font-size: 12px !important; }
    .watermark-bg { font-size: 60px !important; left: -10px !important; opacity: 0.05 !important; }
    
    /* Side Banner Mobile */
    .side-banner-wrap { height: 140px !important; border-radius: 12px; margin-top: 15px; }
    .side-banner-content { padding: 1rem !important; }
    .side-banner-content h4 { font-size: 16px !important; margin-bottom: 2px !important; }
    .side-banner-content p { font-size: 11px !important; margin-bottom: 6px !important; display: none; }
    .side-banner-content .btn { padding: 4px 12px !important; font-size: 11px !important; }

    /* Fallback Hero Mobile Sizes */
    .hero-section .hero-actions { flex-direction: column; }
    .hero-section .btn-shop, .hero-section .btn-sell { width: 100%; text-align: center; justify-content: center; }
    
    .detail-actions { flex-direction: column; }
    .categories-flex { gap: 15px; justify-content: space-around; }
    .category-icon-item { width: 30%; margin-bottom: 10px; }
    .cat-icon-lg { font-size: 24px; margin-bottom: 6px; }
    .cat-name { font-size: 11px; text-align: center; line-height: 1.2; }
    
    /* Features Row Mobile Optimization */
    .feature-item { flex-direction: column; text-align: center; gap: 8px !important; padding: 10px 5px; }
    .feature-item .text-start { text-align: center !important; }
    .feature-icon { font-size: 24px; margin-bottom: 4px; }
    .feature-title { font-size: 12px; line-height: 1.2; }
    .feature-sub { font-size: 10px; line-height: 1.2; }
    
    /* Product Card Mobile Optimization */
    .product-info { padding: 8px; }
    .product-name { font-size: 11.5px; line-height: 1.3; margin-bottom: 4px; height: 30px; overflow: hidden; }
    .price-current { font-size: 14px; }
    .price-old { font-size: 11px; }
    .product-rating { font-size: 10px; }
    
    .product-actions { gap: 4px; flex-wrap: nowrap; margin-top: 6px; }
    .btn-add-cart { padding: 8px 4px; font-size: 11px; flex: 1; text-align: center; justify-content: center; letter-spacing: -0.2px; font-weight: 600; line-height: 1.1; }
    .btn-add-cart i { display: none; }
    .btn-wishlist { width: 28px; height: 28px; font-size: 11px; flex-shrink: 0; }
}



/* ─── NEW HERO CSS ─── */
.hero-slider-wrap {
    height: 500px;
    background: var(--primary-dark);
}
.hero-slider-wrap .carousel, .hero-slider-wrap .carousel-inner, .hero-slider-wrap .carousel-item {
    height: 100%;
}
.hero-slider-wrap .slider-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.hero-slider-wrap .container {
    z-index: 2;
}
.watermark-bg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -20px;
    font-size: 150px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
    z-index: 0;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}
.hero-slider-wrap .carousel-caption {
    position: relative;
    right: auto; bottom: auto; left: auto;
    z-index: 2;
    max-width: 600px;
    padding: 0;
}
.hero-subtitle {
    font-size: 16px;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hero-desc {
    font-size: 16px;
    color: #94a3b8;
}
.btn-shop-orange {
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}
.btn-shop-orange:hover {
    background: var(--accent-dark);
    color: #fff;
}
.carousel-indicators {
    bottom: 20px;
    justify-content: center;
    margin: 0;
}
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    margin: 0 5px !important;
    background-color: rgba(255,255,255,0.5) !important;
    border: none !important;
}
.carousel-indicators button.active {
    background-color: #fff !important;
}

/* Features Row */
.features-row {
    border-top: 1px solid var(--border);
}
.feature-icon {
    font-size: 32px;
    color: var(--primary);
}
.feature-title {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}
.feature-sub {
    color: #94a3b8;
    font-size: 12px;
}
.border-start {
    border-left: 1px solid var(--border) !important;
}

/* Promotions Grid */
.promo-card-new {
    display: flex;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 220px;
    color: #fff;
    transition: transform 0.2s;
}
.promo-card-new:hover {
    transform: translateY(-5px);
}
.promo-img-side {
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 50%;
    background-size: cover;
    background-position: center;
}
.promo-content-side {
    margin-left: 45%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}
.promo-badge-text {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}
.promo-card-new h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Categories Flex */
.section-title-new {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}
.categories-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.category-icon-item:hover {
    color: var(--accent);
}
.cat-icon-lg {
    font-size: 36px;
    margin-bottom: 10px;
    color: #334155;
    transition: transform 0.2s;
}
.category-icon-item:hover .cat-icon-lg {
    transform: scale(1.1);
    color: var(--accent);
}

/* Wide Promo Banner */
.wide-promo-banner {
    background: var(--primary-dark);
    color: #fff;
    overflow: hidden;
    padding: 80px 0;
}
.wide-promo-inner {
    max-width: 800px;
    margin: 0 auto;
}
.watermark-bg-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
    z-index: 1;
    letter-spacing: 5px;
    pointer-events: none;
}
.promo-sub {
    font-size: 18px;
    font-weight: 500;
    color: #e2e8f0;
}
.promo-title {
    font-size: 42px;
    font-weight: 800;
}
.promo-desc {
    font-size: 14px;
    color: #cbd5e1;
}

/* Testimonials */
.testimonials-section {
    background: #f8f9fa;
}
.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    height: 100%;
}
.quote-icon {
    font-size: 40px;
    color: var(--accent);
    line-height: 1;
}
.testimonial-card p {
    font-size: 14px;
    line-height: 1.8;
}

/* Hero Split Wrap */
.hero-split-wrap .carousel {
    height: calc(100vh - 220px);
}
.side-banner-wrap {
    height: calc(100vh - 220px);
    background: #e2e8f0;
}
@media (max-width: 991px) {
    .side-banner-wrap { height: 250px; margin-top: 15px; }
}

/* Fix for secondary navbar links visibility on light background */
.secondary-navbar .nav-links li a {
    color: #333 !important;
    font-weight: 500;
}
.secondary-navbar .nav-links li a:hover {
    color: var(--primary) !important;
}
.secondary-navbar .track-order a {
    color: #333 !important;
}
.secondary-navbar .track-order a:hover {
    color: var(--primary) !important;
}


/* Header Action Dropdown */
.header-action-wrap {
    position: relative;
}
.header-action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 15px;
    color: #333;
}
.header-action-wrap:hover .header-action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-action-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}
.dropdown-item-list {
    max-height: 300px;
    overflow-y: auto;
}
.dropdown-item-row {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.dropdown-item-row:last-child {
    border-bottom: none;
}
.dropdown-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.dropdown-item-info h6 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}
.dropdown-item-price {
    font-weight: 600;
    color: #e53e3e;
}

/* Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1050;
}
.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}
.fab-contact {
    background-color: var(--primary, #4361ee);
}
.fab-contact:hover {
    background-color: #314dcc;
    color: #fff;
    transform: translateY(-3px);
}
.fab-top {
    background-color: var(--accent, #ff6b6b);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.fab-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fab-top:hover {
    background-color: #e55a5a;
    color: #fff;
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .floating-action-buttons {
        bottom: 80px; /* Above mobile nav */
        right: 20px;
    }
}

/* WhatsApp and Messenger FABs */
.fab-whatsapp {
    background-color: #25D366;
}
.fab-whatsapp:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: translateY(-3px);
}
.fab-messenger {
    background-color: #0084FF;
}
.fab-messenger:hover {
    background-color: #0073e6;
    color: #fff;
    transform: translateY(-3px);
}



/* Mobile View Promo Banner Adjustments */
@media (max-width: 768px) {
    .wide-promo-banner {
        padding: 40px 0;
    }
    .watermark-bg-center {
        font-size: 50px;
        letter-spacing: 2px;
    }
    .promo-sub {
        font-size: 14px;
    }
    .promo-title {
        font-size: 28px;
    }
    .promo-desc {
        font-size: 12px;
    }
}

/* Blog Adjustments */
.blog-img {
    height: 250px;
}
@media (max-width: 768px) {
    .blog-img {
        height: 180px;
    }
    .blog-content h5 {
        font-size: 16px;
        margin-bottom: 8px !important;
    }
    .blog-content p {
        font-size: 13px;
        margin-bottom: 12px !important;
    }
    .blog-content .btn {
        padding: 6px 16px !important;
        font-size: 0.75rem !important;
    }
    .blog-card {
        margin-bottom: 15px;
    }
}

/* Contact Page Social Icons */
.btn-outline-custom {
    background: transparent;
    border: 1px solid currentColor;
    transition: all 0.3s ease;
}
.social-fb { color: #1877F2; }
.social-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-tw { color: #1DA1F2; }
.social-tw:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.social-ig { color: #E4405F; }
.social-ig:hover { background: #E4405F; color: #fff; border-color: #E4405F; }
.social-in { color: #0A66C2; }
.social-in:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }


/* Fix order detail buttons on mobile */
@media (max-width: 768px) {
    .order-detail-header {
        flex-direction: column;
        align-items: stretch;
    }
    .order-detail-header .text-end {
        text-align: left !important;
        margin-top: 15px;
    }
    .order-detail-header .btn {
        width: 100%;
        display: block;
        margin-top: 10px;
    }
}
