/* ============================================================
   SCREEN-READER-ONLY (safety net, in case parent theme lacks it)
   ============================================================ */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ============================================================
   PAGE HERO  (Shop / Category / generic pages / About / Contact)
   ============================================================ */
.ctg-shop-hero {
  position: relative;
  overflow: hidden;
  background: var(--ctg-alt);
  border-top: 3px solid var(--ctg-dark);
  padding: 72px 24px 52px;
  text-align: center;
}

.ctg-shop-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 80% 0%, rgba(255, 184, 28, .16), transparent 60%),
    radial-gradient(700px 420px at 8% 100%, rgba(242, 106, 27, .12), transparent 60%);
}

.ctg-shop-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .08;
  background:
    repeating-linear-gradient( 45deg, #FFB81C 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, #FFB81C 0 2px, transparent 2px 22px);
}

.ctg-shop-hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.ctg-shop-hero__pre-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-lime);
  margin-bottom: 14px;
}

.ctg-shop-hero__heading {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(30px, 5vw, 50px);
  text-shadow: 4px 4px 0 var(--ctg-dark);
  line-height: 1;
  margin: 0 0 14px;
}

.ctg-shop-hero__desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--ctg-muted);
  line-height: 1.7;
}
.ctg-shop-hero__desc p:last-child { margin-bottom: 0; }

.ctg-shop-hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 184, 28, .14);
}
.ctg-shop-hero__stat { display: flex; flex-direction: column; align-items: center; gap: 5px; }

@media (max-width: 480px) {
  .ctg-shop-hero__stats { gap: 24px; margin-top: 24px; padding-top: 20px; }
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--ctg-muted);
  margin: 0 0 20px;
}
.woocommerce-breadcrumb a { color: var(--ctg-gold); }
.woocommerce-breadcrumb a:hover { color: var(--ctg-lime); }

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.ctg-shop-pills {
  background: var(--ctg-bg);
  border-bottom: 2px solid rgba(255, 184, 28, .14);
  padding: 18px 24px;
}

.ctg-shop-pills__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ctg-shop-pill {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ctg-fg);
  background: var(--ctg-card);
  border: 2px solid var(--ctg-dark);
  border-radius: 20px;
  padding: 9px 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ctg-dark);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
}

.ctg-shop-pill:hover {
  color: var(--ctg-gold);
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--ctg-dark);
}

.ctg-shop-pill.is-active {
  background: var(--ctg-gold);
  color: var(--ctg-dark);
}

.ctg-shop-pill__count {
  display: inline-block;
  background: rgba(255, 184, 28, .18);
  color: var(--ctg-gold);
  border-radius: 10px;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 8px;
}
.ctg-shop-pill.is-active .ctg-shop-pill__count {
  background: rgba(10, 7, 3, .25);
  color: var(--ctg-dark);
}

/* ============================================================
   SHOP TOOLBAR — result count + ordering
   ============================================================ */
.ctg-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding: 16px 22px;
  background: var(--ctg-card);
  border: 3px solid var(--ctg-dark);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ctg-dark);
}

.woocommerce-result-count {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ctg-muted);
  margin: 0;
  line-height: 1.6;
}

.ctg-shop-toolbar__order {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctg-shop-toolbar__order::before {
  content: '▚ SORT';
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ctg-lime);
  white-space: nowrap;
}

.woocommerce-ordering select {
  background-color: var(--ctg-bg) !important;
  color: var(--ctg-fg) !important;
  border: 3px solid var(--ctg-dark) !important;
  border-radius: 6px;
  padding: 10px 34px 10px 14px !important;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  box-shadow: 3px 3px 0 var(--ctg-dark);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.woocommerce-ordering select:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--ctg-dark);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ctg-shop-pagination { text-align: center; margin-top: 24px; }

/* ============================================================
   TRUST BADGES STRIP  (below the shop product grid)
   ============================================================ */
.ctg-shop-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.ctg-shop-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ctg-card);
  border: 2px solid rgba(255, 184, 28, .15);
  border-radius: 20px;
  padding: 10px 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--ctg-muted);
}

.ctg-shop-trust__icon { font-size: 14px; }

