/*
Theme Name: Commeronix
Theme URI: https://commeronix.com
Author: Commeronix Team
Author URI: https://commeronix.com
Description: A hyper-modern, ultra-fast, SEO-optimized E-Commerce & Retail WordPress theme designed with premium aesthetics, bold typography, and smooth micro-interactions.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: commeronix
*/

:root {
  /* Brand Color Palette (Distinct, Ultra-Premium) */
  --cx-black: #0B0E14;
  --cx-dark: #121722;
  --cx-card-dark: #181F2E;
  --cx-slate: #242D3D;
  --cx-border: #E2E8F0;
  --cx-border-dark: #2A3447;
  --cx-gray-light: #F8FAFC;
  --cx-gray-muted: #64748B;
  --cx-gray-dim: #94A3B8;
  --cx-white: #FFFFFF;
  
  /* Primary Vibrant Accents */
  --cx-primary: #0066FF;
  --cx-primary-hover: #0052CC;
  --cx-primary-light: #EBF4FF;
  --cx-accent: #00E5FF;
  --cx-amber: #FF9900;
  
  /* Typography */
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-max: 1360px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  
  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 30px rgba(0, 102, 255, 0.15);
  --shadow-card: 0 8px 30px rgba(11, 14, 20, 0.08);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--cx-white);
  color: var(--cx-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.cx-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.cx-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-subtle);
  height: 70px;
}

.cx-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.cx-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cx-black);
  text-transform: uppercase;
}

.cx-brand-logo span.badge-dot {
  width: 10px;
  height: 10px;
  background: var(--cx-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cx-primary);
}

.cx-brand-logo span.accent-text {
  color: var(--cx-primary);
}

.cx-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cx-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cx-black);
  position: relative;
  padding: 6px 0;
}

.cx-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cx-primary);
  transition: width 0.25s ease;
}

.cx-nav a:hover {
  color: var(--cx-primary);
}

.cx-nav a:hover::after {
  width: 100%;
}

.cx-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cx-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
}

.cx-btn-primary {
  background-color: var(--cx-primary);
  color: var(--cx-white);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.cx-btn-primary:hover {
  background-color: var(--cx-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.cx-btn-outline {
  background: transparent;
  color: var(--cx-black);
  border-color: var(--cx-black);
}

.cx-btn-outline:hover {
  background: var(--cx-black);
  color: var(--cx-white);
  transform: translateY(-2px);
}

.cx-btn-white {
  background: var(--cx-white);
  color: var(--cx-black);
  border-color: var(--cx-white);
}

.cx-btn-white:hover {
  background: var(--cx-primary);
  color: var(--cx-white);
  border-color: var(--cx-primary);
}

.cx-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO BANNER SECTION (Inspired by Rock Machine with Commeronix Styling)
   ========================================================================== */
.cx-hero-wrapper {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 24px;
}

.cx-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B0E14 0%, #151C28 100%);
  color: var(--cx-white);
  box-shadow: var(--shadow-card);
}

.cx-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: luminosity;
  transition: transform 0.6s ease;
}

.cx-hero-card:hover .cx-hero-bg {
  transform: scale(1.03);
}

.cx-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 14, 20, 0.95) 0%, rgba(11, 14, 20, 0.75) 50%, rgba(11, 14, 20, 0.3) 100%);
}

.cx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 64px 56px;
}

.cx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--cx-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.cx-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.cx-hero-title strong {
  color: transparent;
  background: linear-gradient(90deg, #00E5FF, #0066FF);
  -webkit-background-clip: text;
  background-clip: text;
}

.cx-hero-desc {
  font-size: 1.15rem;
  color: var(--cx-gray-dim);
  line-height: 1.65;
  margin-bottom: 36px;
}

.cx-hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   2-COLUMN SPLIT CATEGORY SHOWCASE
   ========================================================================== */
.cx-split-section {
  padding: 30px 0;
}

.cx-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cx-split-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.cx-split-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.cx-split-card:hover img {
  transform: scale(1.08);
}

.cx-split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.1) 0%, rgba(11, 14, 20, 0.85) 100%);
  z-index: 1;
}

.cx-split-info {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cx-split-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cx-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.cx-split-info p {
  color: var(--cx-gray-dim);
  font-size: 0.95rem;
}

/* ==========================================================================
   4-COLUMN DISCOVERY CATEGORIES (Grid Quarters)
   ========================================================================== */
.cx-categories-section {
  padding: 60px 0;
  background: var(--cx-gray-light);
}

.cx-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.cx-section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cx-primary);
  margin-bottom: 8px;
}

.cx-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cx-black);
  text-transform: uppercase;
}

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

.cx-category-box {
  background: var(--cx-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--cx-border);
  display: block;
}

.cx-category-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cx-primary);
}

.cx-cat-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #E2E8F0;
}

.cx-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cx-category-box:hover .cx-cat-thumb img {
  transform: scale(1.08);
}

.cx-cat-content {
  padding: 20px;
  text-align: center;
}

.cx-cat-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cx-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cx-cat-content span {
  font-size: 0.82rem;
  color: var(--cx-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   FEATURE PHILOSOPHY / INNOVATION SECTION
   ========================================================================== */
.cx-feature-section {
  padding: 90px 0;
  background: var(--cx-black);
  color: var(--cx-white);
}

.cx-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cx-feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cx-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-feature-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cx-feature-text h2 strong {
  color: var(--cx-accent);
}

.cx-feature-text p {
  color: var(--cx-gray-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cx-feature-list {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cx-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  color: #CBD5E1;
}

.cx-feature-list li .cx-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.2);
  color: var(--cx-accent);
  font-weight: bold;
  flex-shrink: 0;
}

/* ==========================================================================
   TRUST BADGES / USP STRIP
   ========================================================================== */
.cx-usp-section {
  padding: 50px 0;
  background: var(--cx-white);
  border-top: 1px solid var(--cx-border);
  border-bottom: 1px solid var(--cx-border);
}

.cx-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cx-usp-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cx-usp-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--cx-primary-light);
  color: var(--cx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cx-usp-text h4 {
  font-size: 1rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cx-black);
  margin-bottom: 2px;
}

.cx-usp-text p {
  font-size: 0.85rem;
  color: var(--cx-gray-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cx-footer {
  background: var(--cx-black);
  color: var(--cx-white);
  padding: 80px 0 30px;
  border-top: 1px solid var(--cx-slate);
}

.cx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.cx-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cx-white);
  margin-bottom: 24px;
}

.cx-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cx-footer-col ul a {
  color: var(--cx-gray-dim);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.cx-footer-col ul a:hover {
  color: var(--cx-primary);
}

.cx-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cx-newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cx-slate);
  background: var(--cx-dark);
  color: var(--cx-white);
  font-size: 0.9rem;
  outline: none;
}

.cx-newsletter-form input:focus {
  border-color: var(--cx-primary);
}

.cx-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--cx-slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--cx-gray-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .cx-nav {
    display: none;
  }
  .cx-mobile-toggle {
    display: block;
  }
  .cx-split-grid {
    grid-template-columns: 1fr;
  }
  .cx-grid-quarters {
    grid-template-columns: repeat(2, 1fr);
  }
  .cx-feature-grid {
    grid-template-columns: 1fr;
  }
  .cx-usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cx-grid-quarters {
    grid-template-columns: 1fr;
  }
  .cx-usp-grid {
    grid-template-columns: 1fr;
  }
  .cx-footer-grid {
    grid-template-columns: 1fr;
  }
  .cx-hero-content {
    padding: 40px 24px;
  }
  .cx-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
