/*
Theme Name: TechWare Custom Premium
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: Custom WordPress theme with premium UI, glassmorphism design, and auto-setup demo pages and WooCommerce products.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: techware-custom
*/

/* --- Google Fonts Import (Full Vietnamese Character Set Support) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300..900;1,300..900&display=swap');

/* --- Reset & Variables (Default Light Mode / White background) --- */
:root {
    --bg-dark: #f6f8fa;
    --bg-card: #ffffff;
    --bg-glass: #ffffff;
    --border-glass: #e5e7eb;
    --border-glass-active: #0054a6;
    --primary: #0054a6;
    --primary-rgb: 0, 84, 166;
    --primary-glow: rgba(0, 84, 166, 0.1);
    --accent: #0073e6;
    --accent-rgb: 0, 115, 230;
    --accent-glow: rgba(0, 115, 230, 0.1);
    --success: #10b981;
    --text-main: #222222;
    --text-muted: #777777;
    --font-heading: 'Times New Roman', Georgia, 'Palatino Linotype', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.2s ease-in-out;
    --radius-xl: 8px;
    --radius-lg: 6px;
    --radius-md: 4px;
    --shadow-lg: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-glow: none;
}

/* --- Dark Mode Variable Overrides (Toggled via Theme Switcher) --- */
body.dark-mode {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-glass: #1e293b;
    --border-glass: #334155;
    --border-glass-active: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Light & Dark Mode Heading Color & Typography Overrides */
h1, h2, h3, h4, h5, h6,
.section-title,
ul.products li.product h2.woocommerce-loop-product__title {
    color: var(--text-main);
    letter-spacing: normal !important;
    -webkit-text-fill-color: unset !important;
    background-image: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* Fix slide h2 inline gradient override - show solid color */
.slide .slide-text h2 {
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    font-family: 'Times New Roman', Georgia, serif !important;
}

/* Hero section h1 fix */
.hero-section h1 {
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
    background: none !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
}

/* Header Section Bar: ALWAYS Dark Navy Brand Header with White Tech Logo */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0f172a !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0.9rem 0;
    transition: var(--transition);
}

header.site-header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem !important;
    align-items: center;
    flex-wrap: nowrap !important;
}

header.site-header nav ul a {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    letter-spacing: 0.01em;
    white-space: nowrap !important;
}

header.site-header nav ul a:hover {
    color: #ffffff !important;
}

header.site-header nav ul a.nav-highlight {
    color: #fb923c !important;
    font-weight: 700;
}

/* Brand Logo Text: Tech ALWAYS White #ffffff */
.techware-brand-logo .logo-text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.techware-brand-logo .logo-text-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Hide background grid lines and decorative glowing orbs to look like flat Flatsome template */
body::before, body::after, .orb-secondary {
    display: none !important;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--accent); }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

/* --- Container --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--border-glass-active);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-6px);
}

/* --- Buttons --- */
.btn, .button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}
.btn-primary, button[type="submit"], input[type="submit"], .woocommerce-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}
.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255,255,255,0.2);
}

/* --- Badge / Pill --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
}

/* --- Form Fields --- */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 0.9rem 1.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-card);
}

/* Hide default theme sidebars */
#sidebar { display: none !important; }

