/* ===================================
   COMPUTIXA - Master Stylesheet
   Modern Electronics E-commerce
   ================================== */

/* === CSS Variables === */
:root {
  --primary-blue: #1e3a8a;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1e40af;
  --graphite: #2d3748;
  --graphite-light: #4a5568;
  --graphite-dark: #1a202c;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--graphite);
  background-color: var(--gray-50);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--graphite-dark);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

/* === Header & Navigation === */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-top {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left span {
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-top-right a {
  margin-left: 1.5rem;
  color: var(--white);
  opacity: 0.9;
  transition: var(--transition-fast);
}

.header-top-right a:hover {
  opacity: 1;
}

.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  transition: var(--transition-fast);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo:hover {
  transform: scale(1.02);
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-bar form {
  display: flex;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.search-bar form:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: transparent;
}

.search-bar button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  transition: var(--transition-fast);
}

.search-bar button:hover {
  background: var(--primary-blue-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-action {
  position: relative;
  color: var(--graphite);
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.header-action:hover {
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.header-action span {
  font-size: 0.75rem;
  font-weight: 600;
}

.header-action .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Navigation */
.nav {
  background-color: var(--graphite-dark);
  border-bottom: 3px solid var(--accent);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-promo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.nav-promo:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === Hero Section === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.05"/></svg>');
  background-size: 60px 60px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Sections === */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--graphite-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* === Categories === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover::before {
  opacity: 0.95;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.category-card > * {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.category-card:hover > * {
  color: var(--white);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.category-card:hover .category-icon {
  color: var(--white);
  transform: scale(1.1);
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--graphite-dark);
}

.category-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* === Product Cards === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.product-badge.new {
  background: var(--success);
}

.product-badge.sale {
  background: var(--error);
}

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--graphite);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.product-action-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--graphite-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
  color: var(--accent);
}

.rating-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.price-old {
  font-size: 1.125rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.product-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-add-cart {
  flex: 1;
  padding: 0.75rem;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary-blue-dark);
}

.btn-quick-view {
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  color: var(--graphite);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.btn-quick-view:hover {
  background: var(--gray-200);
}

/* === Features === */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* === Brands === */
.brands {
  background: var(--gray-100);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.brand-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  min-height: 100px;
  filter: grayscale(100%);
  opacity: 0.6;
}

.brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* === Newsletter === */
.newsletter {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--graphite);
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* === Footer === */
.footer {
  background: var(--graphite-dark);
  color: var(--gray-300);
  padding-top: 4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-section h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-bottom p {
  color: var(--gray-500);
  margin: 0;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 1.5rem 0;
  background: var(--gray-100);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  font-weight: 600;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item::after {
  content: '›';
  color: var(--gray-400);
  font-size: 1.125rem;
}

.breadcrumb-item:last-child::after {
  display: none;
}

/* === Filters & Sidebar === */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.sidebar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--graphite-dark);
  margin-bottom: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-option:hover {
  color: var(--primary-blue);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-option label {
  flex: 1;
  cursor: pointer;
  font-size: 0.9375rem;
}

.filter-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.price-range {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.price-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
}

/* === Shop Header === */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.shop-results {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.shop-results strong {
  color: var(--graphite-dark);
  font-weight: 700;
}

.shop-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--gray-100);
  padding: 0.25rem;
  border-radius: 8px;
}

.view-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--gray-600);
  border-radius: 6px;
  transition: var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  cursor: pointer;
}

/* === Product Page === */
.product-page {
  background: var(--white);
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-lg);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumbnail {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-blue);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-sku {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.product-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.product-description {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.product-options {
  margin-bottom: 2rem;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--graphite-dark);
}

.option-values {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.option-value {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.option-value:hover,
.option-value.selected {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: var(--white);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-label {
  font-weight: 600;
  color: var(--graphite-dark);
}

.quantity-controls {
  display: flex;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  color: var(--graphite);
  font-size: 1.25rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.qty-input {
  width: 60px;
  text-align: center;
  font-weight: 600;
  border-left: 2px solid var(--gray-300);
  border-right: 2px solid var(--gray-300);
}

.product-actions-large {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-large {
  flex: 1;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 12px;
}

.product-features {
  display: grid;
  gap: 1rem;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.product-feature-icon {
  color: var(--primary-blue);
  font-size: 1.25rem;
}

/* === Tabs === */
.tabs {
  margin-top: 4rem;
}

.tab-navigation {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.specifications-table td {
  padding: 1rem;
}

.specifications-table td:first-child {
  font-weight: 600;
  color: var(--graphite-dark);
  width: 30%;
}

.specifications-table td:last-child {
  color: var(--gray-600);
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 0.9375rem;
  margin: 0;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--graphite-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  transition: var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--graphite-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  font-size: 1.25rem;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* === Policy Pages === */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.policy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.policy-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.policy-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content ul,
.policy-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

.policy-content strong {
  color: var(--graphite-dark);
}

/* === Cookie Consent === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.cookie-text a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.cookie-btn.accept {
  background: var(--primary-blue);
  color: var(--white);
}

.cookie-btn.accept:hover {
  background: var(--primary-blue-dark);
}

.cookie-btn.decline {
  background: var(--gray-200);
  color: var(--graphite);
}

.cookie-btn.decline:hover {
  background: var(--gray-300);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--graphite);
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  
  .shop-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .product-main {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .header-top {
    display: none;
  }
  
  .header-main .container {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--graphite-dark);
    flex-direction: column;
    padding: 5rem 0 2rem;
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cookie-consent .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .policy-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* === Utilities === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* === Loading Spinner === */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* === Wishlist & Cart Pages === */

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 1.75rem;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Wishlist */
.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.wishlist-header h2 {
  color: var(--graphite);
  font-size: 1.5rem;
}

.btn-clear-wishlist {
  background: none;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}

.btn-clear-wishlist:hover {
  background: var(--error);
  color: white;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.wishlist-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.wishlist-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.wishlist-item-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--gray-100);
}

.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 1.2rem;
  z-index: 2;
}

.btn-remove-wishlist:hover {
  background: var(--error);
  color: white;
  transform: scale(1.1);
}

.wishlist-item-info {
  padding: 1.25rem;
}

.wishlist-item-category {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.wishlist-item-name {
  font-size: 1rem;
  color: var(--graphite);
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 2.8rem;
}

.wishlist-item-price {
  font-size: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}

.wishlist-item-actions {
  display: flex;
  gap: 0.5rem;
}

.wishlist-item-actions .btn {
  flex: 1;
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}

.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.cart-items-header h2 {
  color: var(--graphite);
  font-size: 1.5rem;
}

.btn-clear-cart {
  background: none;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}

.btn-clear-cart:hover {
  background: var(--error);
  color: white;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-category {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item-name {
  font-size: 1.125rem;
  color: var(--graphite);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 0.25rem;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--graphite);
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--primary-blue);
  color: white;
}

.cart-qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cart-qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--graphite);
}

.btn-remove-cart {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.btn-remove-cart:hover {
  background: var(--error);
  color: white;
}

.cart-item-total {
  text-align: right;
}

.cart-item-total-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.cart-item-total-price {
  font-size: 1.5rem;
  color: var(--graphite);
  font-weight: 700;
}

/* Cart Summary */
.cart-summary {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 1.5rem;
  color: var(--graphite);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--graphite);
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  padding: 1.5rem 0 1rem;
}

.summary-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 1rem 0;
}

.promo-code {
  margin: 1.5rem 0;
  display: flex;
  gap: 0.5rem;
}

.promo-code input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
}

.btn-apply-promo {
  padding: 0.75rem 1rem;
  background: var(--gray-200);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-apply-promo:hover {
  background: var(--gray-300);
}

.btn-checkout {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.125rem;
}

.payment-methods {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.payment-methods p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
}

.cart-benefits {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.benefit-item span:first-child {
  color: var(--success);
  font-weight: 700;
}

.cart-actions-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }
  
  .cart-item-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
  }
  
  .cart-item-total {
    grid-column: 1 / -1;
    text-align: left;
  }
  
  .wishlist-header,
  .cart-items-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .btn-clear-wishlist,
  .btn-clear-cart {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    padding: 1rem;
  }
  
  .cart-summary {
    padding: 1.5rem;
  }
}
