/*
Theme Name: HDF-IT Store
Theme URI: https://hdf-it.fr/
Author: HDF-IT
Description: Theme sobre et oriente services pour la boutique WooCommerce HDF-IT.
Version: 0.8.0
Requires at least: 6.8
Requires PHP: 8.0
Text Domain: hdf-it-store
*/

:root {
  --hdf-navy: #081a3a;
  --hdf-blue: #1357d8;
  --hdf-blue-dark: #0b3b99;
  --hdf-cyan: #55d6e7;
  --hdf-red: #d84040;
  --hdf-ink: #17233a;
  --hdf-muted: #5f6f87;
  --hdf-line: #dce5f1;
  --hdf-surface: #f3f7fc;
  --hdf-white: #ffffff;
  --hdf-success: #147a4b;
  --hdf-radius: 18px;
  --hdf-shadow: 0 18px 48px rgba(8, 26, 58, 0.1);
  --hdf-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hdf-ink);
  background: var(--hdf-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
}

body.admin-bar .hdf-header {
  top: 32px;
}

a {
  color: var(--hdf-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--hdf-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--hdf-navy);
  background: var(--hdf-white);
  border-radius: 8px;
}

.hdf-container {
  width: min(calc(100% - 40px), var(--hdf-container));
  margin-inline: auto;
}

.hdf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 241, 0.9);
  backdrop-filter: blur(14px);
}

.hdf-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hdf-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.hdf-brand img {
  width: 132px;
  display: block;
}

.hdf-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hdf-nav a {
  padding: 10px 12px;
  color: var(--hdf-ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 10px;
}

.hdf-nav a:hover,
.hdf-nav a:focus-visible,
.hdf-nav .current-menu-item > a {
  color: var(--hdf-blue);
  background: var(--hdf-surface);
}

.hdf-nav__quote {
  border: 1px solid var(--hdf-line);
}

.hdf-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
  color: var(--hdf-white) !important;
  background: var(--hdf-navy) !important;
}

.hdf-cart-link__count {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: var(--hdf-navy);
  background: var(--hdf-cyan);
  border-radius: 99px;
  font-size: 0.78rem;
}

.hdf-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--hdf-navy);
  background: var(--hdf-white);
  border: 1px solid var(--hdf-line);
  border-radius: 10px;
}

.hdf-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hdf-prototype-notice {
  padding: 8px 20px;
  color: #523600;
  background: #fff4cc;
  border-bottom: 1px solid #f0d67f;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.hdf-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 118px) 0 74px;
  background:
    radial-gradient(circle at 88% 10%, rgba(85, 214, 231, 0.24), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #edf5ff 62%, #f8fbff 100%);
}

.hdf-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 64px solid rgba(19, 87, 216, 0.08);
  border-radius: 50%;
}

.hdf-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.hdf-eyebrow {
  margin: 0 0 12px;
  color: var(--hdf-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hdf-hero h1,
.hdf-page-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--hdf-navy);
  font-size: clamp(2.65rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hdf-hero__lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--hdf-muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hdf-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--hdf-white);
  background: var(--hdf-blue);
  border: 1px solid var(--hdf-blue);
  border-radius: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.hdf-button:hover,
.hdf-button:focus-visible,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  color: var(--hdf-white);
  background: var(--hdf-blue-dark);
  border-color: var(--hdf-blue-dark);
  transform: translateY(-1px);
}

.hdf-button--secondary {
  color: var(--hdf-navy);
  background: var(--hdf-white);
  border-color: var(--hdf-line);
}

.hdf-button--secondary:hover,
.hdf-button--secondary:focus-visible {
  color: var(--hdf-blue);
  background: var(--hdf-white);
  border-color: var(--hdf-blue);
}

.hdf-hero__panel {
  position: relative;
  padding: 28px;
  color: var(--hdf-white);
  background: var(--hdf-navy);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(8, 26, 58, 0.22);
}

.hdf-hero__panel::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 13px;
  height: 13px;
  background: var(--hdf-cyan);
  border-radius: 50%;
  box-shadow: 24px 0 0 rgba(85, 214, 231, 0.38), 48px 0 0 rgba(85, 214, 231, 0.16);
}

.hdf-hero__panel h2 {
  max-width: 280px;
  margin: 0 0 22px;
  font-size: 1.42rem;
  line-height: 1.25;
}

