/* ========================================
   H&R Sport - Light Theme
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --brand: #fb923c;
    --brand-dark: #f97316;
    --bg: #ffffff;
    --bg-section: #f5f5f4;
    --bg-card: #ffffff;
    --border: #ebebeb;
    --border-light: #e5e5e5;
    --text: #1a1a1a;
    --text-body: #6b7280;
    --text-muted: #9ca3af;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xl: 24px;
    --shadow: 0 1px 4px rgba(0,0,0,0.04);
    --shadow-hover: 0 16px 50px -12px rgba(251,146,60,0.18);
    --header-height: 72px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f4; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(27,30,36,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.3s ease;
}
#navbar.scrolled {
    background: rgba(18,20,24,0.97);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo img { max-height: 48px; border-radius: 8px; width: auto; }
.nav-logo .logo-icon {
    width: 40px; height: 40px;
    background: var(--brand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo .logo-icon i { color: #000; font-size: 18px; }
.nav-logo span { font-size: 20px; font-weight: 800; color: #ffffff; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 14px; font-weight: 500;
    color: #d5d9de;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; right: 0;
    width: 0; height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: #ffffff; }
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-body);
    font-size: 20px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.nav-toggle:hover { border-color: var(--brand); }
#mobileMenu {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #171a1f;
}
#mobileMenu.show { display: block; }
#mobileMenu .mobile-links { padding: 16px 24px; background: transparent; }
#mobileMenu .mobile-links a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #d5d9de;
    transition: all 0.3s ease;
}
#mobileMenu .mobile-links a.mobile-sub { color: #9aa1a9; font-size: 13px; padding-right: 28px; }
#mobileMenu .mobile-links a:hover,
#mobileMenu .mobile-links a.active { background: rgba(251,146,60,0.12); color: #ffffff; }

/* ===== Hero ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 50%, rgba(251,146,60,0.08) 0%, transparent 50%), #000;
}
#hero .hero-grid-bg {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}
#hero .hero-dot { position: absolute; border-radius: 50%; }
#hero .container { position: relative; z-index: 10; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-text { text-align: right; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 999px;
    border: 1px solid rgba(251,146,60,0.25);
    background: rgba(251,146,60,0.08);
    margin-bottom: 32px;
}
.hero-badge .badge-dot {
    width: 8px; height: 8px;
    background: var(--brand); border-radius: 50%;
    animation: pulseBrand 2s infinite;
}
.hero-badge span { color: var(--brand); font-size: 14px; font-weight: 500; }
.hero-title {
    font-size: 60px; font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
    margin-bottom: 24px; color: #fff;
}
.hero-title .brand-text { color: var(--brand); }
.hero-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.6);
    max-width: 560px; line-height: 1.8; margin-bottom: 40px;
}
.hero-buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex; align-items: center; gap: 48px;
    margin-top: 56px;
}
.hero-stats .stat-number { font-size: 30px; font-weight: 900; color: var(--brand); }
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.hero-stats .stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }
.hero-image { display: flex; justify-content: center; }
.hero-image-wrapper { position: relative; }
.hero-image-wrapper::before {
    content: ''; position: absolute; inset: -20px;
    background: rgba(251,146,60,0.08); border-radius: 2rem;
    filter: blur(30px); z-index: 0;
}
.hero-image-wrapper img {
    position: relative; z-index: 10;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    max-width: 420px; width: 100%;
    aspect-ratio: 520/620; object-fit: cover;
}
.hero-image .hero-badge-card {
    position: absolute; bottom: -16px; right: -16px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 20;
}
.hero-image .hero-badge-card .badge-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(251,146,60,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand); font-size: 18px;
}
.hero-image .hero-badge-card .badge-title { font-size: 12px; font-weight: 700; color: #fff; }
.hero-image .hero-badge-card .badge-sub { font-size: 10px; color: rgba(255,255,255,0.5); }
.hero-scroll-down {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 10;
}
.hero-scroll-down span { font-size: 12px; color: rgba(255,255,255,0.5); }
.hero-scroll-down .scroll-mouse {
    width: 24px; height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll-down .scroll-dot {
    width: 6px; height: 6px;
    background: var(--brand); border-radius: 50%;
    animation: bounce 1s infinite;
}

/* ===== Marquee ===== */
.marquee-bar {
    padding: 16px 0;
    background: var(--brand);
    overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: scrollLeft 30s linear infinite; }
