:root {
  --rouge: #27a3c2;
  --rouge-dark: #216e92;
  --rouge-light: #b1e5f5;
  --cream: #f1f8fa;
  --cream-dark: #dceaf0;
  --ink: #1A1008;
  --ink-light: #2e284a;
  --muted: #7a7f9e;
  --white: #ffffff;
  --gold: #C8A95A;
  --shadow: rgba(26, 16, 8, 0.12);

  --font-display: 'Datatype', monospace;
  --font-body: 'Datatype', monospace;

  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-thread {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.logo-thread::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 28px;
  height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
  display: none;
}

.nav {
  display: flex;
  gap: 0;
  margin-left: 2rem;
  flex: 1;
}

.nav a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav a:hover {
  background: var(--cream-dark);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-light);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.btn-icon:hover {
  background: var(--cream-dark);
  color: var(--ink);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.c1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.c2 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  bottom: 50px;
  right: 300px;
  animation-delay: -3s;
}
.c3 {
  width: 200px;
  height: 200px;
  background: var(--rouge-dark);
  top: 200px;
  right: 500px;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  max-width: 580px;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--rouge);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
  max-width: 460px;
  font-weight: 300;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: var(--rouge);
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}
.btn-primary:hover {
  background: var(--rouge-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-ghost:hover {
  background: var(--cream-dark);
}

/* Dice visual */
.hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: fadeUp 0.8s 0.2s ease both;
}

.dice-stack {
  position: relative;
  width: 180px;
  height: 220px;
}

.dice {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px var(--shadow);
  animation: diceFloat linear infinite;
}

.d6 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--rouge), var(--rouge-dark));
  font-size: 2rem;
  top: 60px;
  left: 20px;
  animation-duration: 6s;
}

.d20 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ink), var(--ink-light));
  font-size: 1.4rem;
  top: 0;
  right: 0;
  border-radius: 50%;
  animation-duration: 8s;
  animation-delay: -2s;
}

.d4 {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--gold), #a07830);
  font-size: 1rem;
  bottom: 0;
  right: 20px;
  border-radius: 50% 50% 0 50%;
  transform: rotate(15deg);
  animation-duration: 7s;
  animation-delay: -4s;
}

@keyframes diceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.d4 {
  animation-name: diceFloat4;
}
@keyframes diceFloat4 {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-10px); }
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.link-more {
  color: var(--rouge);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.link-more:hover { color: var(--rouge-dark); }

/* ---- CATEGORIES ---- */
.categories {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream-dark);
  background: var(--cream);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.cat-board::before { background: var(--rouge); }
.cat-rpg::before { background: #5C2D91; }
.cat-card-games::before { background: #1A6B4A; }
.cat-puzzle::before { background: var(--gold); }

.cat-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 12px 40px var(--shadow);
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.cat-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.cat-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- PRODUCTS ---- */
.products {
  padding: 6rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--cream-dark);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow);
}

.product-card.featured {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200, 169, 90, 0.2);
}

.product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform var(--transition);
}
.product-card:hover .product-placeholder {
  transform: scale(1.05);
}

.bg-crimson { background: linear-gradient(135deg, #C0392B, #922B21); }
.bg-gold { background: linear-gradient(135deg, #C8A95A, #8B6914); }
.bg-teal { background: linear-gradient(135deg, #1A6B4A, #0D4D35); }
.bg-purple { background: linear-gradient(135deg, #5C2D91, #3A1D5E); }
.bg-navy { background: linear-gradient(135deg, #1B2A4A, #0D1A30); }
.bg-rust { background: linear-gradient(135deg, #D4622A, #9E3D14); }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(250, 246, 241, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
  color: var(--muted);
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn:hover { color: var(--rouge); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.badge-hot { background: var(--rouge); }
.badge-promo { background: #1A6B4A; }

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rouge);
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}

.product-price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

.btn-add {
  padding: 0.55rem 1.2rem;
  background: var(--rouge);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-add:hover {
  background: var(--rouge-dark);
  transform: scale(1.04);
}

/* ---- BANNER ---- */
.banner {
  background: var(--ink);
  color: white;
  padding: 4rem 2rem;
}

.banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.banner-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.banner-text h2 em {
  color: var(--rouge-light);
  font-style: italic;
}

.banner-text p {
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.banner-features {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.feat-icon {
  font-size: 1.6rem;
}

.feat span:last-child {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

/* ---- FOOTER ---- */
.footer {
  background: #120C06;
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-address {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.4) !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-visual { display: none; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .banner-inner { flex-direction: column; text-align: center; }
  .banner-features { justify-content: center; }
}