/* --- Sticky Topbar Announcement --- */
.techware-topbar {
    background: linear-gradient(90deg, #0a0a16 0%, #1e1b4b 50%, #0a0a16 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    font-family: var(--font-body);
}
.techware-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar-left { font-weight: 500; }
.topbar-left strong { color: #fb923c; }
.topbar-right { display: flex; align-items: center; gap: 0.8rem; }
.topbar-link { color: #ffffff; text-decoration: none; font-weight: 600; }
.topbar-link:hover { color: var(--accent); }
.topbar-divider { color: rgba(255,255,255,0.2); }
.topbar-location { color: #94a3b8; }
@media (max-width: 768px) {
    .techware-topbar { display: none; }
}

/* --- Floating Speed Dial Contact Buttons --- */
.techware-speed-dial {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.speed-dial-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}
.speed-dial-btn.zalo-btn {
    background: linear-gradient(135deg, #0088ff, #0055cc);
    animation: pulse-blue 2.5s infinite;
}
.speed-dial-btn.spin-btn {
    background: linear-gradient(135deg, #f97316, #ef4444);
    animation: pulse-orange 2.5s infinite;
}
.speed-dial-btn.phone-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse-green 2.5s infinite;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* --- Gamified Lucky Spin Wheel Modal CSS --- */
.spin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 5, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.spin-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.spin-modal-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-card);
    border: 1px solid var(--border-glass-active);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25), 0 0 50px var(--primary-glow);
}
.spin-modal-overlay.active .spin-modal-container {
    transform: scale(1) translateY(0);
}
.spin-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.spin-modal-close:hover { color: var(--text-main); }
.spin-wheel-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}
.spin-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: #fb923c;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(251, 146, 60, 0.6));
}
#techware-wheel-canvas {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 8px rgba(255,255,255,0.05);
}
.speed-dial-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.speed-dial-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 20, 0.92);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--border-glass);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.speed-dial-btn:hover .speed-dial-tooltip {
    opacity: 1;
}

/* --- Brand Logo Styling (Default White Color) --- */
.techware-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.logo-text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.logo-text-primary {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Header Section --- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.9rem 0;
    transition: var(--transition);
}
header.site-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header.site-header nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}
header.site-header nav ul a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    letter-spacing: 0.01em;
}
header.site-header nav ul a.nav-highlight {
    color: #fb923c !important;
    font-weight: 700;
}
header.site-header nav ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    border-radius: 99px;
}
header.site-header nav ul a:hover { color: #ffffff; }
header.site-header nav ul a:hover::after,
header.site-header nav ul .current-menu-item a::after { width: 100%; }

/* --- Category Filter Tabs --- */
.category-filter-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}
.category-filter-tabs {
    display: inline-flex;
    gap: 0.6rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 0.5rem;
    border-radius: 9999px;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}
.cat-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}
.cat-tab:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}
.cat-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- Advanced AJAX Search --- */
.techware-search-container {
    position: relative;
    width: 220px;
}
.techware-search-container input {
    padding: 0.5rem 1.2rem !important;
    border-radius: 99px !important;
    background: rgba(255,255,255,0.04) !important;
}
.search-results-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    width: 320px;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
    overflow: hidden;
}
.search-results-dropdown.active { display: block; }
.search-results-list { list-style: none; margin: 0; padding: 0; }
.search-results-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}
.search-results-list li:last-child a { border-bottom: none; }
.search-results-list li a:hover { background: rgba(99,102,241,0.08); }
.search-results-list li img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}
.search-item-info { display: flex; flex-direction: column; }
.search-item-title { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.search-item-price { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.search-loader, .search-no-results {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.cart-drawer-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed; top: 0; right: -440px;
    width: 420px; height: 100%;
    background: rgba(8, 8, 18, 0.97);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-glass);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
@media (max-width: 480px) {
    .cart-drawer { width: 100%; right: -105%; }
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
}
.cart-drawer-header h3 { margin: 0; font-size: 1.3rem; }
.cart-drawer-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    transition: var(--transition);
}
.cart-drawer-close:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
.cart-drawer-content { padding: 1.5rem 2rem; overflow-y: auto; flex-grow: 1; }

/* WooCommerce Mini-Cart elements */
.widget_shopping_cart_content ul.mini_cart_item { list-style: none; padding: 0; margin: 0; }
.widget_shopping_cart_content li.mini_cart_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}
.widget_shopping_cart_content li.mini_cart_item img {
    width: 65px; height: 65px; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--border-glass);
}
.widget_shopping_cart_content li.mini_cart_item a:not(.remove) {
    font-weight: 600; font-size: 0.95rem; color: var(--text-main);
}
.widget_shopping_cart_content li.mini_cart_item a.remove {
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    color: #ef4444 !important; font-size: 1.2rem;
}
.woocommerce-mini-cart__total {
    margin-top: 2rem; padding-top: 1rem;
    border-top: 2px solid var(--border-glass);
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 1.15rem;
}
.woocommerce-mini-cart__buttons {
    display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem;
}
.woocommerce-mini-cart__buttons a {
    width: 100%; text-align: center; padding: 0.8rem !important;
}

