/*
Theme Name: Vibrotactile Shop
Theme URI: https://vibrotactile.shop
Author: Vibrotactile
Description: WordPress theme for vibrotactile.shop — Super Patch Wearable Neurotech. Dark neurotech aesthetic with WooCommerce support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: vibrotactile
Tags: e-commerce, dark, woocommerce, neurotech
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-bg:           #070d0c;
  --color-bg-card:      #0f1a18;
  --color-bg-footer:    #060b0a;
  --color-border:       #1a2e2a;
  --color-teal:         #2dd4bf;
  --color-teal-dark:    #0d9488;
  --color-teal-glow:    rgba(45, 212, 191, 0.15);
  --color-white:        #ffffff;
  --color-gray:         #94a3b8;
  --color-gray-light:   #cbd5e1;
  --color-badge-bg:     rgba(45, 212, 191, 0.12);
  --font-sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:          0.375rem;
  --radius-md:          0.75rem;
  --radius-lg:          1rem;
  --radius-xl:          1.5rem;
  --shadow-card:        0 4px 32px rgba(0,0,0,0.5);
  --shadow-btn:         0 0 20px rgba(45, 212, 191, 0.35);
  --max-width:          1280px;
  --transition:         0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   Container
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--color-gray); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-teal-dark);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-teal);
  box-shadow: var(--shadow-btn);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.btn-teal-outline {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}
.btn-teal-outline:hover {
  background: var(--color-teal);
  color: #000;
}

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 13, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}
.site-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--color-teal-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-white);
}
.site-logo .logo-text { color: var(--color-white); }
.site-logo .logo-text span { color: var(--color-teal); }

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.primary-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-light);
  transition: all var(--transition);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-actions a,
.header-actions button {
  color: var(--color-gray-light);
  background: transparent;
  border: none;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color var(--transition);
  font-size: 0.85rem;
  gap: 0.3rem;
}
.header-actions a:hover,
.header-actions button:hover { color: var(--color-teal); }

.header-actions .lang-selector {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cart-count {
  background: var(--color-teal);
  color: #000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-white);
  padding: 0.4rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,13,12,0.3) 0%,
    rgba(7,13,12,0.1) 40%,
    rgba(7,13,12,0.6) 80%,
    rgba(7,13,12,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-badge-bg);
  border: 1px solid rgba(45,212,191,0.3);
  color: var(--color-teal);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--color-teal); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Section: Best Sellers
   ============================================================ */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.product-card__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #111 0%, #1a2928 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 3rem;
}

.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.product-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

.product-card__add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-teal-dark);
  color: var(--color-white);
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.product-card__add:hover {
  background: var(--color-teal);
  box-shadow: var(--shadow-btn);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   Section: Features (Benefits)
   ============================================================ */
.features-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13, 148, 136, 0.05) 50%, transparent 100%);
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  background: var(--color-badge-bg);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-teal);
  font-size: 1.4rem;
}

.feature-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.feature-item__desc {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: var(--color-bg-footer);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--color-gray);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-teal); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray);
}

/* ============================================================
   WooCommerce — Shop Archive
   ============================================================ */
.woocommerce-page {
  padding-top: 60px;
}

.shop-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.shop-header h1 { margin-bottom: 0.5rem; }
.shop-header p { font-size: 1rem; }

.wc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 5rem;
}

/* ============================================================
   WooCommerce — Single Product
   ============================================================ */
.single-product-page {
  padding: 5rem 0;
}

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.single-product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.single-product-image img { width: 100%; height: auto; }

.single-product-info .product-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.single-product-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.single-product-info .product-desc {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.single-product-info .product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 2rem;
}

.single-product-info .add-to-cart-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  justify-content: center;
}

.product-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-gray);
}
.product-feature svg { color: var(--color-teal); flex-shrink: 0; }

/* ============================================================
   Generic Page / Content
   ============================================================ */
.page-content {
  padding: 7rem 0 5rem;
  max-width: 820px;
  margin: 0 auto;
}
.page-content h1 { margin-bottom: 1.5rem; }
.page-content h2 { margin: 2.5rem 0 1rem; font-size: 1.75rem; }
.page-content h3 { margin: 2rem 0 0.75rem; }
.page-content p { margin-bottom: 1.25rem; }
.page-content a { color: var(--color-teal); }
.page-content a:hover { text-decoration: underline; }

/* ============================================================
   404 Page
   ============================================================ */
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.not-found-page h1 { font-size: 8rem; color: var(--color-teal); opacity: 0.3; line-height: 1; }
.not-found-page h2 { margin-bottom: 1rem; }
.not-found-page p { margin-bottom: 2rem; }

/* ============================================================
   Utility
   ============================================================ */
.text-teal { color: var(--color-teal); }
.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; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .single-product-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    z-index: 99;
  }
  .primary-nav.is-open a { font-size: 1.25rem; padding: 0.75rem 1rem; }
  .menu-toggle { display: flex; }

  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .features-section { padding: 4rem 0; }
}
