/* ============================================
   Components — Cards, Buttons, Badges, Forms
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px; /* 48px touch target */
}

.btn-primary {
  background: var(--accent-gold);
  color: #0a0a0f;
}
.btn-primary:hover {
  background: var(--accent-gold-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: #0a0a0f;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* --- Product Card (CRO: image+price+rating+CTA) --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

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

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

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

.product-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: var(--space-xs);
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
}

.product-card__stars {
  color: var(--accent-gold);
}

.product-card__rating-count {
  color: var(--text-muted);
}

.product-card__price-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.product-card__original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__cta {
  width: 100%;
  padding: 0.6rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  min-height: 44px;
}

.product-card__cta:hover {
  background: var(--accent-gold);
  color: #0a0a0f;
  border-color: var(--accent-gold);
}

/* --- Category Card --- */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

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

.category-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.9), transparent);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.category-card__count {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.header__logo span {
  color: var(--accent-gold);
}

.header__nav {
  display: none;
  gap: var(--space-xs);
}

.header__nav a {
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

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

.header__search-btn,
.header__menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__search-btn:hover,
.header__menu-btn:hover {
  color: var(--text-primary);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu a {
  display: block;
  padding: var(--space-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu a:hover {
  background: var(--bg-tertiary);
}

/* --- Hero Section --- */
.hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

/* --- Social Proof Bar --- */
.social-proof {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.social-proof__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.social-proof__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-proof__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.social-proof__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Newsletter Section (CRO: discount +7.65%) --- */
.newsletter {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--bg-secondary);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: var(--space-xl) auto 0;
}

.newsletter__input {
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
}

.newsletter__input::placeholder {
  color: var(--text-muted);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-light);
}

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

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer__logo span { color: var(--accent-gold); }

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.footer__links a:hover {
  color: var(--accent-gold);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--accent-gold);
}

/* --- Language Selector --- */
.lang-select {
  position: relative;
  display: inline-block;
}

.lang-select__btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 36px;
}

.lang-select__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}

.lang-select__dropdown.open {
  display: block;
}

.lang-select__dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.lang-select__dropdown a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* --- Search Overlay --- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  padding: var(--space-xl);
  padding-top: 20vh;
}

.search-overlay.open {
  display: block;
}

.search-overlay__input {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.25rem;
}

.search-overlay__input:focus {
  outline: none;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb__separator {
  color: var(--text-muted);
  opacity: 0.5;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.4rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  min-height: 36px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0a0a0f;
}

/* --- Urgency Tag (CRO: +332%) --- */
.urgency-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.6rem;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Check List (product features) --- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.check-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* --- Tab Navigation --- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.tab-content {
  display: none;
  padding: var(--space-xl) 0;
}

.tab-content.active {
  display: block;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: opacity var(--transition-fast);
}

.scroll-top.visible {
  display: flex;
}

/* ============================================
   SKIP LINK — Accessibility
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--accent-gold);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
}
