/* ═══════════════════════════════════════════════════════════
   UARE3 Design System
   Unique Attributes Represent Everything
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --gold: #D4A853;
  --gold-light: #E8C878;
  --gold-dark: #B8902F;
  --dark: #0A0A0A;
  --dark-surface: #141414;
  --dark-card: #1A1A1A;
  --dark-card-hover: #222222;
  --cream: #F5F0E8;
  --cream-muted: #C4B99A;
  --white: #FAFAFA;
  --red: #E85D5D;
  --green: #5DD68A;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(212, 168, 83, 0.2);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ─── Typography ────────────────────────────────────────── */
.heading-xl {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.heading-lg {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
}

.heading-md {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--white);
  line-height: 1.3;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--cream-muted); }
.text-white { color: var(--white); }

.label {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream-muted);
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-count:empty,
.nav-cart-count[data-count="0"] { display: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-transform: uppercase;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-card);
  color: var(--cream);
  border: 1px solid var(--border);
}

.btn-dark:hover {
  background: var(--dark-card-hover);
  border-color: var(--border-gold);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page {
  padding-top: 80px;
  min-height: 100vh;
}

.page-header {
  padding: 4rem 0 3rem;
}

.page-header .label { margin-bottom: 1rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--dark-surface); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}

/* ─── Product Cards ─────────────────────────────────────── */
.product-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: inherit;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category-specific visual treatments */
.product-card-image[data-category="tshirts"] {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.product-card-image[data-category="hoodies"] {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a2e 100%);
}

.product-card-image[data-category="journals"] {
  background: linear-gradient(135deg, #1a1a1a 0%, #2e1a1a 50%, #3d2b1b 100%);
}

.product-card-image[data-category="mugs"] {
  background: linear-gradient(135deg, #1a2e1a 0%, #1a1a1a 50%, #2e2a1a 100%);
}

.product-card-image .product-visual {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(212, 168, 83, 0.15);
  letter-spacing: 0.1em;
  user-select: none;
}

.product-card-image .product-icon-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: rgba(212, 168, 83, 0.3);
}

.product-card-image .featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-card-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
}

/* ─── Category Cards ────────────────────────────────────── */
.category-card {
  padding: 2.5rem 2rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: inherit;
}

.category-card-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.category-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.category-card-meta {
  font-size: 0.85rem;
  color: var(--cream-muted);
}

/* ─── Product Detail ────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}

.product-detail-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-detail-image .product-visual {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 5rem;
  color: rgba(212, 168, 83, 0.12);
  letter-spacing: 0.1em;
}

.product-detail-info { display: flex; flex-direction: column; gap: 1.5rem; }

.product-detail-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
}

.product-detail-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cream-muted);
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-meta-tag {
  padding: 0.5rem 1rem;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--cream-muted);
}

/* Size selector */
.size-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.size-btn:hover { border-color: var(--cream-muted); }
.size-btn.active {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
}

/* Quantity */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-surface);
  border: none;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
}

.qty-btn:hover { background: var(--dark-card-hover); }

.qty-value {
  width: 48px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background: var(--dark-card);
}

/* ─── Cart Page ─────────────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
}

@media (max-width: 600px) {
  .cart-item { flex-direction: column; align-items: flex-start; }
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-image .product-visual {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: rgba(212, 168, 83, 0.15);
}

.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.cart-item-meta { font-size: 0.85rem; color: var(--cream-muted); }

.cart-item-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--cream-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--red); }

.cart-summary {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--cream-muted);
}

.cart-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.cart-summary-row.total .cart-summary-value { color: var(--gold); }

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

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* ─── Category Filter ───────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--cream-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover {
  border-color: var(--cream-muted);
  color: var(--cream);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--cream-muted);
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 1.1rem;
  color: var(--cream-muted);
  margin-bottom: 1.5rem;
}

/* ─── Toast / Notifications ─────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  color: var(--cream);
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon { color: var(--gold); font-size: 1.2rem; }

/* ─── Success Page ──────────────────────────────────────── */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--gold); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--cream-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: rgba(196, 185, 154, 0.4);
}

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 3rem auto;
}

/* ─── Loading ───────────────────────────────────────────── */
.loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cream-muted);
  padding: 1rem 0;
}

.breadcrumb a { color: var(--cream-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.3; }

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.fade-in-up:nth-child(8) { animation-delay: 0.4s; }
.fade-in-up:nth-child(9) { animation-delay: 0.45s; }
.fade-in-up:nth-child(10) { animation-delay: 0.5s; }
.fade-in-up:nth-child(11) { animation-delay: 0.55s; }
.fade-in-up:nth-child(12) { animation-delay: 0.6s; }