/* Empty state icon + copy (archive page uses icon + <p>, home page keeps plain text) */
.ctg-merch__empty-icon {
  display: block;
  font-size: 56px;
  margin-bottom: 20px;
  opacity: .6;
}

.ctg-merch__empty p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--ctg-muted);
  line-height: 1.8;
}
.ctg-merch__empty p a { color: var(--ctg-gold); }

.woocommerce-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination .page-numbers li { display: inline-block; }

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-fg);
  background: var(--ctg-card);
  border: 2px solid rgba(255, 184, 28, .2);
  border-radius: 4px;
  padding: 10px 14px;
  text-decoration: none;
}

.woocommerce-pagination a.page-numbers:hover,
.woocommerce-pagination span.page-numbers.current {
  background: var(--ctg-gold);
  color: var(--ctg-dark);
}

/* ============================================================
   GENERIC PAGE WRAPPER + PROSE  (Cart/Checkout/My Account/etc.)
   ============================================================ */
.ctg-page { background: var(--ctg-bg); padding: 56px 24px 80px; }

.ctg-page__inner { max-width: 1200px; margin: 0 auto; }
.ctg-page__inner--narrow { max-width: 760px; }

.ctg-page__content {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ctg-fg);
  line-height: 1.75;
}

.ctg-page__content h1,
.ctg-page__content h2,
.ctg-page__content h3 {
  font-family: 'Bungee', sans-serif;
  color: var(--ctg-fg);
  margin: 1.4em 0 .6em;
}
.ctg-page__content h1:first-child,
.ctg-page__content h2:first-child,
.ctg-page__content h3:first-child { margin-top: 0; }

.ctg-page__content p { margin: 0 0 1em; color: #C9B894; }
.ctg-page__content a { color: var(--ctg-gold); text-decoration: underline; }
.ctg-page__content a:hover { color: var(--ctg-lime); }

.ctg-page__content ul,
.ctg-page__content ol { color: #C9B894; padding-left: 22px; margin: 0 0 1em; }

.ctg-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
}
.ctg-page__content table th,
.ctg-page__content table td {
  border: 1px solid rgba(255, 184, 28, .2);
  padding: 10px 14px;
  text-align: left;
}

.ctg-page__content blockquote {
  border-left: 4px solid var(--ctg-gold);
  padding-left: 18px;
  font-style: italic;
  color: var(--ctg-fg);
}

/* ============================================================
   GENERIC WOOCOMMERCE FORM ELEMENTS
   (cart coupon box, checkout fields, my-account, reviews)
   ============================================================ */
.woocommerce form .form-row label,
.woocommerce table.shop_table th {
  color: var(--ctg-muted);
  font-family: 'Space Grotesk', sans-serif;
}

/* !important beats WooCommerce's own core CSS (`.woocommerce form .form-row
   .input-text`, higher specificity than a bare `.woocommerce input.input-text`)
   and the parent theme's Bootstrap rules (`.form-control`, `body.woocommerce-page
   select`) — both otherwise force white/light form fields on every WC form
   site-wide: checkout, my-account, coupon box, reviews, search, etc. */
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce .quantity input.qty,
.woocommerce div.quantity input.qty,
#reviews input[type="text"],
#reviews input[type="email"],
#reviews input[type="url"],
#reviews textarea {
  background-color: var(--ctg-card) !important;
  border: 2px solid rgba(255, 184, 28, .25);
  color: var(--ctg-fg) !important;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
}

/* Native <select> text/arrow rendering ignores `color` on some platforms
   unless appearance is turned off — force a custom look so the selected
   value is actually legible on the dark background. */
.woocommerce select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 10px !important;
  padding-right: 34px !important;
  border-color: rgba(255, 184, 28, .25) !important;
}
.woocommerce select option {
  background: var(--ctg-card);
  color: var(--ctg-fg);
}

.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce .quantity input.qty:focus,
#reviews input[type="text"]:focus,
#reviews input[type="email"]:focus,
#reviews input[type="url"]:focus,
#reviews textarea:focus {
  outline: none;
  border-color: var(--ctg-gold);
}

.woocommerce div.quantity input.qty { width: 70px; text-align: center; }

