/*
 * NTECH Starter: WooCommerce (generated copy of tools/css/shop.css; edit that, then run tools/build-css.py).
 * WooCommerce's own layout styles stay; these give the shop the site's colours, fonts, corners and buttons,
 * and make product cards match the "Products with prices" section.
 */

/* Header cart link */
.site-nav .cart-link { text-decoration: none; color: var(--muted); font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; }
.site-nav .cart-link:hover { color: var(--text); }
.ntech-cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on); font-size: 12.5px; font-weight: 700; display: inline-grid; place-items: center; box-sizing: border-box; }

/* Page frame */
.ntech .shop { padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 104px); }
.ntech .woocommerce-products-header__title, .ntech .shop .page-title { font-size: clamp(38px, 2rem + 3vw, 64px); margin: 0 0 24px; }
.ntech .woocommerce-breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.ntech .woocommerce-breadcrumb a { color: inherit; }
.ntech .woocommerce-result-count { color: var(--muted); font-size: 15px; }
.ntech .woocommerce-ordering select { min-height: 44px; }

/* Product grid: the same cards as the "Products with prices" section */
.ntech.woocommerce ul.products, .ntech .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.ntech.woocommerce ul.products::before, .ntech.woocommerce ul.products::after, .ntech .woocommerce ul.products::before, .ntech .woocommerce ul.products::after { display: none; }
.ntech.woocommerce ul.products li.product, .ntech .woocommerce ul.products li.product {
    width: auto; float: none; margin: 0; padding: 0 0 20px; background: var(--surface); border: 1px solid var(--lc);
    border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
}
.ntech.woocommerce ul.products li.product a img, .ntech .woocommerce ul.products li.product a img { margin: 0 0 16px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.ntech.woocommerce ul.products li.product .woocommerce-loop-product__title, .ntech .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--head); font-weight: var(--hw); letter-spacing: var(--ls); font-size: 20px; line-height: 1.15; padding: 0 18px; margin: 0 0 6px;
}
.ntech.woocommerce ul.products li.product .price, .ntech .woocommerce ul.products li.product .price { color: var(--primary); font-weight: 700; font-size: 17px; padding: 0 18px; margin-bottom: 14px; }
.ntech.woocommerce ul.products li.product .button, .ntech .woocommerce ul.products li.product .button { margin: auto 18px 0; align-self: flex-start; }
.ntech .woocommerce-LoopProduct-link { text-decoration: none; color: inherit; }
.ntech.woocommerce ul.products li.product a.added_to_cart { padding: 8px 18px 0; font-size: 14px; color: var(--primary); }

/* Buttons: the site's own */
.ntech.woocommerce a.button, .ntech.woocommerce button.button, .ntech.woocommerce input.button, .ntech.woocommerce #respond input#submit,
.ntech .woocommerce a.button, .ntech .woocommerce button.button, .ntech .woocommerce input.button,
.ntech.woocommerce a.button.alt, .ntech.woocommerce button.button.alt, .ntech .woocommerce a.button.alt, .ntech .woocommerce button.button.alt {
    background: var(--primary); color: var(--on); border-radius: var(--br); font: 700 15px/1 var(--body); letter-spacing: var(--bls);
    padding: 14px 22px; border: 0; text-decoration: none;
}
.ntech.woocommerce a.button:hover, .ntech.woocommerce button.button:hover, .ntech .woocommerce a.button:hover, .ntech .woocommerce button.button:hover { background: var(--primary); color: var(--on); filter: brightness(1.08); }
.ntech.woocommerce button.button:disabled, .ntech.woocommerce button.button.disabled { background: var(--primary); color: var(--on); opacity: 0.5; }

/* Prices and sale badges */
.ntech.woocommerce div.product p.price, .ntech.woocommerce div.product span.price { color: var(--primary); font-weight: 700; font-size: 22px; }
.ntech.woocommerce span.onsale { background: var(--accent); color: var(--onA); min-height: 0; min-width: 0; padding: 6px 12px; border-radius: 999px; line-height: 1.2; font-weight: 700; }

/* One product */
.ntech.woocommerce div.product .product_title { font-size: clamp(34px, 1.6rem + 2.4vw, 52px); margin-bottom: 12px; }
.ntech.woocommerce div.product div.images img { border-radius: var(--r); }
.ntech.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); font-size: 18px; margin: 12px 0 24px; }
.ntech.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ntech.woocommerce .quantity .qty { width: 5em; min-height: 48px; text-align: center; border-radius: calc(var(--r) * 0.5); border: 1px solid var(--lc); background: var(--surface); }
.ntech.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.ntech.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--lc); }
.ntech.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--bg); border-color: var(--lc); border-radius: calc(var(--r) * 0.5) calc(var(--r) * 0.5) 0 0; }
.ntech.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--surface); border-bottom-color: var(--surface); }
.ntech.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--text); }
.ntech.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .ntech.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.ntech .product_meta { color: var(--muted); font-size: 14.5px; }
.ntech .product_meta a { color: var(--primary); }
.ntech .related.products > h2 { font-size: clamp(28px, 1.4rem + 1.6vw, 40px); margin: 40px 0 24px; }

