:root {
  --tcg-color-primary: #111827;
  --tcg-color-primary-hover: #1f2937;
  --tcg-color-accent: #3b5b7a;
  --tcg-color-gold: #c8a96b;
  --tcg-color-accent-soft: #f3f0e8;
  --tcg-color-secondary: #3b5b7a;
  --tcg-color-bg: #fcfbf8;
  --tcg-color-surface: #fcfbf8;
  --tcg-color-text-primary: #111827;
  --tcg-color-text-secondary: #6b7280;
  --tcg-color-success: #10b981;
  --tcg-color-border: #d6d3d1;
  --tcg-radius-lg: 20px;
  --tcg-radius-md: 14px;
  --tcg-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

body {
  background: radial-gradient(circle at top right, rgba(200, 169, 107, 0.12), transparent 45%), var(--tcg-color-bg);
  color: var(--tcg-color-text-secondary);
  font-family: "Manrope", sans-serif;
}

a {
  color: var(--tcg-color-accent);
}

a:hover {
  color: var(--tcg-color-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--tcg-color-text-primary);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.015em;
}

[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 98px !important;
  background: #fcfbf8 !important;
  border-bottom: 1px solid var(--tcg-color-border);
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-title-container {
  display: none !important;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container img {
  width: clamp(155px, 14vw, 220px);
  max-width: 100%;
  height: auto;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-title a,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  color: var(--tcg-color-text-primary) !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current_page_item > a {
  color: var(--tcg-color-accent) !important;
}

.tcg-brand-strip {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.tcg-brand-strip__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.tcg-brand-strip__logo {
  display: inline-flex;
  align-items: center;
}

.tcg-brand-text {
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.tcg-brand-strip__logo-image {
  width: auto;
  height: 30px;
}

.tcg-brand-strip__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tcg-brand-strip__items li {
  display: inline-flex;
  align-items: center;
}

.tcg-brand-strip__items li:not(:first-child)::before {
  content: "•";
  color: var(--tcg-color-gold);
  margin-right: 0.45rem;
}

.tcg-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 2.5rem;
  border-radius: var(--tcg-radius-lg);
  background: linear-gradient(130deg, #111827 0%, #3b5b7a 100%);
  color: #ffffff;
  box-shadow: var(--tcg-shadow);
}

.tcg-hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 4rem);
  max-width: min(760px, calc(100% - 320px));
}

.tcg-hero::before {
  content: "";
  position: absolute;
  right: clamp(12px, 2.6vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  width: min(36vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px rgba(15, 23, 42, 0.34);
  z-index: 1;
  pointer-events: none;
}

.tcg-hero::after {
  content: "";
  position: absolute;
  right: clamp(28px, 4vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 265px);
  aspect-ratio: 1 / 1;
  background-image: var(--tcg-hero-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(17, 24, 39, 0.44));
  z-index: 2;
}

.tcg-hero .tcg-eyebrow {
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  opacity: 0.9;
}

.tcg-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.tcg-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.tcg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.tcg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tcg-btn:hover {
  transform: translateY(-1px);
}

.tcg-btn--primary {
  background: var(--tcg-color-primary);
  color: #ffffff;
}

.tcg-btn--primary:hover {
  background: var(--tcg-color-primary-hover);
  color: #ffffff;
}

.tcg-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tcg-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tcg-category-tile {
  min-height: 168px;
  border-radius: var(--tcg-radius-md);
  background: linear-gradient(160deg, #fcfbf8, #f3f0e8);
  border: 1px solid var(--tcg-color-border);
  text-decoration: none;
  color: var(--tcg-color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tcg-category-tile:hover {
  border-color: #c8a96b;
  transform: translateY(-2px);
}

.tcg-category-tile__logo-wrap {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcg-category-tile__logo {
  width: 100%;
  max-width: 240px;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(17, 24, 39, 0.18));
}

.tcg-category-tile__label {
  font-size: 1.02rem;
  font-weight: 700;
}

.tcg-category-tile[data-category="pokemon"] .tcg-category-tile__logo {
  max-height: 60px;
}

.tcg-category-tile[data-category="one-piece"] .tcg-category-tile__logo {
  max-height: 78px;
}

.tcg-category-tile[data-category="one-piece"] .tcg-category-tile__logo-wrap {
  background: linear-gradient(160deg, #111827, #1f2937);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
}

.tcg-category-tile[data-category="yugioh"] .tcg-category-tile__logo {
  max-height: 84px;
}

.tcg-category-tile__logo-wrap--placeholder {
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tcg-trust-bar {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tcg-trust-bar > div {
  background: #fcfbf8;
  border: 1px solid var(--tcg-color-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: center;
}

.woocommerce ul.products li.product {
  border: 1px solid var(--tcg-color-border);
  border-radius: 16px;
  padding: 0.75rem;
  background: #fcfbf8;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.woocommerce ul.products li.product .button {
  border-radius: 999px;
  background: var(--tcg-color-primary);
  color: #ffffff;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--tcg-color-accent);
  color: #ffffff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
  color: var(--tcg-color-text-primary);
}

.woocommerce ul.products li.product .price {
  color: #374151;
}

.tcg-price-on-request {
  color: #374151;
  font-weight: 800;
}

.tcg-catalog-inquiry {
  border: 1px solid var(--tcg-color-border);
  border-radius: 12px;
  background: var(--tcg-color-accent-soft);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.tcg-catalog-inquiry p {
  margin: 0 0 0.6rem;
}

.tcg-catalog-inquiry p:last-of-type {
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .tcg-catalog-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tcg-catalog-mode .ct-header [data-id="cart"],
.tcg-catalog-mode .ct-header-cart,
.tcg-catalog-mode .added_to_cart,
.tcg-catalog-mode .cart,
.tcg-catalog-mode .single_add_to_cart_button {
  display: none !important;
}

.woocommerce ul.products li.product .entry-meta,
.woocommerce ul.products li.product .entry-meta a,
.woocommerce ul.products li.product .wc-gzd-additional-info {
  color: var(--tcg-color-text-secondary);
}

.tcg-product-badges {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  pointer-events: none;
}

.tcg-badge {
  display: inline-flex;
  margin: 0.65rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.tcg-badge.is-new {
  background: #3b5b7a;
}

.tcg-badge.is-bestseller {
  background: #c8a96b;
}

.tcg-badge.is-limited {
  background: #1e293b;
}

.tcg-badge.is-sale {
  background: #dc2626;
}

.tcg-product-trust,
.tcg-product-faq {
  border: 1px solid var(--tcg-color-border);
  border-radius: 12px;
  background: #fcfbf8;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}

.tcg-legal-note {
  margin: 0.75rem 0 1.1rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--tcg-color-secondary);
  background: var(--tcg-color-accent-soft);
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tcg-product-trust p {
  margin: 0 0 0.5rem;
}

.tcg-product-trust p:last-child {
  margin-bottom: 0;
}

.tcg-product-faq h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.tcg-product-faq details {
  border-top: 1px solid var(--tcg-color-border);
  padding: 0.7rem 0;
}

.tcg-product-faq details:first-of-type {
  border-top: 0;
}

.tcg-product-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.tcg-product-faq p {
  margin: 0.5rem 0 0;
}

.tcg-legal-footer {
  border-top: 1px solid var(--tcg-color-border);
  background: #111827;
}

.tcg-footer-branding {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tcg-footer-branding__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.3rem;
  padding-bottom: 1rem;
}

.tcg-footer-branding__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tcg-footer-branding__logo-image {
  width: clamp(170px, 20vw, 260px);
  max-width: 100%;
  height: auto;
}

.tcg-footer-branding__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  text-align: center;
}

[data-footer*="type-1"] .ct-footer {
  background: #111827 !important;
  color: rgba(255, 255, 255, 0.78);
}

[data-footer*="type-1"] .ct-footer a {
  color: rgba(255, 255, 255, 0.9);
}

[data-footer*="type-1"] .ct-footer a:hover {
  color: #c8a96b;
}

[data-footer*="type-1"] .ct-footer [data-id="copyright"] {
  color: rgba(255, 255, 255, 0.78);
}

.tcg-legal-footer .ct-container {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.tcg-legal-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.tcg-legal-footer__menu a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  text-decoration: none;
}

.tcg-legal-footer__menu a:hover {
  color: #c8a96b;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .tcg-brand-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tcg-brand-strip__logo-image {
    height: 26px;
  }

  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 78px !important;
  }

  [data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container img {
    width: clamp(126px, 42vw, 170px);
  }

  .tcg-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcg-trust-bar {
    grid-template-columns: 1fr;
  }

  .tcg-hero__inner {
    max-width: min(760px, calc(100% - 250px));
  }

  .tcg-hero::before {
    width: min(34vw, 250px);
    border-radius: 22px;
  }

  .tcg-hero::after {
    opacity: 0.82;
    width: min(28vw, 210px);
    right: clamp(18px, 2.5vw, 30px);
  }
}

@media (max-width: 640px) {
  .tcg-brand-strip__items {
    font-size: 0.74rem;
    row-gap: 0.25rem;
  }

  .tcg-brand-strip__items li:not(:first-child)::before {
    margin-right: 0.35rem;
  }

  .tcg-hero__inner {
    max-width: 100%;
  }

  .tcg-hero::before {
    display: none;
  }

  .tcg-hero::after {
    display: none;
  }

  .tcg-category-grid {
    grid-template-columns: 1fr;
  }

  .tcg-hero__actions {
    flex-direction: column;
  }

  .tcg-btn {
    width: 100%;
  }

  .tcg-legal-footer__menu {
    justify-content: flex-start;
  }
}
