/*
Theme Name: pokemoncard.co.uk Vault
Theme URI: https://pokemoncard.co.uk
Description: Bespoke dark "collector vault" theme for pokemoncard.co.uk, ported from the original static storefront and wired into WooCommerce.
Author: pokemoncard.co.uk
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: pokemoncard
WC requires at least: 6.0
WC tested up to: 11.0
*/

/* =====================================================================
   Design tokens (from the original site)
   ===================================================================== */
:root{
  --bg:#070a12;--panel:#10182a;--panel2:#151f35;--line:#263957;
  --text:#f6f7fb;--muted:#9aa8c4;--accent:#f16a3d;--gold:#ffd166;
  --green:#60d394;--radius:28px;--shadow:0 25px 80px rgba(0,0,0,.42)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 90% -20%,rgba(241,106,61,.18),transparent 36%),
    radial-gradient(circle at 8% 12%,rgba(85,120,255,.16),transparent 32%),
    linear-gradient(180deg,#080b14,#0b1020 55%,#070a12);
  background-attachment:fixed;
  color:var(--text);line-height:1.6;min-height:100vh
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.shell{width:min(1180px,calc(100% - 34px));margin:auto}

/* =====================================================================
   Header
   ===================================================================== */
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,10,18,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.08)}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;text-transform:uppercase}
.logo{width:46px;height:46px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#0b1020;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 12px 28px rgba(0,0,0,.35)}
.logo img{width:100%;height:100%;object-fit:contain;display:block}
.brand strong{display:block;font-size:14px;letter-spacing:.26em}
.brand .sub{display:block;color:var(--muted);font-size:10px;letter-spacing:.2em}
.nav{display:flex;align-items:center;gap:6px;padding:6px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.04)}
.nav ul{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0}
.nav a{font-size:12px;color:#c6cde1;padding:10px 11px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.nav a:hover,.nav li.current-menu-item>a,.nav a.active{background:rgba(255,255,255,.09);color:#fff}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-btn,.cartbtn,.btn,.smallbtn{border:0;cursor:pointer;font-weight:900}
.icon-btn{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.06);color:white;border:1px solid rgba(255,255,255,.08)}
.cartbtn,.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;border-radius:999px;background:var(--accent);color:white;box-shadow:0 15px 35px rgba(241,106,61,.24)}
.cartbtn{background:#fff;color:#08101e;box-shadow:none}
.cartbtn b{background:var(--accent);color:#fff;border-radius:999px;min-width:20px;height:20px;display:inline-grid;place-items:center;font-size:11px;padding:0 6px}
.hamb{display:none}
.mobile-menu{display:none;border-top:1px solid rgba(255,255,255,.08);padding:0 0 16px}
.mobile-menu.open{display:block;padding-top:12px}
.mobile-menu ul{display:grid;grid-template-columns:1fr 1fr;gap:8px;list-style:none;margin:0;padding:0}
.mobile-menu a{padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.04);color:#cbd4ea;display:flex;align-items:center;gap:8px}

/* =====================================================================
   Typography + buttons
   ===================================================================== */
.eyebrow{color:var(--accent);font-weight:950;letter-spacing:.24em;text-transform:uppercase;font-size:13px;display:block}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(48px,8vw,96px);line-height:.9;letter-spacing:-.07em;margin:18px 0 25px;font-weight:950}
h2{font-size:clamp(34px,5vw,60px);line-height:1;letter-spacing:-.05em}
.lead{font-size:clamp(18px,2vw,24px);color:var(--muted);max-width:740px}
.btn{text-decoration:none}
.btn.secondary{background:transparent;color:#fff;border:1px solid var(--line);box-shadow:none}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}

/* =====================================================================
   Hero
   ===================================================================== */
.hero{min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;gap:34px 48px;align-items:center;padding:55px 0 90px}
.hero-head{grid-column:1 / -1}
.hero-head h1{margin-bottom:0}
.hero-copy{align-self:start}
.hero-card,.panel,.product,li.product{border:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));box-shadow:var(--shadow)}
.hero-card{position:relative;border-radius:38px;padding:22px;overflow:hidden}
.slab-showcase{padding:26px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.slab-stats{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:rgba(7,10,18,.78);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:16px}
.stat b{display:block;font-size:24px}
.stat span{color:var(--muted);font-size:12px}
.hero-slab-img{width:100%;max-height:520px;object-fit:contain;border-radius:24px;display:block;filter:drop-shadow(0 30px 55px rgba(0,0,0,.45))}

/* =====================================================================
   Sections + panels
   ===================================================================== */
.section{padding:72px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:28px}
.section p{color:var(--muted)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.panel{border-radius:var(--radius);padding:34px}
.rows{display:grid;gap:12px}
.row{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(255,255,255,.08);padding:12px 0;color:var(--muted)}
.row b{color:white}
.show-card{border-left:4px solid var(--accent)}
.media-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}
.video-card{min-height:310px;border-radius:26px;background:linear-gradient(135deg,#151f35,#331a1a);display:grid;place-items:center;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.09)}
.play{width:82px;height:82px;border-radius:50%;background:#fff;color:#08101e;display:grid;place-items:center;font-size:26px;font-weight:950}
.social-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.notice{background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.3);border-radius:18px;padding:14px;color:#ffe1a0;font-size:14px}

/* eBay wordmark */
.ebay-logo{font-weight:950;letter-spacing:-.06em;font-size:34px;line-height:1;white-space:nowrap}
.ebay-logo .e1{color:#e53238}.ebay-logo .b{color:#0064d2}.ebay-logo .a{color:#f5af02}.ebay-logo .y{color:#86b817}
.ebay-card{background:linear-gradient(135deg,#0d1424,#1b1420 60%,#2a1414)}
.ebay-badge{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.ebay-badge .ebay-logo{font-size:clamp(64px,8vw,96px);filter:drop-shadow(0 12px 30px rgba(0,0,0,.45))}
.ebay-badge-sub{color:var(--muted);font-size:13px;letter-spacing:.22em;text-transform:uppercase;font-weight:850}

/* =====================================================================
   Product cards  (native markup + WooCommerce loop)
   ===================================================================== */
.product-grid,
.woocommerce ul.products,
.woocommerce-page ul.products{
  display:grid !important;grid-template-columns:repeat(4,1fr);gap:18px;margin:0;padding:0;list-style:none
}
.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  border-radius:26px;padding:14px;margin:0 !important;width:auto !important;float:none !important;text-align:left
}
.woocommerce ul.products li.product::before{display:none}
/* Kill WooCommerce's clearfix pseudo-elements — as grid items they leave an empty first cell. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{content:none !important;display:none !important}
.thumb,
.woocommerce ul.products li.product a.thumb{
  height:auto;min-height:300px;aspect-ratio:3/4;border-radius:20px;background:#050812;display:flex;align-items:center;justify-content:center;margin-bottom:14px;position:relative;overflow:hidden
}
.thumb img,
.woocommerce ul.products li.product a.thumb img{
  width:100%;height:100%;max-height:100%;object-fit:contain;display:block;background:#050812;padding:8px;margin:0
}
.product-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pill{display:inline-flex;color:#ffb090;background:rgba(241,106,61,.12);padding:5px 9px;border-radius:999px;font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:850}
.stock{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:850;color:#b9ffd5;background:rgba(96,211,148,.13)}
.stock.out{color:#ffb3b3;background:rgba(255,80,80,.14)}
.product h3,
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  margin:9px 0 5px;font-size:17px;padding:0;color:var(--text);font-weight:800
}
.product p{font-size:13px;min-height:42px;color:var(--muted)}
.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:10px}
.price,
.woocommerce ul.products li.product .price{
  font-size:20px;font-weight:950;color:var(--text) !important;margin:0
}
.woocommerce ul.products li.product .price del{color:var(--muted);font-weight:500}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.smallbtn,
.woocommerce ul.products li.product .button,
.woocommerce a.added_to_cart{
  border-radius:999px;background:#fff;color:#07101d !important;padding:10px 14px;font-weight:900;font-size:13px;display:inline-block;margin:0;line-height:1
}
.woocommerce ul.products li.product .button:hover{background:var(--gold)}
.woocommerce ul.products li.product .add_to_cart_button.loading::after{color:#07101d}

/* =====================================================================
   WooCommerce — global buttons, prices, notices, forms
   ===================================================================== */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{
  background:var(--accent);color:#fff;border-radius:999px;font-weight:900;padding:12px 20px;box-shadow:0 15px 35px rgba(241,106,61,.24);border:0;text-shadow:none
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#ff7f57;color:#fff}
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-noreviews,
.woocommerce-info{
  background:rgba(255,209,102,.10);border-top:0;border:1px solid rgba(255,209,102,.3);border-radius:18px;color:#ffe1a0;padding:14px 18px
}
.woocommerce .woocommerce-message::before,.woocommerce .woocommerce-info::before{color:var(--gold)}
.woocommerce .woocommerce-error{background:rgba(255,80,80,.10);border:1px solid rgba(255,120,120,.35);border-radius:18px;color:#ffc4c4}
.woocommerce .woocommerce-error::before{color:#ff8080}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
.woocommerce table.cart td.actions .coupon .input-text,
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],textarea,select{
  background:#0d1424;border:1px solid var(--line);color:#fff;border-radius:16px;padding:14px;font:inherit
}
.select2-container--default .select2-selection--single{height:auto;padding:8px 14px}
.select2-dropdown{background:#0d1424;border:1px solid var(--line);color:#fff}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--accent)}
.woocommerce label,.woocommerce-checkout label{color:var(--muted)}

/* Page titles */
.woocommerce-products-header,.page-title-wrap{margin-bottom:10px}
.woocommerce-products-header__title,.entry-title,.page-title{font-size:clamp(34px,5vw,60px);letter-spacing:-.05em;color:var(--text)}
.term-description,.woocommerce-result-count{color:var(--muted)}
.woocommerce .woocommerce-ordering select{margin-bottom:16px}

/* =====================================================================
   Single product
   ===================================================================== */
.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.single-product div.product .woocommerce-product-gallery{margin:0;float:none;width:auto}
.single-product div.product .woocommerce-product-gallery__image img{border-radius:24px;background:#050812}
.single-product div.product .summary{margin:0;float:none;width:auto}
.single-product div.product .summary .price,
.single-product div.product p.price{font-size:32px;font-weight:950;color:var(--text)}
.single-product .product_title{font-size:clamp(30px,4vw,48px);letter-spacing:-.04em}
.single-product .woocommerce-product-details__short-description{color:var(--muted)}
.single-product .quantity input.qty{background:#0d1424;border:1px solid var(--line);color:#fff;border-radius:14px;padding:12px;width:80px}
.single-product .stock{background:transparent;padding:0;color:var(--green)}
.single-product .product_meta{color:var(--muted);font-size:13px;border-top:1px solid rgba(255,255,255,.08);padding-top:16px;margin-top:16px}
.woocommerce div.product .woocommerce-tabs ul.tabs{border:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-color:rgba(255,255,255,.08)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:999px 999px 0 0}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--muted)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--panel)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#fff}
.woocommerce div.product .woocommerce-tabs .panel{border:0;background:transparent;box-shadow:none;padding:20px 0}
.related.products>h2,.up-sells>h2{font-size:clamp(26px,3vw,40px);margin-top:20px}

/* =====================================================================
   Cart + checkout tables
   ===================================================================== */
.woocommerce table.shop_table{border:1px solid rgba(255,255,255,.09);border-radius:var(--radius);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border-collapse:separate;overflow:hidden}
.woocommerce table.shop_table th{color:var(--text)}
.woocommerce table.shop_table td,.woocommerce table.shop_table tbody td{border-top:1px solid rgba(255,255,255,.08);color:var(--muted)}
.woocommerce table.shop_table td.product-name a{color:var(--text)}
.woocommerce-cart table.cart img{width:64px;border-radius:12px;background:#050812}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout .woocommerce-checkout-review-order{border:1px solid rgba(255,255,255,.09);border-radius:var(--radius);padding:24px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025))}
.woocommerce .cart_totals table.shop_table,.woocommerce-checkout table.shop_table{border:0;background:transparent}
.woocommerce ul#shipping_method{color:var(--muted)}
.woocommerce-checkout #payment{background:transparent;border-radius:var(--radius)}
.woocommerce-checkout #payment ul.payment_methods{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:20px}
.woocommerce-checkout #payment div.payment_box{background:rgba(255,255,255,.04);color:var(--muted)}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:rgba(255,255,255,.04)}
.woocommerce .order-total .amount,.woocommerce .cart-subtotal .amount{color:var(--text)}
.woocommerce-checkout h3,.woocommerce-cart h2{color:var(--text)}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;display:grid;gap:8px}
.woocommerce-account .woocommerce-MyAccount-navigation li{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.04)}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:12px 16px;color:var(--muted)}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{color:#fff}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer{border-top:1px solid rgba(255,255,255,.08);color:var(--muted);padding:40px 0;margin-top:40px;font-size:14px}
.site-footer .foot-grid{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
.site-footer a:hover{color:var(--gold)}

/* =====================================================================
   Contact form page
   ===================================================================== */
.form{display:grid;gap:13px}
.form input,.form textarea,.form select{width:100%;border:1px solid var(--line);background:#0d1424;color:white;border-radius:16px;padding:14px;font:inherit}

/* =====================================================================
   Responsive
   ===================================================================== */
@media(max-width:900px){
  .nav{display:none}
  .hamb{display:block}
  .hero,.split,.media-grid{grid-template-columns:1fr}
  .hero{min-height:auto;padding:36px 0 56px;gap:28px}
  .product-grid,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr)}
  .single-product div.product{grid-template-columns:1fr}
  .section{padding:52px 0}
  .section-head{align-items:flex-start;flex-direction:column}
  .topbar{height:76px;gap:10px}
  .brand strong{font-size:12px;letter-spacing:.18em}
  .brand .sub{display:none}
}
@media(max-width:560px){
  .shell{width:calc(100% - 28px)}
  .product-grid,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr}
  .panel{padding:22px}
  .btn{width:100%}
  .mobile-menu ul{grid-template-columns:1fr}
}
