/*
Theme Name: DigiKeys Store Pro
Theme URI: https://digikeys.store
Author: DigiKeys
Description: Professional WooCommerce digital product store for Microsoft, Adobe & Autodesk software keys.
Version: 3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: digikeys
*/

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #e8f0fe;
  --secondary: #6c757d;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --dark: #1a1a2e;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-primary);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --white: #1a1a2e;
  --light: #16213e;
  --gray-100: #1e2a47;
  --gray-200: #253356;
  --gray-300: #2d3d66;
  --gray-400: #4a5578;
  --gray-500: #7a8599;
  --gray-600: #a0a8b8;
  --gray-700: #c4c9d4;
  --gray-800: #e0e3ea;
  --gray-900: #f0f2f5;
  --dark: #f0f2f5;
  --primary-light: #1e2a47;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

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

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.announcement-bar a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1280px;
  margin: 0 auto;
  height: 70px;
}

.site-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--gray-900); }
.site-logo .logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 16px;
}

/* NAV */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > ul { display: flex; list-style: none; gap: 0; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 24px 16px; font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: var(--transition); position: relative;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a { color: var(--primary); }
.main-nav > ul > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--primary); transform: scaleX(0); transition: var(--transition);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }

/* DROPDOWN */
.main-nav .sub-menu,
.main-nav .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); list-style: none; z-index: 100;
}
.main-nav > ul > li:hover > .sub-menu,
.main-nav > ul > li:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li a,
.main-nav .dropdown-menu li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-size: 14px; color: var(--gray-700); border-radius: var(--radius-sm); transition: var(--transition);
}
.main-nav .sub-menu li a:hover,
.main-nav .dropdown-menu li a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-icon { font-size: 18px; }

/* Mega menu for Products */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  width: 700px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 24px;
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 100;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.main-nav > ul > li:hover > .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 12px; font-weight: 600; }
.mega-col ul { list-style: none; padding: 0; }
.mega-col ul li a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 14px; color: var(--gray-700); border-radius: var(--radius-sm); }
.mega-col ul li a:hover { background: var(--primary-light); color: var(--primary); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* LIVE SEARCH */
.search-wrapper { position: relative; }
.search-toggle {
  width: 40px; height: 40px; border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--gray-600); transition: var(--transition);
}
.search-toggle:hover { background: var(--primary-light); color: var(--primary); }
.search-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-modal {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 640px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); z-index: 2001; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-20px); transition: var(--transition);
}
.search-overlay.active + .search-modal,
.search-modal.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.search-modal input {
  width: 100%; padding: 18px 20px 18px 50px; border: none; font-size: 16px;
  background: var(--white); color: var(--gray-900); outline: none;
}
.search-modal .search-icon-inside { position: absolute; left: 18px; top: 18px; color: var(--gray-400); }
.search-results {
  max-height: 400px; overflow-y: auto; border-top: 1px solid var(--gray-200);
}
.search-results .search-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  transition: var(--transition); cursor: pointer;
}
.search-results .search-item:hover { background: var(--primary-light); }
.search-results .search-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.search-results .search-item-info h4 { font-size: 14px; margin-bottom: 2px; }
.search-results .search-item-info span { font-size: 13px; color: var(--primary); font-weight: 600; }
.search-results .no-results { padding: 30px; text-align: center; color: var(--gray-500); }
.search-results .search-loading { padding: 20px; text-align: center; color: var(--gray-500); }