/* Select2 — WooCommerce swaps checkout Country/State (and similar) selects
   for this widget, which renders its own <div>s instead of a native
   <select>, so none of the rules above ever touch it. */
.select2-container--default .select2-selection--single {
  background-color: var(--ctg-card) !important;
  border: 2px solid rgba(255, 184, 28, .25) !important;
  border-radius: 4px !important;
  height: auto !important;
  padding: 10px 12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ctg-fg) !important;
  line-height: 1.4 !important;
  padding: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--ctg-gold) transparent transparent transparent !important;
}
.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--ctg-gold) transparent !important;
}

.select2-dropdown {
  background-color: var(--ctg-card) !important;
  border: 2px solid rgba(255, 184, 28, .25) !important;
  border-radius: 4px !important;
}
.select2-search--dropdown .select2-search__field {
  background-color: var(--ctg-bg) !important;
  border: 2px solid rgba(255, 184, 28, .25) !important;
  color: var(--ctg-fg) !important;
  border-radius: 4px;
}
.select2-results__option {
  color: var(--ctg-fg) !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
}
.select2-results__option--highlighted[aria-selected] {
  background-color: var(--ctg-gold) !important;
  color: var(--ctg-dark) !important;
}
.select2-results__option[aria-selected="true"] {
  background-color: rgba(255, 184, 28, .15) !important;
}

/* !important beats the parent theme's `.woocommerce a.button.alt` /
   `.woocommerce a.button:not(.alt)` rules (bundle.css) — the extra `.alt`
   or `:not()` class-level selector makes them more specific than a plain
   `.woocommerce a.button`, so every WooCommerce CTA (checkout button, place
   order, apply coupon, log in, review submit...) was rendering Bootstrap
   blue instead of the branded gold button. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button {
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  background: var(--ctg-gold) !important;
  color: var(--ctg-dark) !important;
  border: 3px solid var(--ctg-dark) !important;
  border-radius: 4px;
  padding: 12px 24px;
  box-shadow: 4px 4px 0 var(--ctg-dark);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  color: var(--ctg-dark) !important;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ctg-dark);
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.woocommerce .star-rating { color: var(--ctg-gold); }

/* ============================================================
   CART PAGE
   ============================================================ */
.woocommerce table.shop_table {
  border: none;
  border-collapse: separate;
  border-spacing: 0 14px;
  width: 100%;
}

.woocommerce table.shop_table thead th {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ctg-muted);
  text-align: left;
  padding: 0 14px 8px;
  border: none;
}

.woocommerce table.shop_table tbody tr.cart_item,
.woocommerce table.shop_table tbody tr.woocommerce-cart-form__cart-item {
  background: var(--ctg-card);
  border: 3px solid var(--ctg-dark);
}

.woocommerce table.shop_table tbody tr.cart_item td {
  padding: 16px 14px;
  border: none;
  vertical-align: middle;
}

.woocommerce table.shop_table tbody tr.cart_item td.product-name a {
  font-family: 'Bungee', sans-serif;
  font-size: 15px;
  color: var(--ctg-fg);
}
.woocommerce table.shop_table tbody tr.cart_item td.product-name a:hover { color: var(--ctg-gold); }

.woocommerce table.shop_table .product-thumbnail img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.woocommerce table.shop_table a.remove {
  color: var(--ctg-red) !important;
  font-size: 20px;
  text-decoration: none;
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s ease;
}
.woocommerce table.shop_table a.remove:hover { background: rgba(255, 59, 47, .15); }

.woocommerce table.shop_table tr.actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.woocommerce table.shop_table tr.actions { background: transparent; border: none; }
.woocommerce table.shop_table tr.actions td { padding: 8px 14px; }

.woocommerce-cart-form__contents tr.actions button[name="update_cart"] { margin-top: 10px; }

.cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.cart_totals {
  background: var(--ctg-card);
  border: 4px solid var(--ctg-dark);
  border-radius: 10px;
  padding: 26px;
  max-width: 380px;
  width: 100%;
  box-shadow: 6px 6px 0 var(--ctg-dark);
}

.cart_totals h2 {
  font-family: 'Bungee', sans-serif;
  font-size: 20px;
  margin: 0 0 18px;
}