.hdf-hero__panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hdf-hero__panel li {
  position: relative;
  padding-left: 28px;
  color: #dce8ff;
}

.hdf-hero__panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hdf-cyan);
  font-weight: 900;
}

.hdf-section {
  padding: clamp(62px, 8vw, 100px) 0;
}

.hdf-section--muted {
  background: var(--hdf-surface);
}

.hdf-section--path {
  background:
    radial-gradient(circle at 8% 15%, rgba(85, 214, 231, 0.16), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--hdf-line);
}

.hdf-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hdf-section--quote {
  border-top: 1px solid var(--hdf-line);
}

.hdf-section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.hdf-section-heading h2 {
  margin: 0;
  color: var(--hdf-navy);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hdf-section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--hdf-muted);
}

.hdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hdf-card {
  min-width: 0;
  padding: 26px;
  background: var(--hdf-white);
  border: 1px solid var(--hdf-line);
  border-radius: var(--hdf-radius);
  box-shadow: 0 10px 28px rgba(8, 26, 58, 0.05);
}

.hdf-card h3 {
  margin: 0 0 8px;
  color: var(--hdf-navy);
  font-size: 1.28rem;
  line-height: 1.25;
}

.hdf-card p {
  margin: 0;
  color: var(--hdf-muted);
}

.hdf-card__number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--hdf-blue);
  background: #eaf2ff;
  border-radius: 12px;
  font-weight: 900;
}

.hdf-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.hdf-quote-panel {
  padding: clamp(28px, 5vw, 50px);
  color: var(--hdf-white);
  background: linear-gradient(145deg, var(--hdf-blue-dark), var(--hdf-navy));
  border-radius: 24px;
}

.hdf-quote-panel h2,
.hdf-quote-panel h3 {
  margin-top: 0;
  color: var(--hdf-white);
}

.hdf-quote-panel p {
  color: #dce8ff;
}

.hdf-quote-panel .hdf-button--secondary {
  border-color: var(--hdf-white);
}

.hdf-page-header {
  padding: 66px 0 36px;
  background: var(--hdf-surface);
}

.hdf-page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.hdf-page-header p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--hdf-muted);
}

.hdf-main {
  min-height: 55vh;
}

.hdf-content {
  padding: 60px 0 90px;
}

.hdf-content > *:first-child {
  margin-top: 0;
}

.hdf-footer {
  padding: 52px 0 30px;
  color: #c6d3e8;
  background: var(--hdf-navy);
}

.hdf-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 42px;
}

.hdf-footer img {
  width: 132px;
  padding: 8px;
  background: var(--hdf-white);
  border-radius: 8px;
}

.hdf-footer h2 {
  margin: 0 0 14px;
  color: var(--hdf-white);
  font-size: 1rem;
}

.hdf-footer a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #dce8ff;
  text-decoration: none;
}

.hdf-footer a:hover,
.hdf-footer a:focus-visible {
  color: var(--hdf-cyan);
}

.hdf-footer__legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(220, 232, 255, 0.15);
  font-size: 0.85rem;
}

.hdf-empty-products {
  padding: 28px;
  background: var(--hdf-surface);
  border: 1px dashed #b9c9dd;
  border-radius: var(--hdf-radius);
}

.hdf-product-flow {
  margin: 8px 0 16px;
  color: var(--hdf-blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hdf-quote-cta {
  clear: both;
  margin-top: 24px;
  padding: 22px;
  background: #edf4ff;
  border-left: 4px solid var(--hdf-blue);
  border-radius: 10px;
}

.hdf-payment-pending {
  margin-bottom: 28px;
  padding: 22px;
  background: #fff4cc;
  border: 1px solid #efd77e;
  border-radius: 12px;
}

.hdf-payment-pending h2 {
  margin: 0 0 8px;
  color: #523600;
  font-size: 1.25rem;
}

.hdf-payment-pending p {
  margin: 0 0 16px;
  color: #6b4b12;
}

.hdf-it-no-payment-gateway .wc-block-components-checkout-place-order-button,
.hdf-it-no-payment-gateway #place_order {
  display: none !important;
}

.hdf-quote-cta p {
  margin: 0 0 14px;
}

/* WooCommerce */
.hdf-store-main {
  padding-top: 52px;
  padding-bottom: 76px;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 24px;
  color: var(--hdf-muted);
  font-size: 0.86rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--hdf-blue);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.hdf-section#sites .woocommerce ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hdf-section#solutions-metiers .woocommerce ul.products,
.hdf-section#accompagnement-numerique .woocommerce ul.products {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.hdf-offer-comparison {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--hdf-line);
  border-radius: var(--hdf-radius);
  box-shadow: 0 14px 34px rgba(8, 26, 58, 0.06);
}