/* MINI CART */
.mini-cart-toggle {
  width: 40px; height: 40px; border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--gray-600); position: relative; transition: var(--transition);
}
.mini-cart-toggle:hover { background: var(--primary-light); color: var(--primary); }
.cart-count {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  background: var(--danger); color: white; font-size: 10px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cart-count:empty { display: none; }

/* CART DRAWER */
.cart-drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 3000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 90vw; height: 100%;
  background: var(--white); z-index: 3001; transform: translateX(100%);
  transition: var(--transition); display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-drawer.active { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--gray-200);
}
.cart-drawer-header h3 { font-size: 18px; }
.cart-drawer-close {
  width: 36px; height: 36px; border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer; font-size: 18px; display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.cart-drawer-close:hover { background: var(--gray-200); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-drawer-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.cart-drawer-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-details .cart-item-price { font-size: 14px; font-weight: 600; color: var(--primary); }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.cart-item-qty button {
  width: 28px; height: 28px; border: 1px solid var(--gray-300); background: var(--white);
  border-radius: 6px; cursor: pointer; font-size: 14px; display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.cart-item-qty button:hover { border-color: var(--primary); color: var(--primary); }
.cart-item-qty span { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none; border: none; color: var(--gray-400); cursor: pointer;
  font-size: 18px; padding: 4px; transition: var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }
.cart-drawer-empty { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.cart-drawer-empty .empty-cart-icon { font-size: 48px; margin-bottom: 16px; }
.cart-drawer-footer {
  border-top: 1px solid var(--gray-200); padding: 20px;
}
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.cart-checkout-btn { width: 100%; }
.cart-view-btn { width: 100%; margin-top: 8px; }

/* DARK MODE TOGGLE */
.theme-toggle {
  width: 40px; height: 40px; border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 18px; transition: var(--transition);
}
.theme-toggle:hover { background: var(--primary-light); color: var(--primary); }

/* MOBILE NAV */
.mobile-toggle {
  display: none; width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mobile-toggle span {
  width: 22px; height: 2px; background: var(--gray-700); transition: var(--transition);
}
.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
  background: var(--white); z-index: 999; overflow-y: auto; padding: 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav > ul > li > a { display: block; padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); }
.mobile-nav .mobile-submenu { padding-left: 20px; display: none; }
.mobile-nav .mobile-submenu.active { display: block; }
.mobile-nav .mobile-submenu a { padding: 10px 0; font-size: 14px; color: var(--gray-600); display: block; }
.mobile-nav .submenu-toggle { float: right; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-500); }

@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); transform: translateY(-2px); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { background: #157347; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f0e6ff 100%);
  padding: 100px 0 80px; position: relative; overflow: hidden;
}
[data-theme="dark"] .hero { background: linear-gradient(135deg, var(--light) 0%, var(--gray-100) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: white;
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 500;
  color: var(--primary); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .hero-badge { background: var(--gray-200); }
.hero h1 { font-size: 52px; line-height: 1.1; margin-bottom: 20px; color: var(--gray-900); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray-600); margin-bottom: 32px; max-width: 500px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.hero-stat .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.hero-visual { position: relative; }
.hero-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hero-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-card .card-icon { font-size: 32px; margin-bottom: 10px; }
.hero-card h4 { font-size: 14px; margin-bottom: 4px; }
.hero-card .card-price { font-size: 16px; font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== BRAND STRIP ===== */
.brand-strip { padding: 50px 0; background: var(--white); border-bottom: 1px solid var(--gray-100); }
.brand-strip h3 { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--gray-400); margin-bottom: 30px; font-weight: 500; }
.brand-logos { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.brand-logo { font-size: 28px; font-weight: 800; color: var(--gray-300); transition: var(--transition); cursor: default; }
.brand-logo:hover { color: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-header .section-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light);
  color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.section-header h2 { font-size: 36px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray-600); line-height: 1.7; }
.section-alt { background: var(--light); }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-card .card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--danger); color: white;
  padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; z-index: 2;
}
.product-card .card-img {
  position: relative; padding: 30px; background: var(--gray-100); text-align: center;
  overflow: hidden;
}
.product-card .card-img img { max-height: 120px; margin: 0 auto; transition: var(--transition); }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .quick-actions {
  position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px;
  opacity: 0; transform: translateY(10px); transition: var(--transition);
}
.product-card:hover .quick-actions { opacity: 1; transform: translateY(0); }
.quick-action-btn {
  width: 34px; height: 34px; border: none; background: var(--white);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 14px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.quick-action-btn:hover { background: var(--primary); color: white; }
.product-card .card-body { padding: 18px; }
.product-card .card-category { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-card .card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); line-height: 1.4; }
.product-card .card-title a { color: inherit; }
.product-card .card-title a:hover { color: var(--primary); }
.product-card .card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.card-stars { color: var(--warning); font-size: 13px; }
.card-rating span { font-size: 12px; color: var(--gray-500); }
.product-card .card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card .card-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.product-card .card-price .original-price { font-size: 13px; color: var(--gray-400); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-card .add-to-cart-btn { padding: 8px 16px; }

/* ===== CATEGORY CARDS ===== */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .categories-grid { grid-template-columns: 1fr; } }
.category-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 40px 30px; text-align: center; transition: var(--transition); position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.category-card .cat-icon { font-size: 48px; margin-bottom: 16px; }
.category-card h3 { font-size: 20px; margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; }
.category-card .cat-count { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===== BENEFITS ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit-card {
  text-align: center; padding: 30px 20px;
}
.benefit-icon {
  width: 64px; height: 64px; background: var(--primary-light); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-size: 24px; color: var(--primary); transition: var(--transition);
}
.benefit-card:hover .benefit-icon { background: var(--primary); color: white; transform: scale(1.1); }
.benefit-card h3 { font-size: 16px; margin-bottom: 8px; }
.benefit-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #4a0ed0);
  padding: 80px 0; text-align: center; color: white; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: 36px; margin-bottom: 16px; color: white; }
.cta-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: white; color: var(--primary); border-color: white; }
.cta-banner .btn-primary:hover { background: var(--gray-100); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--warning); font-size: 14px; margin-bottom: 14px; }
.testimonial-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 16px;
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--gray-500); }

