/*
Theme Name: TREVONEXA Commerce
Theme URI: https://trevnexa.com
Author: TREVONEXA GLOBAL COMMERCE INC
Description: Original WooCommerce theme for the TREVONEXA footwear store.
Version: 1.0.0
Text Domain: trevnexa
*/

:root {
  --ink: #171714;
  --paper: #ffffff;
  --soft: #f3f2ef;
  --line: #d9d8d3;
  --sage: #6f7f6b;
  --wine: #742f3a;
  --muted: #666661;
  --content: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
.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;
}
.site-shell { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}
.site-header { position: relative; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-row { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.primary-nav ul, .footer-links, .social-list { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.primary-nav a, .utility-link { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--wine); }
.brand { display: inline-flex; flex-direction: column; align-items: center; justify-self: center; line-height: 1; }
.brand-main { font-family: Georgia, "Times New Roman", serif; font-size: 27px; letter-spacing: 0; }
.brand-sub { margin-top: 7px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 2px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.menu-toggle { display: none; }

.hero { min-height: min(68vh, 760px); display: grid; align-items: stretch; background: var(--soft); }
.hero-media { position: relative; min-height: min(68vh, 760px); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-copy-inner { width: min(44%, 560px); margin-left: max(6vw, 24px); }
.eyebrow { margin: 0 0 16px; color: var(--wine); font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.08; font-weight: 500; }
h1, .section-title { font-family: Georgia, "Times New Roman", serif; }
.hero h1 { max-width: 610px; margin-bottom: 20px; font-size: clamp(44px, 5vw, 76px); }
.hero-lead { max-width: 460px; margin: 0 0 28px; color: #3f3f3a; font-size: 17px; }
.button, .wp-element-button, button.button, input.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.button:hover, .wp-element-button:hover, button.button:hover, input.button:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.button-light { background: #fff; color: var(--ink); }

.trust-strip { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 14px; border-right: 1px solid var(--line); font-size: 13px; }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 20px; height: 20px; stroke: var(--sage); fill: none; stroke-width: 1.7; }

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-title { margin-bottom: 0; font-size: 38px; }
.text-link { padding-bottom: 2px; border-bottom: 1px solid; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ecebe7; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover img { transform: scale(1.025); }
.category-card span { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; background: rgba(255,255,255,.93); font-size: 13px; font-weight: 700; text-transform: uppercase; }

.products-grid, ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; margin: 0 !important; padding: 0; }
.product-card, ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; list-style: none; }
.product-card-image, ul.products li.product a img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; margin: 0 0 15px !important; background: #f5f5f3; }
.product-card-meta { padding-right: 8px; }
.product-card h3, ul.products li.product .woocommerce-loop-product__title { margin: 0 0 5px; padding: 0 !important; font-size: 15px !important; font-weight: 600; }
.product-category-label { margin: 0 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.price, ul.products li.product .price { color: var(--ink) !important; font-size: 14px !important; font-weight: 600 !important; }
ul.products li.product .button { margin-top: 12px; }
.story-band { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 480px; background: var(--ink); color: #fff; }
.story-image { min-height: 480px; background: var(--sage); overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.story-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 64px clamp(36px, 6vw, 90px); }
.story-copy h2 { max-width: 530px; margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-size: 43px; }
.story-copy p { max-width: 530px; color: #d6d6d1; }

.content-area { min-height: 55vh; padding: 58px 0 80px; }
.content-narrow { width: min(calc(100% - 48px), 860px); margin: 0 auto; }
.page-title { margin-bottom: 30px; font-family: Georgia, "Times New Roman", serif; font-size: 48px; }
.legal-content h2 { margin-top: 36px; font-size: 26px; }
.legal-content h3 { margin-top: 28px; font-size: 20px; }
.legal-content a { text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; }
.legal-content th, .legal-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }

.site-footer { background: #20201d; color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: 48px; padding: 62px 0 50px; }
.footer-brand .brand { align-items: flex-start; }
.footer-brand .brand-main { font-size: 29px; }
.footer-brand p { max-width: 340px; color: #c9c8c1; font-size: 13px; }
.footer-title { margin-bottom: 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0 0 10px; color: #d6d5cf; font-size: 13px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid #3b3b37; color: #a9a8a2; font-size: 11px; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { margin-bottom: 60px; }
.woocommerce div.product .product_title { font-family: Georgia, "Times New Roman", serif; font-size: 42px; }
.woocommerce div.product p.price { margin: 16px 0; font-size: 20px !important; }
.woocommerce div.product form.cart .variations select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #bcbcb6;
  border-radius: 0;
  background: #fff;
}
.woocommerce .quantity .qty { min-height: 44px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sage); background: var(--soft); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sage); }
.woocommerce table.shop_table { border-radius: 0; }
.woocommerce-checkout #payment { border-radius: 0; background: var(--soft); }
.woocommerce-checkout #payment div.payment_box { background: #e7e6e1; }

@media (max-width: 980px) {
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .header-row { min-height: 68px; grid-template-columns: 44px 1fr auto; gap: 8px; }
  .menu-toggle { display: inline-grid; }
  .brand-main { font-size: 22px; }
  .brand-sub { margin-top: 5px; font-size: 7px; letter-spacing: 1.5px; }
  .primary-nav {
    position: fixed;
    inset: 102px 0 0;
    display: none;
    padding: 28px 24px;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .menu-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 17px 2px; font-size: 14px; }
  .header-actions .account-link, .header-actions .search-link { display: none; }
  .hero, .hero-media { min-height: 70vh; }
  .hero-media img { object-position: 63% center; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.28); }
  .hero-copy { z-index: 1; align-items: flex-end; padding: 0 0 45px; }
  .hero-copy-inner { width: min(88%, 520px); margin-left: 24px; }
  .hero h1 { max-width: 430px; font-size: 45px; }
  .hero-lead { max-width: 370px; font-size: 15px; }
  .category-grid, .products-grid, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .announcement { min-height: 31px; font-size: 10px; }
  .primary-nav { inset: 99px 0 0; }
  .site-shell { width: min(calc(100% - 24px), var(--content)); }
  .hero, .hero-media { min-height: 620px; max-height: 76vh; }
  .hero-media img { object-position: 68% center; }
  .hero-copy-inner { width: calc(100% - 48px); margin: 0 24px; }
  .hero h1 { margin-bottom: 14px; font-size: 39px; }
  .hero-lead { margin-bottom: 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 52px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 52px 0; }
  .section-head { align-items: flex-start; margin-bottom: 24px; }
  .section-title { font-size: 31px; }
  .category-grid { gap: 10px; }
  .category-card span { left: 9px; right: 9px; bottom: 9px; padding: 10px; font-size: 11px; }
  .products-grid, ul.products { gap: 28px 10px; }
  .product-card h3, ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; }
  ul.products li.product .button { width: 100%; min-height: 40px; padding: 8px 6px; font-size: 11px; }
  .story-band { grid-template-columns: 1fr; }
  .story-image { min-height: 360px; }
  .story-copy { padding: 44px 24px; }
  .story-copy h2 { font-size: 34px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .page-title { font-size: 38px; }
  .content-narrow { width: min(calc(100% - 32px), 860px); }
  .woocommerce div.product .product_title { font-size: 34px; }
}

