/* ========================================
   GRIMVAULT — Dark Fantasy Armory Theme
   ======================================== */

:root {
  --bg-deep: #050505;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --bg-surface: #1a1a1a;

  --gold: #c9a84c;
  --gold-light: #dbb960;
  --gold-dark: #a88a3a;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-subtle: rgba(201, 168, 76, 0.08);

  --crimson: #8b2020;
  --crimson-light: #a83030;

  --text-primary: #e8e6e3;
  --text-secondary: #9a958f;
  --text-muted: #5a5550;

  --border: #222222;
  --border-light: #2a2a2a;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Crimson Pro', Georgia, serif;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

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

a:hover {
  color: var(--gold-light);
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
}

input, select, textarea {
  font-family: var(--font-body);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold) !important;
  text-decoration: none;
}

.nav-brand-icon {
  font-size: 1.3rem;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cart {
  position: relative;
  color: var(--text-secondary) !important;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.nav-cart:hover {
  color: var(--gold) !important;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 32, 32, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.2);
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}

.hero-divider-line:last-child {
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.hero-divider-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.hero-scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--gold-dark), transparent);
  margin: 0.5rem auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 0.8; height: 40px; }
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ========================================
   CATEGORY CARDS (Homepage)
   ======================================== */

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

.category-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  transition: all var(--transition);
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  transition: opacity var(--transition);
}

.category-card[data-category="armor"] .category-card-bg {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

.category-card[data-category="weapons"] .category-card-bg {
  background: linear-gradient(160deg, #1a0a0a 0%, #2d1515 40%, #3d1a1a 100%);
}

.category-card[data-category="jewelry"] .category-card-bg {
  background: linear-gradient(160deg, #1a1a0a 0%, #2d2a15 40%, #3d351a 100%);
}

.category-card:hover .category-card-bg {
  opacity: 0.8;
}

.category-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 60%, transparent 100%);
  width: 100%;
}

.category-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.category-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.category-tagline {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.category-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.category-cta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.category-cta .arrow {
  transition: transform var(--transition);
  display: inline-block;
}

.category-card:hover .category-cta .arrow {
  transform: translateX(4px);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.product-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image[data-category="armor"] .product-image-inner {
  background: linear-gradient(145deg, #0f1729 0%, #1a2540 50%, #0a1020 100%);
}

.product-image[data-category="weapons"] .product-image-inner {
  background: linear-gradient(145deg, #1a0808 0%, #2a1515 50%, #150505 100%);
}

.product-image[data-category="jewelry"] .product-image-inner {
  background: linear-gradient(145deg, #1a1808 0%, #2a2515 50%, #151005 100%);
}

.product-image-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.15);
  letter-spacing: 0.1em;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-dark);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-info {
  padding: 1.25rem;
}

.product-category-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.btn-add-cart {
  margin: 0 1.25rem 1.25rem;
  display: block;
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--gold-glow);
}

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

.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
}

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

/* ========================================
   PAGE HERO (Category Pages)
   ======================================== */

.page-hero {
  padding: 8rem 0 3rem;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero[data-category="armor"]::before {
  background: linear-gradient(180deg, #0f1729 0%, var(--bg-primary) 100%);
}

.page-hero[data-category="weapons"]::before {
  background: linear-gradient(180deg, #1a0808 0%, var(--bg-primary) 100%);
}

.page-hero[data-category="jewelry"]::before {
  background: linear-gradient(180deg, #1a1808 0%, var(--bg-primary) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  text-align: center;
  margin-top: 2rem;
}

.page-hero-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

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

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

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ========================================
   FILTERS
   ======================================== */

.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

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

/* ========================================
   PRODUCT DETAIL
   ======================================== */

.product-detail-section {
  padding-top: 7rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.product-detail-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-detail-image-inner {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image[data-category="armor"] .product-detail-image-inner {
  background: linear-gradient(145deg, #0f1729 0%, #1a2540 50%, #0a1020 100%);
}

.product-detail-image[data-category="weapons"] .product-detail-image-inner {
  background: linear-gradient(145deg, #1a0808 0%, #2a1515 50%, #150505 100%);
}

.product-detail-image[data-category="jewelry"] .product-detail-image-inner {
  background: linear-gradient(145deg, #1a1808 0%, #2a2515 50%, #151005 100%);
}

.product-detail-monogram {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.12);
  letter-spacing: 0.15em;
}

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

.stock-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.stock-badge.in-stock {
  background: rgba(45, 106, 79, 0.2);
  color: #6bba8a;
  border: 1px solid rgba(45, 106, 79, 0.3);
}

.stock-badge.out-of-stock {
  background: rgba(139, 32, 32, 0.2);
  color: #c56060;
  border: 1px solid rgba(139, 32, 32, 0.3);
}

.product-detail-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.product-detail-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.product-detail-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.product-detail-specs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.product-detail-specs h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.product-detail-specs p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

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

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

.qty-btn:hover {
  background: var(--bg-card-hover);
  color: var(--gold);
}

.quantity-selector input,
.qty-display {
  width: 50px;
  text-align: center;
  background: var(--bg-secondary);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  height: 44px;
  line-height: 44px;
}

.product-detail-promises {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promise-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.promise-mini span {
  font-size: 1rem;
}

/* ========================================
   PROMISES SECTION
   ======================================== */

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

.promise-item {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: all var(--transition);
}

.promise-item:hover {
  border-color: var(--border-light);
}

.promise-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.promise-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.promise-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding-bottom: 6rem;
}

.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ========================================
   CART PAGE
   ======================================== */

.cart-section {
  padding-top: 7rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 2rem;
}

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

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

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.2);
}

.cart-item-image[data-category="armor"] {
  background: linear-gradient(145deg, #0f1729, #1a2540);
}

.cart-item-image[data-category="weapons"] {
  background: linear-gradient(145deg, #1a0808, #2a1515);
}

.cart-item-image[data-category="jewelry"] {
  background: linear-gradient(145deg, #1a1808, #2a2515);
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--gold);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--crimson-light);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: #c56060;
}

.cart-item-total {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  min-width: 80px;
}

.cart-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.cart-summary-box h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-total-row {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.cart-summary-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

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

.cart-empty {
  padding: 4rem 0;
}

.empty-state {
  text-align: center;
  padding: 3rem;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
}

.empty-state h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 460px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.modal-summary {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.processing-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto 1rem;
}

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

#checkout-processing {
  text-align: center;
  color: var(--text-secondary);
}

/* ========================================
   SUCCESS PAGE
   ======================================== */

.success-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.success-box {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.success-box h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.success-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.order-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-row span:first-child {
  color: var(--text-secondary);
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */

.related-section {
  border-top: 1px solid var(--border);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

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

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ========================================
   TOAST
   ======================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .category-card {
    min-height: 280px;
  }

  .product-detail {
    gap: 2rem;
  }

  .cart-layout {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: 0.08em;
  }

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

  .hero-cta .btn {
    width: 240px;
  }

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

  .category-card {
    min-height: 220px;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-promises {
    flex-direction: column;
    gap: 0.75rem;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }

  .cart-item-total {
    grid-column: 1 / -1;
    text-align: left;
  }

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

  .success-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-subtitle br {
    display: none;
  }

  .page-hero-title {
    font-size: 1.8rem;
  }

  .product-detail-name {
    font-size: 1.5rem;
  }

  .modal {
    padding: 1.5rem;
  }
}