.cart_totals table { width: 100%; border-spacing: 0; }
.cart_totals table th,
.cart_totals table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 184, 28, .12);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
}
.cart_totals table tr:last-child th,
.cart_totals table tr:last-child td { border-bottom: none; }

.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
}

/* Cross-sells + any default WC product loop (not our custom card partial) */
.woocommerce ul.products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.woocommerce ul.products li.product {
  background: var(--ctg-card);
  border: 4px solid var(--ctg-dark);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ctg-dark);
  padding: 14px 14px 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover { transform: translate(-2px, -6px); box-shadow: 8px 12px 0 var(--ctg-dark); }
.woocommerce ul.products li.product img { border-radius: 6px; margin-bottom: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Bungee', sans-serif;
  font-size: 15px;
  color: var(--ctg-fg);
  margin: 0 0 6px;
}
.woocommerce ul.products li.product .price { color: var(--ctg-gold); font-weight: 600; }
.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  padding: 10px 0;
}

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

/* ============================================================
   PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.ctg-pdp { position: relative; overflow: hidden; padding: 48px 24px 16px; }

.ctg-pdp__bg-radial {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(255, 184, 28, .12), transparent 60%),
    radial-gradient(700px 460px at 5% 95%, rgba(166, 255, 26, .06), transparent 60%);
}

.ctg-pdp__inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }
.ctg-pdp__crumb { margin-bottom: 8px; }

.ctg-pdp__pre-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-lime);
  margin-bottom: 16px;
}

.ctg-pdp__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr;
  gap: 64px;
  align-items: start;
  width: 100%;
}

.ctg-pdp__gallery { position: relative; width: 100%; min-width: 0; }
.ctg-pdp__summary { min-width: 0; }

/* !important here defeats WooCommerce's gallery/flexslider JS, which sets
   inline pixel widths on these exact elements based on its own measurement
   — those inline styles otherwise win over a plain stylesheet rule. */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.woocommerce-product-gallery {
  display: block;
  background: var(--ctg-card);
  border: 4px solid var(--ctg-dark);
  border-radius: 10px;
  box-shadow: 10px 10px 0 var(--ctg-dark);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce-product-gallery:hover {
  transform: translate(-2px, -4px);
  box-shadow: 12px 14px 0 var(--ctg-dark);
}
.woocommerce-product-gallery img { border-radius: 6px; object-fit: cover; }

.ctg-pdp__gallery .ctg-merch__badge { position: absolute; top: 14px; left: 14px; z-index: 5; }

.flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.flex-control-thumbs li { width: 64px; }
.flex-control-thumbs img {
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}
.flex-control-thumbs img.flex-active { border-color: var(--ctg-gold); }

.ctg-pdp__summary .product_title {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  text-shadow: 4px 4px 0 var(--ctg-dark);
  line-height: 1.05;
  margin: 0 0 16px;
}

.ctg-pdp__summary .woocommerce-product-rating { margin-bottom: 20px; }

/* Buy box — groups price / excerpt / add-to-cart into one bordered card,
   matching the cart_totals / watch stat-card treatment used elsewhere. */
.ctg-pdp__buybox {
  background: var(--ctg-card);
  border: 4px solid var(--ctg-dark);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--ctg-dark);
  padding: 26px 26px 28px;
  margin-bottom: 24px;
}

.ctg-pdp__buybox .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ctg-gold);
  margin: 0 0 6px;
  display: block;
}

.ctg-pdp__buybox .stock {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(255, 184, 28, .12);
  color: var(--ctg-gold);
  margin-bottom: 18px;
}
.ctg-pdp__buybox .stock.out-of-stock { background: rgba(255, 59, 47, .15); color: var(--ctg-red); }
.ctg-pdp__buybox .stock.in-stock { background: rgba(166, 255, 26, .12); color: var(--ctg-lime); }

.ctg-pdp__buybox .woocommerce-product-details__short-description {
  color: #C9B894;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.75;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 184, 28, .14);
}
.ctg-pdp__buybox .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

.ctg-pdp__buybox form.cart {
  display: flex;
  align-items: stretch;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0;
}

/* Variation attribute table — strip WC's default table chrome, the real select
   is swapped for swatch buttons by JS (ctgBuildSwatches in cobra-main.js). */
