/*
Theme Name: Two Drop Consignment
Theme URI: https://twodropconsignment.ca
Author: Two Drop Consignment
Author URI: https://twodropconsignment.ca
Description: Custom retro gaming theme for Two Drop Consignment MTG card consignment shop.
Version: 1.1
License: Private
*/

/* ===========================================================
   This file styles every page EXCEPT the homepage (the
   homepage carries its own complete styling inside
   page-homepage.php and never loads this file's rules).
   That means: Shop, single product pages, Cart, Checkout,
   My Account, Contact, and anything else on the site.

   Colors/fonts are copy-pasted from page-homepage.php on
   purpose, so the whole site reads as one brand instead of
   "pretty homepage, generic everything else."
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-dark: #0d0d1a;
  --bg-mid: #141428;
  --bg-card: #1a1a35;
  --nes-red: #e8174a;
  --nes-yellow: #f7d51d;
  --nes-green: #56c02b;
  --nes-blue: #3a6de8;
  --nes-cyan: #00e5ff;
  --text-white: #f0f0f0;
  --text-muted: #8888aa;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Courier Prime', monospace;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--nes-cyan); }

h1, h2, h3 {
  font-family: 'Press Start 2P', monospace;
  color: var(--nes-yellow);
  line-height: 1.5;
}

/* ── NAV (same markup/classes as the homepage) ── */
nav {
  background: var(--bg-dark);
  border-bottom: 3px solid var(--nes-red);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--nes-yellow);
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 1px;
}
.nav-links a:hover { color: var(--nes-yellow); }

/* ── FOOTER (same markup/classes as the homepage) ── */
footer {
  border-top: 3px solid var(--nes-red);
  background: var(--bg-dark);
  padding: 40px 32px;
  text-align: center;
  margin-top: 64px;
}

.footer-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--nes-yellow);
  margin-bottom: 16px;
  display: block;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
}
.footer-links a:hover { color: var(--nes-yellow); }

.footer-legal {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-legal span { color: var(--nes-red); }

/* ── PAGE CONTENT WRAPPER (from index.php: <main><article>...) ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 50vh;
}

article > h1 {
  font-size: clamp(14px, 2.5vw, 20px);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

/* ===========================================================
   WOOCOMMERCE — SHOP GRID (archive page: ul.products/li.product)
   =========================================================== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: var(--bg-card);
  border: 2px solid rgba(232,23,74,0.3);
  transition: border-color 0.2s, transform 0.2s;
  padding: 0 0 16px 0;
  text-align: left;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--nes-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 0 rgba(232,23,74,0.2);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > a:first-child {
  text-decoration: none;
  color: inherit;
  display: block;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  background: #070712;
  border-bottom: 2px solid rgba(232,23,74,0.3);
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--text-white);
  line-height: 1.6;
  letter-spacing: 0.5px;
  padding: 16px 16px 8px;
  margin: 0;
}

.woocommerce ul.products li.product .price {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--nes-green);
  padding: 0 16px;
  display: block;
}
.woocommerce ul.products li.product .price del { color: var(--text-muted); opacity: 0.7; text-decoration: line-through; }
.woocommerce ul.products li.product .price ins { color: var(--nes-green); text-decoration: none; }

.woocommerce ul.products li.product .button {
  display: block;
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--nes-red);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 1px;
  text-decoration: none;
}
.woocommerce ul.products li.product .button:hover { background: var(--nes-red); color: #fff; }

.woocommerce-result-count,
.woocommerce-ordering {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-muted);
}
.woocommerce-ordering select {
  background: var(--bg-card);
  color: var(--text-white);
  border: 2px solid rgba(232,23,74,0.3);
  padding: 6px 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
}

/* ===========================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   =========================================================== */
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 40px;
}
@media (max-width: 700px) { .woocommerce div.product { grid-template-columns: 1fr; } }

.woocommerce div.product div.images img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  background: #070712;
  border: 2px solid rgba(232,23,74,0.3);
}