/* ===== NEWSLETTER ===== */
.newsletter { padding: 60px 0; background: var(--light); }
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
@media (max-width: 768px) { .newsletter-inner { flex-direction: column; text-align: center; } }
.newsletter h3 { font-size: 24px; margin-bottom: 6px; }
.newsletter p { font-size: 14px; color: var(--gray-500); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  padding: 12px 18px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 14px; min-width: 280px; background: var(--white); color: var(--gray-900);
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* ===== SINGLE PRODUCT ===== */
.product-single { padding: 40px 0 80px; }
.product-breadcrumb { padding: 16px 0; font-size: 13px; color: var(--gray-500); }
.product-breadcrumb a { color: var(--gray-500); }
.product-breadcrumb a:hover { color: var(--primary); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 768px) { .product-layout { grid-template-columns: 1fr; gap: 30px; } }
.product-gallery { background: var(--gray-100); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.product-gallery img { max-height: 300px; margin: 0 auto; }
.product-info .product-category-tag { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-info h1 { font-size: 32px; margin-bottom: 12px; }
.product-info .product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.product-info .product-price-box {
  background: var(--primary-light); border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.product-info .current-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.product-info .original-price { font-size: 18px; color: var(--gray-400); text-decoration: line-through; margin-left: 10px; }
.product-info .save-badge { background: var(--success); color: white; padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-left: 10px; }
.product-info .product-desc { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; }
.product-features { list-style: none; padding: 0; margin-bottom: 24px; }
.product-features li { padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; color: var(--gray-700); }
.product-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-badge { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--gray-100); border-radius: var(--radius-sm); font-size: 13px; }
.trust-badge .badge-icon { font-size: 20px; }

/* ===== PRODUCT TABS ===== */
.product-tabs { margin-top: 60px; }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 30px; }
.tab-nav button {
  padding: 14px 24px; border: none; background: none; font-size: 14px; font-weight: 600;
  color: var(--gray-500); cursor: pointer; position: relative; transition: var(--transition);
}
.tab-nav button.active { color: var(--primary); }
.tab-nav button.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 100%;
  height: 2px; background: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== SHOP FILTERS ===== */
.shop-page { padding: 40px 0 80px; }
.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.shop-header h1 { font-size: 28px; }
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px; border: 1px solid var(--gray-300); border-radius: 50px;
  background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: var(--transition); color: var(--gray-700);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.shop-sort select {
  padding: 10px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 13px; background: var(--white); color: var(--gray-700); cursor: pointer;
}
.shop-results-count { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-light), #f0e6ff);
  padding: 60px 0; text-align: center;
}
[data-theme="dark"] .page-header { background: var(--gray-100); }
.page-header h1 { font-size: 36px; margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--gray-600); max-width: 500px; margin: 0 auto; }
.page-header .breadcrumb { margin-top: 16px; font-size: 13px; color: var(--gray-400); }
.page-header .breadcrumb a { color: var(--gray-400); }
.page-header .breadcrumb a:hover { color: var(--primary); }

/* ===== CONTENT PAGES ===== */
.content-page { padding: 60px 0; }
.content-page .content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
@media (max-width: 768px) { .content-page .content-grid { grid-template-columns: 1fr; } }
.content-page .page-content h2 { font-size: 24px; margin: 32px 0 16px; }
.content-page .page-content h3 { font-size: 20px; margin: 24px 0 12px; }
.content-page .page-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.content-page .page-content ul { padding-left: 20px; margin-bottom: 16px; }
.content-page .page-content ul li { color: var(--gray-600); margin-bottom: 8px; line-height: 1.6; }

/* SIDEBAR */
.sidebar .widget {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.sidebar .widget h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-100); }
.sidebar .widget ul { list-style: none; padding: 0; }
.sidebar .widget ul li a { display: block; padding: 8px 0; font-size: 14px; color: var(--gray-600); }
.sidebar .widget ul li a:hover { color: var(--primary); padding-left: 8px; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; padding: 18px 24px; border: none; background: var(--white);
  text-align: left; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--gray-800); transition: var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question .faq-toggle { font-size: 20px; transition: var(--transition); color: var(--primary); }