/* Notices */
.ntech .woocommerce-message, .ntech .woocommerce-info, .ntech .woocommerce-error { background: var(--surface); color: var(--text); border-top-color: var(--primary); border-radius: calc(var(--r) * 0.4); }
.ntech .woocommerce-message::before, .ntech .woocommerce-info::before { color: var(--primary); }

/* Cart and checkout (WooCommerce's blocks) get the full width and the site's buttons */
.woocommerce-cart .ntech .content > *, .ntech.woocommerce-cart .content > *, .ntech.woocommerce-checkout .content > * { max-width: 1180px; }
/* WooCommerce sets these blocks to 100% width; count the side margin inside it so phones don't scroll sideways. */
.ntech .content > .wp-block-woocommerce-cart, .ntech .content > .wp-block-woocommerce-checkout { box-sizing: border-box; max-width: 1180px; }
.ntech .wc-block-components-button:not(.is-link) { background: var(--primary); color: var(--on); border-radius: var(--br); font-family: var(--body); font-weight: 700; }
.ntech .wc-block-components-button:not(.is-link):hover { filter: brightness(1.08); }
.ntech .wc-block-components-text-input input, .ntech .wc-block-components-combobox .components-combobox-control input, .ntech .wc-blocks-components-select select { border-radius: calc(var(--r) * 0.5); }
.ntech .wc-block-components-product-name { color: var(--text); font-weight: 700; }
.ntech .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--primary); }

/* Product catalogue (inc/catalogue.php): groups to pick from, one button per product, a quote form on its page */
.ntech .cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.ntech .cat-chips a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--lc); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.ntech .cat-chips a:hover { border-color: var(--primary); }
.ntech .cat-chips a.is-current { background: var(--primary); border-color: var(--primary); color: var(--on); }
.ntech .por { color: var(--muted); font-weight: 600; }
.ntech.woocommerce div.product .summary .product-ask { display: inline-block; margin: 4px 0 20px; }
.ntech .product-quote { clear: both; max-width: 640px; margin: 40px 0 0; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--lc); border-radius: var(--r); scroll-margin-top: 96px; }
.ntech .product-quote > h2 { font-size: clamp(26px, 1.3rem + 1.4vw, 36px); margin: 0 0 8px; }
.ntech .product-quote > p { color: var(--muted); margin: 0 0 18px; }

/* Shop layout: the cart as a pill beside the menu button, the home page's products, and the cart band */
.ntech .site-header .cart-pill { height: 46px; border-radius: 999px; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; }
.ntech .site-header .cart-pill:hover { color: var(--bg); filter: brightness(1.15); }
.ntech .cart-pill .ntech-cart-count { background: var(--bg); color: var(--text); }
/* The header carries a search box and the cart as well as the menu: the box keeps a usable width, the menu sits closer. */
.ntech.L-shop .site-header .srch { flex: 1 1 180px; min-width: 150px; max-width: 300px; }
.ntech.L-shop .site-nav, .ntech.L-shop .site-nav .menu-list { gap: 22px; }
.ntech.L-shop .site-nav .menu-list { font-size: 15px; white-space: nowrap; }
.ntech .shop-more { margin: 30px 0 0; }
.ntech .shop-empty { color: var(--muted); border: 1px dashed var(--lc); border-radius: var(--r); padding: 24px; }
.ntech .ntech-cart-band:empty { display: none; }
.ntech .bsb { margin-top: 60px; border-radius: calc(var(--r) * 1.4); background: var(--primary); color: var(--on); padding: 36px 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.ntech .bsb h3 { font-size: 30px; }
.ntech .bsb p { opacity: 0.85; margin: 6px 0 0; }

@media (max-width: 1080px) {
    .ntech.woocommerce ul.products, .ntech .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .ntech.woocommerce ul.products, .ntech .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ntech.woocommerce ul.products li.product .woocommerce-loop-product__title, .ntech .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; padding: 0 12px; }
    .ntech.woocommerce ul.products li.product .price, .ntech .woocommerce ul.products li.product .price { padding: 0 12px; font-size: 15px; }
    .ntech.woocommerce ul.products li.product .button, .ntech .woocommerce ul.products li.product .button { margin: auto 12px 0; padding: 12px 14px; font-size: 14px; }
    .site-nav .cart-link { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--lc); color: var(--text); }
    /* The header's order on a phone: logo, cart, menu button. */
    .ntech .site-header .cart-pill { height: 40px; padding: 0 14px; font-size: 13.5px; margin-left: auto; }
    /* A long business name gives way to the cart and the menu button, not the other way round. */
    .ntech.L-shop .site-header .lg { min-width: 0; flex: 0 1 auto; }
    .ntech .bsb { flex-direction: column; align-items: flex-start; padding: 30px 24px; margin-top: 40px; }
    .ntech .bsb h3 { font-size: 24px; }
}

@media (max-width: 420px) {
    /* A folded phone: the number alone, with "Cart" still read out. */
    .ntech .cart-pill .cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ntech .site-header .cart-pill { padding: 0 9px; gap: 0; }
}

@media (min-width: 861px) {
    /* Search, menu and cart fill the header, so the WhatsApp button leaves it: the floating one is on every page. */
    .ntech.L-shop .site-nav .nav-cta { display: none; }
}

@media (max-width: 1180px) and (min-width: 861px) {
    /* Between a tablet and a full screen there is no room for the search box beside a long menu. */
    .ntech.L-shop .site-header .srch { display: none; }
}

