/* ============================================
   TrungDucStore - Main Stylesheet
   Color: Red #E53935 / Dark #1a1a2e
   ============================================ */

:root {
    --red:         #FF1A1A;
    --red-dark:    #CC0000;
    --red-light:   #FF6666;
    --gold:        #FFCC00;
    --dark:        #1a1a2e;
    --dark2:       #16213e;
    --text:        #222;
    --text-muted:  #777;
    --bg:          #f5f5f7;
    --bg-card:     #ffffff;
    --border:      #e8e8e8;
    --shadow:      0 2px 12px rgba(0,0,0,.08);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.14);
    --radius:      10px;
    --radius-lg:   16px;
    --transition:  .25s ease;
    --font:        'Be Vietnam Pro', sans-serif;
    --header-h:    65px;
    --nav-h:       44px;
}

/* Dark mode overrides */
body.dark-mode {
    --text:       #e8e8e8;
    --text-muted: #aaa;
    --bg:         #0f0f1a;
    --bg-card:    #1a1a2e;
    --border:     #2a2a40;
    --shadow:     0 2px 12px rgba(0,0,0,.4);
}
body.dark-mode .site-nav    { background: #12122a; }
body.dark-mode .product-card{ background: #1e1e30; }
body.dark-mode .footer-bottom{ background:#050512; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; transition: background var(--transition), color var(--transition); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--red);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    height: 32px;
    display: flex;
    align-items: center;
}
.announcement-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 12s linear infinite;
}
.announcement-group {
    display: flex;
    gap: 60px;
    padding-right: 60px;
    flex-shrink: 0;
}
.announcement-group span { flex-shrink: 0; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.announcement-bar:hover .announcement-track { animation-play-state: paused; }
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.site-header {
    background: var(--red);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

/* Logo */
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
    transition: transform var(--transition);
}
.logo-img:hover { transform: scale(1.04); }
.logo-box {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: var(--red);
    letter-spacing: -0.5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.logo-sub  { font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.8); letter-spacing: 0.2px; }

/* Search */
.search-form { flex: 1; max-width: 520px; position: relative; }
.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.search-icon { padding: 0 12px; color: var(--text-muted); font-size: 14px; }
.search-wrapper input {
    flex: 1; border: none; outline: none; background: none;
    font-size: 13.5px; color: var(--text); padding: 0 4px;
}
.search-btn {
    background: var(--red); color: #fff;
    padding: 0 18px; height: 100%; font-size: 13px; font-weight: 600;
    border-radius: 0 24px 24px 0; transition: background var(--transition);
}
.search-btn:hover { background: var(--red-dark); }

/* Search dropdown */
.search-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    z-index: 1000; display: none; max-height: 400px; overflow-y: auto;
    border: 1px solid var(--border);
}
.search-dropdown.open { display: block; }
.search-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; transition: background var(--transition);
}
.search-item:hover { background: #fafafa; }
.search-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; border: 1px solid var(--border); }
.search-item-name { font-size: 13px; font-weight: 500; color: var(--text); }
.search-item-price { font-size: 12px; color: var(--red); font-weight: 700; }
.search-no-result { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-action-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 6px 10px; color: #fff; border-radius: 8px;
    font-size: 12px; transition: background var(--transition); position: relative;
    cursor: pointer;
}
.header-action-btn:hover { background: rgba(255,255,255,.15); }
.header-action-btn i { font-size: 18px; }
.action-label { font-size: 11px; white-space: nowrap; }
.cart-badge {
    position: absolute; top: 2px; right: 4px;
    background: #FFB800; color: #000; border-radius: 50%;
    width: 18px; height: 18px; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    min-width: 18px;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

/* Dropdown menu */
.dropdown-trigger { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 160px; display: none; z-index: 1000; overflow: hidden;
    border: 1px solid var(--border);
}
/* dropdown open/close controlled by JS with delay */
.dropdown-menu.is-open { display: block; animation: dropIn .15s ease; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--text); font-size: 13px;
    transition: background var(--transition);
}
.dropdown-menu a:hover { background: rgba(229, 57, 53, 0.05); color: var(--red); }

/* ===== NAVIGATION ===== */
.site-nav {
    background: #fff;
    height: var(--nav-h);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky;
    top: var(--header-h);
    z-index: 800;
}
.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.nav-inner::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: var(--nav-h);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition), background var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--red); border-bottom-color: var(--red); background: rgba(229,57,53,.04);
}
.nav-link i { font-size: 13px; }
.nav-arrow { font-size: 10px; color: var(--text-muted); }

