/*
Theme Name: HT Montage
Theme URI: https://ht-hardware.nl
Author: HT Montage
Description: WooCommerce-thema voor HT Montage, afgestemd op de huisstijl en het logo.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ht-hardware
Tags: e-commerce, woocommerce, dark, two-columns, custom-logo, block-styles
WC requires at least: 7.0
WC tested up to: 9.9
*/

:root {
  --ht-bg: #ffffff;
  --ht-bg-alt: #f5f2ec;
  --ht-deep: #362417;
  --ht-deep-fg: #faf8f4;
  --ht-card: #ffffff;
  --ht-fg: #24282e;
  --ht-muted: #6d757f;
  --ht-border: #e6e8ec;
  --ht-primary: #514435;
  --ht-accent: #78664f;
  --ht-radius: 3px;
  --ht-font-display: "Oswald", "Arial Narrow", sans-serif;
  --ht-font-sans: "Barlow", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ht-bg);
  color: var(--ht-fg);
  font-family: var(--ht-font-sans);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .ht-display {
  font-family: var(--ht-font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.1;
}

.ht-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.ht-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ht-border);
  backdrop-filter: blur(8px);
}
.ht-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.ht-logo { display: flex; align-items: center; }
.ht-logo__link { display: flex; align-items: center; gap: 8px; font-family: var(--ht-font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.ht-logo__image { display: block; width: 40px; height: 40px; object-fit: contain; }
.ht-logo__mark { font-family: var(--ht-font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.18em; }
.ht-logo__sub { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ht-muted); }
.ht-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.ht-nav a { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ht-muted); }
.ht-nav a:hover, .ht-nav .current-menu-item > a { color: var(--ht-fg); }
.ht-header__actions { display: flex; align-items: center; gap: 16px; }
.ht-cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent; color: var(--ht-muted);
  border-radius: var(--ht-radius);
}
.ht-cart-link:hover { color: var(--ht-fg); }
.ht-cart-link__count {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ht-fg); color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1;
}

/* Buttons */
.ht-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ht-primary); color: #ffffff !important;
  border: 0; border-radius: var(--ht-radius);
  font-family: var(--ht-font-sans); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 22px; cursor: pointer; transition: opacity 0.2s;
}
.ht-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--ht-primary); opacity: 0.88; color: #ffffff !important; }
.ht-btn--ghost { background: transparent; color: var(--ht-fg) !important; border: 1px solid var(--ht-border); }

/* Hero */
.ht-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--ht-border);
  background-image: linear-gradient(rgba(54,36,23,0.72), rgba(54,36,23,0.72)), url("assets/images/ht-hero-bg.jpg");
  background-size: cover; background-position: center; color: var(--ht-deep-fg);
}
.ht-hero h1, .ht-hero p { color: var(--ht-deep-fg); }
.ht-hero .ht-hero__media { background: #fff; padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.ht-hero__bg { width: 100%; max-width: 440px; margin: 0 auto; object-fit: contain; }
.ht-hero__inner--split { display: grid; gap: 64px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.ht-hero__inner { position: relative; padding: 72px 20px; max-width: 1140px; margin: 0 auto; }
.ht-eyebrow { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ht-primary); margin-bottom: 22px; }
.ht-hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 780px; }
.ht-hero p { max-width: 560px; font-size: 18px; color: var(--ht-muted); }
.ht-hero .ht-btn { margin-top: 28px; }

/* USP strip */
.ht-usps { background: var(--ht-deep); color: var(--ht-deep-fg); border-bottom: 1px solid var(--ht-border); }
.ht-usps__grid { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 72px 0; }
.ht-usps h3 { font-size: 18px; margin-bottom: 6px; }
.ht-usps p { margin: 0; color: var(--ht-muted); font-size: 14px; }