.ctg-pdp__buybox table.variations {
  width: 100%;
  border: none;
  margin: 0 0 20px;
}
.ctg-pdp__buybox table.variations tbody,
.ctg-pdp__buybox table.variations tr { display: block; }
.ctg-pdp__buybox table.variations tr + tr { margin-top: 16px; }
.ctg-pdp__buybox table.variations th.label,
.ctg-pdp__buybox table.variations td.value {
  display: block;
  padding: 0;
  border: none;
}
.ctg-pdp__buybox table.variations th.label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-lime);
  text-transform: uppercase;
  padding-bottom: 10px;
}

/* Hide the native select — swatches drive it programmatically */
/* !important beats WooCommerce's own core rule
   `.woocommerce div.product form.cart .variations select { display: inline-block }`,
   which otherwise wins on specificity. */
.ctg-pdp__buybox table.variations select { display: none !important; }

.ctg-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.ctg-swatch {
  font-family: 'Bungee', sans-serif;
  font-size: 13px;
  min-width: 44px;
  text-align: center;
  background: var(--ctg-card);
  color: var(--ctg-fg);
  border: 3px solid var(--ctg-dark);
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ctg-dark);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
}
.ctg-swatch:hover { color: var(--ctg-gold); }
.ctg-swatch.is-active {
  background: var(--ctg-gold);
  color: var(--ctg-dark);
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--ctg-dark);
}
.ctg-swatch.is-disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

.ctg-pdp__buybox a.reset_variations {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--ctg-muted);
  text-decoration: underline;
}
.ctg-pdp__buybox a.reset_variations:hover { color: var(--ctg-gold); }

.ctg-pdp__buybox .woocommerce-variation-description p { color: #C9B894; font-family: 'Space Grotesk', sans-serif; }
.ctg-pdp__buybox .woocommerce-variation-price .price { font-size: 22px; }

/* Quantity stepper — custom +/- buttons injected by JS around the qty input */
.ctg-pdp__buybox .quantity {
  display: inline-flex;
  align-items: stretch;
  background: var(--ctg-bg);
  border: 3px solid var(--ctg-dark);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.ctg-pdp__buybox .quantity .ctg-qty-btn {
  border: none;
  background: var(--ctg-card);
  color: var(--ctg-gold);
  font-family: 'Bungee', sans-serif;
  font-size: 18px;
  width: 40px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.ctg-pdp__buybox .quantity .ctg-qty-btn:hover { background: var(--ctg-gold); color: var(--ctg-dark); }

.ctg-pdp__buybox .quantity input.qty {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 2px solid rgba(255, 184, 28, .15);
  border-right: 2px solid rgba(255, 184, 28, .15);
  border-radius: 0;
  background: var(--ctg-bg);
  -moz-appearance: textfield;
}
.ctg-pdp__buybox .quantity input.qty::-webkit-inner-spin-button,
.ctg-pdp__buybox .quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart — brand-voice button, matches the merch card / nav CTA language.
   !important beats the parent theme's Bootstrap-driven `.woocommerce button.button.alt`
   rule (bundle.css), which otherwise wins on specificity and renders it Bootstrap blue. */
.ctg-pdp__buybox .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: .02em;
  background: var(--ctg-gold) !important;
  color: var(--ctg-dark) !important;
  border: 3px solid var(--ctg-dark) !important;
  box-shadow: 5px 5px 0 var(--ctg-dark) !important;
  border-radius: 6px !important;
  padding: 14px 24px !important;
  transition: transform .1s ease, box-shadow .1s ease !important;
}
.ctg-pdp__buybox .single_add_to_cart_button:hover {
  color: var(--ctg-dark) !important;
  background: var(--ctg-gold) !important;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ctg-dark) !important;
}
.ctg-pdp__buybox .single_add_to_cart_button::before { content: '🐍  '; }

.ctg-pdp__buybox .single_add_to_cart_button.loading {
  opacity: .6 !important;
  pointer-events: none;
}
.ctg-pdp__buybox .single_add_to_cart_button.ctg-btn-added {
  background: var(--ctg-lime) !important;
}
.ctg-pdp__buybox .single_add_to_cart_button.ctg-btn-added::before { content: '✓  '; }

@media (max-width: 480px) {
  .ctg-pdp__buybox .single_add_to_cart_button { min-width: 100%; }
}

/* Meta (SKU / categories / tags) as small chips instead of a plain line */
.ctg-pdp__summary .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--ctg-muted);
}
.ctg-pdp__summary .product_meta > span {
  background: var(--ctg-card);
  border: 1px solid rgba(255, 184, 28, .18);
  border-radius: 20px;
  padding: 6px 14px;
}
.ctg-pdp__summary .product_meta a { color: var(--ctg-gold); }

