/* ==========================================================================
   CocoStore Main Stylesheet
   Premium dark-themed e-commerce
   Font: Inter (Google Fonts)
   All colors via CSS custom properties
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties - Dark Theme (default)
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --ccs-bg: #0a0a0a;
  --ccs-surface: #141414;
  --ccs-surface-hover: #1e1e1e;
  --ccs-surface-raised: #1f1f1f;

  /* Text */
  --ccs-text: #f5f5f5;
  --ccs-text-secondary: #b0b0b0;
  --ccs-text-muted: #6b6b6b;
  --ccs-text-heading: #ffffff;

  /* Borders */
  --ccs-border: #2a2a2a;
  --ccs-border-hover: #3d3d3d;

  /* Accent */
  --ccs-accent: #e63946;
  --ccs-accent-hover: #d62839;
  --ccs-gold: #f4a261;
  --ccs-success: #2ec76e;

  /* Overlay & Shadow */
  --ccs-overlay: rgba(0, 0, 0, 0.6);
  --ccs-shadow: rgba(0, 0, 0, 0.4);
  --ccs-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);

  /* Header & Footer */
  --ccs-header-bg: rgba(10, 10, 10, 0.95);
  --ccs-footer-bg: #0e0e0e;

  /* Inputs */
  --ccs-input-bg: #1a1a1a;
  --ccs-input-border: #2a2a2a;

  /* Links */
  --ccs-link: #e63946;
  --ccs-link-hover: #f4a261;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border radii */
  --radius-badge: 4px;
  --radius-input: 6px;
  --radius-btn: 8px;
  --radius-card: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   Light Theme
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --ccs-bg: #f5f5f5;
  --ccs-surface: #ffffff;
  --ccs-surface-hover: #ebebeb;
  --ccs-surface-raised: #ffffff;

  --ccs-text: #1a1a1a;
  --ccs-text-secondary: #4a4a4a;
  --ccs-text-muted: #8a8a8a;
  --ccs-text-heading: #0a0a0a;

  --ccs-border: #e0e0e0;
  --ccs-border-hover: #c0c0c0;

  --ccs-accent: #e63946;
  --ccs-accent-hover: #d62839;
  --ccs-gold: #e08a3a;
  --ccs-success: #27a85c;

  --ccs-overlay: rgba(0, 0, 0, 0.35);
  --ccs-shadow: rgba(0, 0, 0, 0.1);
  --ccs-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  --ccs-header-bg: rgba(255, 255, 255, 0.95);
  --ccs-footer-bg: #1a1a1a;

  --ccs-input-bg: #ffffff;
  --ccs-input-border: #d0d0d0;

  --ccs-link: #d62839;
  --ccs-link-hover: #e08a3a;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ccs-text);
  background-color: var(--ccs-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ccs-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ccs-link-hover);
}

