/*
Theme Name: Steel Gutters Direct
Theme URI: https://steelguttersdirect.co.uk
Author: Steel Gutters Direct
Description: A simple, fast WooCommerce storefront theme for Steel Gutters Direct. Works with WooCommerce and the official Stripe payment gateway plugin. Colours, contact details and homepage text are editable under Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sgd
*/

/* ---------- Tokens ---------- */
:root {
  --sgd-primary: #26323b;     /* steel charcoal */
  --sgd-accent: #2e7d4f;      /* green accent */
  --sgd-accent-dark: #226039;
  --sgd-light: #f3f5f6;
  --sgd-border: #dde2e5;
  --sgd-text: #2b3238;
  --sgd-muted: #6a757d;
  --sgd-radius: 6px;
  --sgd-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sgd-text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--sgd-accent); }
a:hover { color: var(--sgd-accent-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--sgd-primary); margin: 0 0 .6em; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--sgd-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; background: #fff; padding: 10px 14px; }

/* ---------- Buttons ---------- */
.button, button, input[type="submit"], .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button {
  display: inline-block;
  background: var(--sgd-accent);
  color: #fff;
  border: 0;
  border-radius: var(--sgd-radius);
  padding: .75em 1.4em;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--sgd-accent-dark); color: #fff; }
.button--dark { background: var(--sgd-primary); }
.button--dark:hover { background: #151d23; }
.button--ghost { background: transparent; border: 2px solid #fff; }
.button--ghost:hover { background: #fff; color: var(--sgd-primary); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--sgd-accent); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--sgd-accent-dark); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
input[type="password"], select, textarea, .select2-container--default .select2-selection--single {
  width: 100%;
  font: inherit;
  padding: .65em .8em;
  border: 1px solid var(--sgd-border);
  border-radius: var(--sgd-radius);
  background: #fff;
}
.select2-container--default .select2-selection--single { height: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sgd-accent); outline-offset: 1px; }
label { font-weight: 600; display: block; margin-bottom: .3em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--sgd-primary); color: #dfe5e8; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__right a + a { margin-left: 18px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--sgd-border); }
.site-header__main { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.site-branding { flex: 0 0 auto; }
.site-branding img { display: block; max-height: 70px; width: auto; height: auto; }
.site-branding .custom-logo-link { display: block; }
.site-title { font-size: 1.6rem; font-weight: 800; color: var(--sgd-primary); text-decoration: none; line-height: 1.1; display: block; }
.site-title span { color: var(--sgd-accent); }
.site-tagline { font-size: .8rem; color: var(--sgd-muted); margin: 2px 0 0; }
.header-search { flex: 1 1 auto; max-width: 460px; margin-left: auto; }
.header-search form { display: flex; }
.header-search input[type="search"] { border-radius: var(--sgd-radius) 0 0 var(--sgd-radius); border-right: 0; }
.header-search button { border-radius: 0 var(--sgd-radius) var(--sgd-radius) 0; padding: .65em 1em; }
.cart-link {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--sgd-light); border: 1px solid var(--sgd-border); border-radius: var(--sgd-radius);
  padding: .55em 1em; color: var(--sgd-primary); text-decoration: none; font-weight: 700;
}
.cart-link:hover { background: #e8ecee; color: var(--sgd-primary); }
.cart-count { background: var(--sgd-accent); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: .78rem; padding: 0 6px; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--sgd-primary); }
.menu-toggle { display: none; width: 100%; text-align: left; background: var(--sgd-primary); border-radius: 0; padding: 14px 20px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .container > ul, .main-nav .menu { display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; color: #fff; text-decoration: none; padding: 14px 18px; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--sgd-accent); color: #fff; }
.main-nav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 230px; z-index: 50;
  background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); border-top: 3px solid var(--sgd-accent);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { color: var(--sgd-text); text-transform: none; font-weight: 500; padding: 11px 18px; border-bottom: 1px solid var(--sgd-light); }
.main-nav .sub-menu a:hover { background: var(--sgd-light); color: var(--sgd-accent); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #1b252c 0%, #34444f 60%, #3f5361 100%); color: #fff; }
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: .4em; }
.hero p { font-size: 1.15rem; color: #dfe5e8; max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 26px; }
.hero__panel h2 { color: #fff; font-size: 1.15rem; }
.hero__panel ul { list-style: none; margin: 0; padding: 0; }

/* Image banner */
.hero--image { background: #00519e; position: relative; overflow: hidden; }
.hero--image::before { content:''; position:absolute; inset:0; background: var(--hero-bg) 85% 30% / cover; filter: blur(40px) saturate(1.1); transform: scale(1.3); }
.hero--image h1.screen-reader-text { position:absolute; }
.hero__stage { position: relative; display: flex; align-items: center; }
.hero--image .hero__img { flex: 0 0 60%; width: 60%; aspect-ratio: auto; height: calc(60vw / 3.1 - 30px); object-position: left 25%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.hero__panel { flex: 1 1 auto; margin: 0 max(24px, 3vw) 0 0; padding: 22px 28px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0,30,70,.25); }
.hero__panel h2 { color: #fff; font-size: 1.25rem; margin: 0 0 12px; }
.hero__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hero__panel li { display: flex; align-items: center; gap: 12px; padding: 0; font-size: .95rem; line-height: 1.35; color: rgba(255,255,255,.92); }
.hero__panel li strong { color: #fff; }
.hero__panel li::before { content: "\2713"; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--sgd-accent); color: #fff; text-align: center; line-height: 22px; font-size: .8rem; }
.hero--image .hero__bar { position: relative; }
@media (max-width: 900px) {
  .hero__stage { flex-direction: column; align-items: stretch; }
  .hero--image .hero__img { flex: none; width: 100%; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
  .hero__panel { margin: 0 16px 16px; }
}
.hero__bar { background: var(--sgd-primary); padding: 12px 0; }
.hero--image .hero__bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 0; padding-bottom: 0; margin-top: 0; }
.hero__bar .button { min-width: 180px; text-align: center; }
.why-strip { background: var(--sgd-light); border-bottom: 1px solid var(--sgd-border); }
.why-strip ul { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.why-strip li { position: relative; padding-left: 28px; font-weight: 600; font-size: .92rem; white-space: nowrap; color: var(--sgd-primary); }
.why-strip li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--sgd-accent); color: #fff; text-align: center; line-height: 20px; font-size: .8rem; }
@media (max-width: 900px) { .why-strip ul { justify-content: center; } }
@media (max-width: 560px) { .hero__bar .button { flex: 1 1 100%; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tiles { padding: 28px 0 40px; }
.section--tiles .section__title { margin-bottom: 18px; }
.section--light { background: var(--sgd-light); }
.section__title { text-align: center; margin-bottom: 32px; }
.category-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-tile {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; min-height: 120px; padding: 20px 24px;
  border-radius: 10px; color: #fff; text-decoration: none; background: var(--sgd-primary);
  background-image: linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  transition: transform .15s; position: relative; overflow: hidden; isolation: isolate;
}
.category-tile:hover { transform: translateY(-3px); color: #fff; }
.category-tile:nth-child(2) { background-color: #2f3e4a; background-color: color-mix(in srgb, var(--sgd-primary) 72%, #000); }
.category-tile:nth-child(3) { background-color: #34444f; }
.category-tile:nth-child(4) { background-color: var(--sgd-accent-dark); }
/* subtle falling rain behind the tile text */
.category-tile::before, .category-tile::after {
  content: ""; position: absolute; inset: -60px 0 0 0; z-index: -1; pointer-events: none;
  background-repeat: repeat; animation: sgd-rain 1.1s linear infinite;
}
.category-tile::before {
  background-image: linear-gradient(100deg, transparent 46%, rgba(255,255,255,.12) 50%, transparent 54%);
  background-size: 23px 46px;
}
.category-tile::after {
  background-image: linear-gradient(100deg, transparent 47%, rgba(255,255,255,.07) 50%, transparent 53%);
  background-size: 37px 71px; animation-duration: 1.7s;
}
@keyframes sgd-rain { from { background-position: 0 0; } to { background-position: -12px 46px; } }
@keyframes sgd-rain2 { from { background-position: 0 0; } to { background-position: -19px 71px; } }
.category-tile::after { animation-name: sgd-rain2; }
@media (prefers-reduced-motion: reduce) { .category-tile::before, .category-tile::after { animation: none; } }
.category-tile strong { font-size: 1.15rem; line-height: 1.25; }
.category-tile span { opacity: .85; font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cta-band { background: var(--sgd-accent); color: #fff; text-align: center; padding: 48px 0; }
.cta-band h2 { color: #fff; }
.cta-band .button { background: #fff; color: var(--sgd-accent-dark); }
.cta-band .button:hover { background: var(--sgd-light); color: var(--sgd-accent-dark); }

/* ---------- Content pages ---------- */
.page-header { background: var(--sgd-light); border-bottom: 1px solid var(--sgd-border); padding: 28px 0; }
.page-header h1 { margin: 0; }
.site-main { padding: 40px 0 60px; }
.entry-content { max-width: 820px; }
.entry-content table { border-collapse: collapse; width: 100%; margin-bottom: 1.4em; }
.entry-content th, .entry-content td { border: 1px solid var(--sgd-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--sgd-light); }
.post-card { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--sgd-border); }

/* ---------- Quote form ---------- */
.sgd-form { max-width: 680px; }
.sgd-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sgd-form p { margin-bottom: 1em; }
.sgd-hp { position: absolute; left: -9999px; }
.sgd-notice { padding: 14px 18px; border-radius: var(--sgd-radius); margin-bottom: 20px; }
.sgd-notice--ok { background: #e6f4ea; border: 1px solid #b7dcc2; }
.sgd-notice--err { background: #fdecea; border: 1px solid #f3b9b3; }

/* ---------- WooCommerce ---------- */
.woocommerce-breadcrumb { font-size: .875rem; color: var(--sgd-muted); margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: var(--sgd-muted); }
.woocommerce-products-header__title { margin-bottom: .4em; }
.woocommerce-result-count { color: var(--sgd-muted); font-size: .9rem; }
.woocommerce .woocommerce-ordering select { width: auto; }

ul.products { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, ul.products li.product {
  float: none; width: auto; margin: 0; padding: 14px; text-align: center;
  background: #fff; border: 1px solid var(--sgd-border); border-radius: 8px; position: relative;
  display: flex; flex-direction: column;
}
ul.products li.product a img { margin: 0 0 12px; aspect-ratio: 1; object-fit: contain; background: var(--sgd-light); border-radius: 4px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; color: var(--sgd-primary); padding: 0; margin-bottom: .4em; }
ul.products li.product a { text-decoration: none; }
ul.products li.product .price { display: block; margin: auto 0 12px; color: var(--sgd-accent-dark); font-weight: 700; }
ul.products li.product .price del { color: var(--sgd-muted); font-weight: 400; }
ul.products li.product .button { margin-top: auto; }
ul.products li.product .price + .button { margin-top: 0; }
span.onsale {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--sgd-accent); color: #fff;
  border-radius: 99px; padding: 3px 12px; font-size: .8rem; font-weight: 700; min-height: 0; line-height: 1.6;
}

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; margin: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; float: none; width: 100%; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--sgd-accent-dark); font-size: 1.25rem; font-weight: 700; }
.woocommerce div.product form.cart { margin: 20px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.woocommerce div.product form.cart .variations { width: 100%; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; padding: 4px 0; }
.woocommerce .quantity .qty { width: 80px; text-align: center; padding: .65em .4em; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; display: flex; gap: 6px; list-style: none; border-bottom: 1px solid var(--sgd-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; margin: 0; padding: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 18px; display: block; font-weight: 600; color: var(--sgd-muted); text-decoration: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--sgd-primary); border-bottom: 3px solid var(--sgd-accent); }
.woocommerce div.product .product_meta { font-size: .9rem; color: var(--sgd-muted); }

/* Cart / checkout / account */
.woocommerce table.shop_table { border: 1px solid var(--sgd-border); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 14px; border-top: 1px solid var(--sgd-border); }
.woocommerce table.shop_table thead th { background: var(--sgd-light); border-top: 0; }
.woocommerce-cart table.cart img { width: 70px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 440px; float: right; }
.woocommerce-checkout #customer_details { margin-bottom: 30px; }
.woocommerce-checkout #payment { background: var(--sgd-light); border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border: 1px solid var(--sgd-border); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 3px solid var(--sgd-accent); background: var(--sgd-light); padding: 14px 18px 14px 50px; margin-bottom: 24px; border-radius: 0 0 6px 6px;
}
.woocommerce-error { border-top-color: #c0392b; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--sgd-border); border-radius: 4px; padding: 8px 14px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--sgd-accent); color: #fff; border-color: var(--sgd-accent); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 20px; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--sgd-border); text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--sgd-light); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sgd-primary); color: #c9d2d7; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 48px 0 32px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; text-align: center; color: #9aa7ae; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; background: var(--sgd-primary); color: #fff; width: 42px; height: 42px; border-radius: 50%; text-align: center; line-height: 42px; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.back-to-top.is-visible { opacity: .9; pointer-events: auto; }
.back-to-top:hover { color: #fff; background: var(--sgd-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .hero h1 { font-size: 2.1rem; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header__main { flex-wrap: wrap; gap: 14px; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; margin-left: 0; }
  .cart-link { margin-left: auto; }
  .menu-toggle { display: block; }
  .main-nav .menu, .main-nav > .container > ul { display: none; flex-direction: column; }
  .main-nav.is-open .menu, .main-nav.is-open > .container > ul { display: flex; }
  .main-nav .container { padding: 0; }
  .main-nav a { border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.06); }
  .main-nav .sub-menu a { color: #dfe5e8; padding-left: 36px; border-bottom: 0; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .two-col, .footer-grid, .sgd-form .row { grid-template-columns: 1fr; }
  .category-tiles { grid-template-columns: 1fr; }
  .woocommerce .cart-collaterals .cart_totals { float: none; max-width: none; }
}
@media (max-width: 420px) { ul.products { grid-template-columns: 1fr; } }

/* ---------- Shop: page background and width ---------- */
.woocommerce-shop .container, .tax-product_cat .container, .tax-product_tag .container, .post-type-archive-product .container { max-width: 1400px; }
.woocommerce-shop .site-main, .tax-product_cat .site-main, .tax-product_tag .site-main, .post-type-archive-product .site-main { background: #f0f2f3; }

/* ---------- Shop: "Filter by" bar ---------- */
.sgd-filterbar { margin: 0 0 28px; }
.sgd-filterbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sgd-filterbar__label { font-weight: 800; font-size: 1.15rem; color: var(--sgd-primary); margin-right: 6px; }
.sgd-fgroup { position: relative; }
.sgd-fbtn {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 1.6em; border-radius: 10px;
  background: #fff; color: var(--sgd-accent-dark); border: 2px solid var(--sgd-accent);
  font-size: 1.1rem; font-weight: 700; transition: background .15s, color .15s;
}
.sgd-fbtn::-webkit-details-marker { display: none; }
.sgd-fbtn::marker { content: ""; }
.sgd-fbtn::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 0 0 4px; }
.sgd-fgroup[open] > .sgd-fbtn::after { transform: rotate(-135deg); margin-top: 4px; }
.sgd-fbtn:hover { background: #e9f4ee; }
.sgd-fgroup[open] > .sgd-fbtn { background: #e9f4ee; }
.sgd-fgroup.is-active > .sgd-fbtn { background: var(--sgd-accent); color: #fff; }
.sgd-fbtn__count { display: inline-block; min-width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 99px; background: #fff; color: var(--sgd-accent-dark); font-size: .85rem; font-weight: 800; }
.sgd-fpanel {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: max-content; min-width: 280px; max-width: min(460px, 90vw);
  background: #fff; border: 1px solid var(--sgd-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.18);
  padding: 16px; display: flex; flex-wrap: wrap; gap: 10px;
}
.sgd-chip {
  display: inline-block; padding: .55em 1.1em; border: 2px solid var(--sgd-border); border-radius: 99px;
  color: var(--sgd-primary); text-decoration: none; font-weight: 600; background: #fff;
}
.sgd-chip:hover { border-color: var(--sgd-accent); color: var(--sgd-accent-dark); }
.sgd-chip.is-selected { background: var(--sgd-accent); border-color: var(--sgd-accent); color: #fff; }
.sgd-fpanel__empty { color: var(--sgd-muted); }

.sgd-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #dde1e4; }
.sgd-applied__label { font-size: .85rem; font-weight: 700; color: var(--sgd-muted); text-transform: uppercase; letter-spacing: .03em; }
.sgd-pill { display: inline-flex; gap: 8px; align-items: center; background: var(--sgd-primary); color: #fff; text-decoration: none; border-radius: 99px; padding: .4em 1em; font-size: .9rem; font-weight: 600; }
.sgd-pill:hover { background: #151d23; color: #fff; }
.sgd-pill span { font-size: 1.1rem; line-height: 1; opacity: .8; }
.sgd-fclear { font-weight: 700; color: #b03a2e; font-size: .92rem; }
.sgd-fclear:hover { color: #8a2c22; }

/* ---------- Shop: product cards ---------- */
.sgd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.sgd-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 2px solid transparent;
}
.sgd-card.has-error { border-color: #d98a80; background: #fdf6f5; }
.sgd-card.is-unavailable { opacity: .65; }
.sgd-card__head { display: flex; gap: 14px; align-items: flex-start; min-height: 80px; }
.sgd-card__img { flex: 0 0 76px; }
.sgd-card__img img { width: 76px; height: 76px; object-fit: contain; display: block; }
.sgd-card__title h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 4px; }
.sgd-card__title h3 a { color: var(--sgd-primary); text-decoration: none; }
.sgd-card__title h3 a:hover { color: var(--sgd-accent); }
.sgd-card__sku { margin: 0; font-size: .82rem; color: var(--sgd-muted); }
.sgd-card__opts { display: flex; flex-direction: column; gap: 8px; }
.sgd-card__opts select { padding: .6em .8em; font-size: .95rem; }
.sgd-card__price { text-align: right; line-height: 1.2; min-height: 3.4em; margin-top: auto; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
.sgd-price__main { font-size: 1.7rem; font-weight: 800; color: var(--sgd-accent-dark); }
.sgd-price__tax { font-size: .8rem; color: var(--sgd-muted); }
.sgd-price__inc { display: block; font-size: .85rem; color: var(--sgd-muted); margin-top: 2px; }
.sgd-na { color: var(--sgd-muted); font-weight: 600; font-size: .9rem; }
.sgd-card__delivery { margin: 0; padding-top: 10px; border-top: 1px solid var(--sgd-light); font-size: .85rem; color: var(--sgd-accent-dark); font-weight: 600; }
.sgd-card__note { margin: 0; font-size: .85rem; color: #b03a2e; font-weight: 600; }
.sgd-card__note:empty { display: none; }
.sgd-card__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.sgd-qty { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--sgd-border); border-radius: var(--sgd-radius); overflow: hidden; background: #fff; }
.sgd-qty .sgd-qty__btn { background: var(--sgd-light); color: var(--sgd-primary); border-radius: 0; padding: 0 .85em; font-size: 1.1rem; line-height: 1; }
.sgd-qty .sgd-qty__btn:hover { background: #e3e8ea; color: var(--sgd-primary); }
.sgd-qty .sgd-qty__input { width: 46px; flex: 0 0 46px; text-align: center; border: 0; border-radius: 0; padding: .6em 0; -moz-appearance: textfield; background: #fff; }
.sgd-qty .sgd-qty__input::-webkit-outer-spin-button, .sgd-qty .sgd-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sgd-add-one { flex: 1 1 130px; min-width: 0; padding: .75em .8em; font-size: 1rem; white-space: nowrap; }
.sgd-add-one:disabled { background: #aab4ba; cursor: not-allowed; }


@media (max-width: 720px) {
  .sgd-filterbar__label { flex-basis: 100%; }
  .sgd-fgroup { flex: 1 1 100%; }
  .sgd-fbtn { width: 100%; justify-content: space-between; }
  .sgd-fpanel { position: static; width: auto; max-width: none; margin-top: 8px; box-shadow: none; }
  .sgd-cards { grid-template-columns: 1fr; }
}

/* ---------- Single product: larger image ---------- */
.woocommerce div.product { grid-template-columns: 1.15fr .85fr; }
.woocommerce div.product div.images { position: relative; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport { background: #fff; border: 1px solid var(--sgd-border); border-radius: 8px; overflow: hidden; }
.woocommerce div.product div.images .woocommerce-product-gallery__image { display: flex; align-items: center; justify-content: center; }
.woocommerce div.product div.images .woocommerce-product-gallery__image a { display: flex; width: 100%; justify-content: center; }
.woocommerce div.product div.images img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: 8px; background: #fff; display: block;
}
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: 4px; border: 1px solid var(--sgd-border); border-radius: 6px; cursor: pointer; opacity: .7; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--sgd-accent); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; }


/* Single product: title size */
.woocommerce div.product .product_title { font-size: 1.5rem; line-height: 1.25; }

/* Cart: larger, more readable text and amounts */
.wp-block-woocommerce-cart, .woocommerce-cart .woocommerce { font-size: 1.1rem; }
.wc-block-cart-items .wc-block-components-product-name { font-size: 1.2rem; font-weight: 700; }
.wc-block-cart-items .wc-block-components-product-price, .wc-block-cart-items .wc-block-components-product-price__value,
.wc-block-cart-item__total .wc-block-components-product-price__value { font-size: 1.2rem; font-weight: 700; }
.wc-block-cart-items .wc-block-components-product-metadata, .wc-block-cart-items .wc-block-components-product-details { font-size: 1rem; }
.wc-block-cart-items__header { font-size: .95rem; }
.wc-block-components-quantity-selector { font-size: 1.1rem; }
.wc-block-components-totals-item { font-size: 1.15rem; }
.wc-block-components-totals-item__label { font-weight: 600; }
.wc-block-components-totals-item__value { font-weight: 700; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 1.4rem; }
.wc-block-components-totals-coupon .wc-block-components-panel__button { font-size: 1.1rem; }
.woocommerce-cart table.cart td, .woocommerce-cart .cart_totals th, .woocommerce-cart .cart_totals td { font-size: 1.1rem; }

/* Colour Choices page */
.sgd-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 24px 0 32px; }
.sgd-colour { background: #fff; border: 1px solid var(--sgd-border); border-radius: 10px; overflow: hidden; padding-bottom: 14px; }
.sgd-colour__swatch { height: 130px; margin-bottom: 14px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); }
.sgd-colour h3 { font-size: 1.1rem; margin: 0 16px 2px; }
.sgd-colour p { margin: 4px 16px 0; font-size: .92rem; color: var(--sgd-muted); }
.sgd-colour .sgd-colour__code { font-weight: 700; color: var(--sgd-primary); font-size: .85rem; }

/* Banner: buttons live under the benefits box (no separate bar) */
.hero__side { flex: 1 1 auto; margin: 0 max(24px, 3vw) 0 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 0; }
.hero__side .hero__panel { margin: 0; padding: 16px 24px; }
.hero__side .hero__panel h2 { font-size: 1.15rem; margin-bottom: 9px; }
.hero__side .hero__panel ul { gap: 7px; }
.hero__side .hero__actions { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__side .hero__actions .button { flex: 1 1 0; min-width: 150px; text-align: center; padding: .7em 1em; }
@media (max-width: 900px) { .hero__side { margin: 0 16px 16px; } }

/* Single product: bigger square image */
.single-product .site-main > .container { max-width: 1340px; }
.woocommerce div.product { grid-template-columns: 1.35fr 1fr; gap: 36px; }
.woocommerce div.product div.images img { padding: 0; object-fit: contain; aspect-ratio: 1 / 1; height: auto; width: 100%; }
.woocommerce div.product div.images .flex-control-thumbs img { padding: 3px; }
@media (max-width: 960px) { .woocommerce div.product { grid-template-columns: 1fr; } }
.hero__side .hero__actions .button { display: flex; align-items: center; justify-content: center; border: 2px solid transparent; }
.hero__side .hero__actions .button--ghost { border-color: #fff; }

.hero__side { padding: 8px 0; gap: 10px; }
.hero__side .hero__panel { padding: 14px 22px; }
.hero__side .hero__panel h2 { margin-bottom: 7px; }
.hero__side .hero__panel ul { gap: 5px; }
.hero__side .hero__actions .button { padding: .55em 1em; }
@media (max-width: 900px) { .hero--image .hero__img { height: auto; } }

/* Single product: space between price, quantity and Add to basket */
.woocommerce div.product p.price, .woocommerce div.product span.price { display: block; margin: 0 0 22px; }
.woocommerce div.product form.cart { gap: 22px; margin: 24px 0; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; margin-top: 22px; }
.woocommerce div.product form.cart .woocommerce-variation-price { margin-top: 16px; }
.woocommerce div.product form.cart .quantity { margin: 0; }
@media (min-width: 901px) and (max-width: 1250px) { .hero--image .hero__img { height: auto; aspect-ratio: 3.1 / 1; } }

/* Banner box: smaller, right-aligned */
.hero__side { flex: 0 0 410px; margin: 0 max(24px, 3vw) 0 auto; gap: 8px; }
.hero__side .hero__panel { padding: 12px 18px; border-radius: 12px; }
.hero__side .hero__panel h2 { font-size: 1rem; margin-bottom: 6px; }
.hero__side .hero__panel ul { gap: 4px; }
.hero__side .hero__panel li { font-size: .82rem; gap: 9px; line-height: 1.3; }
.hero__side .hero__panel li::before { flex: 0 0 18px; width: 18px; height: 18px; line-height: 18px; font-size: .7rem; }
.hero__side .hero__actions { gap: 10px; }
.hero__side .hero__actions .button { min-width: 0; padding: .4em .8em; font-size: .88rem; }
@media (max-width: 1100px) { .hero__side { flex-basis: 360px; } }
@media (max-width: 900px) { .hero__side { flex: none; margin: 0 16px 16px; } }

/* Single product: grey backdrop behind the image */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport { padding: 14px; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { background: #f1f2f3; border-radius: 6px; }
.woocommerce div.product div.images .flex-control-thumbs img { background: #f1f2f3; }

/* Category cards: wider so titles stay on one line, descriptions aligned */
.container--wide { max-width: 1400px; }
.category-tiles { gap: 14px; }
.category-tile { padding: 20px 18px; }
.category-tile strong { white-space: nowrap; font-size: 1.05rem; }
.category-tile span { font-size: .9rem; }
@media (max-width: 1260px) { .category-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .category-tiles { grid-template-columns: repeat(2, 1fr); } .category-tile strong { white-space: normal; } }
@media (max-width: 520px) { .category-tiles { grid-template-columns: 1fr; } }

/* Cart: small red bin for remove */
.wc-block-cart-item__remove-link, .woocommerce a.remove, .woocommerce-cart table.cart a.remove {
  font-size: 0 !important; line-height: 0 !important; color: transparent !important; background: none !important; border: 0 !important;
  width: 22px !important; height: 22px !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; text-decoration: none !important; cursor: pointer; border-radius: 4px;
}
.wc-block-cart-item__remove-link svg { display: none !important; }
.wc-block-cart-item__remove-link::before, .woocommerce a.remove::before {
  content: ''; width: 18px; height: 18px; display: block;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d33a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M8 6V4h8v2'/><path d='M19 6l-1 14H6L5 6'/><path d='M10 11v6M14 11v6'/></svg>") center / contain no-repeat;
}
.wc-block-cart-item__remove-link:hover, .woocommerce a.remove:hover { background: #fbeceb !important; }

/* Hero panel: nudged ~10mm left, a little taller with more space under the title */
@media (min-width: 901px) {
  .hero__side { margin-right: calc(max(24px, 3vw) + 38px); }
}
.hero__side .hero__panel { padding: 16px 18px 15px; }
.hero__side .hero__panel h2 { margin-bottom: 14px; }
.hero__side .hero__panel ul { gap: 5px; }

/* ---------- Guide pages ---------- */
.sgd-lead { font-size: 1.15rem; line-height: 1.55; color: var(--sgd-muted); margin-bottom: 1.4em; }
.sgd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 30px; }
.sgd-fact { background: var(--sgd-primary); color: #fff; border-radius: 10px; padding: 18px 14px; text-align: center; }
.sgd-fact strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.sgd-fact span { display: block; margin-top: 6px; font-size: .85rem; opacity: .92; }
.sgd-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 30px; }
.sgd-benefit { background: #fff; border: 1px solid var(--sgd-border); border-top: 3px solid var(--sgd-accent); border-radius: 10px; padding: 18px 18px 16px; }
.sgd-benefit h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--sgd-primary); }
.sgd-benefit p { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--sgd-muted); }
.sgd-callout { background: var(--sgd-light); border-left: 4px solid var(--sgd-accent); border-radius: 6px; padding: 14px 18px; margin: 14px 0 22px; line-height: 1.55; }
.sgd-steps { list-style: none; counter-reset: sgdstep; margin: 16px 0 28px; padding: 0; display: grid; gap: 12px; }
.sgd-steps li { counter-increment: sgdstep; position: relative; background: #fff; border: 1px solid var(--sgd-border); border-radius: 10px; padding: 14px 16px 14px 62px; line-height: 1.5; }
.sgd-steps li::before { content: counter(sgdstep); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--sgd-accent); color: #fff; font-weight: 700; text-align: center; line-height: 32px; }
.sgd-steps strong { display: block; color: var(--sgd-primary); margin-bottom: 2px; }
.sgd-steps span { color: var(--sgd-muted); font-size: .94rem; }
.sgd-table-wrap { overflow-x: auto; margin: 10px 0 24px; }
.sgd-table { border-collapse: collapse; width: 100%; max-width: 560px; }
.sgd-table th { background: var(--sgd-primary); color: #fff; padding: 9px 12px; text-align: left; font-size: .88rem; }
.sgd-table td { border: 1px solid var(--sgd-border); padding: 8px 12px; font-size: .92rem; }
.sgd-table tbody tr:nth-child(even) td { background: var(--sgd-light); }
.sgd-cta { background: var(--sgd-primary); color: #fff; border-radius: 12px; padding: 22px; text-align: center; margin: 34px 0 10px; }
.sgd-cta p { margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; }
.sgd-cta p:last-child { margin: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sgd-cta .button--ghost-dark { background: transparent; border: 2px solid #fff; color: #fff; }
.sgd-parts { list-style: none; margin: 6px 0 22px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sgd-parts li { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--sgd-border); border-radius: 8px; padding: 10px 12px; }
.sgd-codes { flex: 0 0 74px; display: flex; flex-direction: column; gap: 4px; }
.sgd-code { display: block; background: var(--sgd-primary); color: #fff; text-decoration: none; text-align: center; font-weight: 700; font-size: .8rem; letter-spacing: .03em; padding: 4px 6px; border-radius: 5px; }
.sgd-code:hover { background: var(--sgd-accent); color: #fff; }
.sgd-part { font-size: .92rem; line-height: 1.4; color: var(--sgd-muted); }
.sgd-part strong { color: var(--sgd-text); }
.sgd-calc { background: var(--sgd-light); border: 1px solid var(--sgd-border); border-radius: 12px; padding: 18px; margin: 14px 0 24px; }
.sgd-calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sgd-calc label span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.sgd-calc input, .sgd-calc select { width: 100%; padding: 9px 10px; border: 1px solid var(--sgd-border); border-radius: 6px; font: inherit; background: #fff; }
.sgd-calc__out { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 0; }
.sgd-calc__out div { background: #fff; border: 1px solid var(--sgd-border); border-radius: 8px; padding: 10px 12px; }
.sgd-calc__out dt { font-size: .8rem; color: var(--sgd-muted); }
.sgd-calc__out dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; color: var(--sgd-primary); }
.sgd-calc__note { margin: 14px 0 0; font-size: .85rem; color: var(--sgd-muted); }
.sgd-calc__warn { margin: 12px 0 0; color: #b3261e; font-weight: 600; }

.sgd-table--wide { max-width: 100%; }
.sgd-compare { background: #fff; border: 1px solid var(--sgd-border); border-radius: 12px; padding: 18px; margin: 14px 0 26px; display: grid; gap: 18px; }
.sgd-compare h4 { margin: 0 0 8px; font-size: .95rem; color: var(--sgd-primary); }
.sgd-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sgd-bar__fill { display: block; height: 18px; border-radius: 4px; background: #9aa5ad; min-width: 6px; }
.sgd-bar__fill--good { background: var(--sgd-accent); }
.sgd-bar em { font-style: normal; font-size: .82rem; color: var(--sgd-muted); white-space: nowrap; }
.sgd-compare__note { margin: 0; font-size: .8rem; color: var(--sgd-muted); }
.sgd-weather { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 14px 0 26px; text-align: center; }
.sgd-weather div { background: #fff; border: 1px solid var(--sgd-border); border-radius: 10px; padding: 14px 12px; }
.sgd-weather__chip { display: block; height: 64px; border-radius: 8px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sgd-weather__chip--1 { background: linear-gradient(135deg,#eef1f3,#c9d0d5); }
.sgd-weather__chip--2 { background: linear-gradient(135deg,#cfd4d8,#a3acb3); }
.sgd-weather__chip--3 { background: linear-gradient(135deg,#8b949b,#5d666d); }
.sgd-weather strong { display: block; color: var(--sgd-primary); }
.sgd-weather small { color: var(--sgd-muted); }

/* Guide figures (technical diagrams) and FAQ */
.sgd-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 26px; align-items: end; }
.sgd-figure { margin: 0; background: #fff; border: 1px solid var(--sgd-border, #e1e6ec); border-radius: 12px; padding: 14px 14px 10px; text-align: center; }
.sgd-figures:has(> .sgd-figure:only-child) { grid-template-columns: minmax(240px, 520px); }
.sgd-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto 8px; }
.sgd-figure figcaption { font-size: .9rem; color: #5b6673; }
.sgd-faq { margin: 12px 0 8px; }
.sgd-faq details { border: 1px solid var(--sgd-border, #e1e6ec); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.sgd-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--sgd-primary); }
.sgd-faq details p { margin: 0; padding: 0 18px 16px; }

/* Component explorer */
.sgd-explorer { display: grid; gap: 18px; margin: 18px 0 30px; grid-template-columns: 1fr; }
.sgd-explorer__img { position: relative; line-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--sgd-border, #e1e6ec); background: #fff; }
.sgd-explorer__img img { width: 100%; height: auto; display: block; }
.sgd-hot { position: absolute; background: transparent; border: 2px solid transparent; border-radius: 8px; padding: 0; cursor: pointer; transition: background .15s, border-color .15s; }
.sgd-hot:hover, .sgd-hot:focus-visible { background: rgba(255,255,255,.28); border-color: #fff; outline: none; box-shadow: 0 0 0 2px var(--sgd-primary); }
.sgd-hot.is-active { background: rgba(255,214,0,.28); border-color: #ffd600; box-shadow: 0 0 0 2px var(--sgd-primary); }
.sgd-explorer__panel { background: #fff; border: 1px solid var(--sgd-border, #e1e6ec); border-top: 4px solid var(--sgd-primary); border-radius: 12px; padding: 20px; align-self: start; }
.sgd-explorer__empty strong { display: block; color: var(--sgd-primary); font-size: 1.15rem; margin-bottom: 6px; }
.sgd-explorer__empty span { color: #5b6673; }
.sgd-explorer__code { display: inline-block; background: var(--sgd-primary); color: #fff; font-weight: 700; letter-spacing: .03em; border-radius: 6px; padding: 4px 10px; margin-bottom: 10px; }
.sgd-explorer__card h3 { margin: 0 0 10px; }
.sgd-explorer__card h4 { margin: 12px 0 2px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6673; }
.sgd-explorer__card p { margin: 0 0 4px; }
.sgd-explorer__card .button { margin-top: 14px; }
.sgd-explorer__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sgd-chip { text-align: left; background: #fff; border: 1px solid var(--sgd-border, #e1e6ec); border-radius: 10px; padding: 9px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font: inherit; }
.sgd-chip strong { color: var(--sgd-primary); font-size: .95rem; }
.sgd-chip span { font-size: .82rem; color: #5b6673; }
.sgd-chip:hover, .sgd-chip.is-active { border-color: var(--sgd-primary); background: #f1f6fb; }
@media (min-width: 900px) {
	.sgd-explorer { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
	.sgd-explorer__panel { position: sticky; top: 90px; }
}

/* Explorer v2: full-width diagram, docked description, pulsing markers */
.sgd-explorer { display: block; width: 100%; margin: 18px 0 30px; }
body.sgd-wide .site-main > .container { max-width: 1440px; }
body.sgd-wide .entry-content { max-width: none; }
body.sgd-wide .entry-content > p, body.sgd-wide .entry-content > h2, body.sgd-wide .entry-content > .sgd-lead { max-width: 820px; }
.sgd-explorer__hint { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 16px; background: #fff8d6; border: 1px solid #f0d96a; border-radius: 10px; font-weight: 600; color: #4a3f00; }
.sgd-explorer__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #ffd600; border: 2px solid var(--sgd-primary); animation: sgdPulse 1.6s infinite; }
.sgd-explorer__stage { margin-bottom: 0; }
.sgd-explorer__img { border-radius: 12px 12px 0 0; }
.sgd-hot::after { content: "+"; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: #ffd600; color: var(--sgd-primary); border: 2px solid var(--sgd-primary); font: 700 13px/14px system-ui, sans-serif; text-align: center; animation: sgdPulse 1.6s infinite; pointer-events: none; }
.sgd-hot:hover::before, .sgd-hot:focus-visible::before { content: attr(data-label); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); background: var(--sgd-primary); color: #fff; font: 700 12px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 3; pointer-events: none; }
.sgd-hot.is-active::after { background: var(--sgd-primary); color: #ffd600; animation: none; }
@keyframes sgdPulse { 0% { box-shadow: 0 0 0 0 rgba(255,214,0,.85); } 70% { box-shadow: 0 0 0 10px rgba(255,214,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,214,0,0); } }
/* Description docks to the bottom of the screen while the diagram is in view */
.sgd-explorer__panel { position: sticky; bottom: 0; top: auto; z-index: 5; margin: 0; border-radius: 0 0 12px 12px; border-top: 4px solid #ffd600; box-shadow: 0 -8px 24px rgba(0,0,0,.14); padding: 16px 20px; max-height: 46vh; overflow: auto; align-self: auto; }
.sgd-explorer__card { display: grid; gap: 6px 22px; grid-template-columns: 1fr; align-items: start; }
.sgd-explorer__card[hidden] { display: none; }
.sgd-explorer__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sgd-explorer__head .sgd-explorer__code { margin: 0; }
.sgd-explorer__head h3 { margin: 0; }
.sgd-explorer__card h4 { margin: 0 0 2px; }
.sgd-explorer__card .button { margin: 6px 0 0; justify-self: start; }
.sgd-explorer__list { margin-top: 18px; }
@media (min-width: 900px) {
	.sgd-explorer { grid-template-columns: none; }
	.sgd-explorer__panel { position: sticky; top: auto; }
	.sgd-explorer__card { grid-template-columns: minmax(180px, .8fr) 1.2fr 1.2fr auto; align-items: center; }
	.sgd-explorer__card .button { margin: 0; }
}
.sgd-partnote { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: #eef5fc; border: 1px solid #c8dcf0; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; font-weight: 600; color: var(--sgd-primary); }