.woocommerce div.product .product_title {
  font-size: clamp(13px, 2vw, 18px);
  margin-bottom: 16px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--nes-green);
  display: block;
  margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--nes-red);
  color: #fff;
  border: 3px solid #ff6688;
  box-shadow: 4px 4px 0 #7a0020;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 14px 24px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.woocommerce div.product .single_add_to_cart_button:hover {
  background: #ff2255;
  box-shadow: 6px 6px 0 #7a0020;
  transform: translate(-1px,-1px);
}

.woocommerce div.product .product_meta {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-muted);
}
.woocommerce div.product .product_meta a { color: var(--nes-cyan); text-decoration: none; }

.woocommerce-tabs {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(232,23,74,0.2);
  margin-top: 24px;
  padding-top: 24px;
}
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; display: flex; gap: 16px; margin-bottom: 16px; }
.woocommerce-tabs ul.tabs li a {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--nes-yellow); }
.woocommerce-tabs .woocommerce-Tabs-panel {
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.5;
}

.woocommerce-breadcrumb {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.woocommerce-breadcrumb a { color: var(--nes-cyan); text-decoration: none; }

/* ===========================================================
   WOOCOMMERCE — CART & CHECKOUT TABLES
   =========================================================== */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin-bottom: 24px;
}
.woocommerce table.shop_table th {
  background: var(--nes-red);
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 12px;
  text-align: left;
  letter-spacing: 1px;
}
.woocommerce table.shop_table td {
  padding: 12px;
  border: 1px solid rgba(232,23,74,0.2);
  background: var(--bg-card);
  color: var(--text-white);
}
.woocommerce table.shop_table td.product-thumbnail img {
  width: 60px;
  aspect-ratio: 5/7;
  object-fit: cover;
}
.woocommerce table.shop_table .amount { color: var(--nes-green); }

.woocommerce a.remove {
  color: var(--nes-red) !important;
  font-size: 20px;
  text-decoration: none;
}

.woocommerce .cart-collaterals .cart_totals th,
.woocommerce .cart-collaterals .cart_totals td { background: var(--bg-card); }

.woocommerce a.checkout-button,
.woocommerce #place_order {
  background: var(--nes-red);
  color: #fff !important;
  border: 3px solid #ff6688;
  box-shadow: 4px 4px 0 #7a0020;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 16px 24px;
  cursor: pointer;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s, box-shadow 0.1s;
}
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover {
  background: #ff2255;
  box-shadow: 6px 6px 0 #7a0020;
  transform: translate(-1px,-1px);
}

/* ===========================================================
   WOOCOMMERCE — FORM FIELDS (checkout billing, order notes, coupon)
   Default WooCommerce forms are styled for a white background --
   without this, they'd be invisible/unreadable on our dark theme.
   =========================================================== */
.woocommerce form .form-row label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-muted);
}

.woocommerce form input.input-text,
.woocommerce form textarea,
.woocommerce form select,
.woocommerce table.shop_table input[type="number"] {
  background: var(--bg-mid);
  color: var(--text-white);
  border: 2px solid rgba(232,23,74,0.3);
  padding: 8px 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  width: 100%;
}
.woocommerce form input.input-text:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus {
  outline: none;
  border-color: var(--nes-red);
}

#order_comments {
  min-height: 100px;
}

/* ===========================================================
   WOOCOMMERCE — NOTICES (added to cart, errors, info banners)
   =========================================================== */
.woocommerce-message,
.woocommerce-info {
  background: var(--bg-card);
  border-left: 4px solid var(--nes-green);
  color: var(--text-white);
  padding: 14px 18px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  list-style: none;
  margin-bottom: 24px;
}
.woocommerce-error {
  background: var(--bg-card);
  border-left: 4px solid var(--nes-red);
  color: var(--text-white);
  padding: 14px 18px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  list-style: none;
  margin-bottom: 24px;
}
.woocommerce-message a.button,
.woocommerce-error a.button {
  background: var(--nes-red);
  color: #fff;
  padding: 4px 10px;
  text-decoration: none;
  margin-left: 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 10px 16px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 6px; }
  main { padding: 32px 16px; }
}
