/* Talos LLC — Dark Lilac Theme */
:root {
  --bg-primary: #1a1525;
  --bg-secondary: #231e32;
  --bg-card: #2d2640;
  --bg-card-hover: #362f4d;
  --accent: #9b7fd4;
  --accent-light: #c4a8e8;
  --accent-dark: #7a5fb8;
  --text-primary: #f0ebf8;
  --text-secondary: #b8adc9;
  --text-muted: #8a7fa0;
  --border: #3d3555;
  --success: #6dd4a0;
  --error: #e87b7b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo img { width: 36px; height: 36px; object-fit: contain; }
.logo:hover { color: var(--accent-light); }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.cart-link {
  position: relative;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.cart-link:hover { color: var(--accent-light); }

.cart-count {
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-count.visible { display: flex; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-secondary); padding: 0.5rem 0; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 20px rgba(155, 127, 212, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--accent);
}
.btn-outline:hover { background: rgba(155, 127, 212, 0.12); color: var(--accent-light); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.add-to-cart-btn.added { background: var(--success); border-color: var(--success); }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 21, 37, 0.92) 0%, rgba(45, 38, 64, 0.75) 50%, rgba(122, 95, 184, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections */
section { padding: 4rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.category-card-link { display: block; color: inherit; }
.category-card-image { height: 160px; overflow: hidden; }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.category-card:hover .category-card-image img { transform: scale(1.05); }

.category-card-body { padding: 1.25rem; }
.category-card-body h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.category-card-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.category-card-body .shop-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover { border-color: var(--accent-dark); box-shadow: var(--shadow); }

.product-card-link { color: inherit; flex: 1; }
.product-card-image {
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.product-card-body { padding: 1.25rem; }
.product-category { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.product-name { font-size: 1rem; margin: 0.375rem 0; color: var(--text-primary); }
.product-price { font-size: 1.125rem; font-weight: 700; color: var(--accent-light); }

.product-card .add-to-cart-btn { margin: 0 1.25rem 1.25rem; }

/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(122, 95, 184, 0.3) 100%);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.promo-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-banner h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.promo-banner p { color: var(--text-secondary); max-width: 480px; }

/* Trust Badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: rgba(155, 127, 212, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.trust-item h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.trust-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Page Header */
.page-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.page-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-secondary); }

/* Shop Filters */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* Product Detail */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-image {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
.product-detail-price { font-size: 1.75rem; font-weight: 700; color: var(--accent-light); margin-bottom: 1.25rem; }
.product-detail-desc { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }

.product-detail-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 44px;
  cursor: pointer;
  font-size: 1.125rem;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--bg-card-hover); }

#product-qty {
  width: 50px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font);
  font-size: 1rem;
  -moz-appearance: textfield;
}
#product-qty::-webkit-outer-spin-button,
#product-qty::-webkit-inner-spin-button { -webkit-appearance: none; }

.back-link { font-size: 0.9rem; color: var(--text-muted); }
.back-link:hover { color: var(--accent-light); }

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.cart-item-info h3 a { color: var(--text-primary); }
.cart-item-info h3 a:hover { color: var(--accent-light); }
.cart-item-price { color: var(--text-muted); font-size: 0.875rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-item-qty .qty-btn { width: 32px; height: 32px; font-size: 1rem; }

.cart-item-total { font-weight: 700; color: var(--accent-light); min-width: 70px; text-align: right; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--error); }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.cart-summary h3 { margin-bottom: 1.25rem; font-size: 1.125rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}
.summary-row.discount { color: var(--success); }
.summary-row.total {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.promo-hint { font-size: 0.8rem; color: var(--accent); margin-bottom: 0.75rem; }
.summary-divider { border-top: 1px solid var(--border); margin: 1rem 0; }

.cart-summary .btn { margin-top: 0.75rem; }

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

.checkout-form-section { margin-bottom: 2rem; }
.checkout-form-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.925rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.checkout-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.checkout-summary-box h3 { margin-bottom: 1.25rem; }

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
  gap: 1rem;
}

.checkout-error {
  display: none;
  background: rgba(232, 123, 123, 0.12);
  border: 1px solid var(--error);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}
.checkout-error.visible { display: block; }
.checkout-error h2 { color: var(--error); margin-bottom: 0.75rem; }
.checkout-error p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Forms (contact, track, account) */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--success); margin-bottom: 0.5rem; }

.form-error {
  display: none;
  background: rgba(232, 123, 123, 0.12);
  border: 1px solid var(--error);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--error);
}
.form-error.visible { display: block; }

/* Account */
.account-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.account-tab {
  flex: 1;
  padding: 0.875rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.account-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

.account-panel { display: none; }
.account-panel.active { display: block; }

.account-message {
  display: none;
  background: rgba(109, 212, 160, 0.12);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--success);
  font-size: 0.9rem;
}
.account-message.visible { display: block; }

.account-message.error {
  background: rgba(232, 123, 123, 0.12);
  border-color: var(--error);
  color: var(--error);
}

/* About / Content pages */
.content-section { max-width: 760px; margin: 0 auto; }
.content-section h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--accent-light); }
.content-section p { color: var(--text-secondary); margin-bottom: 1rem; }
.content-section ul { color: var(--text-secondary); margin: 0 0 1rem 1.5rem; }
.content-section li { margin-bottom: 0.5rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.info-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state h2 { margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 3.5rem 0 1.5rem;
}

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

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-light); }

.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.newsletter-form input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form button {
  padding: 0.625rem 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); }

main { flex: 1; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .product-detail-grid,
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }

  .cart-summary,
  .checkout-summary-box { position: static; }

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

  .cart-item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item-qty { grid-column: 2; }
  .cart-item-total { grid-column: 2; text-align: left; }
  .cart-item-remove { position: absolute; right: 1rem; top: 1rem; }
  .cart-item { position: relative; }
}

@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .promo-banner { padding: 2rem; flex-direction: column; text-align: center; }

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

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