/*
Theme Name: Tornza Migration
Author: Codex
Description: Migrated storefront theme with Tornza product catalog and policy pages.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: tornza-migration
*/

:root {
  --tz-ink: #171717;
  --tz-muted: #666;
  --tz-line: #e7e7e7;
  --tz-paper: #fff;
  --tz-soft: #f7f7f4;
  --tz-accent: #c3543d;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--tz-paper);
  color: var(--tz-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

.tz-topbar {
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 10px 18px;
  text-align: center;
  text-transform: uppercase;
}

.tz-header {
  align-items: center;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--tz-line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.tz-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .2em;
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.tz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tz-nav a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.tz-search {
  align-items: center;
  border: 1px solid var(--tz-line);
  display: flex;
  min-width: 260px;
}

.tz-search input {
  border: 0;
  flex: 1;
  font-size: 13px;
  min-width: 0;
  padding: 11px 12px;
}

.tz-search button {
  background: var(--tz-ink);
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 14px;
  text-transform: uppercase;
}

.tz-hero {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  padding: 0;
}

.tz-hero-tile {
  align-items: center;
  background: #ddd;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.tz-hero-tile::after {
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.48));
  content: "";
  inset: 0;
  position: absolute;
}

.tz-hero-tile img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.tz-hero-tile span,
.tz-hero-tile strong {
  position: relative;
  z-index: 1;
}

.tz-hero-tile span {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.tz-hero-tile strong {
  border-bottom: 2px solid currentColor;
  font-size: 13px;
  letter-spacing: .1em;
  margin-top: 18px;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.tz-category-strip {
  border-bottom: 1px solid var(--tz-line);
  border-top: 1px solid var(--tz-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.tz-category-strip a {
  border-right: 1px solid var(--tz-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 15px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.tz-brand-intro {
  display: grid;
  gap: 1px;
  grid-template-columns: 1.1fr 1fr;
  background: var(--tz-line);
  padding: 1px;
}

.tz-brand-intro > div {
  background: #fff;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 62px);
}

.tz-brand-intro h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.03;
  margin: 0 0 18px;
  max-width: 820px;
  text-transform: uppercase;
}

.tz-brand-intro p {
  color: var(--tz-muted);
  font-size: 17px;
  line-height: 1.7;
}

.tz-brand-points {
  display: grid;
  gap: 18px;
}

.tz-brand-points article {
  border-bottom: 1px solid var(--tz-line);
  padding-bottom: 18px;
}

.tz-brand-points article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tz-brand-points h3 {
  font-size: 18px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tz-wrap {
  padding: 42px clamp(16px, 4vw, 48px);
}

.tz-eyebrow {
  color: var(--tz-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tz-section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tz-section-head h2 {
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.tz-grid {
  display: grid;
  gap: 24px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tz-card {
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tz-card:hover {
  box-shadow: 0 12px 30px rgba(21, 21, 21, .08);
  transform: translateY(-2px);
}

.tz-card img {
  aspect-ratio: 1;
  background: var(--tz-soft);
  display: block;
  object-fit: cover;
  width: 100%;
}

.woocommerce ul.products li.product img.tornza-wc-external-image,
.tornza-wc-external-image {
  aspect-ratio: 1;
  background: var(--tz-soft);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.woocommerce div.product div.images .tornza-wc-external-image {
  aspect-ratio: 1;
  object-fit: contain;
}

.tz-card-body {
  padding: 13px 2px 0;
}

.tz-card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  min-height: 38px;
}

.tz-price {
  color: var(--tz-accent);
  font-weight: 900;
}

.tz-compare {
  color: #999;
  margin-left: 8px;
  text-decoration: line-through;
}

.tz-card-action {
  border-bottom: 1px solid currentColor;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-top: 10px;
  text-transform: uppercase;
}

.tz-text-link {
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.tz-btn {
  background: var(--tz-ink);
  border: 1px solid var(--tz-ink);
  border-radius: 2px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 13px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.tz-btn.secondary {
  background: transparent;
  color: var(--tz-ink);
}

.tz-story {
  background: var(--tz-soft);
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  padding: 1px;
}

.tz-story > div {
  background: #fff;
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 70px);
}

.tz-story h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tz-story p {
  color: var(--tz-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
}

.tz-compact {
  padding-top: 36px;
}

.tz-filter-row {
  border-bottom: 1px solid var(--tz-line);
  border-top: 1px solid var(--tz-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
}

.tz-filter-row a {
  border-right: 1px solid var(--tz-line);
  font-size: 12px;
  font-weight: 800;
  padding: 13px 15px;
  text-decoration: none;
  text-transform: uppercase;
}

.tz-filter-row a.active {
  background: #111;
  color: #fff;
}

.tz-journal {
  background: #f7f7f4;
  padding: 44px clamp(16px, 4vw, 48px);
}

.tz-article-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tz-article-grid article {
  background: #fff;
  border: 1px solid var(--tz-line);
  padding: clamp(22px, 3vw, 34px);
}

.tz-article-grid span {
  color: var(--tz-accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 24px;
}

.tz-article-grid h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.tz-article-grid p {
  color: var(--tz-muted);
  line-height: 1.7;
  margin: 0;
}

.tz-service-band {
  background: #111;
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1px;
}

.tz-service-band div {
  background: #171717;
  padding: clamp(24px, 4vw, 42px);
}

.tz-service-band span {
  color: var(--tz-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.tz-service-band h3 {
  font-size: 20px;
  margin: 18px 0 10px;
  text-transform: uppercase;
}

.tz-service-band p {
  color: #d0d0d0;
  line-height: 1.7;
  margin: 0;
}

.tz-grid.mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tz-newsletter {
  background: #111;
  color: #fff;
  padding: 58px 18px;
  text-align: center;
}

.tz-newsletter h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tz-newsletter p {
  color: #d4d4d4;
}

.tz-newsletter form {
  display: flex;
  justify-content: center;
  margin: 24px auto 0;
  max-width: 560px;
}

.tz-newsletter input {
  border: 0;
  flex: 1;
  font-size: 15px;
  min-width: 0;
  padding: 15px;
}

.tz-newsletter button {
  background: var(--tz-accent);
  border: 0;
  color: #fff;
  font-weight: 900;
  padding: 15px 20px;
  text-transform: uppercase;
}

.tz-page {
  margin: 0 auto;
  max-width: 960px;
  padding: 54px 18px 80px;
}

.tz-page h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.tz-policy-page {
  background: #f7f7f4;
}

.tz-policy-hero {
  background: #111;
  color: #fff;
  padding: clamp(42px, 7vw, 82px) clamp(16px, 4vw, 48px);
}

.tz-policy-hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
  margin: 0;
  max-width: 900px;
  text-transform: uppercase;
}

.tz-policy-hero p:last-child {
  color: #d8d8d8;
  font-size: 17px;
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 620px;
}

.tz-policy-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: clamp(28px, 5vw, 58px) clamp(16px, 4vw, 48px) 72px;
}

.tz-policy-nav {
  align-self: start;
  background: #fff;
  border: 1px solid var(--tz-line);
  padding: 22px;
  position: sticky;
  top: 92px;
}

.tz-policy-nav h2 {
  font-size: 13px;
  letter-spacing: .08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.tz-policy-nav a {
  border-top: 1px solid var(--tz-line);
  color: #333;
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 0;
  text-decoration: none;
}

.tz-policy-nav a.active {
  color: var(--tz-accent);
}

.tz-policy-content {
  background: #fff;
  border: 1px solid var(--tz-line);
  padding: clamp(24px, 5vw, 56px);
}

.tz-policy-content h2,
.tz-policy-content h3,
.tz-policy-content h4 {
  line-height: 1.2;
  margin: 32px 0 12px;
  text-transform: uppercase;
}

.tz-policy-content h2:first-child,
.tz-policy-content h3:first-child,
.tz-policy-content h4:first-child {
  margin-top: 0;
}

.tz-policy-content p,
.tz-policy-content li {
  color: #444;
  font-size: 16px;
  line-height: 1.8;
}

.tz-policy-content a {
  color: var(--tz-accent);
  font-weight: 700;
}

.tz-policy-content ul,
.tz-policy-content ol {
  padding-left: 22px;
}

.tz-policy-content > *:last-child {
  margin-bottom: 0;
}

.tz-product {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  padding: 54px clamp(18px, 4vw, 54px);
}

.tz-product-gallery img {
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: 4px;
  display: block;
  margin-bottom: 14px;
  width: 100%;
}

.tz-product-info {
  align-self: start;
  position: sticky;
  top: 92px;
}

.tz-product-info h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.tz-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.woocommerce-shop .site-main,
.woocommerce-page main,
.woocommerce main {
  padding: clamp(28px, 4vw, 54px) clamp(16px, 4vw, 54px);
}

.woocommerce .woocommerce-breadcrumb {
  color: var(--tz-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.woocommerce div.product {
  margin: 0 auto;
  max-width: 1240px;
}

.woocommerce div.product::after {
  clear: both;
  content: "";
  display: table;
}

.woocommerce div.product div.images {
  float: left;
  margin: 0 0 32px;
  width: 53%;
}

.woocommerce div.product div.summary {
  float: right;
  margin: 0 0 32px;
  width: 42%;
}

.woocommerce div.product div.images {
  background: #f6f6f2;
  border: 1px solid var(--tz-line);
  padding: clamp(12px, 2vw, 20px);
}

.woocommerce div.product div.images img {
  aspect-ratio: 1;
  object-fit: contain;
  width: 100%;
}

.woocommerce div.product div.summary {
  align-self: start;
  border: 1px solid var(--tz-line);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  z-index: 5;
}

.woocommerce div.product .product_title {
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.tz-purchase-kicker {
  color: var(--tz-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tz-product-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tz-product-assurance span {
  background: #f4f4f1;
  border: 1px solid var(--tz-line);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--tz-accent);
  font-size: 26px;
  font-weight: 900;
  margin: 16px 0 20px;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce ul.products li.product .price del {
  color: #999;
  opacity: 1;
}

.woocommerce div.product form.cart {
  align-items: stretch;
  border-bottom: 1px solid var(--tz-line);
  border-top: 1px solid var(--tz-line);
  display: flex;
  gap: 10px;
  margin: 20px 0;
  padding: 16px 0;
}

.woocommerce .quantity .qty {
  border: 1px solid var(--tz-line);
  font-size: 16px;
  height: 48px;
  text-align: center;
  width: 70px;
}

.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: #111;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  min-height: 48px;
  padding: 15px 24px;
  text-transform: uppercase;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--tz-accent);
  color: #fff;
}

.tz-product-note {
  background: #f8f8f5;
  border: 1px solid var(--tz-line);
  margin: 16px 0;
  padding: 16px;
}

.tz-product-note h2 {
  font-size: 13px;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tz-product-note p {
  color: #444;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.tz-trust-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tz-trust-panel div {
  border: 1px solid var(--tz-line);
  padding: 12px;
}

.tz-trust-panel strong {
  display: block;
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tz-trust-panel span {
  color: var(--tz-muted);
  font-size: 14px;
  line-height: 1.5;
}

.woocommerce div.product .product_meta {
  color: var(--tz-muted);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.woocommerce div.product .woocommerce-tabs {
  border-top: 1px solid var(--tz-line);
  clear: both;
  margin-top: 16px;
  padding-top: 36px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 22px;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom: 1px solid var(--tz-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: #fff;
  border: 1px solid var(--tz-line);
  clear: both;
  padding: clamp(22px, 3vw, 34px);
}

.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li {
  line-height: 1.7;
  max-width: 900px;
  overflow-wrap: anywhere;
}

.woocommerce div.product .related.products {
  clear: both;
  margin-top: 42px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.woocommerce ul.products {
  display: grid;
  gap: 28px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  margin: 0;
  width: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 40px;
  padding: 12px 0 0;
}

.woocommerce ul.products li.product .price {
  color: var(--tz-accent);
  font-size: 15px;
  font-weight: 900;
}

.woocommerce span.onsale {
  background: var(--tz-accent);
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  left: 12px;
  min-height: auto;
  min-width: auto;
  padding: 7px 9px;
  right: auto;
  text-transform: uppercase;
  top: 12px;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  margin: 0 auto;
  max-width: 1180px;
}

.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout {
  background: #fff;
  border: 1px solid var(--tz-line);
  padding: clamp(18px, 3vw, 32px);
}

.woocommerce .cart_totals,
.woocommerce-checkout-review-order {
  border: 1px solid var(--tz-line);
  padding: 22px;
}

.tz-footer {
  background: #f2f2ef;
  border-top: 1px solid var(--tz-line);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 2fr;
  padding: 44px clamp(16px, 4vw, 48px);
}

.tz-footer h2 {
  font-size: 14px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tz-footer-note {
  color: var(--tz-muted);
  max-width: 360px;
}

.tz-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tz-footer-links a {
  font-size: 13px;
  text-decoration: none;
}

.tz-copy {
  border-top: 1px solid #ddd;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
}

@media (max-width: 980px) {
  .tz-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tz-search {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .tz-hero,
  .tz-brand-intro,
  .tz-product,
  .tz-story,
  .tz-article-grid,
  .tz-service-band,
  .tz-policy-layout,
  .tz-footer {
    grid-template-columns: 1fr;
  }

  .tz-policy-nav {
    position: static;
  }

  .tz-grid,
  .tz-grid.mini,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    float: none;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .tz-grid,
  .tz-grid.mini,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .tz-hero,
  .tz-hero-tile {
    min-height: 380px;
  }

  .tz-newsletter form {
    flex-direction: column;
  }
}