ul,
ol {
  list-style: none;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.container-narrow {
  max-width: 800px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ccs-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ccs-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__nav a {
  color: var(--ccs-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.site-header__nav a:hover {
  color: var(--ccs-accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-main {
  min-height: calc(100vh - var(--header-height));
}

.content-area {
  padding: var(--space-2xl) 0;
  min-height: 50vh;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-btn);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
}

.btn-primary,
.btn--primary {
  background-color: var(--ccs-accent);
  color: #ffffff;
  border-color: var(--ccs-accent);
}

.btn-primary:hover,
.btn--primary:hover {
  background-color: var(--ccs-accent-hover);
  border-color: var(--ccs-accent-hover);
  color: #ffffff;
}

.btn-outline,
.btn--outline {
  background-color: transparent;
  color: var(--ccs-accent);
  border-color: var(--ccs-accent);
}

.btn-outline:hover,
.btn--outline:hover {
  background-color: var(--ccs-accent);
  color: #ffffff;
}

.btn-ghost,
.btn--ghost {
  background-color: transparent;
  color: var(--ccs-text);
  border-color: transparent;
}

.btn-ghost:hover,
.btn--ghost:hover {
  background-color: var(--ccs-surface-hover);
  color: var(--ccs-text-heading);
}

.btn-sm,
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg,
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full,
.btn--full {
  display: flex;
  width: 100%;
}

.btn + .btn {
  margin-top: 0.625rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-2xl) var(--space-sm);
  text-align: center;
  overflow: hidden;
  background-color: var(--ccs-surface);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-2xl) var(--space-sm);
}

.hero-heading {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, var(--ccs-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheading {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-lg);
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.home-section {
  padding: var(--space-2xl) 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ccs-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--ccs-accent);
  border-radius: 2px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ccs-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.section-link:hover {
  color: var(--ccs-accent);
}

.section-header--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header--centered .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header__subtitle {
  color: var(--ccs-text-secondary);
  font-size: 1rem;
  margin-top: var(--space-xs);
}

.section--alt {
  background-color: var(--ccs-surface);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-card {
  background: var(--ccs-surface);
  border: 1px solid var(--ccs-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ccs-card-shadow);
  border-color: var(--ccs-border-hover);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ccs-surface-hover);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-badge);
  background: var(--ccs-accent);
  color: #ffffff;
}

.product-card__badge--sale {
  background: var(--ccs-gold);
  color: #0a0a0a;
}

.product-card__body {
  padding: var(--space-sm);
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ccs-text-muted);
  margin-bottom: 0.25rem;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ccs-text-heading);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--ccs-accent);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.product-card__price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ccs-text-heading);
}

.product-card__price-original {
  font-size: 0.85rem;
  color: var(--ccs-text-muted);
  text-decoration: line-through;
}

.product-card__actions {
  margin-top: var(--space-xs);
}

/* ==========================================================================
   Product Scroll Row (Horizontal Scrollable)
   ========================================================================== */
.product-scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--ccs-border) transparent;
}

.product-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.product-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.product-scroll-row::-webkit-scrollbar-thumb {
  background: var(--ccs-border);
  border-radius: 3px;
}

.product-scroll-row .product-card {
  flex: 0 0 72%;
  scroll-snap-align: start;
  min-width: 0;
}

/* ==========================================================================
   Category Grid
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.category-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.category-card-placeholder {
  background: linear-gradient(135deg, var(--ccs-surface), var(--ccs-surface-hover));
}

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

.category-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  z-index: 1;
  width: 100%;
}

.category-card-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.category-card-info span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Full Catalog CTA
   ========================================================================== */
.ccs-catalog-cta-section {
  padding: var(--space-xl) 0;
}

.ccs-catalog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, var(--ccs-surface) 0%, var(--ccs-surface-raised) 50%, var(--ccs-surface) 100%);
  border: 1px solid var(--ccs-border);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.ccs-catalog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ccs-accent), var(--ccs-gold), var(--ccs-accent));
}

.ccs-catalog-text {
  text-align: center;
}

.ccs-catalog-heading {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ccs-text-heading);
  margin-bottom: var(--space-xs);
}

.ccs-catalog-text p {
  color: var(--ccs-text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-inline: auto;
}

.ccs-catalog-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
}

.ccs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.ccs-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ccs-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ccs-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ccs-text-muted);
}

@media (min-width: 768px) {
  .ccs-catalog-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xl) var(--space-2xl);
  }

  .ccs-catalog-text {
    text-align: left;
    flex: 1;
  }

  .ccs-catalog-text p {
    margin-inline: 0;
  }

  .ccs-catalog-stats {
    gap: var(--space-xl);
    flex-shrink: 0;
  }

  .ccs-catalog-heading {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .ccs-catalog-card {
    padding: var(--space-lg) var(--space-md);
  }

  .ccs-catalog-heading {
    font-size: 1.5rem;
  }

  .ccs-catalog-stats {
    gap: var(--space-lg);
  }

  .ccs-stat-number {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Email Signup Section
   -------------------------------------------------------------------------- */
.ccs-email-section {
  padding: var(--space-xl) 0;
}

.ccs-email-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  background: var(--ccs-surface);
  border: 1px solid var(--ccs-border);
  border-radius: var(--radius-card);
  text-align: center;
}

.ccs-email-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ccs-text-heading);
  margin-bottom: var(--space-xs);
}

