/*
Theme Name: DoorsHQ
Theme URI: https://doorshq.example.com
Author: Stephandre Potgieter
Description: WooCommerce-ready ecommerce theme for DoorsHQ — interior and exterior doors. Bold black & yellow industrial design with a modern, clean layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: doorshq
Tags: e-commerce, woocommerce, two-columns, custom-menu, featured-images
*/

:root {
  --dhq-black: #121212;
  --dhq-dark: #1c1c1c;
  --dhq-yellow: #f5b301;
  --dhq-yellow-dark: #d99e00;
  --dhq-white: #ffffff;
  --dhq-grey: #f4f4f4;
  --dhq-text: #2b2b2b;
  --dhq-muted: #757575;
  --dhq-radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dhq-text);
  background: var(--dhq-white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--dhq-yellow-dark); }

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 0.6em; }

/* ---------- Top bar (black) ---------- */
.dhq-topbar {
  background: var(--dhq-black);
  color: var(--dhq-white);
  padding: 16px 0;
}
.dhq-topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.dhq-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--dhq-white);
  white-space: nowrap;
}
.dhq-logo span { color: var(--dhq-yellow); font-style: italic; }
.dhq-logo:hover { color: var(--dhq-white); }

.dhq-search {
  flex: 1;
  display: flex;
}
.dhq-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 12px 16px;
  border-radius: var(--dhq-radius) 0 0 var(--dhq-radius);
  font-size: 15px;
  outline: none;
}
.dhq-search button {
  background: var(--dhq-yellow);
  color: var(--dhq-black);
  border: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 0 var(--dhq-radius) var(--dhq-radius) 0;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.dhq-search button:hover { background: var(--dhq-yellow-dark); }

.dhq-header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.dhq-cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dhq-white);
  font-weight: 600;
}
.dhq-cart-count {
  background: var(--dhq-yellow);
  color: var(--dhq-black);
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Nav bar (yellow) ---------- */
.dhq-navbar {
  background: var(--dhq-yellow);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.dhq-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dhq-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.dhq-nav li a {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--dhq-black);
}
.dhq-nav li a:hover,
.dhq-nav li.current-menu-item a {
  background: var(--dhq-black);
  color: var(--dhq-yellow);
}
.dhq-nav-extras {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dhq-black);
  padding-right: 4px;
}

