:root {
    --primary: #1E9CD7;
    --primary-dark: #1576B0;
    --primary-light: #4DB8E8;
    --secondary: #D42027;
    --secondary-dark: #B71C1C;
    --dark: #0D1117;
    --dark-bg: #0D1117;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --white: #ffffff;
    --green: #28a745;
    --red: #dc3545;
    --orange: #f57c00;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    height: 70px;
    width: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto 0;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* TOP BAR */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    padding: 6px 0;
}

.top-bar-item {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item i {
    font-size: 11px;
    opacity: 0.9;
}

.top-bar-link {
    color: var(--white);
    font-size: 12px;
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.top-bar-link:hover {
    opacity: 1;
    color: var(--white);
}

/* MAIN HEADER */
.main-header {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 9px;
    color: var(--gray-600);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.search-bar {
    flex: 1;
    max-width: 560px;
    margin: 0 30px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    background: var(--white);
}

.search-category-btn {
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    font-size: 12px;
    padding: 0 14px;
    border-right: 1px solid var(--gray-300);
    white-space: nowrap;
    font-weight: 600;
    min-width: 110px;
    text-align: left;
}

.search-category-btn::after {
    margin-left: 6px;
}

.search-input {
    border: none;
    border-radius: 0;
    font-size: 13px;
    padding: 10px 16px;
    min-width: 0;
    flex: 1;
}

.search-input:focus {
    box-shadow: none;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 0;
}

.search-btn:hover {
    background: var(--primary-light);
}

.header-actions {
    gap: 8px;
}

.header-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background 0.2s;
    white-space: nowrap;
    color: var(--gray-700);
}

.header-action-item:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.header-action-item i {
    font-size: 20px;
    color: var(--primary);
}

.header-action-text {
    display: flex;
    flex-direction: column;
}

.action-label {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.2;
}

.action-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.2;
}

.position-relative {
    position: relative;
}

.badge-icon {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-item {
    border-left: 1px solid var(--gray-200);
    padding-left: 16px;
}

/* HERO SECTION */
.hero-section {
    background: var(--gray-100);
    padding: 16px 0 10px;
}

.hero-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar-menu {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.sidebar-header {
    background: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.sidebar-header i {
    font-size: 14px;
}

.sidebar-item {
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.sidebar-item > a:hover {
    background: var(--primary);
    color: var(--white);
}

.sidebar-item > a i.sidebar-icon {
    font-size: 14px;
    width: 20px;
    margin-right: 6px;
    text-align: center;
}

.sidebar-item > a .fa-chevron-right {
    font-size: 10px;
    opacity: 0.5;
    width: auto;
    margin: 0;
}

.sidebar-sub {
    padding: 0 16px 10px 42px;
    display: none;
}

.sidebar-sub.active {
    display: block;
}

.sidebar-sub li a {
    display: block;
    padding: 3px 0;
    font-size: 12px;
    color: var(--gray-600);
    transition: color 0.2s;
}

.sidebar-sub li a:hover {
    color: var(--primary);
}

.sidebar-view-all {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.sidebar-view-all:hover {
    color: var(--primary-light);
    background: transparent;
}

.sidebar-view-all i {
    font-size: 12px;
}

.hero-center {
    flex: 1;
    min-width: 0;
    position: relative;
    width: 100%;
}

.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark);
    height: 400px;
    display: block;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.7) 40%, rgba(13, 17, 23, 0.2) 70%, transparent 100%);
    z-index: 1;
}

.hero-slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    align-items: center;
}
.hero-slide-item.active {
    display: flex;
    animation: heroSlideIn 0.7s ease-out;
}
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    padding: 50px 55px;
    max-width: 55%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-banner h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.hero-banner h1 span {
    color: var(--secondary);
    display: block;
    background: linear-gradient(90deg, var(--secondary), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.35s ease;
    border: 2px solid var(--secondary);
    text-transform: uppercase;
}

.hero-btn i {
    font-size: 12px;
    transition: transform 0.35s ease;
}

.hero-btn:hover {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(245, 166, 35, 0.3);
}

.hero-btn:hover i {
    transform: translateX(5px);
}

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 55px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--secondary);
    width: 50px;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-features-right {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}

.hero-feature-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    flex: 1;
}

.hero-feature-box:hover {
    transform: translateY(-2px);
}

.hero-feature-box .hf-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e0f4fc, #c8eaf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.hero-feature-box .hf-icon img {
    width: 40px;
    height: 40px;
}

.hero-feature-box h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1px;
}

.hero-feature-box p {
    font-size: 10px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.3;
}