/* Tabs (description / reviews) — bold pill-style active state */
.woocommerce-tabs { margin-top: 60px; }
.woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 4px;
  border-bottom: 3px solid var(--ctg-dark);
}
.woocommerce-tabs ul.tabs li { margin: 0 0 -3px; }
.woocommerce-tabs ul.tabs li a {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-muted);
  background: var(--ctg-card);
  border: 3px solid var(--ctg-dark);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 14px 20px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.woocommerce-tabs ul.tabs li a:hover { color: var(--ctg-gold); }
.woocommerce-tabs ul.tabs li.active a {
  background: var(--ctg-gold);
  color: var(--ctg-dark);
}
.woocommerce-tabs .panel {
  padding: 36px 4px;
  color: #C9B894;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.75;
}
.woocommerce-tabs .panel h2 {
  font-family: 'Bungee', sans-serif;
  color: var(--ctg-fg);
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .ctg-pdp__grid { grid-template-columns: 1fr; gap: 32px; }
  .ctg-shop-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .woocommerce table.shop_table thead { display: none; }
  .woocommerce table.shop_table tbody tr.cart_item { display: block; padding: 14px; }
  .woocommerce table.shop_table tbody tr.cart_item td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
  }
  .woocommerce table.shop_table tbody tr.cart_item td::before {
    content: attr(data-title);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--ctg-muted);
    margin-right: 12px;
  }
  .cart-collaterals { justify-content: stretch; }
  .cart_totals { max-width: 100%; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.ctg-contact {
  background: var(--ctg-alt);
  border-top: 3px solid var(--ctg-dark);
  padding: 64px 24px;
}

.ctg-contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 48px;
  align-items: start;
}

.ctg-contact__form { display: flex; flex-direction: column; }

.ctg-contact__label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ctg-lime);
  margin: 16px 0 6px;
}
.ctg-contact__label:first-child { margin-top: 0; }

.ctg-contact__input,
.ctg-contact__textarea {
  background: var(--ctg-card);
  border: 3px solid var(--ctg-dark);
  box-shadow: 4px 4px 0 var(--ctg-dark);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--ctg-fg);
  outline: none;
}
.ctg-contact__input:focus,
.ctg-contact__textarea:focus { border-color: var(--ctg-gold); }
.ctg-contact__textarea { resize: vertical; min-height: 140px; }

.ctg-contact__submit {
  margin-top: 22px;
  font-family: 'Bungee', sans-serif;
  font-size: 15px;
  background: var(--ctg-gold);
  color: var(--ctg-dark);
  border: 3px solid var(--ctg-dark);
  border-radius: 4px;
  padding: 14px 28px;
  box-shadow: 5px 5px 0 var(--ctg-dark);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
  align-self: flex-start;
}
.ctg-contact__submit:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ctg-dark); }
.ctg-contact__submit:disabled { opacity: .6; cursor: not-allowed; }

.ctg-contact__form-msg {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  min-height: 1.5em;
  margin: 14px 0 0;
  line-height: 1.8;
}
.ctg-contact__form-msg.is-success { color: var(--ctg-lime); }
.ctg-contact__form-msg.is-error   { color: var(--ctg-red); }

.ctg-contact__info-card {
  background: var(--ctg-card);
  border: 4px solid var(--ctg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 6px 6px 0 var(--ctg-dark);
}

.ctg-contact__pre-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-lime);
  margin-bottom: 16px;
}

.ctg-contact__info-text {
  font-family: 'Space Grotesk', sans-serif;
  color: #C9B894;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ctg-contact__socials { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 760px) {
  .ctg-contact__inner { grid-template-columns: 1fr; }
}