.ccs-email-text p {
  color: var(--ccs-text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.ccs-email-form {
  width: 100%;
  max-width: 500px;
}

.ccs-email-input-wrap {
  display: flex;
  gap: var(--space-sm);
}

.ccs-email-input-wrap input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  background: var(--ccs-input-bg);
  border: 1px solid var(--ccs-border);
  border-radius: var(--radius-sm);
  color: var(--ccs-text);
  font-size: 0.95rem;
}

.ccs-email-input-wrap input[type="email"]:focus {
  outline: none;
  border-color: var(--ccs-accent);
}

.ccs-email-status {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.ccs-email-status.success {
  color: var(--ccs-success);
}

.ccs-email-status.error {
  color: var(--ccs-danger);
}

@media (max-width: 480px) {
  .ccs-email-input-wrap {
    flex-direction: column;
  }

  .ccs-email-card {
    padding: var(--space-lg) var(--space-md);
  }

  .ccs-email-text h2 {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ccs-text-heading);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--ccs-accent);
}

.entry-content {
  color: var(--ccs-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.entry-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.entry-content p {
  margin-bottom: var(--space-sm);
}

.entry-content ul,
.entry-content ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--space-xs);
}

.entry-content a {
  color: var(--ccs-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--ccs-link-hover);
}

.entry-content blockquote {
  border-left: 3px solid var(--ccs-accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--ccs-surface);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  font-style: italic;
  color: var(--ccs-text-muted);
}

.entry-content img {
  border-radius: var(--radius-card);
  margin: var(--space-md) 0;
}

/* Legal page */
.legal-page .page-title {
  text-align: center;
}

.legal-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ccs-text-secondary);
}

/* ==========================================================================
   Legal Footer
   ========================================================================== */
.legal-footer {
  background: var(--ccs-surface);
  border-top: 1px solid var(--ccs-border);
  padding: var(--space-sm) 0;
  text-align: center;
}

.legal-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.legal-brand {
  font-size: 0.85rem;
  color: var(--ccs-text-secondary);
  margin-bottom: 0.375rem;
}

.legal-text {
  font-size: 0.8rem;
  color: var(--ccs-text-muted);
  margin: 0;
}

.legal-text a {
  color: var(--ccs-text-secondary);
  transition: color var(--transition-fast);
}

.legal-text a:hover {
  color: var(--ccs-accent);
}

.legal-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}

.legal-footer__links a {
  font-size: 0.85rem;
  color: var(--ccs-text-muted);
  transition: color var(--transition-fast);
}

.legal-footer__links a:hover {
  color: var(--ccs-text);
}

/* ==========================================================================
   Footer (4-Column)
   ========================================================================== */
.site-footer {
  background: var(--ccs-footer-bg);
  border-top: 1px solid var(--ccs-border);
}

.footer-main {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.footer-tagline {
  color: var(--ccs-text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  color: var(--ccs-gold);
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: var(--space-xs);
}

.footer-menu a {
  color: var(--ccs-text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--ccs-text);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ccs-surface);
  color: var(--ccs-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
  background: var(--ccs-accent);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--ccs-border);
  padding: var(--space-md) 0;
}

.footer-bottom .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--ccs-text-muted);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--ccs-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--ccs-accent);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-2xl) var(--space-sm);
}

.error-title {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ccs-accent);
  letter-spacing: -0.04em;
}