/* --- Product Quick View Modal --- */
.quickview-modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.quickview-modal.open { display: flex; }
.quickview-modal-container {
    width: 100%; max-width: 880px;
    max-height: 92%; overflow-y: auto;
    position: relative; padding: 3rem !important;
    border-radius: 28px;
}
.quickview-modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    font-size: 1.6rem; color: var(--text-muted);
    cursor: pointer; z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.quickview-modal-close:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    transform: rotate(90deg);
}
.quickview-product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
}
@media (max-width: 768px) {
    .quickview-product-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}
.modal-loader {
    text-align: center; padding: 3rem;
    font-size: 1.1rem; color: var(--text-muted);
}

/* --- Scroll Entrance Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- Footer Section --- */
footer.site-footer {
    background: rgba(3, 3, 8, 1);
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 3rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}
footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}
footer.site-footer { background: #e8eaef; }
body.dark-mode footer.site-footer { background: rgba(3, 3, 8, 1); }
footer.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}
@media (max-width: 768px) {
    footer.site-footer .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
footer.site-footer h4 { font-size: 1.15rem; margin-bottom: 1.8rem; color: #ffffff; }
footer.site-footer ul { list-style: none; }
footer.site-footer ul li { margin-bottom: 0.9rem; }
footer.site-footer ul a { color: var(--text-muted); font-size: 0.9rem; }
footer.site-footer ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    display: inline-block;
}
.footer-social-links {
    display: flex; gap: 1rem; margin-top: 1.5rem;
}
.footer-social-links a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--bg-glass);
}
.footer-social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
}
.copyright {
    text-align: center; color: var(--text-muted);
    font-size: 0.85rem; padding-top: 2.5rem;
    border-top: 1px solid var(--border-glass);
}

/* --- HERO SLIDER --- */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 560px;
    max-height: 720px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
    background: var(--bg-card) !important; /* Clean Flatsome-style flat background */
}
.slide.slide-active {
    opacity: 1;
    pointer-events: auto;
}

.slide-bg-orb {
    display: none !important; /* Hide neon glowing background orbs */
}

.slide-content {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .slide-content {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem 2rem;
        align-content: center;
        gap: 2rem;
    }
    .hero-slider { height: auto; min-height: 100vh; max-height: none; }
}

