/*
Theme Name: Fast Tee Market
Theme URI: https://example.com/fast-tee-market
Author: Codex
Description: Lightweight WooCommerce theme inspired by dense discount tee storefronts. Built for speed, category browsing, and high-converting product grids.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: fast-tee-market
*/

:root {
  --ftm-black: #111111;
  --ftm-ink: #202020;
  --ftm-muted: #6f6f6f;
  --ftm-line: #e7e7e7;
  --ftm-paper: #ffffff;
  --ftm-soft: #f6f6f2;
  --ftm-red: #e52727;
  --ftm-yellow: #ffe45c;
  --ftm-green: #0f8f51;
  --ftm-radius: 6px;
  --ftm-wide: 1420px;
  --ftm-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ftm-paper);
  color: var(--ftm-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ftm-container {
  width: min(100% - 28px, var(--ftm-wide));
  margin-inline: auto;
}

.ftm-topbar {
  background: var(--ftm-yellow);
  color: var(--ftm-black);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px 12px;
  text-transform: uppercase;
}

.ftm-servicebar {
  background: var(--ftm-black);
  color: #ffffff;
  font-size: 14px;
}

.ftm-servicebar .ftm-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
  text-align: center;
}

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

.ftm-header-main {
  display: grid;
  grid-template-columns: auto minmax(220px, 560px) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.ftm-logo {
  color: var(--ftm-black);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.ftm-logo span {
  color: var(--ftm-red);
}

.ftm-search form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.ftm-search input[type="search"] {
  border: 2px solid var(--ftm-black);
  border-right: 0;
  border-radius: var(--ftm-radius) 0 0 var(--ftm-radius);
  font: inherit;
  min-width: 0;
  padding: 12px 14px;
}

.ftm-search button,
.ftm-button,
.button,
button,
input[type="submit"] {
  background: var(--ftm-red);
  border: 2px solid var(--ftm-red);
  border-radius: var(--ftm-radius);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 11px 16px;
  text-transform: uppercase;
}

.ftm-search button {
  border-radius: 0 var(--ftm-radius) var(--ftm-radius) 0;
}

.ftm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ftm-cart-link {
  background: var(--ftm-black);
  border-radius: 999px;
  color: #ffffff;
  padding: 10px 14px;
}

.ftm-category-strip {
  border-top: 1px solid var(--ftm-line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ftm-category-strip ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.ftm-category-strip a {
  background: var(--ftm-soft);
  border: 1px solid var(--ftm-line);
  border-radius: 999px;
  display: block;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 13px;
  white-space: nowrap;
}

.ftm-category-strip a:hover,
.ftm-category-strip .current-menu-item a {
  background: var(--ftm-black);
  border-color: var(--ftm-black);
  color: #ffffff;
}

.ftm-hero {
  background: radial-gradient(circle at top left, #fff6a6, #ffffff 34%), var(--ftm-soft);
  border-bottom: 1px solid var(--ftm-line);
  padding: 28px 0;
}

.ftm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.ftm-eyebrow {
  color: var(--ftm-red);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.ftm-hero h1 {
  color: var(--ftm-black);
  font-size: clamp(38px, 5vw, 74px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.ftm-hero p {
  color: var(--ftm-muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 0 18px;
}

.ftm-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ftm-hero-badges span {
  background: #ffffff;
  border: 1px solid var(--ftm-line);
  border-radius: 999px;
  font-weight: 800;
  padding: 8px 11px;
}

.ftm-hero-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ftm-hero-card {
  background: #ffffff;
  border: 1px solid var(--ftm-line);
  border-radius: var(--ftm-radius);
  box-shadow: var(--ftm-shadow);
  min-height: 180px;
  padding: 10px;
}

.ftm-hero-shirt {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, transparent 18%, rgba(0, 0, 0, 0.06) 18% 19%, transparent 19%),
    var(--shirt, #ececec);
  border-radius: 14px 14px 34px 34px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 950;
}

.ftm-section {
  padding: 28px 0;
}

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

.ftm-section-head h2,
.woocommerce-products-header__title,
.page-title {
  color: var(--ftm-black);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.ftm-view-all {
  color: var(--ftm-red);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.woocommerce ul.products,
ul.products {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product,
ul.products li.product {
  border: 1px solid var(--ftm-line);
  border-radius: var(--ftm-radius);
  margin: 0;
  overflow: hidden;
  position: relative;
  width: auto;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
  box-shadow: var(--ftm-shadow);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1;
  background: var(--ftm-soft);
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.ftm-deal-ribbon {
  background: var(--ftm-yellow);
  color: var(--ftm-black);
  font-size: 12px;
  font-weight: 950;
  left: 8px;
  padding: 5px 7px;
  position: absolute;
  text-transform: uppercase;
  top: 8px;
  z-index: 2;
}

.woocommerce-loop-product__title {
  color: var(--ftm-black);
  font-size: 16px;
  font-weight: 900;
  min-height: 46px;
  padding: 11px 12px 4px;
}

.woocommerce ul.products li.product .price {
  color: var(--ftm-red);
  display: block;
  font-size: 22px;
  font-weight: 950;
  padding: 0 12px 10px;
}

.woocommerce ul.products li.product .button {
  border-radius: 0;
  display: block;
  margin: 0;
  text-align: center;
  width: 100%;
}

.ftm-category-wall {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ftm-category-tile {
  background: var(--ftm-black);
  border-radius: var(--ftm-radius);
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  min-height: 110px;
  padding: 18px;
  text-transform: uppercase;
}

.ftm-category-tile span {
  color: var(--ftm-yellow);
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.ftm-footer {
  background: var(--ftm-black);
  color: #ffffff;
  margin-top: 32px;
  padding: 32px 0;
}

.ftm-footer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}

.ftm-footer h2,
.ftm-footer h3 {
  margin-top: 0;
  text-transform: uppercase;
}

.ftm-footer a {
  color: #ffffff;
  display: block;
  margin: 7px 0;
  opacity: 0.86;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin: 0 0 18px;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--ftm-line);
  border-radius: var(--ftm-radius);
  padding: 10px;
}

.product_meta,
.woocommerce-tabs,
.related.products,
.upsells.products {
  width: min(100% - 28px, var(--ftm-wide));
  margin-inline: auto;
}

.single-product div.product {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  width: min(100% - 28px, 1180px);
  margin: 28px auto;
}

.single-product div.product .summary {
  margin: 0;
}

.single-product .product_title {
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.single-product .price {
  color: var(--ftm-red);
  font-size: 34px;
  font-weight: 950;
}

@media (max-width: 1050px) {
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ftm-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .ftm-servicebar .ftm-container {
    flex-direction: column;
    gap: 4px;
  }

  .ftm-header-main {
    grid-template-columns: 1fr;
  }

  .ftm-actions {
    justify-content: space-between;
  }

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

  .ftm-category-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftm-footer-grid,
  .single-product div.product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ftm-hero-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .ftm-section-head {
    align-items: start;
    flex-direction: column;
  }
}