.error-message {
  font-size: 1.1rem;
  color: var(--ccs-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.error-404-page .btn {
  margin: 0 var(--space-xs);
}

/* ==========================================================================
   Search Form
   ========================================================================== */
.search-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--ccs-input-bg);
  border: 1px solid var(--ccs-input-border);
  border-right: none;
  border-radius: var(--radius-input) 0 0 var(--radius-input);
  color: var(--ccs-text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.search-field::placeholder {
  color: var(--ccs-text-muted);
}

.search-field:focus {
  border-color: var(--ccs-accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--ccs-accent);
  color: #ffffff;
  border: 1px solid var(--ccs-accent);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast);
}

.search-submit:hover {
  background: var(--ccs-accent-hover);
}

/* ==========================================================================
   Post Cards (Blog)
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.post-card {
  background: var(--ccs-surface);
  border: 1px solid var(--ccs-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ccs-card-shadow);
  border-color: var(--ccs-border-hover);
}

.post-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ccs-surface-hover);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-content {
  padding: var(--space-sm);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--ccs-text-muted);
  margin-bottom: var(--space-xs);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ccs-text-heading);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.post-card-title a {
  color: inherit;
}

.post-card-title a:hover {
  color: var(--ccs-accent);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--ccs-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post .post-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ccs-text-heading);
  margin-bottom: 0.75rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--ccs-text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.post-featured-image {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-tags {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--ccs-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.post-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ccs-text-secondary);
  background: var(--ccs-surface);
  border: 1px solid var(--ccs-border);
  border-radius: var(--radius-badge);
  transition: all var(--transition-fast);
}

.post-tag:hover {
  color: var(--ccs-accent);
  border-color: var(--ccs-accent);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xl) 0;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-xs);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid var(--ccs-border);
  color: var(--ccs-text);
  background: var(--ccs-surface);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--ccs-surface-hover);
  border-color: var(--ccs-border-hover);
  color: var(--ccs-text-heading);
}

.nav-links .current {
  background: var(--ccs-accent);
  border-color: var(--ccs-accent);
  color: #ffffff;
  font-weight: 700;
}

.nav-links .dots {
  border-color: transparent;
  background: transparent;
  color: var(--ccs-text-muted);
  cursor: default;
}

/* ==========================================================================
   Focus Visible States
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--ccs-accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ccs-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   Forms (General)
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ccs-text);
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--ccs-input-bg);
  border: 1px solid var(--ccs-input-border);
  border-radius: var(--radius-input);
  color: var(--ccs-text);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--ccs-accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-control::placeholder {
  color: var(--ccs-text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-accent    { color: var(--ccs-accent); }
.text-gold      { color: var(--ccs-gold); }
.text-muted     { color: var(--ccs-text-muted); }
.text-secondary { color: var(--ccs-text-secondary); }

.mt-0  { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0  { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .hero-heading {
    font-size: 3.5rem;
  }

  .hero-subheading {
    font-size: 1.25rem;
  }

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

  .product-scroll-row .product-card {
    flex: 0 0 45%;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

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

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

  .footer-bottom .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .error-title {
    font-size: 10rem;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-lg);
  }

  h1 { font-size: 3.5rem; }

  .hero-section {
    min-height: 80vh;
  }

  .hero-heading {
    font-size: 4rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-scroll-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .product-scroll-row .product-card {
    flex: none;
  }

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

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

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
  }

  .single-post .post-title {
    font-size: 2.75rem;
  }
}

/* Small mobile: 480px max */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-section {
    min-height: 50vh;
  }

  .hero-heading {
    font-size: 2rem;
  }

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

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

  .hero-actions .btn {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

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

  .product-scroll-row .product-card {
    flex: 0 0 85%;
  }

  .search-form {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .search-field {
    border-right: 1px solid var(--ccs-input-border);
    border-radius: var(--radius-input);
  }

  .search-submit {
    border-radius: var(--radius-input);
    justify-content: center;
  }

  .site-header__nav {
    display: none;
  }

  .error-title {
    font-size: 5rem;
  }

  .single-post .post-title {
    font-size: 1.75rem;
  }

  .nav-links a,
  .nav-links span {
    min-width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .content-area {
    padding: var(--space-lg) 0;
  }

  .home-section {
    padding: var(--space-lg) 0;
  }
}
