/* ============================================
   SAGEROOT MOBILE - Main Stylesheet
   Advanced Mobile & Tech Product Selling Theme
   Performance Optimized | SEO Ready | Ad Ready
   ============================================ */

/* CSS Variables (defaults - overridden by customizer) */
:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --text: #1f2937;
    --bg: #ffffff;
    --light-bg: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --green: #10b981;
    --red: #ef4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.063rem; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--secondary);
    color: #fff;
    padding: 8px 0;
    font-size: 0.813rem;
    text-align: center;
}

.top-bar-text { margin: 0; font-weight: 500; letter-spacing: 0.3px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    position: relative;
}

.site-header.sticky-header {
    position: sticky;
    top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.site-branding { flex-shrink: 0; }

.site-title-link { text-decoration: none; }
.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    white-space: nowrap;
}

.custom-logo-link img { max-height: 48px; width: auto; }

/* Search */
.header-search { flex: 1; max-width: 500px; }

.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--primary); }

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 0.938rem;
    background: var(--light-bg);
}

.search-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
}
.search-btn:hover { background: var(--secondary); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-cart, .header-account {
    position: relative;
    color: var(--text);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.header-cart:hover, .header-account:hover { background: var(--light-bg); color: var(--primary); }

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #000;
    font-size: 0.688rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile search - hidden on desktop */
.mobile-search-toggle { display: none; }
.mobile-search-bar { display: none; }

/* Hamburger */
.menu-toggle {
    display: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    position: absolute;
    left: 8px;
}
.hamburger { top: 19px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }

.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Navigation */
.main-nav {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}

.nav-menu {
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.nav-menu li { position: relative; }

.nav-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.938rem;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 100;
    padding: 8px 0;
}

.nav-menu li:hover > .sub-menu { display: block; }

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.nav-menu .sub-menu a:hover { background: var(--light-bg); color: var(--primary); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb-wrap {
    background: var(--light-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.813rem;
}

.breadcrumb-list a { color: var(--primary); }
.breadcrumb-sep { color: #9ca3af; margin: 0 2px; }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
    text-align: center;
    padding: 10px 0;
    overflow: hidden;
    clear: both;
    position: relative;
    margin: 20px auto;
    max-width: 728px;
    contain: layout style;
}
.ad-after-hero { margin: 24px auto 8px; }
.ad-after_hot_deals { margin: 8px auto 24px; }
.ad-after_giveaway { margin: 8px auto 24px; }
.ad-after_breadcrumbs { margin: 12px auto 20px; }
.ad-after_product_info { margin: 20px auto; }
.ad-after_content { margin-top: 24px; }
.ad-in_article { margin: 24px auto; }
.ad-sidebar { margin-bottom: 24px; }
.ad-between_steps { margin: 16px auto; }

/* Ad Placeholder - visible slot for AdSense */
.ad-placeholder {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.ad-placeholder span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
}

/* Lazy load ad animation */
.ad-slot[data-ad-lazy="true"] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ad-slot[data-ad-lazy="true"].ad-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
/* Old hero kept for fallback */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, #3b82f6 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    background-size: cover;
    background-position: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}
.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-buttons .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.hero-buttons .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}
.hero-buttons .btn-outline {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.hero-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* ============================================
   HERO SECTION V2 - EPIC ANIMATED
   ============================================ */
.hero-section-v2 {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    color: #fff;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 25%, #1e3a5f 50%, #24243e 75%, #0f0c29 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 12s ease infinite;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: particleFloat 20s linear infinite;
}
.p1 { width: 6px; height: 6px; top: 10%; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.p2 { width: 4px; height: 4px; top: 20%; left: 80%; animation-duration: 22s; animation-delay: -3s; }
.p3 { width: 8px; height: 8px; top: 60%; left: 20%; animation-duration: 25s; animation-delay: -7s; }
.p4 { width: 5px; height: 5px; top: 80%; left: 70%; animation-duration: 20s; animation-delay: -2s; }
.p5 { width: 3px; height: 3px; top: 40%; left: 50%; animation-duration: 16s; animation-delay: -5s; }
.p6 { width: 7px; height: 7px; top: 70%; left: 90%; animation-duration: 23s; animation-delay: -10s; }
.p7 { width: 4px; height: 4px; top: 15%; left: 40%; animation-duration: 19s; animation-delay: -4s; }
.p8 { width: 6px; height: 6px; top: 50%; left: 5%; animation-duration: 21s; animation-delay: -8s; }
.p9 { width: 5px; height: 5px; top: 30%; left: 65%; animation-duration: 17s; animation-delay: -1s; }
.p10 { width: 3px; height: 3px; top: 90%; left: 35%; animation-duration: 24s; animation-delay: -6s; }
.p11 { width: 8px; height: 8px; top: 5%; left: 55%; animation-duration: 26s; animation-delay: -12s; background: rgba(99,102,241,0.15); }
.p12 { width: 6px; height: 6px; top: 45%; left: 85%; animation-duration: 15s; animation-delay: -9s; background: rgba(245,158,11,0.12); }

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-120px) translateX(40px) scale(1.5); }
    90% { opacity: 1; }
    100% { transform: translateY(-250px) translateX(-30px) scale(0.5); opacity: 0; }
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Text Side */
.hero-text-side {
    position: relative;
    z-index: 2;
}

.hero-offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.hero-title-v2 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle-v2 {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 520px;
    color: #cbd5e1;
}

/* Glow Buttons */
.hero-buttons-v2 {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), 0 0 40px rgba(37, 99, 235, 0.2);
    animation: glowPulse 2.5s ease-in-out infinite;
    text-decoration: none;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.7), 0 0 60px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.btn-accent-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.15);
    animation: glowPulseAccent 2.5s ease-in-out infinite;
    text-decoration: none;
}
.btn-accent-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 60px rgba(245, 158, 11, 0.25);
    color: #fff;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), 0 0 40px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.7), 0 0 60px rgba(37, 99, 235, 0.35); }
}
@keyframes glowPulseAccent {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.15); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 60px rgba(245, 158, 11, 0.3); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Phones Side */
.hero-phones-side {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone {
    position: absolute;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.hero-phone:hover {
    transform: scale(1.05);
    z-index: 10;
}

.hero-phone-1 {
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%) rotate(-3deg);
}
.hero-phone-1:hover {
    transform: translate(-50%, -55%) rotate(-3deg) scale(1.05);
}

.hero-phone-2 {
    z-index: 2;
    left: 10%;
    top: 50%;
    transform: translateY(-45%) rotate(5deg);
}
.hero-phone-2:hover {
    transform: translateY(-45%) rotate(5deg) scale(1.05);
}

.hero-phone-3 {
    z-index: 1;
    right: 5%;
    top: 55%;
    transform: translateY(-40%) rotate(-8deg);
}
.hero-phone-3:hover {
    transform: translateY(-40%) rotate(-8deg) scale(1.05);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    z-index: 5;
    letter-spacing: 0.3px;
}
.badge-1 {
    background: linear-gradient(135deg, #ef4444, #f97316);
    top: 8%;
    right: 5%;
    animation: badgeFloat1 4s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.badge-2 {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    bottom: 15%;
    left: 0;
    animation: badgeFloat2 5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.badge-3 {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    bottom: 5%;
    right: 10%;
    animation: badgeFloat3 4.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

@keyframes badgeFloat1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes badgeFloat2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes badgeFloat3 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

/* Float Animations for Phones */
@keyframes heroFloat {
    0%, 100% { transform: translate(-50%, -55%) rotate(-3deg) translateY(0); }
    50% { transform: translate(-50%, -55%) rotate(-3deg) translateY(-15px); }
}
@keyframes heroFloatDelayed {
    0%, 100% { transform: translateY(-45%) rotate(5deg) translateX(0); }
    50% { transform: translateY(-45%) rotate(5deg) translateX(8px) translateY(-10px); }
}
@keyframes heroFloatMore {
    0%, 100% { transform: translateY(-40%) rotate(-8deg) translateX(0); }
    50% { transform: translateY(-40%) rotate(-8deg) translateX(-8px) translateY(-12px); }
}

.animate-float {
    animation: heroFloat 5s ease-in-out infinite;
}
.animate-float-delayed {
    animation: heroFloatDelayed 6s ease-in-out infinite;
    animation-delay: -1.5s;
}
.animate-float-more-delayed {
    animation: heroFloatMore 5.5s ease-in-out infinite;
    animation-delay: -3s;
}

/* Slide/Fade Animations */
.animate-bounce {
    animation: heroBounce 2s ease-in-out infinite;
}
@keyframes heroBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-slideIn {
    opacity: 0;
    transform: translateX(-40px);
    animation: heroSlideInLeft 0.8s ease forwards;
}
.animate-slideIn-delay {
    opacity: 0;
    transform: translateX(-40px);
    animation: heroSlideInLeft 0.8s ease 0.2s forwards;
}

@keyframes heroSlideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slideRight {
    opacity: 0;
    transform: translateX(60px);
    animation: heroSlideInRight 1s ease 0.3s forwards;
}
@keyframes heroSlideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fadeUp {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeInUp 0.7s ease 0.4s forwards;
}
.animate-fadeUp-delay {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeInUp 0.7s ease 0.7s forwards;
}
@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 60px 0;
    position: relative;
    clear: both;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-desc {
    color: #6b7280;
    font-size: 1.063rem;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-section { background: var(--light-bg); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: block;
    color: var(--text);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.category-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder { color: #9ca3af; }

.category-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.813rem;
    color: #6b7280;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
}

.sale-badge-lg { font-size: 0.875rem; padding: 6px 16px; }
.discount-badge { background: var(--green); }

.product-link {
    display: block;
    color: var(--text);
    flex: 1;
}
.product-link:hover { color: var(--text); }

.product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img { transform: scale(1.05); }

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-info { padding: 16px; }

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-excerpt {
    font-size: 0.813rem;
    color: #6b7280;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.875rem;
}

.product-price ins {
    text-decoration: none;
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.star-rating { color: var(--accent); font-size: 0.875rem; }
.rating-count { font-size: 0.75rem; color: #6b7280; }

.product-actions {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-actions .btn { width: 100%; text-align: center; }

.save-text {
    color: var(--green);
    font-size: 0.813rem;
    font-weight: 600;
    margin: 4px 0 0;
}

/* Product Price Display - Regular & Sale */
.product-price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}

.price-regular {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 400;
}

.price-regular del {
    text-decoration: line-through;
}

.price-sale {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.price-current {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 800;
}

/* Stock Badge */
.stock-badge {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.in-stock-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.out-stock-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Demo Notice */
.demo-notice {
    text-align: center;
    color: #9ca3af;
    font-size: 0.813rem;
    margin-top: 20px;
    font-style: italic;
}

/* Why Choose Us */
.why-us-section {
    background: var(--light-bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.why-icon {
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.blog-card-link { display: block; color: var(--text); }
.blog-card-link:hover { color: var(--text); }

.blog-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--light-bg);
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.blog-info { padding: 20px; }

.blog-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-cat {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   CONTENT WRAPPER (WITH SIDEBAR)
   ============================================ */
.content-wrapper {
    padding: 40px 0;
}

.content-wrapper.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.063rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); font-size: 0.875rem; }
.widget ul li a:hover { color: var(--primary); }

.popular-posts li {
    display: flex;
    gap: 12px;
    align-items: center;
}
.popular-posts li a { display: flex; gap: 12px; align-items: center; }
.popular-posts li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-single { max-width: 100%; }

.post-header { margin-bottom: 24px; }

.post-categories { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.post-cat-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 600;
}

.post-title { font-size: 2rem; line-height: 1.25; margin-bottom: 16px; }

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7280;
    font-size: 0.875rem;
}

.post-author {
    display: flex;
    gap: 10px;
    align-items: center;
}
.post-author img { border-radius: 50%; }
.post-author span { display: flex; flex-direction: column; gap: 2px; }
.post-author strong { color: var(--text); }

.post-meta-right { display: flex; align-items: center; gap: 6px; }

.post-featured-img {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}
.post-featured-img img { width: 100%; }

/* Entry Content */
.entry-content { font-size: 1.063rem; line-height: 1.8; }

.entry-content h2 { font-size: 1.625rem; margin: 32px 0 16px; }
.entry-content h3 { font-size: 1.375rem; margin: 28px 0 12px; }
.entry-content h4 { font-size: 1.125rem; margin: 24px 0 10px; }

.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--light-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.entry-content img { border-radius: var(--radius-sm); margin: 16px 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.entry-content table th,
.entry-content table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}
.entry-content table th { background: var(--light-bg); font-weight: 600; }

.entry-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
}

.entry-content code {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}
.entry-content pre code { background: none; padding: 0; }

/* Post Tags */
.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.tags-label { font-weight: 600; font-size: 0.875rem; }

.tag-link {
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.813rem;
    color: #6b7280;
    border: 1px solid var(--border);
}
.tag-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Share Buttons */
.post-share {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label { font-weight: 600; font-size: 0.875rem; }

.share-buttons { display: flex; gap: 8px; }

.share-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--light-bg);
    border-radius: var(--radius);
    margin: 24px 0;
}

.author-avatar img { border-radius: 50%; width: 80px; height: 80px; }
.author-name { margin-bottom: 4px; font-size: 1.125rem; }
.author-bio { color: #6b7280; font-size: 0.875rem; margin: 0; }

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.nav-prev, .nav-next {
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-prev:hover, .nav-next:hover { background: rgba(37,99,235,0.08); color: var(--primary); }
.nav-next { text-align: right; }
.nav-label { font-size: 0.75rem; color: #6b7280; }
.nav-title { font-weight: 600; font-size: 0.938rem; }

/* Related Posts */
.related-posts { margin-top: 40px; }
.related-title { font-size: 1.5rem; margin-bottom: 20px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    color: var(--text);
    display: block;
}
.related-card:hover { color: var(--primary); }

.related-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.related-img img { width: 100%; height: 100%; object-fit: cover; }

.related-card-title { font-size: 0.938rem; font-weight: 600; margin-bottom: 4px; }
.related-date { font-size: 0.75rem; color: #6b7280; }

/* ============================================
   ARCHIVE / BLOG LISTING
   ============================================ */
.archive-header { margin-bottom: 32px; }
.archive-title { font-size: 2rem; margin-bottom: 8px; }
.archive-desc { color: #6b7280; }

/* Pagination */
.pagination {
    padding: 40px 0 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    gap: 4px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers li {
    list-style: none;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pagination .page-numbers .current,
.pagination .page-numbers a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   SINGLE PRODUCT
   ============================================ */
.product-single { padding: 40px 0; }

.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Product Gallery */
.product-gallery { position: relative; }

.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Details */
.product-detail-title { font-size: 1.75rem; margin-bottom: 12px; }

.product-cats { margin-bottom: 8px; }
.product-cat-link {
    font-size: 0.813rem;
    color: var(--primary);
    margin-right: 8px;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.rating-text { font-size: 0.875rem; color: #6b7280; }

.product-price-large {
    margin-bottom: 20px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price-large del {
    color: #9ca3af;
    font-size: 1.25rem;
    font-weight: 400;
}

.product-price-large ins {
    text-decoration: none;
}

.product-price-large .discount-badge {
    position: static;
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-left: 12px;
    vertical-align: middle;
}

.save-amount {
    color: var(--green);
    font-size: 0.938rem;
    font-weight: 600;
    margin-top: 4px;
}

.product-short-desc {
    margin-bottom: 20px;
    color: #4b5563;
    line-height: 1.7;
}

/* Quick Specs */
.quick-specs {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.quick-specs-title {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text);
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.spec-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-value { font-weight: 600; font-size: 0.875rem; }

/* Availability */
.product-availability {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.in-stock {
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.out-of-stock { color: var(--red); font-weight: 600; }
.product-sku { color: #6b7280; }

/* Add to Cart */
.product-add-to-cart {
    margin-bottom: 20px;
}

.product-add-to-cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-right: 12px;
}

.product-add-to-cart .quantity input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 10px;
    font-weight: 600;
}

.product-add-to-cart .single_add_to_cart_button {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.product-add-to-cart .single_add_to_cart_button:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.813rem;
    color: #6b7280;
    font-weight: 500;
}

/* Product Tabs */
.product-tabs-section {
    margin: 40px 0;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.938rem;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel { display: none; padding: 32px 0; }
.tab-panel.active { display: block; }

.tab-panel h2 { font-size: 1.375rem; margin-bottom: 16px; }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) { background: var(--light-bg); }
.specs-table th { text-align: left; padding: 12px 16px; font-weight: 600; color: #6b7280; width: 35%; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.specs-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.938rem; }

/* Related Products */
.related-products-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* ============================================
   SHOP PAGE
   ============================================ */
.shop-header { margin-bottom: 24px; }
.shop-title { font-size: 2rem; margin-bottom: 8px; }
.shop-desc { color: #6b7280; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left { display: flex; align-items: center; gap: 16px; }

.filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

.toolbar-right select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--bg);
}

.woocommerce-result-count { font-size: 0.875rem; color: #6b7280; }

/* ============================================
   MULTI-STEP CHECKOUT
   ============================================ */
.checkout-steps-wrapper {
    background: var(--bg);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--primary);
    color: #fff;
}

.step.completed .step-number { background: var(--green); }

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.step.active .step-label { color: var(--primary); font-weight: 700; }
.step.completed .step-label { color: var(--green); }

.step-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Checkout Panels */
.checkout-step-panel {
    display: none;
    max-width: 800px;
    margin: 32px auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.checkout-step-panel.active { display: block; }

.step-panel-header {
    padding: 24px 32px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}

.step-panel-header h2 { font-size: 1.375rem; margin-bottom: 4px; }
.step-panel-header p { color: #6b7280; font-size: 0.938rem; margin: 0; }

.step-panel-content { padding: 32px; }

.step-actions {
    display: flex;
    justify-content: space-between;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    background: var(--light-bg);
}

/* Checkout Fields */
.checkout-fields-group { display: flex; flex-direction: column; gap: 20px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-col.full { grid-column: 1 / -1; }

.field-row label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--text);
}

.required { color: var(--red); }

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.938rem;
    transition: border-color 0.2s;
    background: var(--bg);
}
.input-field:focus { border-color: var(--primary); outline: none; }

textarea.input-field { resize: vertical; }

/* Cart Review Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 12px;
    font-size: 0.813rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-product-info small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Coupon */
.coupon-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.coupon-section label { font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; display: block; }

.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; padding: 10px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); }

/* Cart Totals Mini */
.cart-totals-mini {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.938rem;
}

.total-final {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--border);
    color: var(--primary);
}

/* Shipping Options */
.shipping-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.shipping-option.active,
.shipping-option:hover { border-color: var(--primary); }

.shipping-icon { color: var(--primary); flex-shrink: 0; }

.shipping-info strong { display: block; margin-bottom: 2px; }
.shipping-info span { font-size: 0.813rem; color: #6b7280; }
.shipping-price { margin-left: auto; font-weight: 700; color: var(--green); }

/* Payment Methods */
.payment_methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment_methods li {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.payment_methods li:has(input:checked) { border-color: var(--primary); background: rgba(37,99,235,0.04); }

.payment_methods label {
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
}

.payment_box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.875rem; color: #6b7280; }

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.813rem;
    color: var(--green);
    font-weight: 500;
}

/* Order Review */
.order-review-summary { display: flex; flex-direction: column; gap: 24px; }

.review-section {
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    position: relative;
}

.review-section h3 { font-size: 1rem; margin-bottom: 12px; color: var(--text); }

.edit-step {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--primary);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
}

.review-totals {
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.btn-place-order {
    width: 100%;
    padding: 18px;
    font-size: 1.125rem;
    margin-top: 24px;
}

.terms-section {
    font-size: 0.813rem;
    color: #6b7280;
    margin-bottom: 16px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.cta-title { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.cta-desc { opacity: 0.9; font-size: 1.063rem; max-width: 500px; margin: 0 auto; }

/* ============================================
   FOOTER
   ============================================ */
.footer-features {
    background: var(--light-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.feature-item svg { color: var(--primary); flex-shrink: 0; }
.feature-item strong { display: block; font-size: 0.875rem; }
.feature-item span { font-size: 0.75rem; color: #6b7280; }

.footer-widgets {
    padding: 48px 0;
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-widgets .custom-logo-link img { max-height: 40px; margin-bottom: 12px; }

.social-links { display: flex; gap: 8px; }

.social-link {
    padding: 6px 14px;
    border: 1px solid #374151;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #d1d5db;
    transition: all 0.2s;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-widgets .widget-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.footer-menu li { padding: 6px 0; }
.footer-menu a { color: #d1d5db; font-size: 0.875rem; transition: color 0.2s; }
.footer-menu a:hover { color: var(--primary); }

.footer-contact { font-size: 0.875rem; }
.footer-contact li { padding: 6px 0; }

.footer-bottom {
    background: #0b0f19;
    padding: 20px 0;
    text-align: center;
}

.copyright { color: #6b7280; font-size: 0.813rem; margin: 0; }

/* ============================================
   404 PAGE
   ============================================ */
.error-404-page {
    padding: 80px 0;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
}

.error-title { font-size: 2rem; margin-bottom: 12px; }
.error-desc { color: #6b7280; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

.error-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }

.error-search { max-width: 400px; margin: 0 auto; }
.error-search p { margin-bottom: 12px; color: #6b7280; }

/* ============================================
   PAGE
   ============================================ */
.page-content { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 2.25rem; }

/* ============================================
   NO RESULTS
   ============================================ */
.no-posts, .no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-bg);
    border-radius: var(--radius);
}

/* ============================================
   WOOCOMMERCE NOTICES
   ============================================ */
.woocommerce-message,
.woocommerce-info {
    background: rgba(37, 99, 235, 0.08);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 20px;
    font-size: 0.938rem;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 20px;
    color: var(--red);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .content-wrapper.with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .product-top {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        gap: 8px;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .header-search { display: none; }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Top bar smaller text on mobile */
    .top-bar {
        padding: 6px 0;
        font-size: 0.7rem;
    }

    /* Cart and giveaway icons smaller on mobile */
    .header-cart svg, .header-giveaway svg {
        width: 20px;
        height: 20px;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    /* Mobile search toggle */
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: var(--text);
        background: none;
        border: none;
        cursor: pointer;
        transition: background 0.2s;
    }
    .mobile-search-toggle:hover {
        background: var(--light-bg);
    }

    /* Mobile search bar below header */
    .mobile-search-bar {
        display: none;
        padding: 8px 16px 12px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }
    .mobile-search-bar.active {
        display: block;
    }
    .mobile-search-bar .search-form {
        display: flex;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
    }
    .mobile-search-bar .search-input {
        flex: 1;
        border: none;
        padding: 10px 14px;
        font-size: 0.9rem;
        outline: none;
    }
    .mobile-search-bar .search-btn {
        padding: 10px 14px;
        background: var(--primary);
        color: #fff;
        border: none;
        cursor: pointer;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }
    .main-nav.active { display: block; }

    .nav-menu { flex-direction: column; padding: 12px 0; }
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .hero-title { font-size: 2rem; }
    .hero-section { padding: 50px 0; }

    /* Hero V2 Tablet */
    .hero-section-v2 { padding: 50px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-title-v2 { font-size: 2.25rem; }
    .hero-subtitle-v2 { margin: 0 auto 24px; }
    .hero-buttons-v2 { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-phones-side { height: 300px; }
    .hero-phone-1 svg { width: 120px; height: 210px; }
    .hero-phone-2 svg { width: 110px; height: 195px; }
    .hero-phone-3 svg { width: 105px; height: 185px; }
    .hero-phone-2 { left: 15%; }
    .hero-phone-3 { right: 10%; }

    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .blog-grid { grid-template-columns: 1fr; }

    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .post-title { font-size: 1.5rem; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .post-navigation { grid-template-columns: 1fr; }

    .checkout-steps { overflow-x: auto; gap: 4px; }
    .step-label { font-size: 0.688rem; }
    .step-number { width: 30px; height: 30px; font-size: 0.75rem; }

    .field-row { grid-template-columns: 1fr; }
    .step-panel-content { padding: 20px; }
    .step-actions { padding: 16px 20px; }

    .sidebar { grid-template-columns: 1fr; }

    .filter-toggle { display: flex; }
    .shop-sidebar { display: none; }
    .shop-sidebar.active { display: block; }

    .tab-nav { gap: 0; }
    .tab-btn { padding: 10px 14px; font-size: 0.813rem; }

    .specs-list { grid-template-columns: 1fr; }

    .error-code { font-size: 5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }

    .hero-title { font-size: 1.625rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    /* Hero V2 Mobile */
    .hero-section-v2 { padding: 40px 0 30px; }
    .hero-title-v2 { font-size: 1.75rem; }
    .hero-subtitle-v2 { font-size: 0.95rem; }
    .hero-buttons-v2 { flex-direction: column; }
    .hero-buttons-v2 .btn-glow,
    .hero-buttons-v2 .btn-accent-glow { width: 100%; justify-content: center; padding: 12px 24px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-number { font-size: 1.25rem; }
    .stat-item:not(:last-child)::after { display: none; }
    .hero-phones-side { height: 240px; }
    .hero-phone-1 svg { width: 100px; height: 175px; }
    .hero-phone-2 svg { width: 90px; height: 160px; }
    .hero-phone-3 svg { width: 85px; height: 150px; }
    .hero-phone-2 { left: 5%; }
    .hero-phone-3 { right: 2%; }
    .floating-badge { font-size: 0.65rem; padding: 5px 10px; }
    .category-page-title { font-size: 1.75rem; }

    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-card { padding: 14px 8px; }
    .category-img { width: 56px; height: 56px; margin-bottom: 8px; }
    .category-img svg { width: 30px; height: 30px; }
    .category-name { font-size: 0.8rem; }
    .category-count { font-size: 0.7rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px; }
    .product-title { font-size: 0.85rem; margin-bottom: 4px; }
    .product-price-display { gap: 4px; flex-wrap: wrap; }
    .price-sale { font-size: 1rem; }
    .price-regular { font-size: 0.75rem; }
    .save-text { font-size: 0.7rem; }
    .product-actions { padding: 0 10px 10px; gap: 6px; }
    .product-actions .btn { font-size: 0.8rem; padding: 8px 10px; }
    .sale-badge { top: 8px; left: 8px; font-size: 0.65rem; padding: 3px 8px; }
    .product-rating-stars { font-size: 0.75rem; }
    .rating-text { font-size: 0.65rem; }

    .features-grid { grid-template-columns: 1fr; }

    .section { padding: 32px 0; }
    .section-header { margin-bottom: 24px; }
    .section-title { font-size: 1.35rem; }
    .section-desc { font-size: 0.875rem; }
    .section-footer { margin-top: 24px; }

    .author-box { flex-direction: column; text-align: center; }

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { display: none; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar, .site-header, .main-nav, .breadcrumb-wrap,
    .ad-slot, .footer-features, .footer-widgets, .footer-bottom,
    .post-share, .related-posts, .sidebar, .comments-section,
    .hero-section, .hero-section-v2, .cta-section { display: none !important; }

    body { color: #000; background: #fff; }
    .container { max-width: 100%; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card, .blog-card, .category-card {
    animation: fadeInUp 0.4s ease;
}

/* Performance: off-screen sections render lazily */
.section:not(.hero-section-v2):not(.deals-section) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* WooCommerce Star Rating */
.star-rating {
    display: inline-flex;
    font-size: 14px;
    line-height: 1;
    color: var(--accent);
    overflow: hidden;
    position: relative;
    height: 1em;
    width: 5.4em;
}

.star-rating::before {
    content: "★★★★★";
    color: #d1d5db;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

.star-rating span::before {
    content: "★★★★★";
    color: var(--accent);
}

/* ============================================
   TECHYSHOP BRANDING
   ============================================ */
.brand-techy {
    color: var(--primary);
    font-weight: 800;
    font-family: var(--font-heading);
}
.brand-shop {
    color: var(--accent);
    font-weight: 800;
    font-family: var(--font-heading);
}
.site-title {
    font-size: 1.6rem;
    display: flex;
    gap: 0;
    letter-spacing: -0.5px;
}

/* ============================================
   CATEGORY NAVIGATION BAR
   ============================================ */
.category-nav {
    background: var(--secondary);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.category-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-menu::-webkit-scrollbar { display: none; }
.category-menu > li { position: relative; flex-shrink: 0; }
.cat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
.cat-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.cat-link svg { opacity: 0.8; }
.arrow-down { margin-left: 2px; }
.cat-deals { color: var(--accent) !important; font-weight: 600; }
.cat-giveaway { color: #f87171 !important; font-weight: 600; }

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    padding: 8px 0;
}
.submenu-open > .submenu { display: block; }
.submenu li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.submenu li a:hover { background: var(--light-bg); color: var(--primary); }
.cat-count { color: #9ca3af; font-size: 0.8rem; }

/* Header giveaway icon */
.header-giveaway {
    color: var(--accent);
    position: relative;
}
.header-giveaway:hover { color: var(--text); }

/* Cart bounce */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}
.cart-bounce { animation: cartBounce 0.4s ease; }

/* ============================================
   GIVEAWAY BANNER (Homepage)
   ============================================ */
.giveaway-banner-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    padding: 0;
    overflow: hidden;
}
.giveaway-banner-section .container { max-width: 100%; }

/* Giveaway V2 - Side by Side Phones */
.giveaway-banner-v2 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 48px 32px;
    color: #fff;
}

/* Phone Cards */
.giveaway-phone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}
.giveaway-phone-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.1);
}
.giveaway-phone-img {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 2px solid rgba(255,255,255,0.15);
}
.giveaway-phone-info { width: 100%; }
.giveaway-phone-brand {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 4px;
}
.giveaway-phone-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}
.giveaway-phone-info p {
    font-size: 0.8rem;
    opacity: 0.65;
    margin: 0 0 12px;
}
.giveaway-phone-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.giveaway-original {
    font-size: 0.85rem;
    text-decoration: line-through;
    opacity: 0.5;
}
.giveaway-free-label {
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Center CTA */
.giveaway-center {
    text-align: center;
    padding: 20px 32px;
    position: relative;
}
.giveaway-vs-badge {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}
.giveaway-label {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.giveaway-center h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    line-height: 1.3;
}
.giveaway-center p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}
.giveaway-cta {
    font-size: 1rem;
    padding: 14px 28px;
    display: inline-flex;
    gap: 8px;
    animation: pulse 2s infinite;
    white-space: nowrap;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
    50% { box-shadow: 0 0 0 15px rgba(245,158,11,0); }
}
.giveaway-note {
    display: block;
    margin-top: 12px;
    font-size: 0.7rem;
    opacity: 0.45;
}

/* View All Button */
.section-footer {
    text-align: center;
    margin-top: 32px;
}
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   PRODUCT RATING STARS
   ============================================ */
.product-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}
.product-rating-stars .star { color: #d1d5db; font-size: 0.85rem; }
.product-rating-stars .star.filled { color: var(--accent); }
.product-rating-stars .rating-text { font-size: 0.75rem; color: #6b7280; margin-left: 4px; }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-page { padding: 32px 0 64px; }
.product-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.product-main-image {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}
.product-placeholder-large {
    text-align: center;
}
.placeholder-brand {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}
.detail-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 1rem;
    padding: 8px 16px;
}
.product-brand-tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-detail-short-desc {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 16px;
}
.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.stars-display { display: flex; gap: 2px; }
.stars-display .star { font-size: 1.2rem; }
.stars-display .star.filled { color: var(--accent); }
.stars-display .star.half { color: var(--accent); opacity: 0.6; }
.stars-display .star.empty { color: #d1d5db; }
.rating-value { font-weight: 600; color: var(--text); }
.rating-count { color: #6b7280; font-size: 0.9rem; }

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.detail-price-sale { font-size: 2rem; font-weight: 800; color: var(--green); }
.detail-price-regular { font-size: 1.2rem; color: #9ca3af; }
.detail-price-current { font-size: 2rem; font-weight: 800; color: var(--text); }
.detail-discount-tag {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.detail-savings {
    color: var(--green);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.stock-status-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.delivery-info { color: #6b7280; font-size: 0.9rem; }

.product-highlights { margin-bottom: 24px; }
.product-highlights h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.highlights-list { list-style: none; padding: 0; }
.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #374151;
}
.highlights-list li svg { flex-shrink: 0; margin-top: 2px; }

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.btn-add-to-cart-detail, .btn-buy-now {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
}

.trust-badges-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Product Tabs */
.product-detail-tabs {
    margin-bottom: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tab-buttons {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.tab-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border: none;
    background: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
    color: var(--primary);
    font-weight: 600;
    background: #fff;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}
.tab-panel { display: none; padding: 32px; }
.tab-panel.active { display: block; }
.tab-panel h2 { font-size: 1.3rem; margin-bottom: 16px; font-family: var(--font-heading); }
.tab-panel h3 { font-size: 1.1rem; margin: 24px 0 12px; }

.description-content p { line-height: 1.8; color: #374151; font-size: 0.95rem; }

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.feature-card-mini {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.feature-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.feature-card-mini p { font-size: 0.85rem; color: #374151; margin: 0; }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table th, .specs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.specs-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text);
    width: 35%;
}
.specs-table td { color: #374151; }
.specs-table tr:hover { background: #f0f7ff; }

/* Box Contents */
.box-contents-list { list-style: none; padding: 0; }
.box-contents-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}
.box-note {
    background: #fef3c7;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.85rem;
    color: #92400e;
}

/* Warranty Info Grid */
.warranty-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.warranty-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}
.warranty-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.warranty-card p { font-size: 0.85rem; color: #374151; line-height: 1.6; margin: 0; }

/* Quick Specs Section */
.quick-specs-section { margin-bottom: 48px; }
.quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.quick-spec-card {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.quick-spec-card:hover { border-color: var(--primary); }
.quick-spec-label { font-size: 0.75rem; text-transform: uppercase; color: #6b7280; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; }
.quick-spec-value { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* Related Products */
.related-products-section { margin-top: 48px; }
.related-products-section .section-title { margin-bottom: 20px; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-page { padding: 32px 0 64px; }
.page-title {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    margin-bottom: 32px;
}
.cart-item-count { color: #6b7280; font-weight: 400; font-size: 1rem; }

.empty-cart {
    text-align: center;
    padding: 64px 20px;
}
.empty-cart svg { margin: 0 auto 20px; }
.empty-cart h2 { font-size: 1.4rem; margin-bottom: 12px; }
.empty-cart p { color: #6b7280; margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.product-placeholder-sm {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-details { flex: 1; }
.cart-item-name a { color: var(--text); font-weight: 600; font-size: 1rem; }
.cart-item-name a:hover { color: var(--primary); }
.cart-item-desc { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }
.cart-item-price { margin-top: 6px; }
.cart-item-quantity { text-align: center; }
.cart-item-quantity label { display: block; font-size: 0.75rem; color: #6b7280; margin-bottom: 4px; }
.qty-select {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
}
.cart-item-subtotal { text-align: right; min-width: 100px; }
.subtotal-label { display: block; font-size: 0.75rem; color: #6b7280; }
.subtotal-amount { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.cart-item-remove {
    color: #9ca3af;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.cart-item-remove:hover { color: var(--red); background: #fef2f2; }

.cart-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.btn-danger-outline { border-color: var(--red); color: var(--red); }
.btn-danger-outline:hover { background: var(--red); color: #fff; }

/* Cart Summary */
.cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.summary-title { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}
.summary-total { font-weight: 700; font-size: 1.15rem; color: var(--text); padding: 12px 0; }
.summary-divider { height: 1px; background: var(--border); margin: 8px 0; }
.free-shipping { color: var(--green); font-weight: 600; }
.savings-banner {
    background: #dcfce7;
    color: #15803d;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 12px 0;
}
.btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }
.secure-checkout-note {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #6b7280;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page { padding: 32px 0 64px; }

/* Progress Bar */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 4px;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--light-bg);
    color: #9ca3af;
    border: 2px solid var(--border);
    transition: all 0.3s;
}
.step-label { font-size: 0.7rem; color: #9ca3af; font-weight: 500; text-align: center; }
.progress-step.active .step-number { background: var(--primary); color: #fff; border-color: var(--primary); }
.progress-step.active .step-label { color: var(--primary); font-weight: 600; }
.progress-step.completed .step-number { background: var(--green); color: #fff; border-color: var(--green); }
.progress-step.completed .step-label { color: var(--green); }
.progress-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    align-self: flex-start;
    margin-top: 18px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.checkout-step { display: none; }
.checkout-step.active { display: block; }
.step-heading { font-size: 1.3rem; font-family: var(--font-heading); margin-bottom: 6px; }
.step-desc { color: #6b7280; margin-bottom: 24px; }

/* Checkout Form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.form-full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}
.req { color: var(--red); }
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.btn-next-step, .btn-prev-step { min-width: 160px; }

/* Checkout Items */
.checkout-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.product-placeholder-xs {
    width: 56px;
    height: 56px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.checkout-item-info p { font-size: 0.8rem; color: #6b7280; margin: 0; }
.checkout-item-qty { font-size: 0.8rem; color: var(--primary); font-weight: 500; margin-top: 4px; display: inline-block; }
.checkout-item-price { font-weight: 700; font-size: 1rem; }

/* Delivery Options */
.delivery-options, .payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.delivery-option, .payment-option {
    cursor: pointer;
    position: relative;
}
.delivery-option input, .payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.delivery-card, .payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.delivery-option.selected .delivery-card,
.payment-option.selected .payment-card {
    border-color: var(--primary);
    background: #eff6ff;
}
.delivery-card:hover, .payment-card:hover { border-color: var(--primary); }
.delivery-icon, .payment-icon {
    width: 56px;
    height: 56px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.delivery-info h4, .payment-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.delivery-info p, .payment-info p { font-size: 0.8rem; color: #6b7280; margin: 0; }
.delivery-price { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--green); font-size: 0.9rem; }
.delivery-note { background: var(--light-bg); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; color: #6b7280; }

/* Review Section */
.review-sections { margin-bottom: 24px; }
.review-section {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.review-section h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary); }
.review-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}
.review-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}
.review-grand-total { font-weight: 700; font-size: 1.2rem; color: var(--text); border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; }
.terms-checkbox {
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.terms-checkbox label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.btn-place-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    padding: 16px 32px;
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 100px;
}
.checkout-summary-sticky {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.checkout-summary-sticky h3 { font-size: 1.1rem; margin-bottom: 16px; }
.summary-item-mini {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 6px 0;
    color: #374151;
}

/* Order Success */
.order-success-page { padding: 64px 0; }
.order-success-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.success-icon { margin-bottom: 20px; }
.order-success-box h1 { font-size: 1.8rem; color: var(--green); margin-bottom: 8px; }
.order-id { font-size: 1.1rem; color: var(--text); margin-bottom: 20px; }
.order-success-details {
    text-align: left;
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.order-success-actions { margin-top: 24px; }

/* ============================================
   GIVEAWAY PAGE
   ============================================ */
.giveaway-page { padding: 48px 0 64px; }
.giveaway-hero { text-align: center; margin-bottom: 48px; }
.giveaway-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 20px;
    border-radius: 24px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.giveaway-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.giveaway-subtitle { font-size: 1.1rem; color: #6b7280; max-width: 600px; margin: 0 auto; }

.giveaway-products { text-align: center; margin-bottom: 48px; }
.giveaway-products h2 { font-size: 1.5rem; margin-bottom: 24px; font-family: var(--font-heading); }
.giveaway-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.giveaway-product-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.giveaway-product-card:hover { border-color: var(--accent); box-shadow: 0 8px 30px rgba(245,158,11,0.15); transform: translateY(-4px); }
.giveaway-product-card h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.giveaway-product-card p { font-size: 0.85rem; color: #6b7280; margin: 0; }
.giveaway-worth { display: block; margin-top: 12px; font-size: 0.85rem; color: #9ca3af; text-decoration: line-through; }
.giveaway-free-tag {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 20px;
    border-radius: 20px;
    margin-top: 8px;
}

.giveaway-entry-section {
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
}
.giveaway-entry-section h2 { font-size: 1.5rem; margin-bottom: 8px; }
.giveaway-entry-section > p { color: #6b7280; margin-bottom: 24px; }
.giveaway-form .form-grid { text-align: left; }
.giveaway-terms { margin: 16px 0 24px; font-size: 0.85rem; text-align: left; }
.giveaway-terms label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.btn-xl { font-size: 1.2rem; padding: 16px 48px; }
.giveaway-btn { display: inline-flex; gap: 10px; animation: pulse 2s infinite; }

.giveaway-rules {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 32px;
    border-radius: var(--radius);
}
.giveaway-rules h3 { font-size: 1.1rem; margin-bottom: 16px; }
.giveaway-rules ul { list-style: disc; padding-left: 20px; }
.giveaway-rules li { font-size: 0.85rem; color: #6b7280; padding: 4px 0; }

/* Win Result */
.giveaway-result { text-align: center; padding: 48px 20px; }
.win-title { font-size: 2.2rem; font-family: var(--font-heading); color: var(--accent); margin: 16px 0 8px; }
.win-subtitle { font-size: 1.1rem; color: var(--text); margin-bottom: 32px; }
.win-product-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 400px;
    margin: 0 auto 32px;
    text-align: center;
}
.win-product-card h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.win-price { display: inline-block; font-size: 1.3rem; font-weight: 800; color: var(--green); margin-top: 12px; }
.win-instructions { text-align: left; max-width: 500px; margin: 0 auto 32px; }
.win-instructions h3 { margin-bottom: 12px; }
.win-instructions ol { padding-left: 20px; }
.win-instructions li { padding: 6px 0; font-size: 0.9rem; }
.win-actions { display: flex; gap: 12px; justify-content: center; }

/* Confetti */
.confetti-animation { position: relative; height: 10px; }
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out infinite;
}
.confetti-piece:nth-child(1) { left: 10%; background: var(--accent); animation-delay: 0s; }
.confetti-piece:nth-child(2) { left: 30%; background: var(--primary); animation-delay: 0.3s; }
.confetti-piece:nth-child(3) { left: 50%; background: var(--green); animation-delay: 0.6s; }
.confetti-piece:nth-child(4) { left: 70%; background: var(--red); animation-delay: 0.9s; }
.confetti-piece:nth-child(5) { left: 90%; background: var(--accent); animation-delay: 1.2s; }
@keyframes confettiFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* Footer updates */
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
.payment-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Mobile menu active */
@media (max-width: 768px) {
    .category-nav {
        display: none;
    }
    .category-nav.mobile-active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
    }
    .category-menu {
        flex-direction: column;
    }
    .submenu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 0;
    }
    body.menu-open { overflow: hidden; }

    .product-detail-top { grid-template-columns: 1fr; gap: 24px; }
    .product-main-image { min-height: 250px; padding: 24px; }
    .product-detail-title { font-size: 1.4rem; }
    .detail-price-sale, .detail-price-current { font-size: 1.5rem; }
    .product-detail-actions { flex-direction: column; }
    .trust-badges-row { gap: 8px; }
    .trust-badge-item { font-size: 0.7rem; }

    .quick-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .warranty-info-grid { grid-template-columns: 1fr; }

    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-subtotal { text-align: left; }
    .cart-actions-row { flex-wrap: wrap; }

    .checkout-progress { gap: 2px; }
    .progress-line { width: 16px; }
    .step-label { font-size: 0.6rem; }
    .step-number { width: 28px; height: 28px; font-size: 0.75rem; }
    .form-grid { grid-template-columns: 1fr; }

    .giveaway-banner-v2 {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 20px;
    }
    .giveaway-phone-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 16px;
    }
    .giveaway-phone-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .giveaway-phone-img svg { width: 48px; height: 48px; }
    .giveaway-phone-price { justify-content: flex-start; }
    .giveaway-center { padding: 16px 20px; order: -1; }
    .giveaway-center h2 { font-size: 1.4rem; }
    .giveaway-vs-badge { display: none; }
    .giveaway-products-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
    .giveaway-title { font-size: 1.8rem; }

    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-payment-icons { flex-wrap: wrap; justify-content: center; }
}

/* Form Disclaimer */
.form-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #166534;
    line-height: 1.5;
}
.form-disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #16a34a;
}

/* Ad spacing on pages */
.ad-between-steps {
    margin: 24px 0;
}

/* Ad between product grid items */
.ad-in-grid {
    grid-column: 1 / -1;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .ad-slot {
        max-width: 100%;
        margin: 12px;
    }
    .ad-placeholder {
        min-height: 60px;
        padding: 12px;
        border-radius: 6px;
    }
    .ad-placeholder span {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}

/* Phone image in giveaway */
.phone-svg-realistic {
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

/* Giveaway phone selection grid */
.giveaway-phone-select-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.giveaway-phone-option {
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    position: relative;
}
.giveaway-phone-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.giveaway-phone-option.selected {
    border-color: var(--green);
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.giveaway-phone-option .phone-selected-check {
    display: none;
    color: var(--green);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.giveaway-phone-option.selected .phone-selected-check {
    display: flex;
}
.phone-option-img {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.phone-option-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.giveaway-vs-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Giveaway verification items */
.giveaway-verification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}
.giveaway-verify-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.giveaway-verify-item input[type="checkbox"] {
    margin-top: 16px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.verify-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    flex: 1;
    transition: all 0.2s;
}
.giveaway-verify-item:hover .verify-card {
    border-color: var(--primary);
}
.verify-icon {
    flex-shrink: 0;
    color: var(--primary);
}
.verify-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.verify-info p {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-header-section {
    padding: 40px 0 20px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}
.category-page-header {
    text-align: center;
}
.category-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.category-page-desc {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.7;
}
.category-product-count {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.category-products-section {
    padding: 40px 0;
}
.no-products-found {
    text-align: center;
    padding: 80px 20px;
}
.no-products-icon {
    margin-bottom: 24px;
    opacity: 0.5;
}
.no-products-found h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text);
}
.no-products-found p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ============================================
   BLOG PAGE TEMPLATE
   ============================================ */
.blog-page-header {
    margin-bottom: 32px;
}
.blog-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}
.blog-page-desc {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 600px;
}

/* Blog Home Section */
.blog-home-section {
    background: var(--light-bg);
}

/* Blog Pagination */
.blog-pagination {
    padding: 40px 0 0;
    text-align: center;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    gap: 4px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}
.blog-pagination .page-numbers li {
    list-style: none;
}
.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.blog-pagination .page-numbers .current,
.blog-pagination .page-numbers a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Sidebar Search */
.sidebar-search-form {
    display: flex;
    gap: 0;
}
.sidebar-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}
.sidebar-search-input:focus {
    border-color: var(--primary);
}
.sidebar-search-btn {
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: background 0.2s;
}
.sidebar-search-btn:hover {
    background: var(--secondary);
}

/* Widget Tags */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
}
.no-posts-found svg {
    margin-bottom: 24px;
    opacity: 0.5;
}
.no-posts-found h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text);
}
.no-posts-found p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.no-posts-message {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
    font-size: 1.05rem;
}

/* Blog Read Time */
.blog-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Blog Author */
.blog-author {
    color: #6b7280;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.comments-section .comment-respond {
    margin-top: 24px;
}
.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"],
.comments-section .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.938rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.comments-section .comment-form input:focus,
.comments-section .comment-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.comments-section .comment-form .submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.comments-section .comment-form .submit:hover {
    background: var(--secondary);
}

/* Responsive Blog Additions */
@media (max-width: 768px) {
    .blog-page-title {
        font-size: 1.5rem;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .blog-pagination .page-numbers a,
    .blog-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-wrap: wrap;
    }
}
