/*
Theme Name: Kit Freak
Theme URI: https://auraismbd.com
Author: Kit Freak
Author URI: https://auraismbd.com
Description: A matchday-themed WooCommerce store theme for football jerseys and sportswear. Built for auraismbd.com.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitfreak
Tags: e-commerce, custom-menu, featured-images, full-width-template
*/

:root {
  --bg: #10130f;
  --panel: #171b16;
  --panel-2: #1e231d;
  --line: #2b322a;
  --paper: #f3f1ea;
  --red: #d8321f;
  --red-dim: #a8281a;
  --gold: #e3ae43;
  --text: #f3f1ea;
  --text-dim: #a3ab9e;
  --ink: #10130f;
  --display: 'Oswald', sans-serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}

.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.section-head h2 {
  font-size: 22px;
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.section-head a { font-size: 13px; color: var(--text-dim); font-family: var(--display); }
.section-head a:hover { color: var(--gold); }

.btn, a.button, button.button, input.button,
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px !important;
  font-family: var(--display) !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none !important;
  border-radius: 2px !important;
  background: var(--red) !important;
  color: var(--paper) !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.12s ease;
}
.btn:hover, a.button:hover, button.button:hover, input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--red-dim) !important;
}
.btn-outline { background: transparent !important; color: var(--text) !important; border: 1px solid var(--line) !important; clip-path: none; }

/* ===== Header ===== */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar {
  background: var(--red);
  color: var(--paper);
  font-size: 12px;
  text-align: center;
  padding: 6px 0;
  font-family: var(--display);
  letter-spacing: 0.03em;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
}
.site-logo {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text);
}
.site-logo span { color: var(--red); }
.header-search { flex: 1; display: flex; }
.header-search input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
}
.header-search button {
  background: var(--red);
  color: var(--paper);
  border: none;
  padding: 0 20px;
  font-family: var(--display);
  font-size: 13px;
}
.header-icons { display: flex; align-items: center; gap: 18px; font-size: 20px; }
.header-icons a { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}
.main-nav {
  display: flex;
  gap: 24px;
  padding: 0 20px 14px;
  overflow-x: auto;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.main-nav a { color: var(--text-dim); white-space: nowrap; }
.main-nav a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #171b16 0%, #10130f 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner { position: relative; padding: 76px 20px 90px; max-width: 640px; }
.hero-eyebrow { font-family: var(--display); color: var(--gold); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.hero p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 28px; max-width: 440px; }
.hero-actions { display: flex; gap: 14px; }

/* ===== Category rail ===== */
.category-rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.category-item { flex: 0 0 auto; text-align: center; width: 110px; }
.category-icon {
  width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--panel-2); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; color: var(--gold);
}
.category-item span { font-size: 12.5px; font-family: var(--display); }

/* ===== WooCommerce product grid ===== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px;
  margin: 0 !important;
}
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; } }

.woocommerce ul.products li.product {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  transition: border-color 0.12s ease;
}
.woocommerce ul.products li.product:hover { border-color: var(--gold); }
.woocommerce ul.products li.product a { display: block; }
.woocommerce ul.products li.product img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--body); font-size: 13.5px; font-weight: 400;
  padding: 12px 14px 0; margin: 0; color: var(--text); line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  padding: 6px 14px 16px; font-family: var(--display); font-size: 17px; color: var(--text);
}
.woocommerce ul.products li.product .price del { color: var(--text-dim); opacity: 1; font-size: 13px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--red); }
.woocommerce ul.products li.product .button {
  margin: 0 14px 16px !important;
  width: calc(100% - 28px);
}
.woocommerce span.onsale {
  position: absolute; top: 10px; left: -6px;
  background: var(--red) !important; color: var(--paper) !important;
  font-family: var(--display); font-size: 11px; font-weight: 500;
  padding: 4px 10px 4px 12px; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
  min-height: auto; min-width: auto; line-height: normal;
}

/* ===== Single product ===== */
.woocommerce div.product .woocommerce-product-gallery { background: var(--panel); border: 1px solid var(--line); }
.woocommerce div.product .summary { padding-left: 8px; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  font-family: var(--display); font-size: 28px; color: var(--text);
}
.woocommerce div.product p.price del { color: var(--text-dim); font-size: 16px; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--red); }
.woocommerce div.product form.cart .button {
  background: var(--gold) !important; color: var(--ink) !important;
}
table.variations select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 8px 10px;
}

/* ===== Cart / Checkout ===== */
.woocommerce table.shop_table { border-color: var(--line); background: var(--panel); color: var(--text); }
.woocommerce table.shop_table th { border-bottom: 1px solid var(--line); font-family: var(--display); }
.woocommerce table.shop_table td { border-top: 1px solid var(--line); }
.woocommerce-checkout input.input-text, .woocommerce-checkout select, .woocommerce-checkout textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 11px 12px;
}
.woocommerce-checkout-review-order-table { background: var(--panel); }
#payment { background: var(--panel-2) !important; }
#payment ul.payment_methods { border-bottom-color: var(--line) !important; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  background: var(--panel-2); border-top-color: var(--gold); color: var(--text);
}

/* ===== Footer ===== */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 20px; }
.footer-grid h4 { font-size: 13px; color: var(--text-dim); letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 16px 20px; font-size: 12px; color: var(--text-dim); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