/* ---------- Hero ---------- */
.dhq-hero {
  position: relative;
  background: var(--dhq-dark) url('assets/hero.jpg') center/cover no-repeat;
  color: var(--dhq-white);
  min-height: 480px;
  display: flex;
  align-items: center;
}
.dhq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.dhq-hero-content {
  position: relative;
  max-width: 560px;
  padding: 60px 0;
}
.dhq-hero h1 {
  font-size: 42px;
  color: var(--dhq-white);
  margin-bottom: 8px;
}
.dhq-hero h1 em {
  color: var(--dhq-yellow);
  font-style: normal;
}
.dhq-hero p {
  font-size: 17px;
  color: #e6e6e6;
  margin-bottom: 24px;
}
.dhq-btn {
  display: inline-block;
  background: var(--dhq-yellow);
  color: var(--dhq-black);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: var(--dhq-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.dhq-btn:hover { background: var(--dhq-yellow-dark); color: var(--dhq-black); }
.dhq-btn--dark {
  background: var(--dhq-black);
  color: var(--dhq-white);
}
.dhq-btn--dark:hover { background: #000; color: var(--dhq-yellow); }

/* ---------- Promo cards ---------- */
.dhq-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px auto;
}
.dhq-promo {
  position: relative;
  background: var(--dhq-dark) center/cover no-repeat;
  border-radius: var(--dhq-radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  color: var(--dhq-white);
}
.dhq-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 100%);
}
.dhq-promo-content { position: relative; padding: 32px; }
.dhq-promo h3 { color: var(--dhq-white); font-size: 24px; }
.dhq-promo p { color: #dcdcdc; font-size: 14px; margin: 0 0 16px; }
.dhq-promo .dhq-btn { padding: 10px 22px; font-size: 12px; }

/* ---------- Section headings ---------- */
.dhq-section { padding: 40px 0; }
.dhq-section--grey { background: var(--dhq-grey); }
.dhq-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px solid var(--dhq-yellow);
  margin-bottom: 28px;
  padding-bottom: 10px;
}
.dhq-section-head h2 { font-size: 26px; margin: 0; }
.dhq-section-head a { font-size: 14px; font-weight: 600; color: var(--dhq-muted); }

/* ---------- CTA banner (yellow) ---------- */
.dhq-cta {
  background: var(--dhq-yellow);
  border-radius: var(--dhq-radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 48px auto;
  flex-wrap: wrap;
}
.dhq-cta h2 { margin: 0 0 6px; font-size: 28px; color: var(--dhq-black); }
.dhq-cta p { margin: 0; color: #4d3f00; font-weight: 500; }

/* ---------- Category strip ---------- */
.dhq-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
}
.dhq-cat {
  background: var(--dhq-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--dhq-radius);
  padding: 18px 12px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dhq-cat:hover { border-color: var(--dhq-yellow); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.dhq-cat img { border-radius: var(--dhq-radius); margin-bottom: 10px; aspect-ratio: 1; object-fit: cover; }
.dhq-cat span { display: block; font-size: 14px; font-weight: 600; }

/* ---------- WooCommerce grid ---------- */
.woocommerce ul.products li.product {
  background: var(--dhq-white);
  border: 1px solid #ececec;
  border-radius: var(--dhq-radius);
  padding: 14px;
  transition: box-shadow 0.2s;
  text-align: center;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
}
.woocommerce ul.products li.product .price {
  color: var(--dhq-black);
  font-weight: 700;
  font-size: 16px;
}
.woocommerce ul.products li.product .price del { color: var(--dhq-muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { color: var(--dhq-black); text-decoration: none; }
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--dhq-yellow);
  color: var(--dhq-black);
  font-weight: 700;
  border-radius: var(--dhq-radius);
  padding: 2px 10px;
  min-height: 0;
  min-width: 0;
  line-height: 1.8;
}
.woocommerce ul.products li.product .button,
.woocommerce .button.add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--dhq-black);
  color: var(--dhq-white);
  border-radius: var(--dhq-radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 10px 18px;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--dhq-yellow);
  color: var(--dhq-black);
}
.woocommerce .star-rating span { color: var(--dhq-yellow); }

/* Single product */
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--dhq-black); font-weight: 700; font-size: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--dhq-yellow); }

/* ---------- Content area ---------- */
.dhq-main { padding: 40px 0; min-height: 40vh; }
.dhq-page-title {
  font-size: 30px;
  border-left: 6px solid var(--dhq-yellow);
  padding-left: 14px;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.dhq-footer {
  background: var(--dhq-black);
  color: #c9c9c9;
  padding: 48px 0 0;
  margin-top: 60px;
  font-size: 14px;
}
.dhq-footer h4 { color: var(--dhq-white); text-transform: uppercase; font-size: 14px; letter-spacing: 0.6px; }
.dhq-footer h4::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--dhq-yellow);
  margin-top: 8px;
}
.dhq-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}
.dhq-footer a:hover { color: var(--dhq-yellow); }
.dhq-footer ul { list-style: none; margin: 0; padding: 0; }
.dhq-footer li { margin-bottom: 8px; }
.dhq-footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #8a8a8a;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dhq-topbar-inner { flex-wrap: wrap; }
  .dhq-search { order: 3; width: 100%; flex-basis: 100%; margin-top: 12px; }
  .dhq-hero h1 { font-size: 30px; }
  .dhq-promos { grid-template-columns: 1fr; }
  .dhq-nav-extras { display: none; }
}
@media (max-width: 600px) {
  .dhq-hero { min-height: 380px; }
  .dhq-nav li a { padding: 12px 12px; font-size: 13px; }
  .dhq-cta { padding: 28px 20px; }
}