.hdf-offer-comparison__heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.hdf-offer-comparison__heading h3 {
  margin: 0 0 10px;
  color: var(--hdf-navy);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}

.hdf-offer-comparison__heading p:last-child {
  margin-bottom: 0;
  color: var(--hdf-muted);
  line-height: 1.62;
}

.hdf-offer-comparison__scroll {
  overflow-x: auto;
  border: 1px solid #d4dfed;
  border-radius: 14px;
}

.hdf-offer-comparison table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.hdf-offer-comparison th,
.hdf-offer-comparison td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dce5f0;
  border-right: 1px solid #e1e8f1;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hdf-offer-comparison thead th {
  color: #fff;
  background: var(--hdf-navy);
}

.hdf-offer-comparison tbody th {
  width: 170px;
  color: var(--hdf-navy);
  background: #f4f8ff;
}

.hdf-offer-comparison tr:last-child th,
.hdf-offer-comparison tr:last-child td {
  border-bottom: 0;
}

.hdf-section--solution {
  background:
    radial-gradient(circle at 88% 18%, rgba(85, 214, 231, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f5f9ff);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
  background: var(--hdf-white);
  border: 1px solid var(--hdf-line);
  border-radius: var(--hdf-radius);
  box-shadow: 0 10px 28px rgba(8, 26, 58, 0.05);
}

.woocommerce ul.products[class*="columns-"] > li.product,
.woocommerce-page ul.products[class*="columns-"] > li.product {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
}

.woocommerce ul.products li.product:has(.hdf-product-recommended) {
  border-color: rgba(19, 87, 216, 0.42);
  box-shadow: 0 18px 42px rgba(19, 87, 216, 0.13);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--hdf-surface);
  border-radius: 12px;
}

.woocommerce ul.products li.product.product_cat-interventions a img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  color: var(--hdf-navy);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--hdf-blue-dark);
  font-size: 1.28rem;
  font-weight: 800;
}

