/*
Theme Name: Branded Apparel Direct
Theme URI: https://brandedappareldirect.com
Author: Branded Apparel Direct
Description: Black-and-red storefront for brandedappareldirect.com, rebuilt from the Shopify theme (Horizon 4.4 + custom BAD home page) for WordPress and WooCommerce. Pairs with the BAD Package Builder plugin.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.5
License: GPL-2.0-or-later
Text Domain: branded-apparel-direct
*/

/* ---------- Fonts (Inter, self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bad-red: #e3262f;
  --bad-red-dark: #c41d25;
  --bad-bg: #000000;
  --bad-ink: #ffffff;
  --bad-soft: #d4d6da;
  --bad-muted: #a9adb4;
  --bad-line: #262626;
  --bad-card: #0e0e0e;
  --bad-divider: #e8e8e8;
  --bad-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading--family: var(--bad-font);
  --bad-header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bad-bg); color: var(--bad-ink); font-family: var(--bad-font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--bad-red); }
h1, h2, h3, h4, h5, h6 { font-family: var(--bad-font); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--bad-red); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; background: #fff; color: #000; padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.site-main { outline: none; min-height: 50vh; }
.bad-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.bad-btn, .bh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; border: 0; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, color .15s, transform .15s; }
.bad-btn--red, .bh-btn--red { background: var(--bad-red); color: #fff !important; }
.bad-btn--red:hover, .bh-btn--red:hover { background: var(--bad-red-dark); transform: translateY(-1px); color: #fff; }
.bh-btn--ghost { border: 2px solid #fff; color: #fff !important; background: transparent; }
.bh-btn--ghost:hover { background: #fff; color: #000 !important; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; border-radius: 6px; position: relative; text-decoration: none; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Announcement bar ---------- */
.announce { background: #000; border-bottom: 1px solid var(--bad-divider); }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.announce__track { flex: 1; text-align: center; font-size: 14px; line-height: 1.4; }
.announce__item { margin: 0; }
.announce__item a { text-decoration: none; }
.announce__item a:hover { text-decoration: underline; color: #fff; }
.announce__arrow { flex: none; width: 32px; height: 32px; border: 0; background: none; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.announce__arrow:hover { background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-top { position: sticky; top: 0; z-index: 50; background: #000; }
.admin-bar .site-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-top { top: 0; } }
.site-header { background: #000; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--bad-header-h); }
.site-header__menu-btn { display: none; margin-left: -8px; }
.site-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: #fff; }
.site-logo .site-logo__img { display: block; height: 56px; width: auto; max-width: 220px; object-fit: contain; } /* .site-logo prefix: beats WooCommerce's ".woocommerce img { height: auto }" on shop pages */
.site-logo--text { flex-direction: column; line-height: 1; }
.site-logo__mark { font-size: 34px; font-weight: 700; font-style: italic; letter-spacing: -.04em; color: #fff; text-shadow: 3px 0 0 var(--bad-red); }
.site-logo__sub { font-size: 9px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-top: 3px; }
.site-nav { flex: 1; min-width: 0; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.site-nav a { display: block; padding: 8px 0; font-size: 14px; color: #d4d4d4; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: #fff; }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.cart-count.is-empty { display: none; }
.site-search { border-top: 1px solid var(--bad-line); background: #050505; padding: 14px 0; }
.site-search__form { display: flex; gap: 10px; align-items: center; }
.site-search__form input[type=search] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #3a3a3a; border-radius: 4px; background: #111; color: #fff; font-size: 16px; }
.site-search__form .bad-btn { min-height: 48px; padding: 0 22px; font-size: 14px; }
.site-search__form--page { margin: 0 0 28px; max-width: 640px; }

@media (max-width: 989px) {
  .site-nav { display: none; }
  .site-header__menu-btn { display: inline-flex; }
  .site-header__inner { gap: 10px; }
  .site-logo { margin: 0 auto 0 4px; }
  .site-logo .site-logo__img { height: 44px; max-width: 160px; }
  .site-header__account { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #000; border-right: 1px solid var(--bad-line); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bad-line); }
.drawer__head .site-logo .site-logo__img { height: 40px; }
.drawer__nav .menu { list-style: none; margin: 0; padding: 8px 0; }
.drawer__nav a { display: block; padding: 14px 20px; font-size: 17px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #141414; }
.drawer__foot { margin-top: auto; padding: 18px 20px; display: grid; gap: 10px; font-size: 14px; color: var(--bad-muted); }
.drawer__foot a { text-decoration: none; }

/* ---------- Home (from the Shopify "BAD home page" section) ---------- */
.bad-home { --bh-red: #e3262f; --bh-red-dark: #c41d25; --bh-ink: #ffffff; --bh-soft: #d4d6da; --bh-muted: #a9adb4; --bh-line: #262626; --bh-card: #0e0e0e; background: #000; color: var(--bh-ink); }
.bad-home a, .bad-collection a.bh-card, .bad-collection a.bh-brand { text-decoration: none; color: inherit; }
.bad-home p, .bad-home h1, .bad-home h2, .bad-home h3 { margin: 0; }
.bh-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.bh-eyebrow { display: inline-block; margin: 0 0 14px !important; padding: 6px 12px; background: var(--bad-red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.bh-h2 { font-family: var(--bad-font); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; font-size: clamp(28px, 3.4vw, 42px); color: #fff; margin: 0; }
.bh-sub { margin-top: 8px !important; color: var(--bad-muted); font-size: 16px; line-height: 1.5; max-width: 640px; }
.bh-sub p { margin: 0; }

.bh-hero { padding: 36px 0 40px; }
.bh-hero__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.bh-hero__title { font-family: var(--bad-font); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: -.02em; font-size: clamp(38px, 6vw, 72px); color: #fff; margin-bottom: 18px !important; }
.bh-hero__text { color: var(--bad-soft); font-size: 18px; line-height: 1.5; max-width: 560px; }
.bh-hero__text p { margin: 0; }
.bh-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.bh-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.4; color: #fff; }
.bh-checks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--bad-red); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bh-note { margin-top: 14px !important; font-size: 14px; color: var(--bad-muted); }
.bh-hero__link { display: block; }
.bh-hero__img { display: block; width: 100%; height: auto; border-radius: 6px; }

.bh-promise { background: #0b0b0b; border-top: 1px solid var(--bad-line); border-bottom: 1px solid var(--bad-line); padding: 18px 0; }
.bh-promise ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.bh-promise li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #fff; }
.bh-promise li::before { content: ""; width: 8px; height: 8px; background: var(--bad-red); transform: rotate(45deg); flex: none; }

.bh-sec { padding: 52px 0; }
.bh-sec + .bh-sec { border-top: 1px solid var(--bad-line); }
.bh-sec--tight { padding-top: 0; }
.bh-sec + .bh-sec--tight { border-top: 0; }
.bh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.bh-more { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; border-bottom: 2px solid var(--bad-red); padding-bottom: 3px; white-space: nowrap; }
.bh-more:hover { color: var(--bad-red); }

.bh-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.bh-grid > * { scroll-snap-align: start; }
.bh-grid--wrap { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
.bh-card { display: flex; flex-direction: column; background: var(--bh-card, #0e0e0e); border: 1px solid var(--bad-line); border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.bh-card:hover { border-color: var(--bad-red); transform: translateY(-2px); color: #fff; }
.bh-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.bh-card__ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 20px; background: #161616; color: var(--bad-muted); font-weight: 700; text-transform: uppercase; text-align: center; }
.bh-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.bh-tier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; max-width: 180px; }
.bh-tier span { height: 6px; background: #2c2c2c; transform: skewX(-20deg); }
.bh-tier span.is-on { background: var(--bad-red); }
.bh-tier__name { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bad-muted); }
.bh-card__name { margin: 4px 0 0 !important; font-family: var(--bad-font); font-size: 18px; font-weight: 700; line-height: 1.25; color: #fff; }
.bh-card__from { margin: 0; font-size: 16px; font-weight: 600; color: #fff; }
.bh-card__cta { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bad-red); }

.bh-callout { display: grid; grid-template-columns: 1fr; background: var(--bh-card, #0e0e0e); border: 1px solid var(--bad-line); border-radius: 6px; overflow: hidden; color: #fff; transition: border-color .15s; }
.bh-callout:hover { border-color: var(--bad-red); color: #fff; }
.bh-callout__img img { display: block; width: 100%; height: auto; }
.bh-callout__copy { padding: 24px 22px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bh-callout__from { margin-top: 10px !important; font-size: 18px; font-weight: 600; color: #fff; }
.bh-callout .bh-btn { margin-top: 18px; }

.bh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.bh-step { padding: 22px; background: var(--bh-card, #0e0e0e); border: 1px solid var(--bad-line); border-radius: 6px; }
.bh-step__n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--bad-red); color: #fff; font-weight: 700; font-size: 17px; }
.bh-step h3 { margin-bottom: 6px !important; font-family: var(--bad-font); font-size: 18px; font-weight: 700; text-transform: uppercase; color: #fff; }
.bh-step p { color: var(--bad-muted); font-size: 15px; line-height: 1.5; }

.bh-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bh-brand { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: var(--bh-card, #0e0e0e); border: 1px solid var(--bad-line); border-radius: 6px; color: #fff; transition: border-color .15s; }
.bh-brand:hover { border-color: var(--bad-red); color: #fff; }
.bh-brand__name { font-family: var(--bad-font); font-size: 18px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.bh-brand__meta { font-size: 13px; color: var(--bad-muted); }

.bh-cta { padding: 64px 0 72px; text-align: center; background: radial-gradient(ellipse at center, #1a0607 0%, #000 70%); border-top: 1px solid var(--bad-line); }
.bh-cta .bh-sub { margin: 10px auto 0 !important; }
.bh-cta .bh-btn { margin-top: 26px; }

@media (max-width: 749px) {
  .bh-actions .bh-btn { flex: 1 1 100%; }
  .bh-promise ul { justify-content: flex-start; }
}
@media (min-width: 750px) {
  .bh-grid { grid-auto-columns: 44%; }
  .bh-grid--wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-steps { grid-template-columns: repeat(2, 1fr); }
  .bh-brands { grid-template-columns: repeat(4, 1fr); }
  .bh-callout { grid-template-columns: minmax(240px, 360px) 1fr; align-items: center; }
  .bh-callout__copy { padding: 28px 36px; }
  .wrap { padding: 0 40px; }
}
@media (min-width: 990px) {
  .bh-hero { padding: 64px 0 56px; }
  .bh-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .bh-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-bottom: 0; }
  .bh-grid--wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bh-steps { grid-template-columns: repeat(4, 1fr); }
  .bh-sec { padding: 64px 0; }
}
@media (min-width: 1200px) {
  .bh-brands { grid-template-columns: repeat(7, 1fr); }
}

/* ---------- Collection / shop pages ---------- */
.bad-collection { padding: 40px 0 64px; }
.bad-collection__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.bad-collection__title { font-size: clamp(30px, 4vw, 48px); }
.bad-collection__tools { display: flex; align-items: center; gap: 16px; }
.bad-collection__count { font-size: 14px; color: var(--bad-muted); white-space: nowrap; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, select.orderby { height: 42px; padding: 0 34px 0 12px; border: 1px solid #3a3a3a; border-radius: 4px; background: #0e0e0e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; color: #fff; font-size: 14px; -webkit-appearance: none; appearance: none; }
.woocommerce-pagination { margin-top: 36px; }
.woocommerce-pagination ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; border: 0 !important; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--bad-line) !important; border-radius: 4px; text-decoration: none; padding: 0 10px !important; color: #fff !important; background: none !important; }
.woocommerce-pagination .page-numbers .current { background: var(--bad-red) !important; border-color: var(--bad-red) !important; }
.bad-search-pages { margin: 32px 0 0; padding: 0 0 0 18px; }
.bad-search-pages a { color: #fff; }

/* ---------- Product page ---------- */
.single-product .site-main { padding: 28px 0 64px; }
.bad-product__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.bad-media { display: grid; gap: 4px; }
.bad-media--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bad-media--grid .bad-media__item:first-child { grid-column: 1 / -1; }
.bad-media__item { display: block; background: #0b0b0b; cursor: zoom-in; }
.bad-media__item img { display: block; width: 100%; height: auto; }
.bad-media__ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; color: var(--bad-muted); font-weight: 700; text-transform: uppercase; text-align: center; padding: 20px; cursor: default; }
.bad-product__details { min-width: 0; }
.woocommerce div.product .bad-product__details.summary, .woocommerce div.product .bad-product__media, .woocommerce-page div.product .bad-product__details.summary { float: none; width: auto; margin: 0; clear: none; }
.woocommerce div.product.bad-product { margin-bottom: 0; }
.bad-product__details .product_title { font-size: 32px; line-height: 1.15; margin: 0 0 24px; }
.bad-product__details .price { color: #fff; font-size: 20px; font-weight: 600; }
.bad-divider { border: 0; border-top: 1px solid var(--bad-line); margin: 32px 0; }
.product-description { color: var(--bad-soft); }
.product-description strong { color: #fff; }
@media (min-width: 990px) {
  .bad-product__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .bad-product__media { position: sticky; top: 140px; }
}
.bad-zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.bad-zoom::backdrop { background: rgba(0,0,0,.88); }
.bad-zoom img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; margin: 0 auto; }
.bad-zoom__close { position: fixed; top: 14px; right: 14px; background: rgba(0,0,0,.6); }

/* ---------- Rich text ---------- */
.bad-rte { font-size: 16px; line-height: 1.65; }
.bad-rte h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.bad-rte h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.bad-rte ul, .bad-rte ol { padding-left: 1.3em; margin: 0 0 1em; }
.bad-rte li { margin: .25em 0; }
.bad-rte a { color: #fff; text-decoration: underline; text-decoration-color: var(--bad-red); text-underline-offset: 3px; }
.bad-rte a:hover { color: var(--bad-red); }
.bad-rte > *:first-child { margin-top: 0; }

/* ---------- Pages ---------- */
.bad-page { padding: 44px 0 72px; }
.bad-page .bh-wrap { max-width: 860px; }
.bad-page--wide .bh-wrap { max-width: 1240px; }
.bad-page__head { margin-bottom: 28px; }
.bad-page__head .bh-h2 { font-size: clamp(30px, 4vw, 44px); }
.bad-404 { text-align: left; padding: 80px 0; }
.bad-posts { display: grid; gap: 32px; }

/* Forms (contact, account, etc. on dark pages) */
.bad-form { margin-top: 28px; }
.bad-form form { display: grid; gap: 16px; }
.bad-form__row { display: grid; gap: 16px; }
@media (min-width: 750px) { .bad-form__row { grid-template-columns: 1fr 1fr; } }
.bad-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bad-soft); }
.bad-form input, .bad-form textarea, .bad-page input[type=text], .bad-page input[type=email], .bad-page input[type=tel], .bad-page input[type=password], .bad-page textarea, .bad-page select { width: 100%; padding: 12px 14px; border: 1px solid #3a3a3a; border-radius: 4px; background: #0e0e0e; color: #fff; font-size: 16px; }
.bad-form .bad-btn { justify-self: start; }
.bad-form__ok, .bad-form__err { padding: 14px 16px; border-radius: 6px; font-weight: 600; }
.bad-form__ok { background: #0f2a1c; color: #9be3b9; }
.bad-form__err { background: #2a0f0f; color: #ffb3b3; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--bad-line); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.site-footer__h { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.site-footer__about p { font-size: 15px; color: var(--bad-soft); margin: 0 0 12px; max-width: 460px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__menu .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--bad-soft); }
.site-footer__signup p { font-size: 15px; color: var(--bad-soft); margin: 0 0 14px; }
.bad-signup { display: flex; align-items: center; max-width: 380px; border: 1px solid var(--bad-divider); border-radius: 100px; padding: 4px 4px 4px 18px; }
.bad-signup input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 15px; height: 40px; outline: none; }
.bad-signup input::placeholder { color: #9a9a9a; }
.bad-signup button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.bad-signup button:hover { background: var(--bad-red); color: #fff; }
.bad-signup__msg { margin: 10px 0 0 !important; font-size: 14px; color: var(--bad-soft); }
.site-footer__bottom { border-top: 1px solid var(--bad-divider); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 22px; font-size: 12px; color: var(--bad-soft); }
.site-footer__copy { margin: 0; }
.site-footer__policies .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 750px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
}

/* ---------- WooCommerce: notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: 6px; }
.bad-collection .woocommerce-message, .bad-collection .woocommerce-info, .bad-collection .woocommerce-error,
.single-product .woocommerce-message, .single-product .woocommerce-info, .single-product .woocommerce-error { background: #111; color: #fff; border-top-color: var(--bad-red); }
.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before { color: var(--bad-red); }

/* ---------- Cart, checkout and account: white panel (like Shopify checkout) ---------- */
.bad-light .bad-page__body { background: #fff; color: #121212; border-radius: 10px; padding: 24px; }
@media (min-width: 750px) { .bad-light .bad-page__body { padding: 36px 40px; } }
.bad-light .bad-page__body a { color: #121212; }
.bad-light .bad-page__body a:hover { color: var(--bad-red-dark); }
.bad-light .bad-page__body input[type=text], .bad-light .bad-page__body input[type=email], .bad-light .bad-page__body input[type=tel], .bad-light .bad-page__body input[type=password], .bad-light .bad-page__body input[type=number], .bad-light .bad-page__body textarea, .bad-light .bad-page__body select { background: #fff; color: #121212; border: 1px solid #c9c9c9; }
.bad-light .bad-page__body .wc-block-components-button:not(.is-link), .bad-light .bad-page__body .button, .bad-light .bad-page__body button.button, .bad-light .bad-page__body .wp-element-button { background: var(--bad-red); color: #fff !important; border-radius: 4px; font-weight: 700; border: 0; text-decoration: none; }
.bad-light .bad-page__body .wc-block-components-button:not(.is-link):hover, .bad-light .bad-page__body .button:hover { background: var(--bad-red-dark); }
.bad-light .wc-block-components-product-details, .bad-light .wc-block-components-product-metadata { font-size: 13px; }
.bad-light .wc-block-components-product-details__name { font-weight: 600; }
.bad-light .bad-rte a { text-decoration-color: var(--bad-red); }
/* The package's own option lines ("Package: 12 Hoodies", "Print Locations: 1 Location") repeat the receipt rows. */
.wc-block-components-product-details .wc-block-components-product-details__package, .wc-block-components-product-details .wc-block-components-product-details__print-locations { display: none !important; }
.bad-qty-fixed { display: inline-block; min-width: 24px; text-align: center; font-weight: 600; }
.woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector { display: none; }

/* ---------- Cart: on black, summary in a #121212 panel (like the Shopify cart) ---------- */
.bad-cart-dark .bad-page__body { color: #fff; }
.bad-cart-dark .bad-page__body a { color: #fff; text-decoration-color: var(--bad-red); }
.bad-cart-dark .bad-page__body a:hover { color: var(--bad-red); }
.bad-cart-dark .wc-block-cart, .bad-cart-dark .wc-block-cart .wc-block-components-product-name { color: #fff; }
.bad-cart-dark .wc-block-cart-items, .bad-cart-dark .wc-block-cart-items th, .bad-cart-dark .wc-block-cart-items td,
.bad-cart-dark .wc-block-cart-items__header, .bad-cart-dark .wc-block-cart-items__row,
.bad-cart-dark .wc-block-components-totals-wrapper, .bad-cart-dark .wc-block-components-totals-item,
.bad-cart-dark .wc-block-cart__totals-title, .bad-cart-dark .wc-block-components-panel { border-color: #333 !important; }
.bad-cart-dark .wc-block-cart-items__header { color: #b9bcc2; }
.bad-cart-dark .wc-block-components-product-details, .bad-cart-dark .wc-block-components-product-metadata { font-size: 13px; color: #d4d4d4; }
.bad-cart-dark .wc-block-components-product-details__name { font-weight: 600; color: #fff; }
.bad-cart-dark .wc-block-cart__sidebar { background: #121212; border-radius: 10px; padding: 20px 24px; color: #fff; align-self: flex-start; }
.bad-cart-dark .wc-block-components-panel__button, .bad-cart-dark .wc-block-components-totals-item__label, .bad-cart-dark .wc-block-components-totals-item__value { color: #fff; }
.bad-cart-dark .wc-block-components-totals-item__description, .bad-cart-dark .wc-block-components-totals-shipping__via { color: #b9bcc2; }
.bad-cart-dark .wc-block-cart-item__remove-link { color: #fff !important; }
.bad-cart-dark .wc-block-cart-item__remove-link:hover { color: var(--bad-red) !important; }
.bad-cart-dark .wc-block-components-text-input input, .bad-cart-dark .bad-page__body input[type=text], .bad-cart-dark .bad-page__body input[type=email], .bad-cart-dark .bad-page__body select { background: #0b0b0b !important; color: #fff !important; border: 1px solid #3d3d3d !important; }
.bad-cart-dark .wc-block-components-text-input label { color: #b9bcc2 !important; }
.bad-cart-dark .bad-page__body .wc-block-components-button:not(.is-link), .bad-cart-dark .bad-page__body .button, .bad-cart-dark .bad-page__body .wp-element-button { background: var(--bad-red); color: #fff !important; border-radius: 4px; font-weight: 700; border: 0; text-decoration: none; }
.bad-cart-dark .bad-page__body .wc-block-components-button:not(.is-link):hover, .bad-cart-dark .bad-page__body .button:hover { background: var(--bad-red-dark); }
.bad-cart-dark .wc-block-components-skeleton__element, .bad-cart-dark .wc-block-components-skeleton--cart-line-items .wc-block-components-skeleton__element { background-color: #1c1c1c !important; }
.bad-cart-dark .wc-block-cart__submit-container--sticky { background: #000; }
.bad-cart-dark .wc-block-cart__submit-container--sticky::before { box-shadow: 0 -10px 20px 10px #000 !important; }
.bad-cart-dark .wc-block-components-notice-banner { color: #121212; }
@media (max-width: 749px) { .bad-cart-dark .wc-block-cart__sidebar { padding: 16px; } }

/* Classic cart/checkout tables (if shortcodes are used instead of blocks) */
.bad-light table.shop_table { border-color: #e2e2e2; }
.bad-light .woocommerce-checkout-review-order-table .wc-item-meta, .bad-light .shop_table .wc-item-meta, .bad-light dl.variation { font-size: 13px; color: #444; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Package details in the block cart/checkout: one line each instead of a run-on sentence */
.wc-block-components-product-details > span, .wc-block-components-product-details > li { display: block; line-height: 1.45; margin: 2px 0; }
.wc-block-components-product-details > span > span[aria-hidden="true"], .wc-block-components-product-details > li > span[aria-hidden="true"] { display: none; }
.wc-block-components-product-details__name { font-weight: 600; }