.slide-text { display: flex; flex-direction: column; gap: 1.2rem; }
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    width: fit-content;
}
.slide-text h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: normal !important;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    margin: 0;
}
.slide-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}
.slide-price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-muted);
}
.slide-price strong {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 700;
}
.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}
.phone-mockup-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}
.slide-phone-img {
    position: relative;
    z-index: 1;
    height: 480px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    border-radius: 28px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    animation: phone-float 4s ease-in-out infinite;
}
@keyframes phone-float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(0deg); }
}
@media (max-width: 768px) {
    .slide-phone-img { height: 260px; max-width: 160px; }
    .phone-glow { width: 200px; height: 200px; }
    .slide-image { height: auto; }
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.slider-arrow:hover {
    background: rgba(var(--primary-rgb), 0.3);
    border-color: rgba(var(--primary-rgb), 0.5);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }
@media (max-width: 480px) {
    .slider-prev { left: 0.8rem; }
    .slider-next { right: 0.8rem; }
}

/* Dot Indicators & Progress - Hidden as requested, slider auto-plays */
.slider-dots, .slider-progress {
    display: none !important;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.dot-active {
    width: 28px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Progress bar at bottom of slider */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 10;
}
.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* --- HOME / FRONT PAGE --- */


/* Hero Section */
.hero-section {
    padding: 9rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: fade-up 0.8s ease forwards;
}
.hero-eyebrow .pulse-dot {
    width: 7px; height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.hero-section h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: normal !important;
}
body.dark-mode .hero-section h1 {
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}
.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.hero-buttons { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

/* Hero stats row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-glass);
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-main), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}
.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.trust-badge .icon {
    width: 32px; height: 32px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.15));
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '',
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
}
@media (max-width: 768px) {
    .promo-banner { flex-direction: column; text-align: center; padding: 2rem; }
}
.promo-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    margin-bottom: 0.6rem;
}
.promo-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}
.promo-banner p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Features Section */
.features-section { padding: 6rem 0; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}
.section-title::after {
    display: none; /* Using modern approach */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
    border-color: var(--border-glass-active);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.12);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}
.feature-icon.accent-icon {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.2);
}
.feature-icon.success-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- Products Section (WooCommerce) --- */
.products-section { padding: 6rem 0; }

ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}
ul.products li.product {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
    overflow: hidden;
}
ul.products li.product.first,
ul.products li.product.last {
    clear: none !important;
}
ul.products li.product::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
ul.products li.product:hover::before { opacity: 1; }
ul.products li.product:hover {
    border-color: var(--border-glass-active);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.2);
}
ul.products li.product img {
    margin: 0 auto 1.2rem !important;
    border-radius: 14px !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 100% !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}
ul.products li.product:hover img { transform: scale(1.04); }
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.3;
}
ul.products li.product span.price {
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1.5rem;
}
/* Hide the duplicate WooCommerce default icon-only button inside product loop */
ul.products li.product a.button.add_to_cart_button {
    display: none !important;
}

/* Custom styled add to cart button (our own from front-page.php) */
ul.products li.product .techware-add-to-cart {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
    width: 100%;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
ul.products li.product .techware-add-to-cart:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

/* Quick view button on product cards */
.techware-quickview-btn {
    background: transparent !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.techware-quickview-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.08) !important;
}

/* STRICT OVERRIDE TO DESTROY WOOCOMMERCE DEFAULT GIGANTIC CIRCLE ONSALE BADGE */
.woocommerce span.onsale,
.woocommerce-page span.onsale,
ul.products li.product span.onsale,
ul.products li.product .onsale,
.onsale,
.product-card-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: fit-content !important;
    max-height: fit-content !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    z-index: 99 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
    transform: none !important;
    white-space: nowrap !important;
}
.woocommerce span.onsale::before,
.woocommerce span.onsale::after,
.onsale::before,
.onsale::after,
.product-card-badge::before,
.product-card-badge::after {
    display: none !important;
    content: none !important;
}

