/*
Theme Name: Pull Dept.
Author: Store Owner
Description: A focused WooCommerce theme for factory-sealed trading card boxes.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: pulldept
License: GPL-2.0-or-later
*/

:root {
  --ink: #151515;
  --paper: #f7f4ed;
  --white: #ffffff;
  --yellow: #ffd83d;
  --red: #e94b35;
  --aqua: #2f9d95;
  --blue: #3273dc;
  --muted: #6b6b66;
  --line: #d8d5ce;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 16px 40px rgba(21, 21, 21, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button, .wp-element-button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, .button:hover, .wp-element-button:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.button--light { background: var(--white); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.notice-bar {
  background: var(--yellow);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  padding: 8px 20px;
  text-align: center;
}
.site-header { background: var(--paper); border-bottom: 1px solid var(--ink); position: relative; z-index: 30; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; }
.brand-mark {
  width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink);
  border-radius: 50%; background: var(--red); color: var(--white); font-size: 16px;
}
.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; padding: 0; background: transparent; color: var(--ink); box-shadow: none; }
.menu-toggle:hover { transform: none; box-shadow: none; }

.hero {
  position: relative;
  min-height: min(620px, calc(100vh - 168px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background-color: #2f9d95;
  background-image: url('assets/images/hero-creature-art.svg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--ink);
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(21, 21, 21, .2); }
.hero-inner { position: relative; padding-block: 72px; }
.hero-copy { max-width: 660px; color: var(--white); text-shadow: 0 2px 16px rgba(0,0,0,.28); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(58px, 9vw, 112px); line-height: .9; letter-spacing: 0; font-weight: 950; }
.hero-lede { max-width: 590px; margin: 24px 0 30px; font-size: clamp(18px, 2vw, 23px); line-height: 1.35; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button { min-height: 50px; padding-inline: 22px; text-shadow: none; }
.hero .button--ghost { border-color: var(--white); color: var(--white); background: rgba(21,21,21,.24); }
.hero-note { margin: 16px 0 0; font-size: 12px; font-weight: 650; }

.trust-strip { background: var(--ink); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 82px; padding: 18px 24px; border-right: 1px solid #494949; display: grid; align-content: center; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { color: var(--yellow); font-size: 14px; }
.trust-item span { color: #d7d7d2; font-size: 12px; }

.section { padding: 82px 0; }
.section--white { background: var(--white); }
.section--yellow { background: var(--yellow); border-block: 1px solid var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2, .editorial-copy h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1; letter-spacing: 0; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }
.text-link { font-weight: 850; white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; }
.product-media { display: block; width: 100%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); background: #ece8df; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border: 1px solid var(--ink); border-radius: 3px; background: var(--yellow); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.product-meta { padding-top: 14px; display: grid; gap: 4px; }
.product-meta h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.product-meta a { text-decoration: none; }
.product-sub { color: var(--muted); font-size: 13px; }
.price { font-size: 16px; font-weight: 850; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.step { min-height: 250px; padding: 30px; border-right: 1px solid var(--ink); }
.step:last-child { border-right: 0; }
.step-number { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 900; }
.step h3 { margin: 46px 0 8px; font-size: 23px; }
.step p { margin: 0; color: #423e37; }

.editorial { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; border-block: 1px solid var(--ink); background: var(--white); }
.editorial-media { min-height: 420px; background: #ddd; overflow: hidden; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy { padding: clamp(44px, 7vw, 92px); display: grid; align-content: center; }
.editorial-copy p { color: var(--muted); max-width: 520px; font-size: 18px; }
.disclosure-list { display: grid; gap: 10px; padding: 0; margin: 20px 0 28px; list-style: none; }
.disclosure-list li { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }

.page-shell { padding: 64px 0 90px; min-height: 62vh; }
.page-shell article { max-width: 820px; }
.page-shell h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1; }
.entry-content > * + * { margin-top: 1.2em; }

.site-footer { background: var(--ink); color: var(--white); padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 440px; color: #c8c8c2; }
.footer-heading { margin: 0 0 13px; font-size: 13px; color: var(--yellow); text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #e8e8e3; font-size: 14px; }
.footer-bottom { border-top: 1px solid #3f3f3f; margin-top: 44px; padding-top: 20px; color: #9f9f9a; font-size: 11px; display: flex; justify-content: space-between; gap: 20px; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin: 26px 0; color: var(--muted); font-size: 13px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 0 70px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; }
.woocommerce ul.products li.product a img { aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--ink); border-radius: var(--radius); margin-bottom: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--ink); }
.woocommerce span.onsale { min-width: auto; min-height: auto; line-height: 1; top: 10px; left: 10px; padding: 7px 9px; border-radius: 3px; background: var(--red); }
.woocommerce div.product { padding-bottom: 72px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 900; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--ink); color: var(--white); border-radius: 4px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--aqua); background: var(--white); }
.woocommerce-cart table.cart, .woocommerce-checkout-review-order, .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 46px; border: 1px solid #a9a69f; border-radius: 4px; padding: 10px; background: var(--white); }

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .notice-bar { padding: 7px 14px; line-height: 1.35; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { min-width: 0; font-size: 18px; line-height: 1.1; }
  .brand-mark { flex: 0 0 32px; width: 32px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; z-index: 40; inset: 64px 0 auto; min-height: calc(100vh - 64px); background: var(--paper); padding: 20px; border-bottom: 1px solid var(--ink); }
  .nav-open .site-nav { display: block; }
  .site-nav ul { display: grid; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 18px 0; font-size: 20px; }
  .header-actions .cart-link { display: none; }
  .hero { min-height: 600px; background-position: 68% center; }
  .hero::before { background: linear-gradient(90deg, rgba(21,21,21,.72) 0%, rgba(21,21,21,.5) 52%, rgba(21,21,21,.14) 100%); }
  .hero-inner { padding-block: 56px; }
  .hero h1 { max-width: 620px; font-size: 56px; line-height: .94; overflow-wrap: anywhere; }
  .hero-copy { max-width: 92%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid #494949; min-height: 68px; }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 58px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-media, .woocommerce ul.products li.product a img { aspect-ratio: 1; }
  .product-media img, .woocommerce ul.products li.product a img { object-fit: contain; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 26px; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-copy { padding: 50px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-shell { padding: 44px 0 64px; }
  .page-shell h1 { font-size: 48px; overflow-wrap: anywhere; }
  .entry-content { overflow-wrap: anywhere; }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    float: none;
    width: 100%;
  }
  .woocommerce div.product div.images { margin-bottom: 30px; }
  .woocommerce div.product .product_title { font-size: 42px; line-height: 1.05; overflow-wrap: anywhere; }
  .woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
  .woocommerce div.product form.cart .button { flex: 1 1 220px; }
  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td { padding-block: 12px; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .notice-bar { font-size: 11px; }
  .brand { max-width: calc(100% - 56px); font-size: 16px; }
  .header-actions { gap: 8px; }
  .menu-toggle { width: 42px; min-height: 42px; }
  .hero { min-height: 620px; background-position: 73% center; }
  .hero::before { background: linear-gradient(90deg, rgba(21,21,21,.8) 0%, rgba(21,21,21,.62) 58%, rgba(21,21,21,.22) 100%); }
  .hero-inner { padding-block: 42px 48px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 330px; font-size: 44px; line-height: .96; }
  .hero-lede { max-width: 330px; margin: 20px 0 24px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 330px); max-width: none; }
  .hero .button { width: 100%; }
  .hero .button--ghost { background: rgba(21,21,21,.72); }
  .hero-note { max-width: 330px; line-height: 1.45; }
  .section { padding: 48px 0; }
  .section-head { gap: 14px; margin-bottom: 22px; }
  .section-head h2, .editorial-copy h2 { font-size: 36px; line-height: 1.05; }
  .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .product-media, .woocommerce ul.products li.product a img { aspect-ratio: 1; }
  .product-media img, .woocommerce ul.products li.product a img { object-fit: contain; }
  .product-meta h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; }
  .step { padding: 24px; }
  .editorial-media { min-height: 300px; }
  .editorial-copy { padding: 40px 20px; }
  .page-shell { padding: 34px 0 52px; }
  .page-shell h1 { margin-top: 0; font-size: 38px; line-height: 1.05; }
  .entry-content h2 { font-size: 27px; line-height: 1.15; }
  .entry-content p, .entry-content li { font-size: 15px; }
  .woocommerce div.product .product_title { font-size: 32px; line-height: 1.08; }
  .woocommerce div.product .woocommerce-product-gallery { margin-bottom: 24px; }
  .woocommerce div.product form.cart,
  .woocommerce div.product form.cart .button,
  .woocommerce div.product form.cart .quantity { width: 100%; }
  .woocommerce div.product form.cart .quantity .qty { width: 100%; min-height: 46px; }
  .woocommerce .woocommerce-tabs ul.tabs { display: flex; overflow-x: auto; padding-inline: 0; }
  .woocommerce-cart table.cart,
  .woocommerce-checkout-review-order,
  .woocommerce form.checkout_coupon,
  .woocommerce form.login,
  .woocommerce form.register { padding: 14px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .site-footer { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
