/* ============================================
   CSS Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System - Modern Dark Theme with Black & Red Accent Colors */
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-primary-light: #ef4444;
  --color-secondary: #000000;
  --color-accent: #991b1b;
  --color-dark: #000000;
  --color-dark-alt: #111111;
  --color-dark-lighter: #1f1f1f;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --color-gray-light: #adb5bd;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Typography */
  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1050;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background: #111;
  color: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  background: #000000 !important;
  border-bottom: 1px solid #333;
  padding: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: absolute;
  transition: var(--transition-base);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Navigation Categories */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-categories {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-category {
  color: #cccccc;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 18px 0;
  transition: color 0.2s;
}

.nav-category:hover {
  color: #ffffff;
}

.nav-category.deals-highlight {
  background-color: #dc2626;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 10px;
  height: fit-content;
}

.nav-category.deals-highlight:hover {
  background-color: #b91c1c;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-btn,
.account-btn,
.cart-btn {
  background: none;
  border: none;
  color: #cccccc;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.search-btn:hover,
.account-btn:hover,
.cart-btn:hover {
  color: #ffffff;
}

.cart-btn {
  position: relative;
}

.cart-count {
  background-color: #dc2626;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  margin-left: 4px;
}

/* ============================================
   Hero Section - New Design
   ============================================ */
.hero-section {
  background: #0a0a0a;
  min-height: 100vh;
  padding: 80px 0 40px;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  max-width: 600px;
}

.premium-badge {
  display: inline-block;
  background: transparent;
  border: 2px solid #dc2626;
  color: #dc2626;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 24px;
  font-family: var(--font-primary);
}

.hero-description {
  font-size: 18px;
  color: #aaaaaa;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #333;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #666;
  background: rgba(255, 255, 255, 0.05);
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cccccc;
}

.feature-item svg {
  color: #dc2626;
}

/* Hero Showcase */
.hero-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  height: 600px;
}

.showcase-main {
  background: #111111;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

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

.showcase-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
}

.showcase-item {
  background: #111111;
  border-radius: 12px;
  overflow: hidden;
}

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

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

.image-placeholder.large {
  max-width: 500px;
  max-height: 400px;
}

.image-placeholder.small {
  max-width: 200px;
  max-height: 150px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-showcase {
    grid-template-columns: 1fr 1fr;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 0 20px;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    height: auto;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }

  .hero-features {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 120px);
  }
}

/* ============================================
   Categories Section
   ============================================ */
.categories {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(220, 38, 38, 0.03) 100%
  );
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-gray-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.category-card {
  background: linear-gradient(
    135deg,
    var(--color-dark-lighter) 0%,
    var(--color-dark-alt) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(220, 38, 38, 0.15);
  outline: none;
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  display: block;
  transition: transform var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
}

.category-desc {
  color: var(--color-gray-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.category-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.category-link:hover {
  color: var(--color-primary-light);
  transform: translateX(5px);
}

/* ============================================
   Featured Products Section
   ============================================ */
.featured-products {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.view-all-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  color: var(--color-primary-light);
  transform: translateX(3px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: linear-gradient(
    135deg,
    var(--color-dark-lighter) 0%,
    var(--color-dark-alt) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(220, 38, 38, 0.1);
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: var(--color-warning);
  color: var(--color-dark);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 1;
}

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

.product-badge.sale {
  background: var(--color-danger);
  color: var(--color-white);
}

.product-image {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.placeholder-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1) 0%,
    rgba(153, 27, 27, 0.1) 100%
  );
  border-radius: var(--radius-md);
}

.placeholder-icon {
  font-size: 4rem;
  opacity: 0.6;
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.product-specs {
  color: var(--color-gray-light);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}

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

.original-price {
  font-size: 1rem;
  color: var(--color-gray);
  text-decoration: line-through;
  margin-right: var(--spacing-xs);
}

.btn-add-cart {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Trust Signals Section
   ============================================ */
.trust-signals {
  padding: var(--spacing-2xl) 0;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.trust-item {
  text-align: center;
  padding: var(--spacing-md);
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.trust-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.trust-item p {
  color: var(--color-gray-light);
  font-size: 0.95rem;
}

/* ============================================
   Promotional Banner
   ============================================ */
.promo-banner {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.promo-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 var(--spacing-md);
}

.promo-title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.promo-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1rem;
  font-family: var(--font-secondary);
  transition: all var(--transition-base);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.newsletter-form .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.newsletter-form .btn-primary:hover {
  background: var(--color-light);
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-text {
  color: var(--color-gray-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-light);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--color-gray-light);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: var(--color-gray-light);
  font-size: 0.875rem;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-gray-light);
  font-size: 0.875rem;
}

.payment-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-title-large {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-xs);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm);
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-title-large {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .section-header {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .promo-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-add-cart {
    width: 100%;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations on scroll */
.animate-on-scroll {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   XL ARMS Homepage Layout
   ============================================ */

/* Top Bar */
.top-bar {
  background: #000;
  border-bottom: 1px solid #333;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-title {
  color: #ccc;
}

.top-bar-links {
  display: flex;
  gap: 2rem;
}

.top-bar-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar-links a:hover {
  color: #fff;
}

/* Main Header */
.main-header {
  background: #000;
  padding: 1.5rem 0;
  border-bottom: 1px solid #333;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  align-items: center;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

.header-logo .logo-icon {
  font-size: 2rem;
}

.header-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: 0.05em;
}

/* Header Search */
.header-search {
  display: flex;
  max-width: 800px;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px 0 0 4px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: #dc2626;
}

.search-button {
  padding: 0.875rem 2rem;
  background: #dc2626;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.search-button:hover {
  background: #b91c1c;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 1.5rem;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s;
}

.header-action:hover {
  color: #dc2626;
}

.header-action svg {
  color: #fff;
}

/* Category Navigation */
.category-nav {
  background: #000;
  border-bottom: 1px solid #333;
}

.nav-categories-xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav-categories-xl a {
  padding: 1rem 0;
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
}

.nav-categories-xl a:hover {
  color: #fff;
  border-bottom-color: #dc2626;
}

.nav-categories-xl .deals-link {
  color: #dc2626;
}

/* Hero Section */
.hero-xl {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  padding: 6rem 2rem;
  text-align: center;
}

.hero-xl-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-xl-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-xl-subtitle {
  font-size: 1.25rem;
  color: #aaa;
  margin-bottom: 2.5rem;
}

.hero-xl-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-xl-primary {
  padding: 1rem 3rem;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-xl-primary:hover {
  background: #b91c1c;
}

.btn-xl-secondary {
  padding: 1rem 3rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-xl-secondary:hover {
  background: #fff;
  color: #000;
}

/* Shop Categories Section */
.shop-categories {
  padding: 4rem 2rem;
  background: #f5f5f5;
}

.container-xl {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title-xl {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle-xl {
  font-size: 1.125rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  aspect-ratio: 4/3;
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Featured Products Section */
.featured-products {
  padding: 4rem 2rem;
  background: #fff;
}

.products-grid-xl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card-xl {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.product-card-xl:hover {
  transform: translateY(-5px);
  border-color: #dc2626;
}

.product-badge-xl {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.product-badge-xl.hot {
  background: #dc2626;
}

.product-badge-xl.new {
  background: #10b981;
}

.product-badge-xl.sale {
  background: #dc2626;
}

.product-image-xl {
  width: 100%;
  height: 200px;
  background: #e5e5e5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.product-image-xl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  padding: 2rem;
  font-size: 1rem;
}

.emoji-icon {
  font-size: 4rem;
}

.product-name-xl {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
}

.product-price-xl {
  font-size: 1.5rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.stock-status-xl {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.stock-status-xl.in-stock {
  color: #10b981;
}

.stock-status-xl.limited {
  color: #f59e0b;
}

.btn-add-cart-xl {
  width: 100%;
  padding: 0.875rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-cart-xl:hover {
  background: #333;
}

/* Footer */
.footer-xl {
  background: #000;
  padding: 2rem;
  text-align: center;
  color: #aaa;
  border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .header-container {
    grid-template-columns: 180px 1fr auto;
    gap: 1.5rem;
  }

  .nav-categories-xl {
    gap: 2rem;
  }

  .products-grid-xl {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 968px) {
  .header-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-search {
    max-width: 100%;
  }

  .header-actions {
    justify-content: center;
  }

  .nav-categories-xl {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid-xl {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top-bar-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-xl-title {
    font-size: 2rem;
  }

  .hero-xl-buttons {
    flex-direction: column;
  }

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

  .products-grid-xl {
    grid-template-columns: 1fr;
  }

  .nav-categories-xl {
    flex-direction: column;
    gap: 0;
  }

  .nav-categories-xl a {
    padding: 1rem;
    border-bottom: 1px solid #333;
  }
}

/* ============================================
   WordPress-Style Layout
   ============================================ */

/* Page Container */
#page {
  max-width: 1400px;
  margin: 0 auto;
  background: #111;
}

/* Header */
#header {
  background: #000;
  border-bottom: 1px solid #333;
}

#headerimg {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  border-bottom: 2px solid #dc2626;
}

#headerimg h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#headerimg h1 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#headerimg h1 a:hover {
  color: #dc2626;
}

#headerimg .description {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #aaa;
  font-weight: 400;
}

/* Horizontal Rules */
hr {
  border: 0;
  height: 1px;
  background: #333;
  margin: 0;
}

/* Content Wrapper */
#content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Main Content Column */
#content.narrowcolumn {
  min-width: 0; /* Prevents grid overflow */
}

/* Hero Section in Content Area */
#content .hero-section {
  margin-bottom: 3rem;
  padding: 0;
}

/* Featured Posts Section */
.featured-posts {
  margin-top: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dc2626;
}

.post-entry {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.post-entry:hover {
  transform: translateY(-2px);
  border-color: #dc2626;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #dc2626;
}

.post-meta {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 1rem;
}

.post-date,
.author {
  color: #aaa;
  font-weight: 500;
}

.post-excerpt p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-categories {
  font-size: 0.875rem;
  color: #888;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.post-categories a {
  color: #dc2626;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-categories a:hover {
  color: #ef4444;
  text-decoration: underline;
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Sidebar */
#sidebar {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dc2626;
}

/* Search Box in Sidebar */
.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 0.75rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.search-box input[type="text"]:focus {
  outline: none;
  border-color: #dc2626;
}

.search-box button {
  padding: 0.75rem 1rem;
  background: #dc2626;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: #b91c1c;
}

.search-box button svg {
  display: block;
}

/* Sidebar Lists */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0.75rem;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.sidebar-list a:hover {
  color: #dc2626;
  padding-left: 0.5rem;
}

/* Footer */
#footer {
  background: #0a0a0a;
  border-top: 1px solid #333;
  padding: 2rem;
  text-align: center;
  color: #888;
}

#footer p {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
}

#footer strong {
  color: #fff;
  font-weight: 700;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  #headerimg {
    padding: 1.5rem;
  }

  #headerimg h1 {
    font-size: 2rem;
  }

  #content-wrapper {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .post-entry {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  #sidebar {
    padding: 1.5rem;
  }

  #footer {
    padding: 1.5rem 1rem;
  }

  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}