/* PREMIUM BANNER */
.premium-banner-section {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.premium-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.premium-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(30, 156, 215, 0.3) 50%, rgba(13, 17, 23, 0.9) 100%);
    z-index: 1;
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.premium-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-title span {
    background: linear-gradient(90deg, var(--secondary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.premium-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.35s ease;
    border: 2px solid var(--secondary);
    text-transform: uppercase;
}

.premium-btn i {
    font-size: 12px;
    transition: transform 0.35s ease;
}

.premium-btn:hover {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(212, 32, 39, 0.4);
}

.premium-btn:hover i {
    transform: translateX(5px);
}

/* TRUST BAR */
.trust-bar {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item .ti-icon {
    width: 44px;
    height: 44px;
    background: #e0f4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.trust-item .ti-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
}

.trust-item .ti-text span {
    font-size: 11px;
    color: var(--gray-500);
}

/* SECTION STYLES */
.section {
    padding: 30px 0;
}

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

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: 0.3px;
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* SHOP BY CATEGORY */
.category-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    height: 180px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card.mobile-phones {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.category-card.earbuds {
    background: linear-gradient(135deg, var(--dark), #1a2332);
    color: var(--white);
}

.category-card.chargers {
    background: linear-gradient(135deg, #f0f0f5, #e5e5ea);
    color: var(--gray-800);
}

.category-card-content h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.category-card-content p {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.category-card-content .cat-shop-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: inherit;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.chargers .cat-shop-btn {
    background: var(--white);
    color: var(--gray-800);
    border-color: var(--gray-300);
}

.category-card-content .cat-shop-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.category-card-image {
    position: absolute;
    right: 20px;
    bottom: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.category-card-image img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* TOP BRANDS */
.brands-section {
    padding: 20px 0;
}

.brands-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-item {
    flex: 1;
    min-width: 110px;
    height: 60px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.brand-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.brand-item span {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-700);
    letter-spacing: -0.5px;
}

.brand-item.samsung span { font-family: serif; font-size: 16px; }
.brand-item.honor span { font-size: 18px; font-weight: 900; }
.brand-item.oppo span { font-size: 18px; font-weight: 800; color: var(--green); }
.brand-item.vivo span { font-size: 18px; font-weight: 700; color: var(--primary); }
.brand-item.infinix span { font-size: 16px; font-weight: 800; }
.brand-item.mi span { font-size: 18px; font-weight: 900; color: var(--orange); }
.brand-item.blackview span { font-size: 15px; font-weight: 800; }

/* PRODUCTS */
.products-section {
    padding: 30px 0;
}

.products-carousel {
    position: relative;
}

.products-row {
    display: flex;
    gap: 16px;
    overflow: hidden;
    padding: 10px 0;
}

.product-card {
    min-width: calc(16.666% - 14px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badge .badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.badge-new {
    background: var(--green);
    color: var(--white);
}

.badge-discount {
    background: var(--red);
    color: var(--white);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    max-height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.product-info {
    padding: 14px;
}

.product-name {
    font-size: 12px;
    color: var(--gray-700);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

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

.product-price .current {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.product-price .original {
    font-size: 12px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating .stars {
    display: flex;
    gap: 1px;
}

.product-rating .stars i {
    font-size: 11px;
    color: #ffc107;
}

.product-rating .count {
    font-size: 11px;
    color: var(--gray-500);
}

.product-add-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-add-btn:hover {
    background: var(--primary-light);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* PROMO BANNERS */
.promo-section {
    padding: 10px 0 30px;
}

.promo-grid {
    display: flex;
    gap: 16px;
}

.promo-card {
    flex: 1;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.promo-card:hover {
    transform: translateY(-4px);
}

.promo-card.power {
    background: linear-gradient(135deg, var(--dark), #1a2332);
    color: var(--white);
}

.promo-card.sound {
    background: linear-gradient(135deg, #f5f5f0, #eee8df);
    color: var(--gray-800);
}

.promo-card.charge {
    background: linear-gradient(135deg, #e0f4fc, #c8eaf8);
    color: var(--gray-800);
}

.promo-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.promo-card p {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 14px;
}

.promo-card .promo-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: inherit;
}

.promo-card.power .promo-btn {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.promo-card.sound .promo-btn {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.promo-card.charge .promo-btn {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.promo-btn:hover {
    transform: translateY(-2px);
}

.promo-card-image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    opacity: 0.9;
}

.promo-card-image img {
    width: 100%;
    height: auto;
}

/* SERVICES BAR */
.services-bar {
    background: var(--white);
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.services-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item .si-icon {
    width: 40px;
    height: 40px;
    background: #e0f4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.service-item .si-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
}

.service-item .si-text span {
    font-size: 11px;
    color: var(--gray-500);
}

/* FOOTER */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding-top: 40px;
}

.footer-top {
    padding-bottom: 30px;
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    font-size: 13px;
    color: var(--gray-500);
    transition: all 0.2s;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact li {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.footer-contact li i {
    margin-top: 3px;
    color: var(--primary-light);
    width: 16px;
    text-align: center;
}

.footer-subscribe-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 14px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 0;
}

.subscribe-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.subscribe-form .form-control::placeholder {
    color: var(--gray-500);
}

.subscribe-form .form-control:focus {
    box-shadow: none;
    outline: none;
    border-color: var(--primary-light);
}

.subscribe-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
}

.footer-copyright {
    font-size: 12px;
    color: var(--gray-500);
}

.payment-methods {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-methods img {
    height: 24px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .product-card {
        min-width: calc(25% - 12px);
    }
    .hero-banner h1 {
        font-size: 30px;
    }
    .hero-slide-content {
        padding: 40px 40px;
    }
}

@media (max-width: 991px) {
    .hero-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .sidebar-menu {
        display: none;
    }
    .hero-features-right {
        width: 100%;
        flex-direction: row;
        align-self: auto;
    }
    .hero-banner {
        height: 320px;
    }
    .hero-slide-content {
        max-width: 65%;
        padding: 35px 35px;
    }
    .hero-banner h1 {
        font-size: 28px;
    }
    .product-card {
        min-width: calc(33.33% - 11px);
    }
    .promo-grid {
        flex-wrap: wrap;
    }
    .promo-card {
        min-width: calc(50% - 8px);
    }
    .brands-grid {
        flex-wrap: wrap;
    }
    .brand-item {
        min-width: calc(25% - 12px);
    }
}

@media (max-width: 767px) {
    .top-bar-left .top-bar-item:nth-child(n+3) {
        display: none;
    }
    .header-actions {
        display: none !important;
    }
    .search-bar {
        margin: 0 10px;
        max-width: 100%;
    }
    .search-category-btn {
        min-width: auto;
        font-size: 11px;
        padding: 0 10px;
    }
    .hero-section {
        padding: 10px 0 0;
    }
    .hero-layout {
        gap: 12px;
    }
    .hero-banner {
        height: 300px;
    }
    .hero-slide-content {
        max-width: 100%;
        padding: 24px 20px;
    }
    .hero-badge {
        font-size: 9px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
    .hero-banner h1 {
        font-size: 22px;
    }
    .hero-banner p {
        font-size: 11px;
        margin-bottom: 16px;
    }
    .hero-btn {
        padding: 10px 22px;
        font-size: 11px;
    }
    .hero-dots {
        left: 20px;
        bottom: 14px;
    }
    .hero-video-overlay {
        background: linear-gradient(90deg, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0.5) 50%, rgba(13, 17, 23, 0.2) 100%);
    }
    .hero-features-right {
        display: none;
    }
    .product-card {
        min-width: calc(50% - 8px);
    }
    .promo-card {
        min-width: 100%;
    }
    .trust-items {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    .services-grid {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .brands-grid {
        justify-content: center;
    }
    .brand-item {
        min-width: calc(33.33% - 10px);
    }
    .footer-bottom .d-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .top-bar-left .top-bar-item:nth-child(n+2) {
        display: none;
    }
    .hero-banner {
        height: 240px;
    }
    .hero-banner h1 {
        font-size: 20px;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 11px;
        gap: 8px;
    }
    .product-card {
        min-width: calc(50% - 8px);
    }
    .promo-grid {
        gap: 10px;
    }
    .hero-banner h1 {
        font-size: 18px;
    }
    .hero-banner p {
        font-size: 11px;
    }
}

/* EXTENSION STYLES - DUBAI LANKAN */

/* Sticky Header on Scroll */
.main-header.sticky-top {
    transition: all 0.3s ease;
}
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 8px 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Glassmorphism Category Cards */
.category-card {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Flash Sale Timer styling */
.flash-sale-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}
.countdown-unit {
    background: var(--dark);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 800;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.countdown-unit span {
    font-size: 18px;
    line-height: 1.1;
}
.countdown-unit label {
    font-size: 9px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 0;
    opacity: 0.8;
}
.countdown-colon {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}
.progress-bar-container {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--orange) 100%);
    border-radius: 3px;
}

/* Wishlist Button Active state */
.product-action-btn.ajax-wishlist-toggle.active {
    color: var(--red) !important;
}

/* Hero Slider Slides (Support Dynamic Slider) */
.hero-center {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Product Card Improvements */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s;
    cursor: pointer;
}
.product-card-wishlist:hover, .product-card-wishlist.active {
    color: var(--red);
    background: var(--white);
    box-shadow: var(--shadow);
}
.product-card-discount-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* Product Details Page Styling */
.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-main-img-box {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.product-main-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-main-img-box:hover img {
    transform: scale(1.1);
}
.product-thumb-row {
    display: flex;
    gap: 10px;
}
.product-thumb-box {
    width: 70px;
    height: 70px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 8px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-thumb-box.active {
    border-color: var(--primary);
}
.product-thumb-box img {
    max-height: 100%;
    object-fit: contain;
}

/* Review Stars formatting */
.review-star-selector {
    direction: rtl;
    display: inline-flex;
    gap: 4px;
}
.review-star-selector input {
    display: none;
}
.review-star-selector label {
    font-size: 24px;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.2s;
}
.review-star-selector label:hover,
.review-star-selector label:hover ~ label,
.review-star-selector input:checked ~ label {
    color: #ffc107;
}

/* Breadcrumbs Custom styling */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}
.breadcrumb-section .breadcrumb {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}
.breadcrumb-item a {
    color: var(--primary-light);
}

/* Cart & Wishlist Pages styling */
.checkout-summary-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.cart-table-img {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-table-img img {
    max-height: 100%;
    object-fit: contain;
}

/* Modern Glassmorphic Admin Panels */
.admin-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: all 0.3s;
}
.admin-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.admin-sidebar {
    background: var(--dark-bg);
    color: var(--white);
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: var(--secondary);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--secondary);
}