.faq-question.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.active { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .blog-img { height: 200px; background: var(--gray-100); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-card .blog-img .blog-icon { font-size: 48px; color: var(--gray-300); }
.blog-card .blog-body { padding: 20px; }
.blog-card .blog-meta { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.blog-card .blog-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.blog-card .blog-body h3 a { color: var(--gray-900); }
.blog-card .blog-body h3 a:hover { color: var(--primary); }
.blog-card .blog-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.blog-card .read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* SINGLE BLOG */
.single-blog { padding: 40px 0 80px; }
.single-blog .blog-content { max-width: 760px; margin: 0 auto; }
.single-blog .blog-content h1 { font-size: 36px; margin-bottom: 16px; }
.single-blog .blog-content .blog-meta { margin-bottom: 30px; }
.single-blog .blog-content .featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; background: var(--gray-100); height: 300px; display: flex; align-items: center; justify-content: center; }
.single-blog .blog-content .post-body p { font-size: 16px; color: var(--gray-700); line-height: 1.9; margin-bottom: 20px; }
.single-blog .blog-content .post-body h2 { margin-top: 32px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px;
  background: var(--gray-100); border-radius: var(--radius); margin-bottom: 16px;
}
.contact-info-card .info-icon { font-size: 24px; color: var(--primary); }
.contact-info-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; color: var(--gray-500); }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--gray-700); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 14px; background: var(--white);
  color: var(--gray-900); transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,0.15); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===== ABOUT ===== */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 768px) { .about-hero { grid-template-columns: 1fr; } }
.about-image { background: var(--gray-100); border-radius: var(--radius-lg); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: 30px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.stat-card .stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card .team-avatar {
  width: 100px; height: 100px; background: var(--primary-light); border-radius: 50%;
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--primary);
}
.team-card h4 { font-size: 16px; margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--gray-500); }

/* ===== 404 ===== */
.error-page { padding: 100px 0; text-align: center; }
.error-page .error-code { font-size: 120px; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 28px; margin: 16px 0 12px; }
.error-page p { color: var(--gray-500); margin-bottom: 32px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 80px 0 0; }
[data-theme="dark"] .site-footer { background: #0d0d1a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: white; font-size: 16px; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray-400); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: white; padding-left: 4px; }
.footer-about .footer-logo { font-size: 20px; font-weight: 800; color: white; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-about .footer-logo .logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--gray-700); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 14px; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-payment { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.payment-icon {
  padding: 6px 12px; background: rgba(255,255,255,0.1); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--gray-400);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; margin-top: 60px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--gray-400); font-size: 13px; }
.footer-bottom-links a:hover { color: white; }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce .products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.woocommerce .woocommerce-message { background: #d4edda; border-color: var(--success); color: #155724; }
.woocommerce .woocommerce-info { background: #d1ecf1; border-color: var(--info); color: #0c5460; }
.woocommerce .woocommerce-error { background: #f8d7da; border-color: var(--danger); color: #721c24; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button {
  background: var(--primary) !important; color: white !important; border: none !important;
  border-radius: var(--radius-sm) !important; padding: 12px 24px !important;
  font-weight: 600 !important; transition: var(--transition) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--primary-dark) !important; transform: translateY(-2px); }
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--success) !important; }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: #157347 !important; }
.woocommerce .quantity .qty {
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 8px 12px; width: 60px;
}
.woocommerce table.shop_table { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.woocommerce table.shop_table th { background: var(--gray-100); }
.woocommerce table.shop_table td { border-color: var(--gray-100); padding: 16px; }
.woocommerce .cart_totals { background: var(--gray-100); border-radius: var(--radius); padding: 24px; }
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 12px 16px;
}
.woocommerce-checkout .form-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,0.15); }
.woocommerce #payment { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 10px 16px; }

/* MINI CART WIDGET */
.widget_shopping_cart .cart_list li { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.widget_shopping_cart .total { font-weight: 700; padding: 12px 0; }
.widget_shopping_cart .buttons a { display: block; text-align: center; margin-bottom: 8px; }

/* ===== PAGINATION ===== */
.pagination, .woocommerce-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span,
.woocommerce-pagination a, .woocommerce-pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px;
  color: var(--gray-700); transition: var(--transition);
}
.pagination .current, .pagination a:hover,
.woocommerce-pagination .current, .woocommerce-pagination a:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

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

/* ===== TOAST NOTIFICATION ===== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--gray-900); color: white; padding: 14px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: slideInRight 0.3s ease; min-width: 280px;
}
[data-theme="dark"] .toast { background: var(--gray-200); color: var(--gray-900); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--primary); color: white; border: none; border-radius: 50%;
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); background: var(--primary-dark); }

/* SUPPORT PAGE */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px; text-align: center; transition: var(--transition);
}
.support-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.support-card .support-icon { font-size: 36px; margin-bottom: 14px; }
.support-card h3 { font-size: 18px; margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; line-height: 1.6; }

/* ===== WOO ACCOUNT ===== */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 12px 16px; border: 1px solid var(--gray-200); margin-bottom: -1px;
  font-size: 14px; color: var(--gray-700); transition: var(--transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ===== RESPONSIVE FINE TUNE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .section-header h2 { font-size: 28px; }
  .footer-grid { gap: 30px; }
  .search-modal { width: 95%; }
  .mega-menu { width: 90vw; grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
