/*
Theme Name: TeeVCD Campaign
Description: A product-first WooCommerce storefront for TeeVCD graphic apparel.
Version: 1.0.1
Requires at least: 6.9
Requires PHP: 8.1
Text Domain: teevcd-campaign
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --canvas: #fbfaf7;
  --paper: #fffefb;
  --ink: #212b25;
  --muted: #4e625b;
  --forest: #185942;
  --forest-dark: #123e30;
  --sage: #e7eee6;
  --line: #d7ded6;
  --radius: 16px;
  --content: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
body, input, select, textarea, button { font-family: var(--font); }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--forest); text-underline-offset: .18em; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(38px, 5.5vw, 68px); }
h2 { font-size: clamp(29px, 3.5vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 25px); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100000; top: 12px; left: 12px; background: var(--paper); padding: 12px 18px; color: var(--ink); }
.eyebrow { color: var(--forest); font-weight: 700; font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .search-fields button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 16px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 9px; font: 700 14px/1.3 var(--font); color: var(--ink); background: var(--paper); text-decoration: none;
}
.button-primary, .woocommerce :is(a,button,input).button.alt, .search-fields button { border-color: var(--forest); color: #fff; background: var(--forest); }
.button-primary:hover, .woocommerce :is(a,button,input).button.alt:hover, .search-fields button:hover { border-color: var(--forest-dark); background: var(--forest-dark); color: #fff; }
.text-link { white-space: nowrap; font-weight: 700; font-size: 14px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.announcement { padding: 7px var(--gutter); color: #fff; background: var(--forest-dark); text-align: center; font-size: 12px; font-weight: 600; }
.site-header { position: relative; z-index: 4; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-row { min-height: 73px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 3vw, 36px); }
.brand { min-width: 0; }
.brand :is(.brand-link,.custom-logo-link) { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { width: clamp(113px, 15vw, 151px); max-height: 58px; object-fit: contain; object-position: left; }
.primary-nav { justify-self: center; }
.primary-nav ul, .site-footer ul { list-style: none; padding: 0; margin: 0; }
.primary-nav > ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(12px, 2.8vw, 32px); }
.primary-nav li { position: relative; }
.primary-nav a { color: var(--ink); display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--forest); text-decoration: underline; }
.primary-nav li > .sub-menu { position: absolute; top: 100%; left: 0; display: none; min-width: 170px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.primary-nav li:is(:hover,:focus-within) > .sub-menu { display: block; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 8px; }
.icon-button:hover { background: var(--sage); }
.menu-toggle { display: none; }
.menu-icon { width: 19px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ''; position: absolute; left: 0; top: 3px; width: 13px; border-top: 2px solid currentColor; }
.search-panel > summary { list-style: none; }
.search-panel > summary::-webkit-details-marker { display: none; }
.search-icon { display: block; width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 100%; position: relative; }
.search-icon::after { content: ''; background: currentColor; height: 2px; width: 7px; position: absolute; bottom: -3px; right: -5px; transform: rotate(45deg); }
.search-form { position: absolute; top: calc(100% + 8px); right: var(--gutter); z-index: 2; width: min(420px, calc(100% - 2 * var(--gutter))); background: var(--paper); padding: 16px; box-shadow: 0 8px 26px #212b251c; border: 1px solid var(--line); border-radius: 12px; }
.search-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.search-fields { display: flex; gap: 8px; }
.search-fields input { min-width: 0; flex: 1; }
input:not([type=checkbox],[type=radio],[type=button],[type=submit],[type=hidden]), select, textarea { color: var(--ink); background: var(--paper); border: 1px solid #bccabf; border-radius: 7px; font: inherit; padding: 9px 11px; }
.bag-link { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 4px 0 8px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bag-count { display: inline-grid; min-width: 25px; min-height: 25px; padding-inline: 4px; place-items: center; background: var(--sage); color: var(--forest-dark); font-size: 12px; border-radius: 16px; }
.checkout-back { justify-self: end; color: var(--forest); font-size: 14px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.checkout-back:hover { text-decoration: underline; }

.home-hero { margin-top: clamp(20px, 3.8vw, 48px); display: grid; grid-template-columns: 46% 54%; min-height: 500px; overflow: hidden; border-radius: 21px; background: var(--sage); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(23px, 5vw, 76px); }
.hero-copy h1 { font-size: clamp(46px, 6.25vw, 91px); line-height: .96; margin: 12px 0 17px; letter-spacing: -.082em; max-width: 8ch; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 29ch; }
.hero-copy .button { margin-top: 26px; min-height: 51px; }
.hero-media { min-height: 100%; position: relative; background: #53755c; }
.hero-media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 56% 45%; }
.section { margin-block: clamp(37px, 6vw, 76px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 13px; margin-bottom: clamp(13px, 2vw, 24px); }
.product-grid, .collection-list { display: grid; gap: clamp(12px, 2vw, 23px); margin: 0; padding: 0; list-style: none; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-product a { display: block; color: var(--ink); text-decoration: none; }
.home-product a:hover h3 { text-decoration: underline; text-underline-offset: .14em; }
.home-product-image { aspect-ratio: 1 / 1.08; background: var(--sage); border-radius: 13px; overflow: hidden; }
.home-product-image img { width: 100%; height: 100%; object-fit: cover; }
.home-product h3 { margin: 12px 0 4px; font-size: clamp(16px, 2vw, 23px); }
.home-price { color: var(--muted); font-weight: 600; font-size: 14px; }
.catalog-empty { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 4vw, 45px); min-height: 165px; padding: clamp(13px, 2vw, 23px); border: 1px solid var(--line); border-radius: 13px; }
.catalog-empty img { width: clamp(79px, 13vw, 135px); aspect-ratio: 1 / 1.06; object-fit: cover; border-radius: 8px; }
.catalog-empty h3 { margin-bottom: 6px; }
.catalog-empty p { color: var(--muted); }
.collection-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-list a { min-height: 66px; padding: 14px 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--forest-dark); font-size: 17px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 13px; }
.collection-list a:hover { background: var(--sage); }
.made-to-order { padding: clamp(18px, 4vw, 40px); border-radius: 16px; background: var(--sage); display: grid; grid-template-columns: 1fr minmax(0, 42%); align-items: center; gap: 18px; }
.made-to-order h2 { margin-top: 7px; }
.made-to-order > p { color: var(--muted); }
.home-help details { border-top: 1px solid var(--line); scroll-margin-top: 18px; }
.home-help details:last-child { border-bottom: 1px solid var(--line); }
.home-help summary { padding: 13px 0; font-weight: 700; }
.home-help details p { padding: 0 0 14px; max-width: 68ch; color: var(--muted); }

.site-footer { background: var(--forest-dark); color: #fcfaf4; padding-top: clamp(27px, 5vw, 54px); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(18px, 5vw, 60px); margin-bottom: 32px; }
.footer-brand p { color: #d1ded3; max-width: 28ch; margin-top: 9px; }
.footer-grid h2 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 8px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 38px; font-size: 14px; color: #e3ede2; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; padding-block: 14px; border-top: 1px solid #ffffff38; gap: 8px 20px; color: #d1ded3; font-size: 13px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer--checkout { background: transparent; color: var(--muted); padding: 0; }
.site-footer--checkout .footer-bottom { color: var(--muted); border-color: var(--line); }
.site-footer--checkout :focus-visible { outline-color: var(--forest); }

.page-main, .commerce-main { padding-block: clamp(25px, 5vw, 58px) clamp(45px, 7vw, 85px); min-height: 46vh; }
.page-title-group { margin-bottom: 24px; }
.page-body :where(p,h2,h3,ul,ol) + :where(p,h2,h3,ul,ol) { margin-top: 1em; }
.post-entry { margin-block: 20px; }
.page-missing p { margin: 12px 0 18px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); margin-bottom: 21px; line-height: 1.5; }
.woocommerce .woocommerce-breadcrumb a { color: var(--forest); }
.woocommerce-products-header { margin-bottom: 18px; }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1.08; object-fit: cover; background: var(--sage); border-radius: 13px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: clamp(17px, 2.3vw, 23px); color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--forest-dark); font-weight: 700; }
.woocommerce span.onsale { background: var(--forest); color: #fff; }
.woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message, .woocommerce .woocommerce-error { border-top-width: 2px; background: var(--sage); color: var(--ink); }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message { border-top-color: var(--forest); }
.woocommerce .woocommerce-info::before, .woocommerce .woocommerce-message::before { color: var(--forest); }

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--radius); overflow: hidden; background: var(--sage); }
.woocommerce div.product div.images .flex-viewport { border-radius: var(--radius); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: min(20%, 90px); float: none; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.woocommerce div.product .summary.entry-summary { padding-top: clamp(4px, 1.5vw, 19px); }
.woocommerce div.product .product_title { color: var(--ink); line-height: 1.02; font-size: clamp(35px, 5vw, 62px); margin-bottom: 11px; }
.woocommerce div.product .product-kicker { margin-bottom: 8px; }
.woocommerce div.product .summary p.price { font-size: clamp(23px, 3vw, 32px); margin-block: 10px 12px; }
.woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 15px; }
.woocommerce div.product form.cart { padding-top: 15px; border-top: 1px solid var(--line); margin-bottom: 19px; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; }
.woocommerce div.product form.cart .variations :is(th,td) { display: block; text-align: left; line-height: 1.45; }
.woocommerce div.product form.cart .variations th { padding-top: 9px; padding-bottom: 6px; }
.woocommerce div.product form.cart .variations td { padding-bottom: 6px; }
.woocommerce div.product form.cart .variations select { max-width: 100%; min-height: 43px; }
.woocommerce div.product form.cart .reset_variations { color: var(--forest); font-size: 13px; margin-left: 0; padding: 5px 0; }
.woocommerce div.product form.cart .product-size-guide { font-size: 13px; margin-bottom: 12px; }
.variation-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 5px; }
.variation-options button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; font: 600 13px/1.25 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.variation-options button[aria-pressed=true] { color: var(--forest); border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.variation-options button:disabled { cursor: not-allowed; opacity: .43; }
.variation-options .swatch { width: 15px; height: 15px; margin-right: 5px; background: var(--swatch); border-radius: 50%; border: 1px solid #212b2552; }
.variation-selection { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 9px; }
.variation-options--color { gap: 5px; }
.variation-options button.variation-color { width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: transparent; border-color: transparent; }
.variation-options button.variation-color[aria-pressed=true] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.variation-options button.variation-color .swatch { width: 28px; height: 28px; margin: 0; flex-shrink: 0; }
.variation-options--style button { padding-inline: 14px; text-align: left; }
.woocommerce .quantity .qty { width: 4.3em; min-height: 46px; }
.woocommerce div.product form.cart .single_add_to_cart_button { min-height: 46px; min-width: min(160px, 65%); }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled { background: var(--forest); color: #fff; opacity: .58; }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 7px 7px 0 0; margin-right: 2px; background: var(--sage); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--paper); }
.related.products, .up-sells.upsells.products { margin-top: 28px; }
.related.products > h2, .up-sells.upsells.products > h2 { margin-bottom: 15px; }

.woocommerce-cart .page-body, .teevcd-checkout .page-body { color: var(--ink); }
.teevcd-checkout .header-row { grid-template-columns: 1fr auto; }
.teevcd-checkout .page-title-group h1 { font-size: clamp(34px, 4.5vw, 54px); }
.teevcd-checkout .page-main { min-height: 65vh; }
.wc-block-checkout, .wc-block-cart { max-width: none; }
.wc-block-components-sidebar, .woocommerce-checkout #order_review { color: var(--ink); }
.wc-block-checkout__sidebar { padding-top: 14px; }
.wc-block-components-order-summary, .woocommerce-checkout-review-order-table { background: var(--paper); }
.wc-block-checkout .wc-block-components-text-input input { border-radius: 7px; border-color: #bccabf; }
.wc-block-components-button:not(.is-link), .woocommerce #payment #place_order { min-height: 46px; font-weight: 700; border-radius: 8px; }
.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { background: var(--forest); color: #fff; }
.wc-block-components-checkout-place-order-button:hover, .wc-block-cart__submit-button:hover { background: var(--forest-dark); color: #fff; }
.woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout #order_review_heading { margin-bottom: 14px; }
.woocommerce-checkout form.checkout h3 { line-height: 1.15; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { min-height: 44px; }
.woocommerce table.shop_table { background: var(--paper); border-color: var(--line); border-radius: 9px; }
.woocommerce-checkout #payment { background: var(--sage); border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box { background: var(--paper); color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--paper); }

@media (max-width: 800px) {
  .header-row { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; }
  .header-row .brand { justify-self: center; }
  .header-row .primary-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; padding-bottom: 8px; }
  .primary-nav > ul { justify-content: flex-start; }
  .primary-nav li > .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 14px; background: transparent; border: 0; }
  .js .menu-toggle { display: grid; }
  .js .header-row .primary-nav { display: none; grid-row: auto; position: absolute; top: 100%; left: 0; background: var(--paper); padding: 7px var(--gutter) 13px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 22px #212b2515; }
  .js .primary-nav.is-open { display: block; }
  .js .primary-nav > ul { display: block; }
  .js .primary-nav li > a { border-bottom: 1px solid var(--line); }
  .header-actions { justify-self: end; }
  .teevcd-checkout .header-row .brand { justify-self: start; }
  .home-hero { min-height: 400px; grid-template-columns: 48% 52%; }
  .hero-copy { padding: clamp(20px, 4vw, 36px); }
}
@media (max-width: 610px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 14px; }
  .hero-copy h1 { max-width: 10ch; font-size: clamp(49px, 10vw, 64px); }
  .hero-copy .button { margin-top: 18px; }
  .hero-media { aspect-ratio: 1.25; min-height: 0; }
  .hero-media img { object-position: 55% 44%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-list { grid-template-columns: 1fr; gap: 8px; }
  .collection-list a { min-height: 49px; }
  .made-to-order { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .woocommerce div.product div.images, .woocommerce div.product .summary.entry-summary { float: none; width: 100%; }
  .woocommerce-checkout #payment div.form-row { padding-inline: 10px; }
}
@media (max-width: 365px) {
  .header-actions { gap: 0; }
  .header-actions .icon-button { width: 38px; }
  .header-row { gap: 4px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { font-size: 12px; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