/* View All Products button */
.products-section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 6rem 0;
    position: relative;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
}
.testimonial-card:hover {
    border-color: var(--border-glass-active);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.testimonial-quote {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: serif;
}
.testimonial-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid var(--border-glass-active);
    flex-shrink: 0;
}
.testimonial-author-info { display: flex; flex-direction: column; }
.testimonial-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
.testimonial-author-role { font-size: 0.82rem; color: var(--text-muted); }
.testimonial-stars {
    position: absolute;
    top: 2rem; right: 2rem;
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* --- WooCommerce Single Product Page --- */
.single-product .container { max-width: 1200px; padding-top: 3rem; }
.single-product div.product {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 3rem !important;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .single-product div.product {
        grid-template-columns: 1fr !important;
        gap: 2rem; padding: 1.5rem !important;
    }
}
.single-product .woocommerce-product-gallery {
    width: 100% !important; float: none !important; margin: 0 !important;
}
.single-product .woocommerce-product-gallery img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass); width: 100%;
}
.single-product .summary {
    width: 100% !important; float: none !important;
    margin: 0 !important; color: var(--text-main);
}
.single-product .summary h1.product_title {
    font-size: 2.2rem; color: var(--text-main);
    margin-bottom: 1rem; font-family: var(--font-heading);
}
.single-product .summary p.price {
    font-size: 1.8rem; font-weight: 800;
    color: var(--accent); margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass); padding-bottom: 1rem;
}
.single-product .summary div[itemprop="description"] {
    color: var(--text-muted); font-size: 1.05rem;
    line-height: 1.7; margin-bottom: 2rem;
}
.single-product .summary form.cart {
    display: flex; gap: 1rem;
    align-items: center; margin-bottom: 2rem;
}
.single-product .summary form.variations_form {
    display: block !important;
    margin-bottom: 2rem;
}
.single-product .summary table.variations {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0 0.8rem;
    border: none;
}
.single-product .summary table.variations tr {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.single-product .summary table.variations td.label {
    padding: 0;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    border: none;
}
.single-product .summary table.variations td.label label {
    margin: 0;
    font-weight: 700;
}
.single-product .summary table.variations td.value {
    padding: 0;
    width: 100%;
    border: none;
}
.single-product .summary table.variations td.value select {
    width: 100%;
    max-width: 360px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.single-product .summary table.variations td.value select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.single-product .summary a.reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
}
.single-product .summary .woocommerce-variation-price {
    margin-bottom: 1rem;
}
.single-product .summary .woocommerce-variation-price span.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}
.single-product .summary .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}
.single-product .summary form.cart .quantity input {
    width: 70px; padding: 0.8rem; border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main); text-align: center;
}
.single-product .summary form.cart button.single_add_to_cart_button { padding: 0.8rem 2rem; }
.woocommerce-product-details__short-description { margin-bottom: 2rem; color: var(--text-muted); }

/* Tabs & Reviews */
.woocommerce-tabs {
    grid-column: 1 / span 2;
    border-top: 1px solid var(--border-glass);
    padding-top: 2.5rem; margin-top: 2rem;
}
@media (max-width: 768px) { .woocommerce-tabs { grid-column: 1; } }
.woocommerce-tabs ul.tabs {
    display: flex; gap: 2rem; list-style: none;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 2rem; padding-bottom: 0.8rem;
}
.woocommerce-tabs ul.tabs li {
    background: none !important; border: none !important; padding: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
    color: var(--text-muted); font-family: var(--font-heading);
    font-weight: 600; font-size: 1.05rem; padding: 0.5rem 0;
    display: block; position: relative;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--primary); font-weight: 700; }