/* Sections */
.ht-section { padding: 96px 0; }
.ht-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.ht-section__head h2 { font-size: 26px; margin: 0; }
.ht-section__head a { color: var(--ht-muted); font-size: 14px; }
.ht-split { display: grid; gap: 64px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.ht-band { background: var(--ht-bg-alt); border-top: 1px solid var(--ht-border); border-bottom: 1px solid var(--ht-border); }

/* WooCommerce product grid */
.woocommerce ul.products { display: grid !important; gap: 40px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  width: 100% !important; margin: 0 !important; float: none !important;
  background: var(--ht-card); border: 1px solid var(--ht-border); border-radius: var(--ht-radius);
  overflow: hidden; display: flex; flex-direction: column; padding: 0;
}
.woocommerce ul.products li.product a img { margin: 0; aspect-ratio: 1/1; object-fit: contain; padding: 28px; background: #fff; transition: transform 0.5s; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ht-font-sans) !important; text-transform: none; font-size: 16px !important;
  font-weight: 600; padding: 24px 24px 6px !important; border-top: 1px solid var(--ht-border);
}
.woocommerce ul.products li.product .price { color: var(--ht-fg) !important; font-size: 18px; font-weight: 700; padding: 0 24px; margin: 0 0 20px; }
.woocommerce ul.products li.product .button { margin: auto 24px 24px; }
.woocommerce ul.products li.product .onsale { background: var(--ht-accent); color: #ffffff; border-radius: var(--ht-radius); }

/* Single product */
.woocommerce div.product .product_title { font-size: 32px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ht-fg); font-size: 28px; font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--ht-card); border-color: var(--ht-border); border-radius: var(--ht-radius) var(--ht-radius) 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ht-fg); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--ht-border); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--ht-border); color: var(--ht-fg); }
.woocommerce .quantity .qty, .woocommerce input[type="text"], .woocommerce input[type="email"],
.woocommerce input[type="tel"], .woocommerce input[type="number"], .woocommerce textarea, .woocommerce select {
  background: var(--ht-bg-alt); color: var(--ht-fg); border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius); padding: 10px;
}
.woocommerce .quantity.ht-stepper { display: inline-grid; grid-template-columns: 42px 58px 42px; align-items: stretch; margin-right: 12px; vertical-align: middle; }
.woocommerce .quantity.ht-stepper .qty { width: 58px; height: 44px; border-radius: 0; text-align: center; }
.woocommerce .quantity .ht-qty-step { width: 42px; height: 44px; padding: 0; border: 1px solid var(--ht-border); background: #fff; color: var(--ht-fg); font-size: 20px; line-height: 1; cursor: pointer; }
.woocommerce .quantity .ht-qty-minus { border-right: 0; border-radius: var(--ht-radius) 0 0 var(--ht-radius); }
.woocommerce .quantity .ht-qty-plus { border-left: 0; border-radius: 0 var(--ht-radius) var(--ht-radius) 0; }
.woocommerce .quantity .ht-qty-step:hover { background: var(--ht-bg-alt); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
  background: var(--ht-card); border-top-color: var(--ht-primary); color: var(--ht-fg);
}
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--ht-primary); }
.woocommerce table.shop_table, .woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--ht-border); color: var(--ht-fg); }
.woocommerce-breadcrumb, .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering select { color: var(--ht-muted); }

/* Footer */
.ht-footer { margin-top: 0; background: var(--ht-bg-alt); border-top: none; }
.ht-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 54px 0; }
.ht-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.ht-footer ul { list-style: none; margin: 0; padding: 0; }
.ht-footer li, .ht-footer p { color: var(--ht-muted); font-size: 14px; margin: 0 0 8px; }
.ht-footer a:hover { color: var(--ht-fg); }
.ht-footer__bar { border-top: 1px solid var(--ht-border); text-align: center; padding: 18px; font-size: 12px; color: var(--ht-muted); }

/* Generic pages */
.ht-page { padding: 56px 0; }
.ht-page h1 { font-size: 32px; }
.entry-content a { color: var(--ht-primary); }

@media (max-width: 782px) {
  .ht-nav ul { gap: 14px; }
  .ht-logo__sub { display: none; }
  .ht-hero__inner { padding: 48px 20px; }
}

.ht-usps h3, .ht-usps p, .ht-usps strong { color: var(--ht-deep-fg); }


/* Topbar, account icon and footer USPs */
.ht-topbar { background: var(--ht-deep); color: var(--ht-deep-fg); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.ht-topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 16px; }
.ht-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--ht-muted); }
.ht-icon-link:hover { color: var(--ht-fg); }
.ht-footer__usps { background: var(--ht-deep); }
.ht-footer__usps-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 48px 0; }
.ht-footer__usp-title { color: var(--ht-deep-fg) !important; font-weight: 600; margin-bottom: 4px !important; }
.ht-footer__usps p:not(.ht-footer__usp-title) { color: rgba(242, 246, 250, 0.7) !important; }
@media (max-width: 720px) { .ht-topbar__inner span + span { display: none; } }


/* Mobile navigation */
.ht-menu-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: 0; padding: 0; color: var(--ht-muted); cursor: pointer; }
.ht-menu-toggle:hover { color: var(--ht-fg); }
.ht-mobile-nav { border-top: 1px solid var(--ht-border); background: #fff; }
.ht-mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.ht-mobile-nav li { border-bottom: 1px solid var(--ht-border); }
.ht-mobile-nav li:last-child { border-bottom: 0; }
.ht-mobile-nav a { display: block; padding: 12px 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ht-muted); }
.ht-mobile-nav a:hover { color: var(--ht-fg); }
@media (max-width: 860px) {
	.ht-nav { display: none; }
	.ht-menu-toggle { display: inline-flex; }
}