.marquee-track .marquee-item { color: #000; font-weight: 700; font-size: 14px; padding: 0 32px; white-space: nowrap; }
.marquee-track .marquee-sep { color: rgba(0,0,0,0.5); font-size: 14px; padding: 0 16px; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-no-pad-top { padding-top: 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-badge {
    display: inline-block; color: var(--brand); font-size: 14px; font-weight: 700;
    letter-spacing: 0.05em; margin-bottom: 16px;
}
.section-header h2 { font-size: 48px; font-weight: 900; line-height: 1.1; color: var(--text); }
.section-header h2 .brand-text { color: var(--brand); }
.section-header p { color: var(--text-body); margin-top: 16px; font-size: 16px; max-width: 600px; margin: 16px auto 0; }
.section-reveal { opacity: 0; transform: translateY(40px); }
.section-reveal.visible { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.section-divider { height: 1px; background: linear-gradient(to left, transparent, rgba(251,146,60,0.15), transparent); margin-bottom: 80px; }

/* ===== About Section ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-badge { display: inline-block; color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px; }
.about-title { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 24px; color: var(--text); }
.about-title .brand-text { color: var(--brand); }
.about-desc { color: var(--text-body); font-size: 18px; line-height: 1.8; margin-bottom: 32px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-feature {
    padding: 16px; border-radius: var(--radius);
    background: #f9f9f8; border: 1px solid var(--border-light);
}
.about-feature i { font-size: 24px; color: var(--brand); margin-bottom: 8px; display: block; }
.about-feature h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.about-feature p { font-size: 12px; color: var(--text-body); }
.about-image-wrap { position: relative; }
.about-image-wrap .glow {
    position: absolute; inset: -16px;
    background: rgba(251,146,60,0.05);
    border-radius: var(--radius-xl); filter: blur(40px);
    z-index: 0;
}
.about-image-wrap img {
    position: relative; z-index: 10;
    width: 100%; border-radius: var(--radius);
    border: 1px solid var(--border-light);
    aspect-ratio: 6/5; object-fit: cover;
}

/* ===== Category / Products ===== */
.home-category-section { margin-bottom: 64px; }
.category-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 32px;
}
.category-header .cat-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(251,146,60,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand); font-size: 20px; flex-shrink: 0;
}
.category-header .cat-info { flex: 1; }
.category-header .cat-info h3 { font-size: 22px; font-weight: 900; color: var(--text); }
.category-header .cat-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.category-header .cat-line { flex: 1; height: 1px; background: var(--border); display: none; }
.category-header .cat-line.show { display: block; }
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover {
    background: #fffcf8;
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.product-card .product-img-wrap {
    position: relative; overflow: hidden;
    background: #f9f9f8;
}
.product-card .product-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .product-img { transform: scale(1.08); }
.product-card .product-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 16px;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-card .product-overlay span {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 8px 16px; border-radius: var(--radius-sm);
}
.product-card .p-4 { padding: 16px; }
.product-card .pname { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .pprice { display: flex; align-items: center; gap: 8px; }
.product-card .pprice .current { font-size: 18px; font-weight: 900; color: var(--brand); }
.cat-view-all { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; border-radius: var(--radius);
    font-size: 16px; font-weight: 700; border: none;
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; font-family: inherit; line-height: 1.2;
}
.btn-brand { background: var(--brand); color: #000; }
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 30px -5px rgba(251,146,60,0.35); }
.btn-outline-brand { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #000; transform: translateY(-2px); }
.btn-outline-light { background: transparent; border: 2px solid var(--border); color: var(--text-body); }
.btn-outline-light:hover { border-color: var(--brand); color: var(--text); }
.btn-sm { padding: 14px 24px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-see-all { position: relative; overflow: hidden; }
.btn-see-all::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-see-all:hover::before { transform: translateX(100%); }

/* ===== Product Detail ===== */
.product-detail { padding: 40px 0; margin-top: var(--header-height); min-height: 80vh; }
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 32px; font-size: 14px;
    color: var(--text-muted); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border); }
.product-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.product-main-image {
    border-radius: var(--radius); overflow: hidden;
    background: #f9f9f8; border: 1px solid var(--border);
    aspect-ratio: 1; cursor: zoom-in; margin-bottom: 16px;
}
.product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; }
.product-thumb {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid var(--border); cursor: pointer;
    transition: all 0.3s ease; background: #f9f9f8;
}
.product-thumb:hover, .product-thumb.active { border-color: var(--brand); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-card h1 { font-size: 32px; font-weight: 900; margin-bottom: 12px; color: var(--text); }
.product-info-card .price { font-size: 32px; font-weight: 900; color: var(--brand); margin-bottom: 24px; }
.product-meta { margin-bottom: 24px; }
.product-meta span { display: inline-block; padding: 8px 16px; background: #f9f9f8; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-body); }
.product-meta i { color: var(--brand); margin-left: 6px; }
.product-back { margin-top: 32px; }

/* ===== Categories Sidebar ===== */
.categories-sidebar h4 { font-size: 16px; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); color: var(--text); }
.categories-sidebar li { margin-bottom: 4px; }
.categories-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all 0.3s ease; color: var(--text-body); }
.categories-sidebar a:hover { background: rgba(251,146,60,0.06); color: var(--text); }
.categories-sidebar a.active { background: rgba(251,146,60,0.1); color: var(--brand); }
.categories-sidebar a i { font-size: 12px; color: var(--brand); }

/* ===== Page Banner ===== */
.page-banner { padding: 120px 0 60px; text-align: center; background: #fff; margin-top: var(--header-height); border-bottom: 1px solid var(--border); }
.page-banner h1 { font-size: 48px; font-weight: 900; margin-bottom: 8px; color: var(--text); }
.page-banner p { font-size: 18px; color: var(--text-body); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.contact-item { padding: 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); text-align: center; transition: all 0.3s ease; }
.contact-item:hover { border-color: var(--brand); }
.contact-item i { width: 56px; height: 56px; border-radius: var(--radius); background: rgba(251,146,60,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--brand); font-size: 22px; }
.contact-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.contact-item p, .contact-item a { color: var(--text-body); font-size: 14px; }
.contact-item a:hover { color: var(--brand); }
.contact-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 300px; border: none; display: block; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--text-body); }
.form-group .form-control, .form-group .form-textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: 'Tajawal', sans-serif; background: var(--bg); color: var(--text); transition: border-color 0.3s ease; }
.form-group .form-control:focus, .form-group .form-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(251,146,60,0.08); }
.form-group .form-textarea { min-height: 140px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== Filters Bar ===== */
.filters-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.filters-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.filter-input { position: relative; flex: 1; min-width: 180px; }
.filter-input .search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-body); font-size: 14px; }
.filter-search { width: 100%; padding: 12px 40px 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Tajawal', sans-serif; background: var(--bg); color: var(--text); }
.filter-select { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Tajawal', sans-serif; background: var(--bg); color: var(--text); min-width: 140px; }

/* ===== Footer ===== */
.site-footer { background: #171a1f; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-main { padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo-img { max-height: 36px; border-radius: 6px; }
.footer-desc { color: #a2a9b1; font-size: 14px; line-height: 1.8; max-width: 320px; margin-top: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-sm); background: #262a31; display: flex; align-items: center; justify-content: center; color: #b7bec6; transition: all 0.3s ease; font-size: 18px; }
.footer-social a:hover { background: var(--brand); color: #000; transform: translateY(-3px); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #ffffff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #a2a9b1; font-size: 14px; transition: color 0.3s ease; text-decoration: none; }
.footer-col ul a:hover { color: var(--brand); padding-right: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: #828a92; font-size: 12px; }
.footer-bottom .payment-icons { display: flex; gap: 16px; }
.footer-bottom .payment-icons i { color: #454b53; font-size: 24px; }
.site-footer .nav-logo span { color: #ffffff; }

/* ===== Scroll Top ===== */
.scroll-top { position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #000; border: none; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 999; }
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* ===== Error ===== */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: var(--header-height); }
.error-page h1 { font-size: 120px; font-weight: 900; color: var(--brand); line-height: 1; }
.error-page h2 { font-size: 28px; margin-bottom: 10px; color: var(--text); }
.error-page p { color: var(--text-body); margin-bottom: 24px; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; direction: ltr; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-body); border: 1px solid var(--border); background: var(--bg-card); transition: all 0.3s ease; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active { background: var(--brand); color: #000; border-color: var(--brand); }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
@keyframes pulseBrand { 0%, 100% { box-shadow: 0 0 0 0 rgba(251,146,60,0.5); } 70% { box-shadow: 0 0 0 15px rgba(251,146,60,0); } }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes floatHero { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-18px); } }
.animate-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-hero { animation: floatHero 5s ease-in-out infinite; }
.animate-pulse-brand { animation: pulseBrand 2s infinite; }
.animate-scroll { animation: scrollLeft 30s linear infinite; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ===== Empty State ===== */
.empty-products { text-align: center; padding: 80px 20px; color: var(--text-body); }
.empty-products i { font-size: 60px; color: var(--border); margin-bottom: 16px; display: block; }

/* ===== Alerts ===== */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: rgba(34,197,94,0.08); color: #15803d; border: 1px solid rgba(34,197,94,0.15); }
.alert-error { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.15); }
.alert-warning { background: rgba(251,146,60,0.08); color: var(--brand-dark); border: 1px solid rgba(251,146,60,0.15); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid-products { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 44px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-title { font-size: 36px; }
    .hero-image { order: -1; }
    .hero-image-wrapper img { max-width: 300px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stats .stat-divider { display: none; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
    .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 28px; }
    .home-category-section { margin-bottom: 48px; }
    .category-header { margin-bottom: 16px; }
    .category-header .cat-info h3 { font-size: 18px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-title { font-size: 32px; }
    .about-features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .page-banner { padding: 100px 0 40px; }
    .page-banner h1 { font-size: 32px; }
    .container { padding: 0 16px; }
    .product-detail { padding: 20px 0; }
    .product-detail-inner { grid-template-columns: 1fr; gap: 24px; }
    .product-layout { grid-template-columns: 1fr; }
    .product-info-card h1 { font-size: 24px; }
    .product-card .p-4 { padding: 10px; }
    .product-card .pname { font-size: 12px; }
    .product-card .pprice .current { font-size: 15px; }
    .product-card .product-overlay { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-main { padding: 40px 0; }
    .filters-form { flex-direction: column; }
    .filter-input { min-width: 100%; }
    .filter-select { min-width: 100%; }
    .filters-bar { padding: 16px; }
    .categories-sidebar { margin-top: 0; }
    .error-page h1 { font-size: 80px; }
    .section-divider { margin-bottom: 48px; }
}
@media (max-width: 480px) {
    .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 24px; }
    .about-title { font-size: 26px; }
    .contact-cards { grid-template-columns: 1fr; }
}

/* ===== Disable hover on touch ===== */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none; box-shadow: none; }
    .product-card:active { transform: scale(0.97); }
    .btn-see-all:hover { transform: none; box-shadow: none; }
}

/* ===== Nav actions (cart / account) ===== */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.nav-icon {
    position: relative; width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.08);
    color: #e5e7eb; text-decoration: none;
    transition: all 0.3s ease; font-size: 17px;
}
.nav-icon:hover { background: var(--brand); color: #000; transform: translateY(-2px); }
.cart-badge {
    position: absolute; top: -4px; left: -4px; min-width: 19px; height: 19px;
    background: var(--brand); color: #000; font-size: 11px; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid #171a1f;
}

/* ===== Product card links & add-to-cart ===== */
.product-card-link { display: block; text-decoration: none; }
.product-card .pname a { color: var(--text); text-decoration: none; }
.product-card .pname a:hover { color: var(--brand); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.add-to-cart-btn { margin-top: 12px; width: 100%; justify-content: center; font-size: 13px; padding: 12px 16px; }
.add-to-cart-btn i { font-size: 14px; }
.add-to-cart-btn.adding { opacity: 0.6; pointer-events: none; }
.btn-outline-danger { background: transparent; border: 1px solid var(--border); color: #dc2626; }
.btn-outline-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ===== Cart toast ===== */
.cart-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #111; color: #fff; padding: 14px 24px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; z-index: 9999; opacity: 0;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.4);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Quantity selector ===== */
.qty-selector {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: var(--bg);
}
.qty-selector .qty-btn, .qty-btn {
    width: 40px; height: 44px; background: transparent; border: none;
    font-size: 13px; color: var(--text); cursor: pointer; transition: all 0.2s ease;
}
.qty-selector .qty-btn:hover, .qty-btn:hover { background: var(--bg-section); color: var(--brand); }
.qty-selector input { width: 48px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 15px; color: var(--text); }
.qty-selector input:focus { outline: none; }
.product-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ===== Cart page ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
    transition: all 0.3s ease;
}
.cart-item:hover { box-shadow: var(--shadow-hover); }
.cart-item-img { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: #f4f4f3; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; display: block; }
.cart-item-name:hover { color: var(--brand); }
.cart-item-price { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cart-item-total { font-size: 16px; font-weight: 900; color: var(--brand); min-width: 90px; text-align: left; }
.cart-qty { display: flex; align-items: center; margin: 0 8px; }
.cart-qty .qty-btn { width: 32px; height: 36px; }
.cart-qty .qty-value { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-remove { margin: 0; }
.cart-item-variant { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.cart-item-variant span { font-size: 11px; color: var(--text-muted); background: var(--bg-section); padding: 2px 8px; border-radius: 100px; }
.item-inactive { opacity: 0.75; }
.cart-clear { margin-top: 8px; text-align: left; }
.empty-cart { text-align: center; padding: 70px 20px; }
.empty-cart i { font-size: 60px; color: var(--brand); margin-bottom: 18px; }
.empty-cart h3 { font-size: 26px; font-weight: 900; margin-bottom: 8px; color: var(--text); }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

.cart-summary {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; position: sticky; top: 100px;
}
.cart-summary h3 { font-size: 19px; font-weight: 900; margin-bottom: 18px; color: var(--text); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--text-body); border-bottom: 1px dashed var(--border); }
.summary-row.total { border-bottom: none; font-size: 20px; font-weight: 900; color: var(--text); padding-top: 16px; }
.summary-row.total span:last-child { color: var(--brand); }
.cart-summary .btn { margin-top: 14px; }
.safe-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.safe-note i { color: #22c55e; }

/* ===== Auth (login / register) ===== */
.auth-section { padding: 60px 0 90px; background: var(--bg-section); min-height: 70vh; }
.auth-box {
    max-width: 480px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow);
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 30px; font-weight: 900; margin: 10px 0 6px; color: var(--text); }
.auth-head p { font-size: 14px; color: var(--text-muted); }
.auth-box .form-control { width: 100%; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--bg); color: var(--text); }
.auth-box .form-control:focus { outline: none; border-color: var(--brand); }
.auth-box .btn-block { margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.guest-note { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.alert-verify { background: rgba(59,130,246,0.08); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 13px; }
.resend-link { background: none; border: none; padding: 0; color: #1d4ed8; font-weight: 800; text-decoration: underline; cursor: pointer; font-size: 13px; font-family: inherit; }
.resend-link:hover { color: var(--brand); }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.checkout-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 20px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.checkout-card h3 i { color: var(--brand); }
.pay-option {
    border: 2px solid var(--border); border-radius: var(--radius);
    padding: 18px; margin-bottom: 14px; cursor: pointer; transition: all 0.3s ease; background: var(--bg);
}
.pay-option:hover { border-color: var(--brand); }
.pay-option.flex { display: flex; gap: 12px; align-items: flex-start; }
.pay-option .pay-radio { margin-top: 3px; accent-color: var(--brand); }
.pay-option h4 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.pay-option p { font-size: 13px; color: var(--text-muted); }
.pay-option i { font-size: 20px; color: var(--brand); }
.bank-details {
    background: var(--bg-section); border: 1px dashed var(--border);
    border-radius: var(--radius-sm); padding: 16px; margin: 14px 0; font-size: 14px;
}
.bank-details .bank-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.bank-details .bank-row:last-child { border-bottom: none; }
.bank-details .bank-row span:first-child { color: var(--text-muted); font-size: 13px; }
.bank-details .bank-row span:last-child { font-weight: 700; color: var(--text); direction: ltr; text-align: right; }
.order-summary-box .summary-row:last-child { border-bottom: none; }
.proof-upload { margin-top: 12px; }
.checkout-actions { display: flex; flex-direction: column; gap: 10px; }

/* ===== Orders (my orders) ===== */
.order-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    transition: all 0.3s ease;
}
.order-card:hover { box-shadow: var(--shadow-hover); }
.order-number { font-size: 15px; font-weight: 800; color: var(--text); }
.order-number a { color: var(--brand); text-decoration: none; }
.order-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.status-badge { display: inline-block; padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.status-pending { background: rgba(245,158,11,0.12); color: #b45309; }
.status-processing { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.status-shipped { background: rgba(139,92,246,0.12); color: #6d28d9; }
.status-completed { background: rgba(34,197,94,0.12); color: #15803d; }
.status-cancelled { background: rgba(239,68,68,0.12); color: #dc2626; }
.order-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.order-detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-row span:first-child { color: var(--text-muted); }
.order-detail-row span:last-child { font-weight: 700; color: var(--text); }

/* ===== Checkout identity (login vs guest) ===== */
.checkout-identity { margin-bottom: 24px; }
.identity-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.identity-option {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 24px 18px; border: 2px solid var(--border); border-radius: var(--radius);
    text-decoration: none; transition: all 0.3s ease; background: var(--bg);
}
.identity-option:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.identity-option.active { border-color: var(--brand); background: rgba(251,146,60,0.05); }
.identity-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg-section); display: flex; align-items: center; justify-content: center;
    color: var(--brand); font-size: 22px; margin-bottom: 12px;
}
.identity-option h4 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.identity-option p { font-size: 13px; color: var(--text-muted); }

@media (max-width: 640px) {
    .identity-options { grid-template-columns: 1fr; }
}

/* ===== Toast / misc ===== */
.field-error { color: #dc2626; font-size: 12px; margin-top: 4px; display: block; }

.form-control, .form-textarea {
    width: 100%; padding: 14px 18px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    background: var(--bg); color: var(--text);
    box-sizing: border-box;
}
.form-control:focus, .form-textarea:focus { outline: none; border-color: var(--brand); }
.form-textarea { min-height: 120px; resize: vertical; }

.pay-option i { font-size: 20px; color: var(--brand); }
.pay-option.selected { border-color: var(--brand); background: rgba(251,146,60,0.05); }
.coupon-row { display: flex; gap: 10px; }
.coupon-row .form-control { flex: 1; }

@media (max-width: 991px) {
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .order-summary-box { position: static; }
}
@media (max-width: 640px) {
    .cart-item { flex-wrap: wrap; }
    .cart-item-total { min-width: auto; text-align: right; }
    .order-card { flex-direction: column; align-items: flex-start; }
    .auth-box { padding: 26px 18px; }
    .checkout-card { padding: 20px; }
}

/* ===== Product card: badges, quick actions, rating ===== */
.product-card { position: relative; }
.product-card-badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-discount { background: var(--brand); color: #000; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 100px; }
.badge-featured { background: #111; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.badge-out { background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.badge-free { background: #22c55e; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }

.product-card-quick { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.wish-btn, .compare-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
    background: rgba(255,255,255,0.95); color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
    transition: all 0.25s ease; backdrop-filter: blur(2px);
}
.wish-btn:hover, .wish-btn.active { color: #ef4444; border-color: #ef4444; background: #fff; }
.compare-btn:hover, .compare-btn.active { color: #1d4ed8; border-color: #1d4ed8; background: #fff; }

.product-rating { display: flex; align-items: center; gap: 4px; margin: 6px 0 8px; }
.product-rating .fa-star { font-size: 12px; }
.product-rating .fa-star.rated { color: #f59e0b; }
.product-rating .fa-star.dim { color: #e5e7eb; }
.product-rating .rating-count, .product-rating a { font-size: 12px; color: var(--text-muted); margin-right: 4px; text-decoration: none; }
.product-rating a:hover { color: var(--brand); }

.product-card .pprice { gap: 8px; }
.product-card .pprice .old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.product-card .pprice .current { font-size: 18px; font-weight: 900; color: var(--brand); }

/* ===== Product detail extras ===== */
.product-brand { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.product-brand i { margin-left: 4px; }
.product-info-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.product-info-actions { display: flex; gap: 8px; }
.product-info-actions .wish-btn, .product-info-actions .compare-btn { width: 42px; height: 42px; font-size: 16px; }
.price-block { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.price-now { font-size: 30px; font-weight: 900; color: var(--brand); }
.price-old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.stock-label { display: inline-block; padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.stock-in { background: rgba(34,197,94,0.12); color: #15803d; }
.stock-out { background: rgba(239,68,68,0.12); color: #dc2626; }
.product-short-desc { font-size: 14px; color: var(--text-body); margin: 12px 0; line-height: 1.8; }
.product-variant-select { margin: 14px 0; }
.product-variant-select label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.product-variant-select select { width: 100%; }
.product-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.product-trust div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.product-trust i { color: var(--brand); font-size: 15px; }
.product-video-link { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.product-video-link i { color: var(--brand); }

/* ===== Product zone shipping ===== */
.product-zone-shipping { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.zone-ship-head {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-section); padding: 12px 16px;
    font-size: 13px; font-weight: 800; color: var(--text);
}
.zone-ship-head i { color: var(--brand); }
.zone-ship-body { padding: 10px 16px 12px; }
.zone-ship-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.zone-ship-row:last-child { border-bottom: none; }
.zone-ship-row span { color: var(--text-body); }
.zone-ship-row span i { color: var(--brand); margin-left: 5px; }
.zone-ship-row strong { color: var(--text); font-weight: 800; }
.zone-ship-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.zone-select-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.zone-select-label i { color: var(--brand); }
.zone-ship-result { margin-top: 10px; }
.product-zone-shipping.free { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.04); }
.free-ship-note { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #15803d; }
.free-ship-note i { color: #22c55e; }

/* Gallery zoom */
.product-main-image { position: relative; }
.zoom-lens { position: absolute; display: none; width: 120px; height: 120px; border: 2px solid var(--brand); background: rgba(251,146,60,0.15); cursor: zoom-in; pointer-events: none; border-radius: 8px; z-index: 5; }
.product-main-image.zooming img { cursor: zoom-in; }
.thumb-video { background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.product-big-badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.big-badge { padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 800; }
.big-badge-sale { background: var(--brand); color: #000; }
.big-badge-featured { background: #111; color: #fff; }

/* Tabs */
.product-tabs { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tabs-list { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-section); }
.tab-btn { flex: 1; padding: 16px; background: transparent; border: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-muted); transition: all 0.2s ease; font-family: inherit; }
.tab-btn.active { color: var(--brand); border-bottom: 3px solid var(--brand); background: var(--bg-card); }
.tab-pane { display: none; padding: 24px; }
.tab-pane.active { display: block; }
.rich-content { color: var(--text-body); line-height: 2; font-size: 14px; }
.rich-content img { max-width: 100%; border-radius: 8px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; }
.specs-table th { background: var(--bg-section); color: var(--text); width: 35%; text-align: right; }
.specs-table td { color: var(--text-body); }

/* Reviews */
.reviews-headbar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    flex-wrap: wrap; padding: 18px 22px; margin-bottom: 18px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.reviews-headbar-rating { display: flex; align-items: center; gap: 16px; }
.rating-big { font-size: 38px; font-weight: 900; color: var(--text); line-height: 1; }
.rating-big span { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.stars-big { font-size: 18px; display: flex; align-items: center; gap: 2px; }
.stars-big .fa-star.rated { color: #f59e0b; }
.stars-big .fa-star.dim { color: #e5e7eb; }
.stars-big span { font-size: 12px; color: var(--text-muted); margin-right: 6px; }
.reviews-headbar-action .btn { padding: 12px 20px; }
.review-cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.review-cta-note i.fa-check-circle { color: #22c55e; }
.review-cta-note i.fa-lock { color: var(--text-muted); }
.review-alert { margin-bottom: 14px; }

.review-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.review-form { background: transparent; border: none; padding: 0; }
.review-form h4 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 22px; color: #d1d5db; cursor: pointer; transition: color 0.15s ease; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.review-head div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.review-head strong { font-size: 14px; color: var(--text); }
.review-head span { font-size: 11px; color: var(--text-muted); }
.review-stars .fa-star { font-size: 12px; }
.review-stars .fa-star.rated { color: #f59e0b; }
.review-stars .fa-star.dim { color: #e5e7eb; }
.review-item h4 { font-size: 15px; font-weight: 800; color: var(--text); margin: 4px 0 8px; }
.review-item p { font-size: 13px; color: var(--text-body); line-height: 1.9; }
.no-reviews { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-reviews i { font-size: 40px; margin-bottom: 12px; }

/* Sidebar recently viewed */
.sidebar-recent { display: flex; flex-direction: column; gap: 10px; }
.sidebar-recent-item { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px; border-radius: var(--radius-sm); transition: background 0.2s; }
.sidebar-recent-item:hover { background: var(--bg-section); }
.sidebar-recent-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f4f4f3; }
.sidebar-recent-item span { display: flex; flex-direction: column; }
.sidebar-recent-item strong { font-size: 12px; color: var(--text); }
.sidebar-recent-item em { font-size: 12px; color: var(--brand); font-weight: 800; font-style: normal; }

/* Compare table */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 14px; text-align: center; vertical-align: top; }
.compare-table th { min-width: 130px; background: var(--bg-card); }
.compare-table th img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; background: #f4f4f3; display: block; margin-left: auto; margin-right: auto; }
.compare-table th a { font-size: 14px; font-weight: 800; color: var(--text); text-decoration: none; }
.compare-table th a:hover { color: var(--brand); }
.compare-table .compare-label { background: var(--bg-section); color: var(--text-muted); font-weight: 700; font-size: 13px; text-align: right !important; width: 120px; }
.compare-table .old { text-decoration: line-through; color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.compare-table .current { font-size: 17px; font-weight: 900; color: var(--brand); }
.compare-desc { font-size: 12px; color: var(--text-body); line-height: 1.8; }
.compare-th-actions { position: relative; }

@media (max-width: 640px) {
    .product-info-top { flex-direction: column; }
    .price-now { font-size: 24px; }
    .tabs-list { flex-direction: column; }
    .tab-btn { text-align: right; }
}
/* ===== Header: nav-item dropdown + smart search ===== */
.nav-links .nav-item { position: relative; }
.nav-item.has-dropdown > a { padding-left: 4px; }
.nav-caret { font-size: 9px; margin-right: 4px; }
.nav-dropdown {
    position: absolute; top: 100%; right: 0; min-width: 220px;
    background: #20242b; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.5);
    padding: 8px; display: none; flex-direction: column; z-index: 100;
}
.nav-item.has-dropdown:hover .nav-dropdown { display: flex; }
.nav-dropdown a {
    padding: 10px 12px; border-radius: 6px; color: #c9cfd6;
    text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--brand); }

.nav-search { position: relative; margin-right: 6px; }
.nav-search-box {
    display: flex; align-items: center; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14); border-radius: 100px; padding: 0 6px 0 12px;
    min-width: 220px; height: 40px;
}
.nav-search-box input { border: none; outline: none; background: transparent; width: 100%; font-size: 13px; font-family: inherit; color: #e5e7eb; }
.nav-search-box input::placeholder { color: #8f97a0; }
.nav-search-box button {
    border: none; background: var(--brand); color: #000; width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer; font-size: 12px; flex-shrink: 0;
}
.search-suggest {
    position: absolute; top: calc(100% + 8px); right: 0; width: 320px;
    background: #20242b; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5); padding: 8px;
    display: none; z-index: 200; max-height: 420px; overflow: auto;
}
.search-suggest.show { display: block; }
.suggest-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; }
.suggest-item:hover { background: rgba(255,255,255,0.07); }
.suggest-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #2c3138; }
.suggest-item span { display: flex; flex-direction: column; min-width: 0; }
.suggest-item strong { font-size: 13px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item em { font-size: 11px; color: #9aa1a9; font-style: normal; }
.suggest-all { display: block; text-align: center; padding: 10px; color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 6px; }
.suggest-all:hover { color: #ffffff; }

@media (max-width: 991px) {
    .nav-search { display: none; }
    .nav-dropdown { position: static; box-shadow: none; border: none; padding-right: 16px; display: none; }
    .nav-item.has-dropdown:hover .nav-dropdown { display: flex; }
}

.account-section { padding: 40px 0 80px; background: var(--bg-section); min-height: 70vh; }
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }

.account-sidebar {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px;
}
.account-user { display: flex; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid var(--border); }
.account-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--brand);
    display: flex; align-items: center; justify-content: center; color: #000; font-size: 18px; flex-shrink: 0;
}
.account-user-info { min-width: 0; }
.account-user-info strong { display: block; font-size: 14px; color: var(--text); }
.account-user-info span { display: block; font-size: 11px; color: var(--text-muted); word-break: break-all; }
.account-nav { display: flex; flex-direction: column; padding: 8px; }
.account-nav a {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border-radius: var(--radius-sm); color: var(--text-body); text-decoration: none;
    font-size: 14px; font-weight: 600; transition: all 0.2s ease;
}
.account-nav a:hover { background: var(--bg-section); color: var(--text); }
.account-nav a.active { background: var(--brand); color: #000; }
.account-nav a i { width: 18px; text-align: center; }
.account-sidebar-foot { padding: 10px; border-top: 1px solid var(--border); }
.account-logout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px; border-radius: var(--radius-sm); color: #dc2626;
    text-decoration: none; font-size: 13px; font-weight: 700; transition: all 0.2s ease;
}
.account-logout:hover { background: rgba(239,68,68,0.08); }

.account-hello { margin-bottom: 24px; }
.account-hello h1 { font-size: 28px; font-weight: 900; color: var(--text); margin: 8px 0 4px; }
.account-hello p { font-size: 14px; color: var(--text-muted); }

.account-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.account-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px;
}
.account-stat-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.account-stat-icon.brand { background: rgba(251,146,60,0.12); color: var(--brand); }
.account-stat-icon.blue { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.account-stat-icon.green { background: rgba(34,197,94,0.12); color: #15803d; }
.account-stat-icon.purple { background: rgba(139,92,246,0.12); color: #6d28d9; }
.account-stat-card div:last-child { display: flex; flex-direction: column; }
.account-stat-card strong { font-size: 20px; font-weight: 900; color: var(--text); }
.account-stat-card span { font-size: 12px; color: var(--text-muted); }

.account-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.account-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.account-panel-head h3 { font-size: 16px; font-weight: 900; color: var(--text); }
.account-panel-head h3 i { color: var(--brand); margin-left: 6px; }
.account-panel-head a { font-size: 13px; color: var(--brand); font-weight: 700; text-decoration: none; }

.account-order-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.account-order-row:last-child { border-bottom: none; }
.account-order-row div { display: flex; flex-direction: column; }
.account-order-row strong { font-size: 13px; color: var(--text); }
.account-order-row div span { font-size: 11px; color: var(--text-muted); }

.account-profile-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.account-profile-row:last-child { border-bottom: none; }
.account-profile-row span { color: var(--text-muted); }
.account-profile-row strong { color: var(--text); word-break: break-word; text-align: left; }

.account-empty { text-align: center; padding: 40px 20px; }
.account-empty i { font-size: 40px; color: var(--brand); margin-bottom: 14px; }
.account-empty h3 { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.account-empty p { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

.account-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 991px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .account-nav { flex-direction: row; flex-wrap: wrap; }
    .account-stats-grid { grid-template-columns: 1fr 1fr; }
    .account-grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .account-stats-grid { grid-template-columns: 1fr; }
}

/* ===== Dark footer polish ===== */
.site-footer #newsletterForm input[type=email] {
    background: #23262c !important;
    border-color: #343941 !important;
    color: #ffffff !important;
}
.site-footer #newsletterForm input[type=email]::placeholder { color: #828a92; }
.site-footer .footer-col p { color: #a2a9b1 !important; }