.woocommerce-tabs ul.tabs li.active a::after {
    content: ''; position: absolute; bottom: -0.8rem; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.woocommerce-Tabs-panel { color: var(--text-muted); line-height: 1.7; }

/* --- Contact & About Pages --- */
.contact-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; padding: 5rem 0;
}
@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; gap: 2rem; }
}
.about-hero { text-align: center; padding: 6rem 0 4rem; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; padding: 4rem 0;
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Login / Register Split Screen --- */
.login-split-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: calc(100vh - 80px);
    background: var(--bg-dark);
}
@media (max-width: 900px) {
    .login-split-container { grid-template-columns: 1fr; }
    .login-sidebar { display: none; }
}
.login-sidebar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.18));
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 5rem; border-right: 1px solid var(--border-glass);
    position: relative; overflow: hidden;
}
.login-sidebar::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.08) 0%, transparent 60%);
    animation: rotate-slow 30s linear infinite;
}
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.login-sidebar h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
}
.login-form-area {
    display: flex; justify-content: center;
    align-items: center; padding: 3rem;
}
.login-box { width: 100%; max-width: 450px; }
.form-toggle {
    display: flex; gap: 1.5rem; margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass); padding-bottom: 0.8rem;
}
.toggle-tab {
    color: var(--text-muted); font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 600; cursor: pointer;
    background: none; border: none; padding: 0; transition: var(--transition);
}
.toggle-tab.active { color: var(--text-main); position: relative; }
.toggle-tab.active::after {
    content: ''; position: absolute; bottom: -0.9rem; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-size: 0.9rem;
    color: var(--text-muted); margin-bottom: 0.5rem;
}
.login-box form button { width: 100%; margin-top: 1rem; }
.form-hidden { display: none; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section { padding: 6rem 0 4rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .trust-badges { gap: 1rem; }
    header.site-header nav ul { display: none; }
}

/* --- Keyframes --- */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- WooCommerce My Account Styles --- */
.woocommerce-account .woocommerce {
    display: block !important;
    width: 100% !important;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        display: block !important;
        width: 100% !important;
    }
}
.woocommerce-MyAccount-navigation {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-lg) !important;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    margin: 0 !important;
    border: none !important;
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.3rem;
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-md) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: var(--transition);
}
.woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--primary) !important;
    background: var(--bg-glass) !important;
    border-color: var(--border-glass) !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Beautiful dynamic icons for My Account endpoints */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '📊'; font-size: 1.1rem; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: '📦'; font-size: 1.1rem; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: '📥'; font-size: 1.1rem; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '📍'; font-size: 1.1rem; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '👤'; font-size: 1.1rem; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '🚪'; font-size: 1.1rem; }

.woocommerce-MyAccount-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-glass) !important;
    padding: 3rem !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-main);
}
.woocommerce-MyAccount-content mark {
    background: none;
    color: var(--primary);
    font-weight: 700;
}
.woocommerce-MyAccount-content a.button {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #fff !important;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 99px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}
.woocommerce-MyAccount-content a.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* --- WooCommerce Table & Order Styles --- */
.woocommerce-MyAccount-content table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    background: var(--bg-glass);
    margin-top: 1.5rem;
    width: 100%;
}
.woocommerce-MyAccount-content table.shop_table th {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-main);
    font-weight: 700;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 0.85rem;
}
.woocommerce-MyAccount-content table.shop_table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-main);
    vertical-align: middle;
}
.woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}
.woocommerce-MyAccount-content table.shop_table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
body.dark-mode .woocommerce-MyAccount-content table.shop_table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
body:not(.dark-mode) .woocommerce-MyAccount-content table.shop_table tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

/* --- WooCommerce Dashboard Welcome & Shortcut Cards --- */
.dashboard-shortcut-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--border-glass-active) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* --- Address & Form Tweaks in My Account --- */
.woocommerce-Address-title h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--text-main) !important;
}
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 1.2rem;
}
.woocommerce-MyAccount-content form .form-row label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* --- Global Premium Input & Form Polish (For Contact page, My Account, Checkout, etc.) --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100% !important;
    padding: 0.85rem 1.2rem !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

/* Ensure perfect contrast on light mode */
body:not(.dark-mode) input[type="text"],
body:not(.dark-mode) input[type="email"],
body:not(.dark-mode) input[type="tel"],
body:not(.dark-mode) input[type="password"],
body:not(.dark-mode) input[type="search"],
body:not(.dark-mode) textarea,
body:not(.dark-mode) select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Ensure perfect contrast on dark mode */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="password"],
body.dark-mode input[type="search"],
body.dark-mode textarea,
body.dark-mode select {
    background: rgba(12, 12, 22, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* --- Custom Rebuilt My Account Grid Layout --- */
.techware-myaccount-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}
@media (max-width: 900px) {
    .techware-myaccount-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.techware-myaccount-sidebar .woocommerce-MyAccount-navigation {
    width: 100% !important;
    max-width: 100% !important;
}
.techware-myaccount-content-area .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
}