/* ===== MAIN LAYOUT ===== */
.page-wrapper { padding: 16px 0 24px; }
.home-layout { display: grid; grid-template-columns: 140px 1fr 140px; gap: 16px; align-items: start; }

/* ===== SIDEBARS ===== */
.left-sidebar, .right-sidebar {
    display: flex;
    flex-direction: column;
}
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.sidebar-card:hover { transform: translateY(-2px); }
.sidebar-card .sidebar-icon {
    font-size: 28px;
    width: 54px;
    height: 54px;
    background: rgba(229, 57, 53, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .sidebar-card .sidebar-icon {
    background: rgba(255, 255, 255, 0.08);
}
.sidebar-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
}
.sidebar-card-label { font-size: 11px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .5px; }
.sidebar-card-desc { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }
.sidebar-badge {
    display: inline-block; background: var(--red); color: #fff;
    font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 10px;
    text-transform: uppercase; width: fit-content;
}
.sidebar-btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    transition: background var(--transition), transform var(--transition);
}
.sidebar-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

/* ===== HERO SLIDER ===== */
.hero-section { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.slider-container { position: relative; }
.slider-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide {
    min-width: 100%;
    height: auto;
    aspect-ratio: 3.2 / 1;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.slide-bg {
    position: absolute; inset: 0;
    /* We don't need a linear gradient if it's set inline, but let's keep it as fallback */
    background: linear-gradient(135deg, #0d1117 0%, #1a2744 50%, #0a1628 100%);
    z-index: 1;
}

.slide-content {
    position: relative; z-index: 2; padding: 28px 60px;
    max-width: 50%; color: #fff;
    flex: 1;
    margin-right: auto;
}
.slide-image {
    position: relative; z-index: 2;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 40px;
    height: 100%;
}
.slide-image img {
    max-height: 90%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.slide-content h2 {
    font-size: 26px; font-weight: 800; line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.slide-content p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.slide-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff;
    padding: 10px 20px; border-radius: 24px;
    font-size: 13px; font-weight: 700;
    transition: all var(--transition); box-shadow: 0 4px 12px rgba(229,57,53,.4);
}
.slide-btn:hover { background: var(--red-dark); transform: scale(1.04); }

/* Slider controls */
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
    color: #fff; border: none; width: 36px; height: 36px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; z-index: 5;
    transition: background var(--transition);
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-prev:hover, .slider-next:hover { background: var(--red); }
.slider-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.slider-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: all var(--transition);
}
.slider-dot.active { width: 20px; border-radius: 4px; background: #fff; }

/* Widescreen aspect ratio ensures banners fit perfectly */

/* ===== RIGHT SIDEBAR (Category quick links) ===== */
.right-sidebar { display: flex; flex-direction: column; gap: 8px; }
.cat-quick-link {
    background: #fff; border-radius: var(--radius); padding: 10px 12px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 600; color: var(--text);
    box-shadow: var(--shadow); transition: all var(--transition);
    border-left: 3px solid transparent;
}
.cat-quick-link:hover { color: var(--red); border-left-color: var(--red); transform: translateX(2px); }
.cat-quick-link.active-cat { background: var(--red); color: #fff; border-left-color: var(--red-dark); }
.cat-quick-link i { font-size: 14px; width: 18px; text-align: center; }
.cat-sub { font-size: 10.5px; font-weight: 400; color: inherit; opacity: .7; }

.promo-sidebar-card {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: var(--radius); padding: 12px;
    color: #fff; text-align: center; box-shadow: var(--shadow);
}
.promo-sidebar-card .promo-icon { font-size: 24px; margin-bottom: 6px; }
.promo-sidebar-card h4 { font-size: 13px; font-weight: 800; }
.promo-sidebar-card p { font-size: 10.5px; opacity: .85; margin: 3px 0 10px; }
.promo-sidebar-btn {
    display: block; background: #fff; color: var(--red);
    padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 800;
    transition: transform var(--transition);
}
.promo-sidebar-btn:hover { transform: scale(1.05); }

/* ===== FLASH SALE ===== */
.flash-sale-section {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg); padding: 0; overflow: hidden;
    box-shadow: var(--shadow-lg); margin-top: 16px;
}
.flash-sale-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--red) 0%, #ff4444 100%);
}
.flash-sale-title {
    display: flex; align-items: center; gap: 10px; color: #fff;
}
.flash-sale-title i { font-size: 22px; color: var(--gold); animation: flashPulse 1s infinite; }
.flash-sale-title span { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
@keyframes flashPulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.flash-sale-timer { display: flex; align-items: center; gap: 6px; color: #fff; }
.timer-label { font-size: 12px; font-weight: 600; }
.timer-blocks { display: flex; align-items: center; gap: 4px; }
.timer-block {
    background: #1a1a2e; color: #fff;
    width: 36px; height: 36px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.timer-sep { color: var(--gold); font-weight: 800; font-size: 16px; }

.flash-sale-products {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: 16px;
}
.flash-product-card {
    background: rgba(255,255,255,.04); border-radius: var(--radius);
    padding: 12px; text-align: center; color: #fff;
    transition: background var(--transition); border: 1px solid rgba(255,255,255,.05);
    margin: 4px;
}
.flash-product-card:hover { background: rgba(255,255,255,.08); }
.flash-product-img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 8px; border-radius: 8px; }
.flash-product-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.flash-product-price { font-size: 14px; font-weight: 800; color: var(--gold); }
.flash-product-original { font-size: 11px; text-decoration: line-through; color: rgba(255,255,255,.4); }
.flash-progress { margin-top: 6px; }
.flash-progress-bar {
    background: rgba(255,255,255,.15); border-radius: 10px; height: 5px; overflow: hidden;
}
.flash-progress-fill {
    background: linear-gradient(90deg, var(--gold), #ff6b00);
    height: 100%; border-radius: 10px; transition: width 1s ease;
}
.flash-progress-text { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 2px; }
.flash-buy-btn {
    display: block; margin-top: 8px;
    background: var(--red); color: #fff;
    padding: 6px; border-radius: 6px; font-size: 11px; font-weight: 700;
    transition: background var(--transition);
}
.flash-buy-btn:hover { background: var(--red-dark); }

/* ===== SECTION TITLES ===== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: 24px 0 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: var(--text);
}
.section-title i { color: var(--red); }
.section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: var(--red); border-radius: 2px; margin-left: 10px;
}
.section-view-all {
    font-size: 13px; color: var(--red); font-weight: 600;
    display: flex; align-items: center; gap: 4px;
    transition: gap var(--transition);
}
.section-view-all:hover { gap: 8px; }

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.products-grid-5 { grid-template-columns: repeat(5, 1fr); }
.products-grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card-img {
    position: relative; padding: 16px; background: #fafafa;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
}
body.dark-mode .product-card-img { background: #1a1a2e; }
.product-card-img img { width: 80%; height: 80%; object-fit: contain; transition: transform var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.06); }

.badge-discount {
    position: absolute; top: 8px; left: 8px;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 12px;
}
.badge-new {
    position: absolute; top: 8px; right: 8px;
    background: #00c853; color: #fff;
    font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 12px;
}
.product-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 3px; text-transform: uppercase; }
.product-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.product-stars i { font-size: 10px; color: var(--gold); }
.product-stars span { font-size: 10.5px; color: var(--text-muted); }
.product-price-block { margin-top: auto; }
.product-sale-price { font-size: 16px; font-weight: 800; color: var(--red); }
.product-original-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-card-footer { padding: 0 14px 14px; display: flex; gap: 8px; }
.btn-cart {
    flex: 1; padding: 9px; border-radius: 8px;
    background: #fef2f2; color: var(--red); font-size: 12.5px; font-weight: 700;
    transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-cart:hover { background: var(--red); color: #fff; }
.btn-buy {
    flex: 1; padding: 9px; border-radius: 8px;
    background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700;
    transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-buy:hover { background: var(--red-dark); transform: scale(1.02); }

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: var(--radius); padding: 10px 16px;
    box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap;
}
.filter-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.filter-btn {
    padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
    background: #f5f5f7; color: var(--text); transition: all var(--transition);
    border: 1.5px solid var(--border);
}
.filter-btn:hover, .filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== PAGE HEADER ===== */
.page-banner {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff; padding: 24px 0; margin-bottom: 20px;
}
.page-banner h1 { font-size: 22px; font-weight: 800; }
.page-banner p   { font-size: 13px; opacity: .85; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 6px; }
.breadcrumb a { color: #fff; }
.breadcrumb i { font-size: 9px; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.cart-table { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.cart-table-head { background: #fafafa; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 10px; padding: 12px 16px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.cart-item { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 10px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-variant { font-size: 11.5px; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.qty-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: #f5f5f7; font-size: 14px; font-weight: 700; transition: background var(--transition); }
.qty-btn:hover { background: var(--red); color: #fff; }
.qty-input { width: 36px; height: 28px; text-align: center; border: none; outline: none; font-size: 13px; font-weight: 700; background: #fff; }
.cart-remove { color: var(--text-muted); font-size: 16px; cursor: pointer; transition: color var(--transition); }
.cart-remove:hover { color: var(--red); }

/* Cart Summary */
.cart-summary { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 120px; }
.summary-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13.5px; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; font-weight: 800; font-size: 17px; color: var(--red); }
.coupon-form { display: flex; gap: 8px; margin: 12px 0; }
.coupon-form input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; }
.coupon-form input:focus { border-color: var(--red); }
.coupon-form button { background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.btn-checkout { display: block; background: var(--red); color: #fff; text-align: center; padding: 14px; border-radius: var(--radius); font-size: 15px; font-weight: 800; margin-top: 16px; transition: background var(--transition); }
.btn-checkout:hover { background: var(--red-dark); }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.checkout-summary { background:#fff; border-radius:16px; padding:20px; box-shadow:var(--shadow); position:sticky; top:120px; }

/* ===== FORMS (Login, Signup, Checkout) ===== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card {
    background: #fff; border-radius: var(--radius-lg); padding: 40px;
    width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-big { font-size: 32px; font-weight: 800; color: var(--red); }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-control {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 13.5px; color: var(--text); background: #fff; outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,.1); }
.form-control.is-error { border-color: var(--red); }
.form-error { font-size: 11.5px; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-primary {
    width: 100%; padding: 13px; background: var(--red); color: #fff;
    border-radius: var(--radius); font-size: 15px; font-weight: 800;
    border: none; cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--red-dark); transform: scale(1.01); }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--red); font-weight: 700; }

/* Alert messages */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13.5px; font-weight: 500; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-error   { background: #fde8e8; color: #c62828; border-left: 4px solid var(--red); }
.alert-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-gallery { position: sticky; top: 120px; }
.product-main-img {
    background: #fafafa; border-radius: var(--radius-lg); padding: 0;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1; margin-bottom: 12px; border: 1px solid var(--border);
    overflow: hidden;
}
.product-main-img img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb { width: 64px; height: 64px; padding: 6px; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color var(--transition); background: #fafafa; }
.product-thumb:hover, .product-thumb.active { border-color: var(--red); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-info {}
.product-info-brand { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.product-info-name { font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.product-info-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-info-price-block { background: #fef2f2; border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.product-info-sale { font-size: 28px; font-weight: 800; color: var(--red); }
.product-info-original { font-size: 15px; text-decoration: line-through; color: var(--text-muted); margin-left: 10px; }
.product-info-discount { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.product-installment { font-size: 12.5px; color: #555; margin-top: 6px; }

.product-options-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.product-options-row .option-group { flex: 1; min-width: 140px; margin-bottom: 0; }
.option-group { margin-bottom: 14px; }
.option-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
    padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
    border: 2px solid var(--border); background: #fff; transition: all var(--transition);
}
.option-btn:hover, .option-btn.active { border-color: var(--red); color: var(--red); background: #fef2f2; }
.color-option { display: flex; align-items: center; gap: 6px; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

.product-action-buttons { display: flex; gap: 10px; margin-top: 20px; }
.btn-add-cart {
    flex: 1; padding: 14px; border-radius: var(--radius); font-size: 15px; font-weight: 800;
    background: #fef2f2; color: var(--red); border: 2px solid var(--red); transition: all var(--transition);
}
.btn-add-cart:hover { background: var(--red); color: #fff; }
.btn-buy-now {
    flex: 1; padding: 14px; border-radius: var(--radius); font-size: 15px; font-weight: 800;
    background: var(--red); color: #fff; transition: background var(--transition);
}
.btn-buy-now:hover { background: var(--red-dark); }

.product-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.perk-item { display: flex; align-items: center; gap: 8px; background: #fafafa; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.perk-item i { color: var(--red); font-size: 14px; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs-table tr:nth-child(even) { background: #fafafa; }
.specs-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 700; width: 40%; color: var(--text-muted); }

/* Reviews */
.review-card { background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); margin-bottom: 10px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.reviewer-name { font-weight: 700; font-size: 13.5px; }
.review-stars i { font-size: 11px; color: var(--gold); }
.review-date { font-size: 11px; color: var(--text-muted); }
.review-content { font-size: 13px; color: var(--text); line-height: 1.5; }

/* ===== ORDERS PAGE ===== */
.order-lookup-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; max-width: 600px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.order-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.order-card-head { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.order-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; }
.status-pending    { background: #fff3e0; color: #e65100; }
.status-confirmed  { background: #e3f2fd; color: #1565c0; }
.status-processing { background: #f3e5f5; color: #6a1b9a; }
.status-shipping   { background: #e8f5e9; color: #2e7d32; }
.status-delivered  { background: #e8f5e9; color: #1b5e20; }
.status-cancelled  { background: #fce4ec; color: #880e4f; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: var(--dark); color: #fff;
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh;
    z-index: 100; box-shadow: 4px 0 12px rgba(0,0,0,.3);
}
.admin-sidebar-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-logo span { font-size: 16px; font-weight: 800; color: #fff; }
.admin-sidebar-logo small { display: block; font-size: 11px; color: rgba(255,255,255,.5); }
.admin-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 500;
    transition: all var(--transition); border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--red); }
.admin-nav-link i { width: 18px; font-size: 15px; }
.admin-content { margin-left: 240px; flex: 1; background: #f5f5f7; }
.admin-topbar { background: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.admin-topbar h1 { font-size: 18px; font-weight: 800; }
.admin-body { padding: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.stat-icon.red    { background: var(--red); }
.stat-icon.blue   { background: #1976d2; }
.stat-icon.green  { background: #388e3c; }
.stat-icon.gold   { background: #f57f17; }
.stat-value { font-size: 22px; font-weight: 800; }
.stat-label { font-size: 12.5px; color: var(--text-muted); }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.admin-table thead { background: #fafafa; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.admin-table th { font-weight: 800; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.admin-table tbody tr:hover { background: #fefefe; }
.action-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all var(--transition); }
.action-btn.edit  { background: #e3f2fd; color: #1565c0; }
.action-btn.delete{ background: #fde8e8; color: #c62828; }
.action-btn.view  { background: #e8f5e9; color: #2e7d32; }
.action-btn:hover { filter: brightness(.92); transform: scale(1.03); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 24px 0; }
.page-link {
    width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--border); background: #fff;
    transition: all var(--transition); color: var(--text);
}
.page-link:hover, .page-link.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== FLOATING BUTTONS ===== */
.float-btn {
    position: fixed; right: 16px; width: 44px; height: 44px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); z-index: 999; cursor: pointer; transition: all var(--transition);
}
.float-phone  { bottom: 130px; background: #25d366; color: #fff; font-size: 18px; }
.float-top    { bottom: 80px;  background: var(--dark); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; }
.float-top.show { opacity: 1; pointer-events: auto; }
.float-contact {
    bottom: 24px; right: 16px; width: auto; height: auto;
    background: var(--red); color: #fff; padding: 10px 18px;
    border-radius: 24px; font-size: 13px; font-weight: 700; border: none;
}
.float-btn:hover { transform: scale(1.1); }

/* ===== FOOTER ===== */
.site-footer { background: #fff; border-top: 2px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 16px 28px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.logo-icon-sm { background: var(--red); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 6px; }
.footer-brand-name { font-size: 14px; font-weight: 800; color: var(--red); }
.footer-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.footer-socials { display: flex; gap: 10px; }
.social-link { width: 34px; height: 34px; border-radius: 50%; background: #f5f5f7; color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--transition); }
.social-link:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.footer-heading { font-size: 13.5px; font-weight: 800; color: var(--red); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list li, .footer-list a { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; transition: color var(--transition); }
.footer-list a:hover { color: var(--red); }
.footer-list i { margin-top: 2px; color: var(--red); flex-shrink: 0; }
.footer-hours { font-size: 12px; }
.footer-map-icon { color: var(--red); }
.footer-certificates { display: flex; gap: 8px; margin-top: 12px; }
.footer-certificates img { height: 36px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid var(--border); background: #fafafa; text-align: center; padding: 14px; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 90px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: #fff; border-radius: var(--radius); padding: 14px 18px;
    box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600;
    display: flex; align-items: center; gap: 10px; min-width: 280px;
    animation: toastIn .35s ease; border-left: 4px solid var(--red);
}
.toast.success { border-left-color: #4caf50; }
.toast.error   { border-left-color: var(--red); }
.toast i { font-size: 18px; }
.toast.success i { color: #4caf50; }
.toast.error   i { color: var(--red); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; border-radius: var(--radius-lg); padding: 28px; width: 90%; max-width: 480px; transform: scale(.95); transition: transform var(--transition); box-shadow: var(--shadow-lg); }
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-close { font-size: 20px; cursor: pointer; color: var(--text-muted); transition: color var(--transition); }
.modal-close:hover { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .home-layout { grid-template-columns: 1fr; }
    .left-sidebar, .right-sidebar { display: none; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .flash-sale-products { grid-template-columns: repeat(3, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .flash-sale-products { grid-template-columns: repeat(2, 1fr); }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-inner { gap: 8px; }
    .action-label { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .admin-sidebar { width: 200px; }
    .admin-content { margin-left: 200px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 8px;
    }
    .nav-list {
        justify-content: flex-start;
        gap: 12px;
        width: max-content;
    }
    .nav-link {
        padding: 0 10px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-btn { display: none; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: relative; }
    .admin-content { margin-left: 0; }
}

/* ===== LOADING SKELETON ===== */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 64px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ===== CHAT WIDGET ===== */
.float-chat { bottom: 140px; background: var(--red); color: #fff; font-size: 18px; }
.chat-badge { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.chat-widget { position: fixed; bottom: 80px; right: 20px; width: 350px; max-width: calc(100% - 40px); background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; z-index: 1000; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s ease; transform: translateY(20px); opacity: 0; }
.chat-widget.active { display: flex; transform: translateY(0); opacity: 1; }
.chat-header { background: var(--red); color: #fff; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; transition: transform 0.2s; }
.chat-close:hover { transform: scale(1.1); }
.chat-body { padding: 15px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-message { max-width: 80%; padding: 10px 15px; border-radius: 16px; font-size: 13px; line-height: 1.4; word-wrap: break-word; }
.admin-message { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.customer-message { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.chat-footer { padding: 10px; background: var(--bg-card); border-top: 1px solid var(--border); }
#chatForm { display: flex; gap: 10px; }
#chatInput { flex: 1; padding: 10px 15px; border: 1px solid var(--border); border-radius: 20px; outline: none; background: var(--bg); color: var(--text); }
#chatInput:focus { border-color: var(--red); }
#chatForm button { background: var(--red); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
#chatForm button:hover { background: var(--red-dark); }


/* Marquee Bar */
.marquee-wrapper {
    background-color: var(--red);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    position: relative;
    z-index: 99;
}
.marquee-content {
    display: inline-flex;
    gap: 40px;
    animation: marquee 5s linear infinite;
}
.marquee-content span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.marquee-content span i {
    font-size: 14px;
    color: #ffc107; /* slight highlight for icons */
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== PROFILE PAGE ===== */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 16px;
}
.profile-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
}
.user-avatar-section {
    text-align: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.avatar-circle {
    width: 72px;
    height: 72px;
    background: rgba(229, 57, 53, 0.08);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 12px;
    font-size: 40px;
}
.user-meta-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.user-meta-role {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    text-align: left;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
}
.profile-menu-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}
.profile-menu-item:hover, .profile-menu-item.active {
    background: rgba(229, 57, 53, 0.06);
    color: var(--red);
}
.profile-menu-item.logout-item {
    color: var(--text-muted);
    margin-top: 10px;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding-top: 16px;
}
.profile-menu-item.logout-item:hover {
    background: none;
    color: var(--red);
}
.profile-content-area {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid var(--border);
    min-height: 400px;
}
.profile-tab-content {
    display: none;
}
.profile-tab-content.active {
    display: block;
    animation: fadeIn .3s ease;
}
.tab-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 8px;
    width: fit-content;
}
.orders-table-wrapper {
    overflow-x: auto;
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.orders-table th {
    background: var(--bg);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text);
}
.orders-table tr:hover td {
    background: rgba(0,0,0,0.01);
}
body.dark-mode .orders-table tr:hover td {
    background: rgba(255,255,255,0.01);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

/* ===== NEWS BLOG CUSTOM INTERACTIONS ===== */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-title-link:hover {
    color: var(--red) !important;
}
.news-read-more:hover {
    gap: 10px !important;
}
.news-sidebar-product {
    transition: transform var(--transition);
}
.news-sidebar-product:hover {
    transform: translateX(4px);
}
.news-sidebar-post {
    transition: transform var(--transition);
}
.news-sidebar-post:hover {
    transform: translateX(4px);
}
body.dark-mode .news-card {
    background: #1e1e2d !important;
}
body.dark-mode .news-card-excerpt, body.dark-mode .news-card-meta {
    color: #a0a0b0 !important;
}
body.dark-mode .news-card-title a {
    color: #fff !important;
}
body.dark-mode .news-post-body p, body.dark-mode .news-post-body li {
    color: #ccc !important;
}
body.dark-mode .news-post-body h3 {
    color: #fff !important;
}
body.dark-mode .news-sidebar-product div, body.dark-mode .news-sidebar-post div {
    color: #eee !important;
}
body.dark-mode .news-sidebar-product, body.dark-mode .news-sidebar-post {
    background: #1e1e2d !important;
}
.news-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== MOBILE USER INTERFACE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Hide fallback slide content overlay on mobile to prevent overflow */
    .slide-content {
        display: none !important;
    }

    /* Compact Announcement Bar */
    .announcement-bar {
        height: 26px !important;
        font-size: 11px !important;
    }
    .announcement-group {
        gap: 30px !important;
        padding-right: 30px !important;
    }

    /* Single Row Header */
    .site-header {
        height: 56px !important;
        position: sticky !important;
        top: 0 !important;
    }
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 12px !important;
    }
    
    /* Logo - compact */
    .logo-link {
        gap: 6px !important;
    }
    .logo-img {
        height: 30px !important;
        max-width: 30px !important;
    }
    .logo-text .logo-sub {
        display: none !important; /* Hide subtitle to fit name */
    }
    .logo-main {
        font-size: 14px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    /* Search Bar - centered & full flex */
    .search-form {
        flex: 1 !important;
        max-width: none !important;
        margin: 0 !important;
        min-width: 0 !important;
    }
    .search-wrapper {
        height: 32px !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        background: rgba(255,255,255,0.15) !important;
        min-width: 0 !important;
    }
    .search-icon {
        padding: 0 8px !important;
        font-size: 12px !important;
        color: rgba(255,255,255,0.8) !important;
    }
    .search-wrapper input {
        font-size: 12px !important;
        color: #fff !important;
        padding: 0 !important;
        min-width: 0 !important;
    }
    .search-wrapper input::placeholder {
        color: rgba(255,255,255,0.7) !important;
    }
    .search-btn {
        display: none !important; /* Hide text search button */
    }

    /* Header Actions - only Cart icon */
    .header-actions {
        gap: 0 !important;
    }
    .header-actions > *:not(.cart-btn) {
        display: none !important; /* Hide admin, dark mode, login, tracking icons from top header */
    }
    .cart-btn {
        padding: 6px !important;
        background: none !important;
        margin-right: 8px !important; /* Move cart slightly left */
    }
    .cart-btn i {
        font-size: 18px !important;
        color: #fff !important;
    }
    .cart-badge {
        top: 0 !important;
        right: 0 !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }

    /* Hide Top Navigation List */
    .site-nav {
        display: none !important;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        height: 56px !important;
        box-shadow: 0 -3px 12px rgba(0,0,0,0.06) !important;
        border-top: 1px solid var(--border) !important;
        z-index: 9999 !important;
    }
    .mobile-bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: var(--text-muted) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        border: none !important;
        background: none !important;
        padding: 4px 0 !important;
        cursor: pointer !important;
        flex: 1 !important;
        transition: color 0.15s ease !important;
    }
    .mobile-bottom-nav-item i {
        font-size: 18px !important;
        transition: transform 0.15s ease !important;
    }
    .mobile-bottom-nav-item:active i {
        transform: scale(0.9) !important;
    }
    .mobile-bottom-nav-item.active, .mobile-bottom-nav-item:hover {
        color: var(--red) !important;
    }

    /* Add padding to page wrapper to prevent overlap */
    body {
        padding-bottom: 56px !important;
    }
    
    /* Adjust float buttons position */
    .float-chat, #scrollTopBtn {
        bottom: 72px !important;
    }

    /* Dark Mode Support for Bottom Nav */
    body.dark-mode .mobile-bottom-nav {
        background: rgba(30, 30, 48, 0.96) !important;
        border-top-color: #2e2e42 !important;
    }

    /* Reset sticky product gallery on mobile stack layout */
    .product-gallery {
        position: relative !important;
        top: auto !important;
    }
}

/* Category Drawer */
.mobile-category-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.mobile-category-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-category-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    max-height: 70%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-category-drawer.open {
    transform: translateY(0);
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.drawer-header h3 i {
    color: var(--red);
}
.drawer-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}
.drawer-content {
    padding: 20px;
    overflow-y: auto;
}
.drawer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.drawer-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 11.5px;
    font-weight: 600;
}
.drawer-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(229,57,53,0.06);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s ease;
}
.drawer-grid-item:active .drawer-item-icon {
    transform: scale(0.92);
}

/* Card Improvements on Mobile Grid */
@media (max-width: 576px) {
    /* Hide card footer (Add/Detail buttons) on mobile list grid */
    .product-card-footer {
        display: none !important;
    }
    
    /* Product card structural enhancements */
    .product-card {
        border-radius: 12px !important;
    }
    .product-card-img {
        padding: 12px !important;
    }
    .product-card-body {
        padding: 10px 12px 12px !important;
    }
    
    /* Font size and clamping optimization */
    .product-name {
        font-size: 12.5px !important;
        margin-bottom: 4px !important;
        height: 2.7em !important; /* Fixed height for precisely 2 lines */
        line-height: 1.35 !important;
    }
    .product-brand {
        font-size: 9.5px !important;
        margin-bottom: 2px !important;
    }
    .product-stars {
        margin-bottom: 4px !important;
        gap: 2px !important;
    }
    .product-stars i {
        font-size: 9px !important;
    }
    .product-stars span {
        font-size: 9.5px !important;
        margin-left: 2px !important;
    }
    
    /* Prices prominence */
    .product-sale-price {
        font-size: 14.5px !important;
        font-weight: 800 !important;
    }
    .product-original-price {
        font-size: 10.5px !important;
        margin-left: 3px !important;
    }
    .badge-discount {
        font-size: 9px !important;
        padding: 1px 5px !important;
        top: 6px !important;
        left: 6px !important;
    }
    .badge-new {
        font-size: 8.5px !important;
        padding: 1px 5px !important;
        top: 6px !important;
        right: 6px !important;
    }
}

/* ===== HOME POLICIES BAR ===== */
.home-policies-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.policy-item {
    text-align: center;
    padding: 12px;
}
.policy-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.policy-title {
    font-weight: 800;
    font-size: 13.5px;
    color: var(--red);
}
.policy-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Responsive for Mobile Policies */
@media (max-width: 768px) {
    .home-policies-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .policy-item {
        padding: 8px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .policy-icon {
        font-size: 26px !important;
        margin-bottom: 4px !important;
    }
    .policy-title {
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    .policy-desc {
        font-size: 11px !important;
        margin-top: 2px !important;
        line-height: 1.3 !important;
    }
}
@media (max-width: 480px) {
    .home-policies-bar {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 14px !important;
    }
    .policy-item {
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 8px 6px !important;
        border-bottom: 1px solid var(--border);
    }
    .policy-item:last-child {
        border-bottom: none;
    }
    .policy-icon {
        font-size: 24px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    .policy-text-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .policy-title {
        font-size: 13px !important;
        margin-bottom: 2px;
    }
    .policy-desc {
        font-size: 11px !important;
        margin-top: 0 !important;
    }
}

/* ===== WORLD CUP THEME ===== */
@media (min-width: 1025px) {
    body.worldcup-theme {
        background-image: url('../images/worldcup_bg.png?v=16');
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        background-attachment: fixed;
        background-color: #0b0d1e;
    }

    body.worldcup-theme .page-wrapper > .container {
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        margin-top: 16px;
        margin-bottom: 24px;
    }

    body.worldcup-theme.dark-mode .page-wrapper > .container {
        background: #1a1a2e;
    }

    body.worldcup-theme.home-page .page-wrapper > .container {
        background: transparent;
        box-shadow: none;
        padding: 0 16px;
    }

    .home-card-section {
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: var(--shadow);
        margin-bottom: 24px;
    }

    body.worldcup-theme.dark-mode .home-card-section {
        background: #1a1a2e;
    }
}


