/*
Theme Name: TopQin Storefront
Template: storefront
Description: TopQin — tools, home & outdoor essentials. Custom Storefront child theme.
Version: 1.0.0
Text Domain: topqin-storefront
*/

:root {
  --tq-orange: #ff4b12;
  --tq-orange-dark: #e63e08;
  --tq-dark: #141414;
  --tq-ink: #1b1b1b;
  --tq-muted: #6a6a6a;
  --tq-line: #e6e6e6;
  --tq-soft: #f6f6f6;
  --tq-white: #ffffff;
  --tq-radius: 10px;
  --tq-max: 1440px;
}

/* ----------------------------- base ----------------------------- */
body,
body.storefront {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tq-ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4, h5 { color: var(--tq-ink); font-weight: 800; letter-spacing: -0.02em; }
a { color: var(--tq-ink); }
a:hover { color: var(--tq-orange); }
.tq-container { width: 100%; max-width: var(--tq-max); margin: 0 auto; padding: 0 24px; }
.tq-btn,
button.button,
input[type="submit"],
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--tq-orange) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 12px 22px !important;
  border: 0 !important;
}
.tq-btn:hover,
button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--tq-orange-dark) !important;
  color: #fff !important;
}

/* ----------------------------- top bar ----------------------------- */
.tq-topbar {
  background: #0d0d0d;
  color: #bdbdbd;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.tq-topbar .tq-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.tq-topbar a { color: #d8d8d8; }
.tq-topbar a:hover { color: var(--tq-orange); }
.tq-topbar .tq-topbar-right { display: flex; gap: 18px; flex-wrap: wrap; }

/* ----------------------------- header ----------------------------- */
.site-header {
  background: var(--tq-dark) !important;
  border-bottom: 1px solid #262626 !important;
  padding: 0 !important;
  position: relative;
  z-index: 999;
}
.site-header .col-full {
  max-width: var(--tq-max) !important;
  padding: 14px 24px !important;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header .site-branding { float: none !important; margin: 0 !important; width: auto !important; }
.site-header .site-branding .site-title a {
  color: #fff !important;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.site-header .site-branding .site-title a span { color: var(--tq-orange); }
.site-header .site-branding .site-description { color: #8f8f8f; font-size: 11.5px; margin-top: 3px; letter-spacing: 0.02em; }
.site-header .main-navigation { flex: 1 1 auto; float: none !important; width: auto !important; }
.site-header .main-navigation ul.menu > li > a,
.site-header .main-navigation ul.nav-menu > li > a {
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 13px !important;
  text-transform: none;
  letter-spacing: 0;
}
.site-header .main-navigation ul.menu > li > a:hover,
.site-header .main-navigation ul.menu > li.current-menu-item > a { color: var(--tq-orange) !important; }
.site-header .main-navigation ul ul {
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
}
.site-header .main-navigation ul ul a { color: #e9e9e9 !important; }
.site-header .site-search { float: none !important; width: 300px !important; margin: 0 !important; flex: 0 1 300px; }
.site-header .site-search .widget_product_search form { margin: 0; }
.site-header .site-search input[type="search"] {
  background: #232323;
  border: 1px solid #3a3a3a !important;
  color: #fff;
  border-radius: 6px;
  height: 42px;
  padding-left: 14px;
}
.site-header .site-search input[type="search"]::placeholder { color: #8b8b8b; }
.site-header .site-search .widget_product_search form:before { color: #bdbdbd; }
.site-header .site-header-cart { float: none !important; width: auto !important; margin: 0 !important; white-space: nowrap; }
.site-header-cart .cart-contents .count,
.site-header-cart .cart-contents .amount { white-space: nowrap; }
.site-header .site-header-cart .cart-contents { color: #fff !important; padding: 10px 0 10px 34px !important; white-space: nowrap; }
.site-header .site-header-cart .cart-contents:before { color: #fff !important; }
.site-header .site-header-cart .cart-contents .count { color: var(--tq-orange); }
.site-header .site-header-cart .widget_shopping_cart { background: #1c1c1c; color: #eee; }
.site-header .site-header-cart .widget_shopping_cart a { color: #eee; }
.site-header .main-navigation .menu-toggle { color: #fff; }

/* category strip under header */
.tq-catbar { background: #1d1d1d; border-bottom: 1px solid #2b2b2b; }
.tq-catbar .tq-container { display: flex; align-items: center; gap: 26px; overflow-x: auto; padding-top: 11px; padding-bottom: 11px; scrollbar-width: none; }
.tq-catbar .tq-container::-webkit-scrollbar { display: none; }
.tq-catbar a { color: #dcdcdc; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tq-catbar a:hover { color: var(--tq-orange); }
.tq-catbar a.tq-deals { color: var(--tq-orange); }

/* ----------------------------- homepage ----------------------------- */
.tq-home { background: #fff; }
.tq-home section { margin: 0; }
.tq-section { padding: 44px 24px; }
.tq-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tq-section-head h2 { font-size: 26px; margin: 0; line-height: 1.1; }
.tq-section-head .tq-more { font-size: 13.5px; font-weight: 700; color: var(--tq-muted); }
.tq-section-head .tq-more:hover { color: var(--tq-orange); }
.tq-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tq-orange); }

/* hero */
.tq-hero {
  background: radial-gradient(900px 420px at 78% 32%, #40200f 0%, #1d1008 34%, #101010 68%, #0b0b0b 100%);
  color: #fff;
  overflow: hidden;
}
.tq-hero-grid {
  display: grid;
  grid-template-columns: 254px 1fr;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 30px;
}
.tq-side-cats {
  background: #fff;
  border-radius: var(--tq-radius);
  padding: 8px 0;
  align-self: start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  overflow: hidden;
}
.tq-side-cats h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 8px 20px 6px;
  font-weight: 800;
}
.tq-side-cats ul { list-style: none; margin: 0; padding: 0; }
.tq-side-cats li { margin: 0; }
.tq-side-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2a2a2a;
  border-left: 3px solid transparent;
}
.tq-side-cats a:hover { border-left-color: var(--tq-orange); color: var(--tq-orange); background: #faf6f3; }
.tq-side-cats .tq-count { font-size: 11px; color: #a3a3a3; font-weight: 500; }
.tq-hero-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 442px;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, #1a1a1a 0%, #24160f 55%, #3a1c0b 100%);
}
.tq-hero-copy { position: relative; z-index: 3; padding: 52px 56px; max-width: 60%; }
.tq-hero-copy h1 {
  color: #fff;
  font-size: clamp(32px, 3.35vw, 48px);
  line-height: 1.06;
  margin: 14px 0 16px;
  letter-spacing: -0.03em;
  max-width: 560px;
  word-break: normal;
  overflow-wrap: normal;
}
.tq-hero-copy h1 em { color: var(--tq-orange); font-style: normal; }
.tq-hero-copy p { color: #cfcfcf; font-size: 16px; max-width: 480px; margin: 0 0 26px; }
.tq-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tq-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
}
.tq-btn-ghost:hover { border-color: var(--tq-orange); color: var(--tq-orange); }
.tq-hero-feature {
  position: absolute;
  right: 3%;
  bottom: 8%;
  width: 31%;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 26px 50px rgba(0,0,0,0.38);
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: var(--tq-ink);
}
.tq-feature-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tq-orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
}
.tq-feature-img {
  display: block;
  height: 180px;
  border-radius: 9px;
  background-color: #f6f6f6;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.tq-feature-meta { display: flex; flex-direction: column; gap: 4px; padding: 11px 4px 2px; }
.tq-feature-meta strong { font-size: 13.5px; line-height: 1.35; color: #1b1b1b; }
.tq-feature-price { color: var(--tq-orange); font-weight: 800; font-size: 16px; }
.tq-feature-link { font-size: 12.5px; font-weight: 700; color: #1b1b1b; }
.tq-hero-feature:hover .tq-feature-link { color: var(--tq-orange); }
.tq-hero-stats { display: flex; gap: 28px; margin-top: 30px; position: relative; z-index: 3; }
.tq-hero-stats strong { display: block; color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.tq-hero-stats span { color: #9d9d9d; font-size: 12px; }

/* trust strip */
.tq-trust { border-bottom: 1px solid var(--tq-line); background: #fff; }
.tq-trust .tq-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.tq-trust-item { display: flex; align-items: center; gap: 12px; }
.tq-trust-item svg { width: 28px; height: 28px; color: var(--tq-orange); flex: 0 0 28px; }
.tq-trust-item strong { display: block; font-size: 13.5px; color: var(--tq-ink); }
.tq-trust-item span { font-size: 12px; color: var(--tq-muted); }

/* category tiles */
.tq-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tq-cat-tile {
  background: var(--tq-soft);
  border: 1px solid #f0f0f0;
  border-radius: var(--tq-radius);
  padding: 14px 12px 12px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
}
.tq-cat-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.07); }
.tq-cat-tile img { width: 100%; height: 104px; object-fit: contain; display: block; margin: 0 auto 8px; }
.tq-cat-tile strong { display: block; font-size: 13.5px; color: var(--tq-ink); line-height: 1.3; }
.tq-cat-tile span { font-size: 11.5px; color: var(--tq-muted); }

/* promo strip */
.tq-promo {
  background: linear-gradient(100deg, #ff4b12 0%, #e63e08 62%, #c93200 100%);
  color: #fff;
}
.tq-promo .tq-container { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 26px; padding-bottom: 26px; }
.tq-promo h2 { color: #fff; font-size: 28px; margin: 0 0 4px; }
.tq-promo p { margin: 0; color: rgba(255,255,255,0.9); font-size: 14px; }
.tq-promo .tq-promo-code { font-weight: 800; letter-spacing: 0.08em; background: rgba(0,0,0,0.18); padding: 3px 9px; border-radius: 4px; }
.tq-promo .tq-btn { background: #111 !important; }
.tq-promo .tq-btn:hover { background: #000 !important; }

/* product grids */
.tq-home .woocommerce ul.products { display: grid !important; gap: 16px; margin: 0 0 0 !important; }
.tq-home .woocommerce ul.products::before,
.tq-home .woocommerce ul.products::after { display: none; }
.tq-home .woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid var(--tq-line);
  border-radius: var(--tq-radius);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.tq-home .woocommerce ul.products li.product:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.tq-home .woocommerce ul.products li.product a img { border-radius: 7px; margin-bottom: 10px; }
.tq-home .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13.5px !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  color: #232323;
  height: 3.9em;
  overflow: hidden;
  padding: 0 !important;
}
.tq-home .woocommerce ul.products li.product .price {
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin: 6px 0 10px !important;
}
.tq-home .woocommerce ul.products li.product .price del { color: #a0a0a0; font-size: 13px; font-weight: 500; }
.tq-home .woocommerce ul.products li.product .price ins { color: var(--tq-orange); text-decoration: none; }
.tq-home .woocommerce ul.products li.product .button {
  margin-top: auto !important;
  width: 100%;
  text-align: center;
  font-size: 13px !important;
  padding: 9px 12px !important;
}
.tq-grid-5 ul.products { grid-template-columns: repeat(5, 1fr) !important; }
.tq-grid-4 ul.products { grid-template-columns: repeat(4, 1fr) !important; }
.tq-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tq-split .tq-split-col { background: #fff; }
.tq-split ul.products { grid-template-columns: repeat(2, 1fr) !important; }

/* interest banners */
.tq-interest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tq-interest-card {
  position: relative;
  min-height: 210px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.tq-interest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tq-interest-card .tq-interest-copy { position: relative; z-index: 2; }
.tq-interest-card h3 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.tq-interest-card span { color: #ffd9c9; font-size: 13px; font-weight: 700; }

/* newsletter */
.tq-newsletter { background: #111; color: #fff; }
.tq-newsletter .tq-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 34px; padding-bottom: 34px; }
.tq-newsletter h2 { color: #fff; font-size: 26px; margin: 0 0 4px; }
.tq-newsletter p { color: #a9a9a9; margin: 0; font-size: 13.5px; }
.tq-newsletter form { display: flex; gap: 8px; min-width: 380px; }
.tq-newsletter input[type="email"] {
  flex: 1;
  height: 46px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1d1d1d;
  color: #fff;
  padding: 0 14px;
}
.tq-newsletter button { height: 46px; padding: 0 22px !important; }

/* ----------------------------- footer ----------------------------- */
.tq-footer { background: #111; color: #b9b9b9; padding-top: 54px; }
.tq-footer a { color: #b9b9b9; }
.tq-footer a:hover { color: var(--tq-orange); }
.tq-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 34px; max-width: var(--tq-max); margin: 0 auto; padding: 0 24px; }
.tq-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.tq-footer ul { list-style: none; margin: 0; padding: 0; }
.tq-footer li { margin: 0 0 9px; font-size: 13.5px; }
.tq-footer .tq-footer-brand .tq-logo { color: #fff; font-size: 26px; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 10px; display: block; }
.tq-footer .tq-footer-brand .tq-logo span { color: var(--tq-orange); }
.tq-footer .tq-footer-brand p { color: #9b9b9b; font-size: 13.5px; max-width: 300px; }
.tq-footer .tq-footer-contact li { display: flex; gap: 8px; }
.tq-footer .tq-footer-contact strong { color: #fff; font-weight: 600; }
.tq-footer-bottom {
  border-top: 1px solid #262626;
  margin-top: 40px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--tq-max);
  margin-left: auto;
  margin-right: auto;
  font-size: 12.5px;
}
.tq-payments { display: flex; gap: 6px; flex-wrap: wrap; }
.tq-payments span {
  display: inline-block;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #cfcfcf;
  background: #191919;
}
.tq-social { display: flex; gap: 12px; margin-top: 14px; }
.tq-social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid #333; border-radius: 50%; color: #ddd; }
.tq-social a:hover { border-color: var(--tq-orange); color: var(--tq-orange); }

/* ----------------------------- storefront pages ----------------------------- */
.storefront-breadcrumb { margin: 0; padding: 14px 0; }
.site-content { padding-top: 0; }
.woocommerce-breadcrumb { font-size: 12.5px; color: #8a8a8a; }
.woocommerce-breadcrumb a { color: #8a8a8a; }
.page .entry-header h1 { font-size: 34px; }
.page .entry-content h2 { font-size: 24px; margin-top: 28px; }
.page .entry-content a { color: var(--tq-orange); }

/* shop/category */
.woocommerce ul.products li.product .price { color: #111; font-weight: 800; }
.woocommerce ul.products li.product .button { background: var(--tq-orange); color: #fff; }
.woocommerce span.onsale {
  background: var(--tq-orange);
  color: #fff;
  border-radius: 4px;
  min-height: 24px;
  line-height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--tq-orange); }
.woocommerce-info, .woocommerce-message { border-top-color: var(--tq-orange); }

/* account/cart/checkout */
.woocommerce-cart .cart_totals .checkout-button,
.woocommerce-checkout #place_order { background: var(--tq-orange) !important; }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 1180px) {
  .tq-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .tq-grid-5 ul.products { grid-template-columns: repeat(4, 1fr) !important; }
  .site-header .site-search { width: 240px !important; flex-basis: 240px; }
}
@media (max-width: 900px) {
  .tq-hero-grid { grid-template-columns: 1fr; }
  .tq-side-cats { display: none; }
  .tq-hero-feature { display: none; }
  .tq-hero-copy { padding: 40px 28px; max-width: none; }
  .tq-trust .tq-container { grid-template-columns: repeat(2, 1fr); }
  .tq-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .tq-grid-5 ul.products, .tq-grid-4 ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .tq-split { grid-template-columns: 1fr; }
  .tq-interest { grid-template-columns: 1fr; }
  .tq-footer-grid { grid-template-columns: 1fr 1fr; }
  .tq-newsletter .tq-container { flex-direction: column; align-items: flex-start; }
  .tq-newsletter form { width: 100%; min-width: 0; }
  .site-header .col-full { flex-wrap: wrap; }
  .site-header .site-search { order: 5; width: 100% !important; flex-basis: 100%; }
}
@media (max-width: 620px) {
  .tq-topbar .tq-container { flex-direction: column; gap: 4px; }
  .tq-trust .tq-container { grid-template-columns: 1fr; }
  .tq-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tq-grid-5 ul.products, .tq-grid-4 ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .tq-split ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .tq-promo .tq-container { flex-direction: column; align-items: flex-start; }
  .tq-footer-grid { grid-template-columns: 1fr; }
  .tq-footer-bottom { flex-direction: column; align-items: flex-start; }
  .tq-newsletter form { flex-direction: column; }
}