.hdf-product-recommended {
  align-self: flex-start;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 9px;
  color: var(--hdf-blue-dark);
  background: #eaf2ff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.hdf-product-summary {
  margin: 8px 0 14px;
  color: var(--hdf-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hdf-product-card-details {
  margin: 0 0 16px;
  border: 1px solid #cbd8e7;
  border-radius: 11px;
  background: #f8fbff;
}

.hdf-product-card-details summary {
  padding: 12px 14px;
  color: var(--hdf-navy);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.hdf-product-card-details[open] summary {
  border-bottom: 1px solid #d8e2ee;
}

.hdf-product-card-details p,
.hdf-product-card-details ul {
  margin: 0;
  padding: 12px 14px 0;
  color: var(--hdf-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hdf-product-card-details ul {
  padding-left: 32px;
}

.hdf-product-card-details li {
  margin: 5px 0;
}

.hdf-product-card-details p:last-child {
  padding-bottom: 14px;
}

.hdf-product-timing {
  margin: 0 0 16px;
  padding: 11px 12px;
  color: var(--hdf-ink);
  background: #f4f8ff;
  border-left: 3px solid var(--hdf-blue);
  border-radius: 7px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.hdf-product-timing strong {
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  margin-top: auto;
}

.woocommerce span.onsale {
  min-width: 0;
  min-height: 0;
  padding: 5px 10px;
  color: var(--hdf-white);
  background: var(--hdf-success);
  border-radius: 99px;
  line-height: 1.2;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--hdf-blue);
  background: var(--hdf-surface);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--hdf-blue);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 46px;
  padding: 9px 12px;
  background: var(--hdf-white);
  border: 1px solid #b9c9dd;
  border-radius: 9px;
}

.woocommerce table.shop_table {
  border-color: var(--hdf-line);
  border-radius: 12px;
}

.woocommerce div.product div.images img {
  background: var(--hdf-surface);
  border-radius: var(--hdf-radius);
}

.hdf-single-product-illustration {
  overflow: visible;
  border: 1px solid var(--hdf-line);
  border-radius: var(--hdf-radius);
  box-shadow: 0 14px 34px rgba(8, 26, 58, 0.08);
}

@media (min-width: 921px) {
  .woocommerce div.product div.images.hdf-product-gallery {
    width: 57%;
  }

  .woocommerce div.product div.summary {
    width: 39%;
  }
}

.hdf-product-gallery {
  display: grid;
  gap: 18px;
}

.hdf-product-gallery__main {
  display: grid;
  gap: 0;
  margin: 0;
}

.hdf-product-gallery__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 18px 18px 0 0;
  cursor: zoom-in;
}

.hdf-product-gallery__zoom img {
  display: block;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  transition: transform 180ms ease;
}

.hdf-product-gallery__zoom:hover img,
.hdf-product-gallery__zoom:focus-visible img {
  transform: scale(1.015);
}

.hdf-product-gallery__zoom > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(8, 26, 58, 0.86);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.hdf-product-gallery__content {
  display: grid;
  gap: 10px;
  padding: 22px 24px 24px;
  background: #fff;
  border-radius: 0 0 18px 18px;
}

.hdf-product-gallery__content .hdf-eyebrow {
  margin: 0;
}

.hdf-product-gallery__caption {
  margin: 0;
  color: var(--hdf-navy);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.4;
}

.hdf-product-gallery__description {
  margin: 0;
  color: var(--hdf-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hdf-product-gallery__points {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.hdf-product-gallery__points:empty {
  display: none;
}

.hdf-product-gallery__points li {
  position: relative;
  padding-left: 24px;
  color: var(--hdf-ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hdf-product-gallery__points li::before {
  position: absolute;
  left: 0;
  color: var(--hdf-success);
  font-weight: 900;
  content: "✓";
}

.hdf-product-gallery__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hdf-product-gallery__choice {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 11px;
  color: inherit;
  text-align: left;
  background: var(--hdf-white);
  border: 1px solid #c6d4e4;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(8, 26, 58, 0.04);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.hdf-product-gallery__choice img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #edf5ff;
  border-radius: 12px;
}

.hdf-product-gallery__choice span {
  display: grid;
  gap: 5px;
}

.hdf-product-gallery__choice strong {
  color: var(--hdf-navy);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.hdf-product-gallery__choice small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--hdf-muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hdf-product-gallery__choice:hover,
.hdf-product-gallery__choice:focus-visible,
.hdf-product-gallery__choice.is-active {
  border-color: var(--hdf-blue);
  box-shadow: 0 14px 26px rgba(19, 87, 216, 0.14);
  transform: translateY(-1px);
}

.hdf-product-gallery__choice:focus-visible {
  outline: 3px solid rgba(19, 87, 216, 0.22);
  outline-offset: 2px;
}

.hdf-product-gallery__dialog {
  width: min(94vw, 1280px);
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(8, 26, 58, 0.34);
}

.hdf-product-gallery__dialog::backdrop {
  background: rgba(4, 16, 37, 0.78);
}

.hdf-product-gallery__dialog-inner {
  position: relative;
  display: grid;
  gap: 0;
}

.hdf-product-gallery__dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #eef5ff;
}

.hdf-product-gallery__dialog p {
  margin: 0;
  padding: 16px 22px 20px;
  color: var(--hdf-ink);
  line-height: 1.55;
}

.hdf-product-gallery__dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 9px 13px;
  color: #fff;
  background: rgba(8, 26, 58, 0.9);
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}

.woocommerce div.product .product_title {
  color: var(--hdf-navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.woocommerce div.product form.cart .button {
  min-height: 50px;
}

.hdf-product-quick,
.hdf-product-legal {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #cad8e8;
  border-radius: 14px;
  background: #f8fbff;
}

.hdf-product-quick h2,
.hdf-product-quick h3,
.hdf-product-legal h2 {
  margin: 0 0 10px;
  color: var(--hdf-navy);
  font-size: 1.08rem;
}

.hdf-product-quick h3 {
  margin: 18px 0 8px;
  font-size: 0.98rem;
}

.hdf-product-quick ul,
.hdf-product-legal ul {
  margin: 0;
  padding-left: 21px;
}

.hdf-product-quick li,
.hdf-product-legal li {
  margin: 5px 0;
  color: var(--hdf-muted);
  line-height: 1.5;
}

.hdf-product-quick p,
.hdf-product-legal p {
  margin: 12px 0 0;
}

.hdf-product-quick .hdf-product-quick__fit {
  margin-top: 0;
  color: var(--hdf-ink);
  font-size: 0.96rem;
  line-height: 1.62;
}

.hdf-product-quick .hdf-product-quick__difference,
.hdf-product-quick .hdf-product-quick__boundary {
  padding: 12px 14px;
  border-radius: 10px;
  background: #edf4ff;
  line-height: 1.58;
}

.hdf-product-quick .hdf-product-quick__boundary {
  background: #fff8e9;
}

.hdf-product-quick a,
.hdf-product-legal a {
  color: var(--hdf-blue-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hdf-product-legal {
  border-color: #b9dfcf;
  background: #f3fbf7;
}

.hdf-product-details {
  clear: both;
  margin-top: 56px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--hdf-line);
  border-radius: var(--hdf-radius);
  background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 18px 46px rgba(8, 26, 58, 0.07);
}

.hdf-product-details > h2 {
  max-width: 820px;
  margin: 0 0 30px;
  color: var(--hdf-navy);
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.12;
}

.hdf-product-details__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 34px;
}

.hdf-product-details__content > h2,
.hdf-product-details__content > h3,
.hdf-product-details__content > p,
.hdf-product-details__content > ul,
.hdf-product-details__content > ol,
.hdf-product-details__content > details {
  margin: 0;
}

.hdf-product-details__content > h2 {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--hdf-line);
  color: var(--hdf-navy);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.hdf-product-details__content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.hdf-product-details__content > p,
.hdf-product-details__content > ul,
.hdf-product-details__content > ol,
.hdf-product-details__content > details {
  padding: 20px 22px;
  border: 1px solid #d4dfed;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hdf-muted);
  line-height: 1.68;
}

.hdf-product-details__content > ul,
.hdf-product-details__content > ol {
  padding-left: 42px;
}

.hdf-product-details__content > details {
  grid-column: 1 / -1;
}

.hdf-product-details__content > details summary {
  color: var(--hdf-navy);
  font-weight: 800;
  cursor: pointer;
}

.hdf-product-details__content > details p {
  margin-bottom: 0;
}

.wc-block-components-button,
.wc-block-cart__submit-button {
  color: var(--hdf-white) !important;
  background: var(--hdf-blue) !important;
  border-radius: 11px !important;
  text-decoration: none !important;
}

@media (max-width: 920px) {
  body.admin-bar .hdf-header {
    top: 46px;
  }

  .hdf-menu-toggle {
    display: grid;
  }

  .hdf-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 14px;
    background: var(--hdf-white);
    border: 1px solid var(--hdf-line);
    border-radius: 14px;
    box-shadow: var(--hdf-shadow);
  }

  .hdf-nav.is-open {
    display: grid;
  }

  .hdf-nav a {
    display: flex;
    justify-content: space-between;
  }

  .hdf-hero__grid,
  .hdf-split,
  .hdf-footer__grid {
    grid-template-columns: 1fr;
  }

  .hdf-hero__panel {
    max-width: 620px;
  }

  .hdf-grid,
  .hdf-grid--four,
  .woocommerce ul.products,
  .hdf-section#sites .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hdf-product-gallery__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hdf-product-gallery__zoom img {
    min-height: 0;
  }

  .hdf-product-details__content {
    grid-template-columns: 1fr;
  }

  .hdf-product-details__content > h2,
  .hdf-product-details__content > details {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .hdf-container {
    width: min(calc(100% - 28px), var(--hdf-container));
  }

  .hdf-header__inner {
    min-height: 70px;
  }

  .hdf-brand img {
    width: 112px;
  }

  .hdf-hero {
    padding-top: 52px;
  }

  .hdf-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .hdf-actions {
    display: grid;
  }

  .hdf-button {
    width: 100%;
  }

  .hdf-grid,
  .hdf-grid--four,
  .woocommerce ul.products,
  .hdf-section#sites .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .hdf-card,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 22px;
  }

  .hdf-product-gallery__choices {
    grid-template-columns: 1fr;
  }
}
