/*
Theme Name: YH Jersey Store
Theme URI: https://yh.gofansbuy.com/
Author: Custom theme
Description: Classic WooCommerce storefront: centered logo, color mega menus, hero, USPs, category tiles, NEW ARRIVALS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: yh-jersey
*/

:root {
  --red: #c11e1e;
  --accent: #d43811;
  --black: #111;
  --text: #222;
  --muted: #848484;
  --line: #e6e6e6;
  --max: 1260px;
  --header: 92px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.notice {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: lowercase;
  padding: 8px 16px;
}

.header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-mid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header);
  gap: 16px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-right { justify-content: flex-end; }

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #333;
  display: grid;
  place-items: center;
}

.logo img {
  width: 210px;
  height: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}

.account { font-size: 13px; color: #444; }

.cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.badge {
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.search-panel {
  display: none;
  padding: 0 0 16px;
}
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 8px; }
.search-panel input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
}
.search-panel button {
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 0 0 14px;
  margin: 0;
}

.nav > li { list-style: none; position: relative; }

.nav > li > a {
  display: inline-block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav > li > a:hover,
.nav > li:hover > a { color: var(--red); }

.mega {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: min(920px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  padding: 28px 32px;
  z-index: 30;
}

.nav > li:hover .mega { display: grid; }

.colors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.colors a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
}

.colors a:hover { color: var(--red); }

.hero { padding: 28px 0 8px; }
.hero img { width: 100%; height: auto; }
.hero-fallback {
  min-height: 360px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cat-fallback {
  height: 320px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cat-fallback-football { background: #c11e1e; }
.cat-fallback-baseball { background: #1a1a1a; }

.usps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0 18px;
}

.usp { display: flex; align-items: center; gap: 14px; }

.usp-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  flex: none;
}

.usp h3 { margin: 0 0 4px; font-size: 15px; }
.usp p { margin: 0; font-size: 13px; color: var(--muted); }

.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0 8px;
}

.cat { position: relative; overflow: hidden; min-height: 280px; }
.cat img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .45s ease;
}
.cat:hover img { transform: scale(1.06); }
.cat .shop {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  border: 0;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.arrivals { padding: 42px 0 64px; }
.arrivals h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.card { position: relative; }
.thumb { position: relative; background: #f6f6f6; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.meta { padding-top: 12px; text-align: center; }
.meta h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.price { color: var(--red); font-weight: 700; font-size: 15px; }

.empty-arrivals {
  text-align: center;
  color: var(--muted);
  padding: 24px 0 8px;
}

.page-main,
.shop-wrap { padding: 32px 0 64px; }
.page-main h1 { font-size: 28px; margin: 0 0 20px; }

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer h4 {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: .08em;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 10px; }
.footer a { font-size: 14px; color: #555; }
.footer a:hover { color: var(--red); }

.legal {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
  font-size: 13px;
  color: #666;
}

.pay {
  height: 22px;
  width: 220px;
  background: linear-gradient(90deg, #222 0 18%, #fff 18% 22%, #1a1f71 22% 40%, #eb001b 40% 58%, #f79e1b 58% 76%, #003087 76% 100%);
  border-radius: 3px;
  opacity: .85;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product { width: auto; margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.woocommerce ul.products li.product .price {
  display: block;
  text-align: center;
  color: var(--red);
}
.woocommerce span.onsale {
  background: var(--red);
  border-radius: 0;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: #111;
  color: #fff;
  border-radius: 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--red);
  color: #fff;
}

@media (max-width: 980px) {
  .usps, .grid, .footer-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .logo img { width: 160px; }
}

@media (max-width: 640px) {
  .cats, .usps, .grid, .header-mid, .footer-grid, .legal, .woocommerce ul.products { grid-template-columns: 1fr; }
  .header-mid { display: flex; justify-content: space-between; }
  .account { display: none; }
}