/* --- Reviews --- */
.ht-stars { color: #fbbc04; letter-spacing: 2px; font-size: 14px; }
.ht-rating {
	display: inline-flex; align-items: center; gap: 16px;
	border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.1);
	padding: 12px 20px; border-radius: var(--ht-radius); margin-bottom: 32px;
}
.ht-rating__score { font-family: var(--ht-font-display, inherit); font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
.ht-rating__sep { width: 1px; height: 30px; background: rgba(255,255,255,.2); }
.ht-rating__label { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.75); }
.ht-reviews { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
@media (max-width: 860px) { .ht-reviews { grid-template-columns: 1fr; } }
.ht-review { margin: 0; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); padding: 32px; background: #fff; }
.ht-review blockquote { margin: 20px 0 0; font-size: 16px; line-height: 1.7; }
.ht-review figcaption { margin-top: 24px; font-size: 14px; color: var(--ht-muted); }

/* --- Productpagina: strakke uitlijning --- */
.woocommerce-breadcrumb { margin: 24px 0 0 !important; font-size: 14px; color: var(--ht-muted); }
.single-product div.product { margin-top: 32px; }
.single-product .ht-container { padding-top: 0; }

.ht-quantity-discount { margin: 14px 0 0; color: var(--ht-primary); font-size: 14px; font-weight: 600; }
.ht-custom-size { margin: 18px 0 0; color: var(--ht-muted); font-size: 14px; line-height: 1.6; }
.ht-custom-size a { color: var(--ht-primary); font-weight: 600; }

.ht-logo__link .ht-logo__image{width:auto;height:48px;max-width:200px;object-fit:contain}
@media (max-width:860px){.ht-logo__link .ht-logo__image{height:38px}}

/* Hero fix 1.4.0 */
.ht-hero{position:relative;background-size:cover;background-position:center}
.ht-hero__media{display:none!important}
.ht-hero__inner{max-width:1140px;padding:64px 20px}
.ht-hero h1{font-size:clamp(26px,3.6vw,40px)!important;max-width:none!important;line-height:1.15;margin:12px 0 16px}
.ht-hero p{color:rgba(250,248,244,.85)!important;max-width:620px}
.ht-hero .ht-eyebrow{color:rgba(250,248,244,.75)!important;letter-spacing:.3em;font-size:12px}
.ht-hero .ht-rating{display:inline-flex;align-items:center;gap:14px;margin-top:24px;padding:10px 16px;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.2)}
.ht-hero .ht-btn{display:inline-flex}
.ht-hero .ht-rating{display:flex;width:max-content}
@media (max-width:860px){.ht-hero__inner{padding:44px 20px}}

/* ===== Productpagina 1-op-1 (1.5.0) ===== */
.single-product div.product.ht-pdp{margin-top:32px;padding-bottom:80px}
.ht-pdp__grid{display:grid;gap:48px;grid-template-columns:1fr}
@media (min-width:1024px){.ht-pdp__grid{grid-template-columns:1fr 1fr;gap:64px}}
.ht-pdp__main{border:1px solid var(--ht-border);border-radius:var(--ht-radius);background:#fff;padding:40px}
.ht-pdp__main img{width:100%!important;aspect-ratio:1/1;object-fit:contain;display:block;margin:0}
.ht-pdp__thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}
.ht-pdp__thumb{border:1px solid var(--ht-border);border-radius:var(--ht-radius);background:#fff;padding:12px;cursor:pointer}
.ht-pdp__thumb.is-active{border-color:var(--ht-primary)}
.ht-pdp__thumb img{width:100%;aspect-ratio:1/1;object-fit:contain;display:block;margin:0}
.ht-pdp__sku{font-size:12px;text-transform:uppercase;letter-spacing:.3em;color:var(--ht-muted);margin:0}
.ht-pdp .ht-pdp__title{font-family:var(--ht-font-display);text-transform:uppercase;letter-spacing:.02em;font-weight:700;font-size:24px;line-height:1.2;margin:12px 0 0;overflow-wrap:break-word}
@media (min-width:640px){.ht-pdp .ht-pdp__title{font-size:30px}}
.ht-pdp__price{font-size:30px;font-weight:700;color:var(--ht-fg)!important;margin:24px 0 0;font-family:var(--ht-font-sans)}
.ht-pdp__price .woocommerce-Price-amount{color:var(--ht-fg)}
.ht-pdp__unit{font-size:14px;color:var(--ht-muted);margin:4px 0 0}
.ht-pdp__discount{font-size:14px;font-weight:600;color:var(--ht-primary);margin:12px 0 0}
.ht-pdp__desc{margin-top:32px;color:var(--ht-muted);line-height:1.7;font-size:16px}
.ht-pdp__desc p{margin:0}
.ht-pdp__cart{margin-top:40px}
.ht-pdp__cart .stock{display:none}
.ht-pdp__cart form.cart{display:flex!important;flex-wrap:wrap;gap:16px;align-items:center;margin:0!important}
.ht-pdp__cart form.cart::before,.ht-pdp__cart form.cart::after{display:none!important}
.ht-pdp__cart .quantity{float:none!important;margin:0!important}
.ht-pdp__cart .quantity.ht-stepper{display:grid!important;grid-template-columns:44px 1fr 44px;width:144px;height:44px;border:1px solid var(--ht-border);border-radius:var(--ht-radius);overflow:hidden}
.ht-pdp__cart .quantity.ht-stepper .ht-qty-step{border:0;background:#fff;height:44px;font-size:18px;color:var(--ht-fg)}
.ht-pdp__cart .quantity.ht-stepper .ht-qty-minus{border-right:1px solid var(--ht-border)}
.ht-pdp__cart .quantity.ht-stepper .ht-qty-plus{border-left:1px solid var(--ht-border)}
.ht-pdp__cart .quantity input.qty{width:100%!important;height:44px;border:0!important;background:#fff!important;text-align:center;padding:0;-moz-appearance:textfield}
.ht-pdp__cart .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none}
.ht-pdp__cart .single_add_to_cart_button{flex:1;min-width:200px;height:44px;float:none!important;border-radius:var(--ht-radius)!important;background:var(--ht-primary)!important;color:#fff!important;font-family:var(--ht-font-sans)!important;font-weight:600!important;font-size:14px!important;text-transform:uppercase;letter-spacing:.05em;padding:0 24px!important}
.ht-pdp__custom{margin-top:20px;font-size:14px;line-height:1.7;color:var(--ht-muted)}
.ht-pdp__custom a{font-weight:600;color:var(--ht-primary)}
.ht-pdp__specs{margin:56px 0 0;border-top:1px solid var(--ht-border);font-size:14px}
.ht-pdp__specs div{display:flex;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--ht-border)}
.ht-pdp__specs dt{color:var(--ht-muted);font-weight:400}
.ht-pdp__specs dd{margin:0;font-weight:500;color:var(--ht-fg)}
.ht-pdp .ht-pdp__related-title{font-family:var(--ht-font-display);text-transform:uppercase;font-size:24px;font-weight:700;margin:80px 0 32px}
.single-product .woocommerce-breadcrumb a{color:var(--ht-muted)}

/* 1.7.0 footer twee kolommen + bruine knoppen in winkelwagen/afrekenen (blokken) */
.ht-footer__grid.ht-footer__grid--two{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px}
@media (max-width:640px){.ht-footer__grid.ht-footer__grid--two{grid-template-columns:1fr}}
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.wc-block-components-button:not(.is-link),.woocommerce a.checkout-button,.woocommerce #place_order{background:var(--ht-primary)!important;color:#fff!important;border:0!important;border-radius:var(--ht-radius)!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.04em;min-height:48px}
.wc-block-cart__submit-button:hover,.wc-block-components-checkout-place-order-button:hover,.wc-block-components-button:not(.is-link):hover{opacity:.9}
.wc-block-components-text-input input:focus,.wc-block-components-select select:focus,.wc-block-components-radio-control__input:checked{border-color:var(--ht-primary)!important;box-shadow:0 0 0 1px var(--ht-primary)!important}
.wc-block-components-radio-control__input:checked:before{background:var(--ht-primary)!important}
.wc-block-components-text-input input,.wc-block-components-select select,.wc-block-components-radio-control-accordion-option,.wc-block-components-sidebar-layout .wc-block-components-totals-wrapper{border-color:var(--ht-border)!important}
.wc-block-components-text-input input{border-radius:var(--ht-radius)!important}
.wp-block-woocommerce-checkout-order-summary-block{border-color:var(--ht-border)!important;border-radius:var(--ht-radius)}

/* 1.8.0 exacte merkkleur, geen witte lijntjes, nette zijmarges op mobiel */
.ht-hero,.ht-usps{border-bottom:0!important;border-top:0!important}
.ht-hero{background-color:var(--ht-deep)}
.ht-hero + *,.ht-usps{margin-top:0!important}
.ht-container,.ht-usps__grid,.ht-topbar__inner,.ht-footer__grid,.ht-footer__usps .ht-container{padding-left:20px!important;padding-right:20px!important;box-sizing:border-box}
.ht-usps__grid{padding-top:72px;padding-bottom:72px}
@media (max-width:640px){.ht-container,.ht-usps__grid,.ht-topbar__inner,.ht-footer__grid{padding-left:24px!important;padding-right:24px!important}.ht-usps__grid{padding-top:48px;padding-bottom:48px;gap:32px}}
