/**
 * HyperCorners WooCommerce styles.
 */

.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-products-header__title,
.woocommerce-page .woocommerce-products-header__title {
  color: var(--hc-heading);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 1.25rem;
}

.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  padding: 0.35rem 2.5rem 0.35rem 1rem;
  color: var(--hc-text);
  background-color: var(--hc-bg-content);
}

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

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 16px 16px 18px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: var(--hc-bg-content);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.woocommerce ul.products li.product.hc-card-focus,
.woocommerce-page ul.products li.product.hc-card-focus {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--hc-shadow-card);
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
  margin: 0 0 14px;
  border-radius: calc(var(--hc-radius) - 4px);
  background: linear-gradient(145deg, #FFFFFF, var(--hc-soft-bg));
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.7em;
  padding: 0;
  margin: 0 0 0.35rem;
  color: var(--hc-heading);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  margin-top: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--hc-blue);
  font-size: 1rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
  color: #94A3B8;
  opacity: 1;
  font-weight: 500;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
  text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: var(--hc-blue);
  color: #FFFFFF;
  font-weight: 750;
  line-height: 1;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus,
.woocommerce-page ul.products li.product .button:focus {
  background: var(--hc-violet);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.woocommerce span.onsale.hc-sale-badge,
.woocommerce ul.products li.product .onsale.hc-sale-badge,
.woocommerce-page ul.products li.product .onsale.hc-sale-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 2;
  min-width: auto;
  min-height: auto;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hc-blue), var(--hc-violet));
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.hc-product-subtitle {
  min-height: 2.6em;
  margin: 0.15rem 0 0;
  color: #64748B;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hc-hyperscore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--hc-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.hc-hyperscore-label {
  color: var(--hc-blue);
}

.hc-hyperscore-value {
  color: var(--hc-heading);
}

.hc-shop-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--hc-radius);
  background:
    radial-gradient(circle at top left, rgba(109, 40, 217, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(248, 250, 252, 0.96));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.hc-shop-promo-content {
  display: grid;
  gap: 0.15rem;
}

.hc-shop-promo-kicker {
  color: var(--hc-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-shop-promo-text {
  margin: 0;
  color: var(--hc-heading);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.hc-shop-promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--hc-blue);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.hc-shop-promo-button:hover,
.hc-shop-promo-button:focus {
  background: var(--hc-violet);
  color: #FFFFFF;
}

.hc-shop-before-grid {
  margin: 0 0 1.25rem;
}

.hc-shop-reassurance-text {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  background: var(--hc-bg-content);
  color: #64748B;
  font-size: 0.94rem;
  line-height: 1.5;
}

.hc-shop-before-grid-widgets {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hc-shop-widget {
  padding: 1rem;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: var(--hc-bg-content);
}

.hc-widget-title {
  margin: 0 0 0.75rem;
  color: var(--hc-heading);
  font-size: 1rem;
  font-weight: 800;
}

.hc-filter-widget ul,
.hc-shop-widget ul {
  margin-left: 0;
  list-style: none;
}

.hc-filter-widget li,
.hc-shop-widget li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.hc-filter-widget li:last-child,
.hc-shop-widget li:last-child {
  border-bottom: 0;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  margin: 0 0.2rem;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: var(--hc-bg-content);
  color: var(--hc-text);
  line-height: 40px;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
  border-color: var(--hc-blue);
  background: var(--hc-blue);
  color: #FFFFFF;
}


/* Single product polish */
.single-product div.product .summary .hc-hyperscore {
  margin: 0.25rem 0 0.95rem;
}

.single-product div.product form.cart {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.single-product div.product form.cart .quantity input.qty {
  min-height: 44px;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
}

.single-product div.product form.cart .single_add_to_cart_button {
  min-height: 44px;
  padding-inline: 1.55rem;
  border-radius: 999px;
  background: var(--hc-blue);
  color: #FFFFFF;
  font-weight: 800;
}

.single-product div.product form.cart .single_add_to_cart_button:hover,
.single-product div.product form.cart .single_add_to_cart_button:focus {
  background: var(--hc-violet);
  color: #FFFFFF;
}

.single-product div.product .product_meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hc-border);
  color: #64748B;
  font-size: 0.92rem;
}

.single-product .related.products > h2 {
  margin-bottom: 1.15rem;
  color: var(--hc-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Single product UX redesign - v1.2 */
.single-product .site-content .ast-container {
  max-width: 1240px;
}

.single-product div.product {
  position: relative;
}

.single-product div.product div.images,
.single-product div.product .woocommerce-product-gallery {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: linear-gradient(145deg, #FFFFFF, rgba(248, 250, 252, 0.9));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.single-product div.product div.images .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.single-product div.product div.images img {
  border-radius: 18px;
  object-fit: contain;
}

.single-product div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #FFFFFF;
}

.single-product div.product div.images .flex-control-thumbs li {
  float: none;
  width: auto;
}

.single-product div.product div.images .flex-control-thumbs img {
  padding: 6px;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  background: var(--hc-soft-bg);
  opacity: 0.7;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.single-product div.product div.images .flex-control-thumbs img.flex-active,
.single-product div.product div.images .flex-control-thumbs img:hover,
.single-product div.product div.images .flex-control-thumbs img:focus {
  border-color: rgba(37, 99, 235, 0.45);
  opacity: 1;
  transform: translateY(-1px);
}

.single-product div.product .summary {
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--hc-shadow-soft);
}

.single-product .hc-single-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.single-product .hc-single-kicker,
.single-product .hc-single-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
}

.single-product .hc-single-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: var(--hc-blue);
  text-transform: uppercase;
}

.single-product .hc-single-category {
  border: 1px solid var(--hc-border);
  background: var(--hc-bg-content);
  color: #64748B;
}

.single-product div.product .product_title {
  margin-bottom: 0.55rem;
  color: var(--hc-heading);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.single-product div.product .summary > .hc-product-subtitle {
  min-height: auto;
  max-width: 48ch;
  margin: 0 0 0.8rem;
  color: #64748B;
  font-size: 1.02rem;
  line-height: 1.55;
}

.single-product div.product .summary .hc-hyperscore {
  margin: 0.25rem 0 1rem;
  padding: 0.4rem 0.72rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(109, 40, 217, 0.08));
  font-size: 0.86rem;
}

.woocommerce.single-product div.product p.price,
.woocommerce.single-product div.product span.price {
  margin: 0.85rem 0 1rem;
  color: var(--hc-blue);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.single-product div.product .woocommerce-product-details__short-description {
  margin: 0 0 1rem;
  color: var(--hc-text);
  font-size: 1rem;
  line-height: 1.65;
}

.single-product div.product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

.hc-single-ux-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin: 1rem 0 1.15rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.055), rgba(248, 250, 252, 0.95));
}

.hc-single-ux-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--hc-blue);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 900;
}

.hc-single-ux-note strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--hc-heading);
  font-size: 0.98rem;
  font-weight: 850;
}

.hc-single-ux-note p {
  margin: 0;
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.5;
}

.single-product div.product form.cart {
  display: grid;
  grid-template-columns: minmax(72px, 92px) 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin: 1.15rem 0 0;
}

.single-product div.product form.cart .quantity {
  margin: 0;
}

.single-product div.product form.cart .quantity input.qty {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--hc-heading);
  font-weight: 800;
}

.single-product div.product form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  padding-inline: 1.6rem;
  border-radius: 14px;
  background: var(--hc-blue);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.single-product div.product form.cart .single_add_to_cart_button:hover,
.single-product div.product form.cart .single_add_to_cart_button:focus {
  background: var(--hc-violet);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(109, 40, 217, 0.24);
}

.hc-single-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.hc-single-trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #FFFFFF;
}

.hc-single-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hc-soft-bg);
  color: var(--hc-blue);
  font-size: 0.85rem;
  font-weight: 900;
}

.hc-single-trust-copy strong,
.hc-single-trust-copy small {
  display: block;
}

.hc-single-trust-copy strong {
  color: var(--hc-heading);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.hc-single-trust-copy small {
  margin-top: 0.2rem;
  color: #64748B;
  font-size: 0.76rem;
  line-height: 1.35;
}

.single-product div.product .product_meta {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  background: var(--hc-soft-bg);
  color: #64748B;
  font-size: 0.88rem;
  line-height: 1.7;
}

.single-product div.product .product_meta > span {
  display: block;
}

.single-product .woocommerce-tabs {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  border: 1px solid var(--hc-border) !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  border-color: rgba(37, 99, 235, 0.35) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  padding: 0.65rem 1rem !important;
  color: var(--hc-text) !important;
  font-weight: 800 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hc-blue) !important;
}

.single-product .woocommerce-tabs .panel {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.single-product .woocommerce-tabs .panel h2:first-child {
  margin-top: 0;
  color: var(--hc-heading);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.single-product .related.products {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.single-product .related.products > h2 {
  margin-bottom: 1.25rem;
  color: var(--hc-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

@media (min-width: 922px) {
  .single-product div.product .summary {
    position: sticky;
    top: 88px;
  }
}

/* ==========================================================
   HyperCorners v1.3 — Product page engineered UX layer
   This layer uses stronger selectors to stay stable with Astra.
   ========================================================== */

body.single-product.woocommerce div.product {
  width: 100%;
}

@media (min-width: 922px) {
  body.single-product.woocommerce div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    column-gap: clamp(32px, 4.5vw, 64px);
    row-gap: clamp(34px, 5vw, 64px);
    align-items: start;
  }

  body.single-product.woocommerce div.product div.images,
  body.single-product.woocommerce div.product div.summary,
  body.single-product.woocommerce div.product .summary.entry-summary {
    float: none !important;
    width: 100% !important;
    clear: none !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce div.product .related.products,
  body.single-product.woocommerce div.product .upsells.products {
    grid-column: 1 / -1;
  }
}

body.single-product.woocommerce div.product div.images,
body.single-product.woocommerce div.product .woocommerce-product-gallery {
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.075) !important;
  overflow: hidden;
}

body.single-product.woocommerce div.product div.images img {
  border-radius: 22px;
}

body.single-product.woocommerce div.product .summary.entry-summary,
body.single-product.woocommerce div.product div.summary {
  padding: clamp(1.35rem, 2.4vw, 2.25rem) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.055), transparent 34%),
    #FFFFFF !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.075) !important;
}

@media (min-width: 922px) {
  body.single-product.woocommerce div.product .summary.entry-summary,
  body.single-product.woocommerce div.product div.summary {
    position: sticky;
    top: 88px;
  }
}

body.single-product.woocommerce div.product .summary .hc-single-eyebrow {
  display: flex !important;
  margin-bottom: 0.85rem;
}

body.single-product.woocommerce div.product .summary .product_title {
  max-width: 12ch;
  margin-bottom: 0.75rem !important;
  color: #334155;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em;
}

body.single-product.woocommerce div.product .summary .price {
  display: block;
  margin: 0.9rem 0 1rem !important;
  color: var(--hc-blue) !important;
  font-size: clamp(1.55rem, 2.1vw, 1.95rem) !important;
  font-weight: 900 !important;
}

body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description {
  max-width: 58ch;
  padding-bottom: 0.2rem;
  color: #475569;
}

body.single-product.woocommerce div.product .summary .hc-single-ux-note {
  display: grid !important;
  margin: 1.05rem 0 1.15rem !important;
}

body.single-product.woocommerce div.product form.cart {
  display: grid !important;
  grid-template-columns: minmax(76px, 96px) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
  margin: 1.1rem 0 0 !important;
}

body.single-product.woocommerce div.product form.cart .quantity,
body.single-product.woocommerce div.product form.cart .quantity .qty {
  width: 100% !important;
}

body.single-product.woocommerce div.product form.cart .quantity .qty {
  min-height: 54px !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  color: var(--hc-heading) !important;
  font-weight: 850 !important;
}

body.single-product.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 54px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--hc-blue), #1D4ED8) !important;
  color: #FFFFFF !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25) !important;
}

body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:hover,
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:focus {
  background: linear-gradient(135deg, var(--hc-violet), var(--hc-blue)) !important;
  transform: translateY(-1px);
}

body.single-product.woocommerce div.product .summary .hc-single-trust {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
}

body.single-product.woocommerce div.product .product_meta {
  margin-top: 1.1rem !important;
  padding: 0.95rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  background: #F8FAFC !important;
  font-size: 0.86rem !important;
}

body.single-product.woocommerce div.product .product_meta a {
  font-weight: 700;
}

body.single-product.woocommerce .woocommerce-tabs {
  padding-top: clamp(1rem, 3vw, 2rem);
}

body.single-product.woocommerce .woocommerce-tabs .panel {
  max-width: 920px;
}

body.single-product.woocommerce .related.products ul.products li.product {
  max-width: 320px;
}

/* WooCommerce block cart and checkout polish */
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  color: var(--hc-heading);
  font-weight: 850;
  letter-spacing: -0.035em;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout {
  gap: clamp(1.25rem, 3vw, 2rem);
}

body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout__form {
  border-color: var(--hc-border) !important;
}

body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  border: 1px solid var(--hc-border);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
  border-radius: 16px !important;
  background: var(--hc-blue) !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  min-height: 54px;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
  background: var(--hc-violet) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-select .wc-block-components-select__container {
  border-radius: 14px !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
  border-radius: 16px;
}

@media (max-width: 921px) {
  body.single-product.woocommerce div.product .summary.entry-summary,
  body.single-product.woocommerce div.product div.summary {
    margin-top: 1.25rem !important;
  }

  body.single-product.woocommerce div.product .summary .product_title {
    max-width: none;
  }
}

@media (max-width: 544px) {
  body.single-product.woocommerce div.product .summary .hc-single-trust {
    grid-template-columns: 1fr;
  }

  body.single-product.woocommerce div.product form.cart {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   HyperCorners v1.4 — display bugfix layer
   Goal: remove scroll overlap on product pages and stabilize CTA layout.
   ========================================================== */

/* The v1.3 sticky summary could overlap tabs and related products while scrolling.
   Keep the premium card, but make it participate normally in the page flow. */
@media (min-width: 922px) {
  body.single-product.woocommerce div.product .summary.entry-summary,
  body.single-product.woocommerce div.product div.summary,
  .single-product div.product .summary {
    position: relative !important;
    top: auto !important;
    align-self: start !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce div.product .related.products,
  body.single-product.woocommerce div.product .upsells.products {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    clear: both !important;
  }
}

/* Avoid the product title being forced into too many lines. */
body.single-product.woocommerce div.product .summary .product_title {
  max-width: none !important;
  text-wrap: balance;
}

/* Stabilize the add-to-cart row on simple products. */
body.single-product.woocommerce div.product form.cart:not(.variations_form) {
  display: grid !important;
  grid-template-columns: minmax(78px, 96px) minmax(0, 1fr) !important;
  gap: 0.8rem !important;
  align-items: stretch !important;
  margin: 1.1rem 0 0 !important;
}

body.single-product.woocommerce div.product form.cart:not(.variations_form) .quantity {
  grid-column: 1 !important;
  grid-row: 1 !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.single-product.woocommerce div.product form.cart:not(.variations_form) .quantity .qty {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 54px !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.single-product.woocommerce div.product form.cart:not(.variations_form) .single_add_to_cart_button {
  grid-column: 2 !important;
  grid-row: 1 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
  box-sizing: border-box !important;
}

/* Better spacing below the full product intro before tabs. */
body.single-product.woocommerce div.product .woocommerce-tabs {
  margin-top: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Keep related products from visually sliding under the previous grid section. */
body.single-product.woocommerce .related.products {
  clear: both !important;
  overflow: visible !important;
}

@media (max-width: 544px) {
  body.single-product.woocommerce div.product form.cart:not(.variations_form) {
    grid-template-columns: 1fr !important;
  }

  body.single-product.woocommerce div.product form.cart:not(.variations_form) .quantity,
  body.single-product.woocommerce div.product form.cart:not(.variations_form) .single_add_to_cart_button {
    grid-column: 1 !important;
  }
}

/* ==========================================================
   HyperCorners v1.5 — alignment and framing correction layer
   Goal: center and frame product tabs, cart totals and checkout order summary.
   ========================================================== */

/* Product tabs: keep the rounded card, but restore real internal padding. */
body.single-product.woocommerce div.product .woocommerce-tabs {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(12px, 1.6vw, 24px) !important;
  padding-right: clamp(12px, 1.6vw, 24px) !important;
  box-sizing: border-box !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
  align-items: center !important;
  margin-bottom: 1.05rem !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28) !important;
  outline-offset: 3px !important;
  border-radius: 999px !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: clamp(1.15rem, 2vw, 1.75rem) !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.045) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel > *:first-child,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel > *:first-child {
  margin-top: 0 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel > *:last-child,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel > *:last-child {
  margin-bottom: 0 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel p,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel p {
  max-width: 92ch;
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: var(--hc-text);
  line-height: 1.75;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel ul,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel ul {
  margin: 1rem 0 0 1.1rem !important;
  padding-left: 0.55rem !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel li,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel li {
  margin-bottom: 0.55rem !important;
  line-height: 1.65;
}

/* Additional information tab: avoid the table touching rounded borders. */
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 18px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #FFFFFF !important;
  overflow: hidden !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
  padding: 1rem 1.25rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--hc-border) !important;
  background: #FFFFFF !important;
  color: var(--hc-text) !important;
  line-height: 1.55 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
  width: 190px !important;
  color: var(--hc-heading) !important;
  font-weight: 850 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child th,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child td {
  border-bottom: 0 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes p {
  margin: 0 !important;
}

/* Reviews tab: frame the no-review text and form with consistent spacing. */
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews #reviews,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews #comments,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews #review_form_wrapper {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews .woocommerce-noreviews {
  margin: 0 0 1rem !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 16px !important;
  background: #F8FAFC !important;
  color: #64748B !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews #review_form_wrapper {
  padding: clamp(1.1rem, 2vw, 1.75rem) !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 22px !important;
  background: #FFFFFF !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews #reply-title,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews .comment-reply-title {
  display: block !important;
  margin-bottom: 1rem !important;
  color: var(--hc-heading) !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews textarea,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews input[type="text"],
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews input[type="email"] {
  width: 100% !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  box-sizing: border-box !important;
}

/* Cart and checkout: remove double framing and add consistent card padding. */
body.woocommerce-cart .site-content .ast-container,
body.woocommerce-checkout .site-content .ast-container {
  max-width: 1180px !important;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  align-items: flex-start !important;
  gap: clamp(1.5rem, 3vw, 2.5rem) !important;
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
  border: 1px solid var(--hc-border) !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-cart__sidebar > *,
body.woocommerce-cart .wc-block-components-sidebar > * {
  box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-panel,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit-container {
  padding-left: clamp(1.25rem, 2vw, 1.6rem) !important;
  padding-right: clamp(1.25rem, 2vw, 1.6rem) !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit-container {
  padding-bottom: clamp(1.25rem, 2vw, 1.6rem) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item__value {
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* Checkout summary: one clean card, no nested/double border effect. */
body.woocommerce-checkout .wc-block-components-sidebar {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper {
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > *,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper {
  padding-left: clamp(1.25rem, 2vw, 1.6rem) !important;
  padding-right: clamp(1.25rem, 2vw, 1.6rem) !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary__content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 781px) {
  body.single-product.woocommerce div.product .woocommerce-tabs {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
    gap: 0.5rem !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 0.7rem 0.95rem !important;
    font-size: 0.95rem !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs .panel,
  body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    border-radius: 20px !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
  body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
    display: block !important;
    width: 100% !important;
    padding: 0.85rem 1rem !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
    padding-bottom: 0.25rem !important;
    border-bottom: 0 !important;
  }

  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    border-radius: 20px !important;
  }
}

/* ==========================================================
   HyperCorners v1.6 — final framing stabilization layer
   Goal: remove over-broad single-product selectors and align cards cleanly.
   ========================================================== */

/* Related products: reset the overly large single-product price style. */
body.single-product.woocommerce div.product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 280px)) !important;
  justify-content: start !important;
  gap: clamp(1.25rem, 2.5vw, 2rem) !important;
  width: 100% !important;
  max-width: 960px !important;
}

body.single-product.woocommerce div.product .related.products ul.products li.product {
  width: 100% !important;
  max-width: 280px !important;
  min-height: auto !important;
}

body.single-product.woocommerce div.product .related.products ul.products li.product .price,
body.single-product.woocommerce div.product .related.products ul.products li.product span.price,
body.single-product.woocommerce div.product .related.products ul.products li.product p.price {
  margin: 0.65rem 0 0.9rem !important;
  color: var(--hc-blue) !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: normal !important;
}

body.single-product.woocommerce div.product .related.products ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.7em !important;
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
}

body.single-product.woocommerce div.product .related.products ul.products li.product a img {
  aspect-ratio: 4 / 3 !important;
  padding: 14px !important;
  margin-bottom: 14px !important;
}

/* Tabs: use one centered frame with predictable spacing. */
body.single-product.woocommerce div.product .woocommerce-tabs,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper {
  clear: both !important;
  width: 100% !important;
  max-width: 1080px !important;
  margin: clamp(2.25rem, 4.5vw, 4rem) auto 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper ul.tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper .panel,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: clamp(1.45rem, 2.4vw, 2rem) !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.045) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information table.shop_attributes {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews #review_form_wrapper {
  width: 100% !important;
  margin: 1rem 0 0 !important;
  box-sizing: border-box !important;
}

/* Product page top: avoid huge empty space before tabs and ensure intro grid is clean. */
@media (min-width: 922px) {
  body.single-product.woocommerce div.product {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr) !important;
    column-gap: clamp(28px, 4vw, 52px) !important;
    row-gap: clamp(28px, 4vw, 48px) !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce div.product .related.products,
  body.single-product.woocommerce div.product .upsells.products {
    grid-column: 1 / -1 !important;
  }
}

/* Cart: center the totals card on tablet/narrow desktop and keep total aligned. */
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
  max-width: 520px !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value {
  display: flex !important;
  align-items: center !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value {
  justify-content: flex-end !important;
  min-width: max-content !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
}

/* Checkout: one clean summary card, no inner card pushing against the border. */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  padding: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary__content,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel__content {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__individual-prices {
  min-width: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price {
  text-align: right !important;
  white-space: nowrap !important;
}

@media (max-width: 921px) {
  body.single-product.woocommerce div.product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
  }

  body.single-product.woocommerce div.product .related.products ul.products li.product {
    max-width: none !important;
  }

  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-cart .wc-block-components-sidebar {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 544px) {
  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper {
    max-width: none !important;
    margin-top: 2rem !important;
  }

  body.single-product.woocommerce div.product .related.products ul.products {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price {
    grid-column: 2 !important;
    text-align: left !important;
  }
}

/* ==========================================================
   HyperCorners v1.7 — premium alignment polish layer
   Goal: keep the v1.6 UX, reduce excess empty space, and stabilize
   cart / checkout two-column framing on desktop.
   ========================================================== */

/* Product intro: slightly more compact, centered and balanced. */
@media (min-width: 922px) {
  body.single-product.woocommerce div.product {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr) !important;
    column-gap: clamp(30px, 4vw, 48px) !important;
    row-gap: clamp(24px, 3.5vw, 40px) !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce div.product .related.products,
  body.single-product.woocommerce div.product .upsells.products {
    max-width: 100% !important;
  }
}

body.single-product.woocommerce div.product .summary.entry-summary,
body.single-product.woocommerce div.product div.summary {
  padding: clamp(1.25rem, 2vw, 1.85rem) !important;
}

body.single-product.woocommerce div.product .summary .hc-single-eyebrow {
  margin-bottom: 0.65rem !important;
}

body.single-product.woocommerce div.product .summary .product_title {
  font-size: clamp(1.65rem, 2.45vw, 2.15rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 0.65rem !important;
}

body.single-product.woocommerce div.product .summary .price {
  margin: 0.7rem 0 0.8rem !important;
  font-size: clamp(1.45rem, 2vw, 1.8rem) !important;
}

body.single-product.woocommerce div.product .summary .woocommerce-product-details__short-description {
  font-size: 0.96rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0.9rem !important;
}

body.single-product.woocommerce div.product form.cart:not(.variations_form) {
  margin-top: 0.95rem !important;
}

body.single-product.woocommerce div.product .summary .hc-single-trust {
  gap: 0.6rem !important;
  margin-top: 0.85rem !important;
}

body.single-product.woocommerce div.product .summary .hc-single-trust-item {
  padding: 0.65rem !important;
  border-radius: 14px !important;
}

body.single-product.woocommerce div.product .summary .hc-single-trust-icon {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.78rem !important;
}

body.single-product.woocommerce div.product .summary .hc-single-trust-copy strong {
  font-size: 0.82rem !important;
}

body.single-product.woocommerce div.product .summary .hc-single-trust-copy small {
  font-size: 0.72rem !important;
}

body.single-product.woocommerce div.product .product_meta {
  margin-top: 0.9rem !important;
  padding: 0.85rem !important;
  border-radius: 16px !important;
}

body.single-product.woocommerce div.product .summary .hc-hyperscore {
  margin: 0.7rem 0 0.8rem !important;
}

body.single-product.woocommerce div.product .summary .hc-single-ux-note {
  margin: 0.8rem 0 0 !important;
  padding: 0.8rem 0.9rem !important;
  border-radius: 16px !important;
}

/* Tabs: align the pills and the panel to the same optical width. */
body.single-product.woocommerce div.product .woocommerce-tabs,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper {
  max-width: 1000px !important;
  margin-top: clamp(2rem, 4vw, 3.25rem) !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper ul.tabs {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel,
body.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper .panel,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
  max-width: 1000px !important;
  padding: clamp(1.35rem, 2.2vw, 1.85rem) !important;
}

/* Related products: keep the area clean when WooCommerce returns only 2 items. */
body.single-product.woocommerce .related.products {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single-product.woocommerce .related.products ul.products {
  max-width: 680px !important;
}

/* Cart and checkout blocks: force a clean desktop grid instead of accidental stacking. */
@media (min-width: 900px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
    gap: clamp(1.75rem, 3vw, 2.5rem) !important;
    align-items: start !important;
  }

  body.woocommerce-cart .wc-block-components-main,
  body.woocommerce-checkout .wc-block-components-main {
    width: auto !important;
    max-width: none !important;
    padding-right: 0 !important;
  }

  body.woocommerce-cart .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
  width: 100% !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit-container,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  width: 100% !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  width: 100% !important;
  border-radius: 24px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description {
  padding-right: 0.5rem !important;
}

@media (max-width: 921px) {
  body.single-product.woocommerce div.product {
    max-width: none !important;
  }

  body.single-product.woocommerce .related.products ul.products {
    max-width: none !important;
  }
}

/* ==========================================================
   HyperCorners v1.8 — cart / checkout optical alignment layer
   Goal: keep the validated product UX and make transactional pages
   calmer, centered and less oversized on desktop.
   ========================================================== */

/* Shared transactional width: prevent cart / checkout content from spreading too wide. */
body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart,
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cart: keep the summary card premium without making the total look oversized. */
@media (min-width: 900px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px) !important;
    column-gap: clamp(2rem, 4vw, 3rem) !important;
  }
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
  border-radius: 22px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06) !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-panel,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit-container {
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
  padding-top: 1.1rem !important;
  padding-bottom: 1.1rem !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: clamp(1.25rem, 1.55vw, 1.45rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
}

body.woocommerce-cart .wc-block-cart__submit-button {
  min-height: 50px !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
}

body.woocommerce-cart .wc-block-cart-items__row {
  align-items: center !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  border-radius: 10px !important;
}

/* Checkout: make the order summary easier to read and avoid cramped product text. */
@media (min-width: 900px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 440px) !important;
    column-gap: clamp(2rem, 4vw, 3rem) !important;
  }
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  border-radius: 22px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06) !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
  font-size: 1.25rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item {
  grid-template-columns: 62px minmax(0, 1fr) auto !important;
  gap: 0.9rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__image,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__image img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description {
  padding-right: 0.35rem !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-name {
  display: block !important;
  color: var(--hc-heading) !important;
  font-size: 0.92rem !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-metadata,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-metadata p {
  color: #64748B !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price {
  color: var(--hc-heading) !important;
  font-size: 0.92rem !important;
  font-weight: 750 !important;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: clamp(1.25rem, 1.6vw, 1.45rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 50px !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
}

/* Product page: keep v1.7 but reduce the vertical gap before tabs a little. */
body.single-product.woocommerce div.product .woocommerce-tabs,
body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper {
  margin-top: clamp(1.75rem, 3.2vw, 2.75rem) !important;
}

@media (max-width: 781px) {
  body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart,
  body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
  body.woocommerce-cart .entry-title,
  body.woocommerce-checkout .entry-title {
    max-width: none !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price {
    grid-column: 2 !important;
    text-align: left !important;
  }
}


/* ==========================================================
   HyperCorners v1.9 — boutique page refinement layer
   Goal: make the catalog cleaner, calmer and more premium.
   ========================================================== */

body.post-type-archive-product .site-content .ast-container,
body.tax-product_cat .site-content .ast-container,
body.tax-product_tag .site-content .ast-container {
  max-width: 1220px !important;
}

body.post-type-archive-product .woocommerce-notices-wrapper,
body.tax-product_cat .woocommerce-notices-wrapper,
body.tax-product_tag .woocommerce-notices-wrapper {
  margin-bottom: 0.75rem;
}

body.post-type-archive-product .hc-shop-promo-banner,
body.tax-product_cat .hc-shop-promo-banner,
body.tax-product_tag .hc-shop-promo-banner {
  margin-bottom: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
}

body.post-type-archive-product .hc-shop-promo-text,
body.tax-product_cat .hc-shop-promo-text,
body.tax-product_tag .hc-shop-promo-text {
  font-size: 0.98rem;
}

body.post-type-archive-product .hc-shop-before-grid,
body.tax-product_cat .hc-shop-before-grid,
body.tax-product_tag .hc-shop-before-grid {
  margin-bottom: 1rem;
}

body.post-type-archive-product .hc-shop-reassurance-text,
body.tax-product_cat .hc-shop-reassurance-text,
body.tax-product_tag .hc-shop-reassurance-text {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: #64748B;
  font-size: 0.92rem;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  margin: 0.35rem 0 1rem !important;
  color: #64748B;
  font-size: 0.92rem;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
  margin: 0 0 1rem !important;
}

body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
  gap: 22px !important;
  margin-top: 0.75rem !important;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 14px 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045) !important;
}

body.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_tag ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  text-decoration: none !important;
}

body.post-type-archive-product ul.products li.product a img,
body.tax-product_cat ul.products li.product a img,
body.tax-product_tag ul.products li.product a img {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  padding: 10px !important;
  margin: 0 0 12px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #FFFFFF, #F8FAFC) !important;
}

body.post-type-archive-product ul.products li.product .hc-hyperscore,
body.tax-product_cat ul.products li.product .hc-hyperscore,
body.tax-product_tag ul.products li.product .hc-hyperscore {
  align-self: flex-start !important;
  margin: 0 0 0.45rem !important;
  padding: 0.24rem 0.5rem !important;
  font-size: 0.74rem !important;
}

body.post-type-archive-product ul.products li.product .hc-product-subtitle,
body.tax-product_cat ul.products li.product .hc-product-subtitle,
body.tax-product_tag ul.products li.product .hc-product-subtitle {
  min-height: 0 !important;
  margin: 0 0 0.35rem !important;
  color: #94A3B8 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em !important;
  margin: 0 0 0.5rem !important;
  color: var(--hc-heading) !important;
  font-size: 0.98rem !important;
  line-height: 1.38 !important;
  font-weight: 800 !important;
}

body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  color: var(--hc-blue) !important;
  font-size: 1.02rem !important;
  font-weight: 850 !important;
}

body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button {
  min-height: 42px !important;
  margin-top: 0.85rem !important;
  border-radius: 14px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.post-type-archive-product nav.woocommerce-pagination,
body.tax-product_cat nav.woocommerce-pagination,
body.tax-product_tag nav.woocommerce-pagination {
  margin-top: 1rem;
}

body.post-type-archive-product nav.woocommerce-pagination ul,
body.tax-product_cat nav.woocommerce-pagination ul,
body.tax-product_tag nav.woocommerce-pagination ul {
  display: flex;
  justify-content: flex-start;
  gap: 0.3rem;
}

@media (max-width: 921px) {
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products {
    gap: 18px !important;
  }
}

@media (max-width: 544px) {
  body.post-type-archive-product .hc-shop-promo-banner,
  body.tax-product_cat .hc-shop-promo-banner,
  body.tax-product_tag .hc-shop-promo-banner {
    padding: 0.9rem !important;
  }

  body.post-type-archive-product ul.products li.product,
  body.tax-product_cat ul.products li.product,
  body.tax-product_tag ul.products li.product {
    padding: 13px !important;
  }

  body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    min-height: auto !important;
  }
}


/* ==========================================================
   HyperCorners v2.0 — shop hero + category pills
   Goal: replace the old promo strip by a clearer boutique hero
   and add product category navigation as premium pills.
   ========================================================== */

body.post-type-archive-product .hc-shop-promo-banner,
body.tax-product_cat .hc-shop-promo-banner,
body.tax-product_tag .hc-shop-promo-banner,
body.post-type-archive-product .hc-shop-hero,
body.tax-product_cat .hc-shop-hero,
body.tax-product_tag .hc-shop-hero {
  width: 100% !important;
  margin: 0 0 1rem !important;
}

.hc-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(109, 40, 217, 0.10), transparent 32%),
    linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.hc-shop-hero-main {
  max-width: 760px;
}

.hc-shop-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--hc-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hc-shop-hero-title {
  max-width: 15ch;
  margin: 0 0 0.7rem;
  color: var(--hc-heading);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hc-shop-hero-text {
  max-width: 68ch;
  margin: 0;
  color: #64748B;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.hc-shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}

.hc-shop-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hc-blue), #1D4ED8);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.hc-shop-hero-button:hover,
.hc-shop-hero-button:focus {
  background: linear-gradient(135deg, var(--hc-violet), var(--hc-blue));
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hc-shop-hero-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--hc-heading);
  font-size: 0.88rem;
  font-weight: 800;
}

.hc-shop-hero-proof {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.hc-shop-hero-proof-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  color: var(--hc-heading);
  font-size: 0.92rem;
  font-weight: 800;
}

.hc-shop-hero-proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--hc-blue);
  font-size: 0.82rem;
  font-weight: 950;
}

.hc-shop-category-nav {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.035);
}

.hc-shop-category-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hc-shop-category-nav-kicker {
  color: var(--hc-heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hc-shop-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hc-shop-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: #FFFFFF;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hc-shop-category-pill small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.72rem;
  font-weight: 900;
}

.hc-shop-category-pill:hover,
.hc-shop-category-pill:focus,
.hc-shop-category-pill.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
  color: var(--hc-blue);
  transform: translateY(-1px);
}

.hc-shop-category-pill.is-active small {
  background: var(--hc-blue);
  color: #FFFFFF;
}

body.post-type-archive-product .hc-shop-before-grid,
body.tax-product_cat .hc-shop-before-grid,
body.tax-product_tag .hc-shop-before-grid {
  margin-bottom: 1.15rem !important;
}

@media (max-width: 921px) {
  .hc-shop-hero {
    grid-template-columns: 1fr;
  }

  .hc-shop-hero-title {
    max-width: 18ch;
  }

  .hc-shop-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hc-shop-hero-proof-item {
    align-items: start;
  }
}

@media (max-width: 544px) {
  .hc-shop-hero {
    padding: 1rem;
    border-radius: 22px;
  }

  .hc-shop-hero-title {
    max-width: none;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .hc-shop-hero-actions,
  .hc-shop-hero-button,
  .hc-shop-hero-note {
    width: 100%;
  }

  .hc-shop-hero-proof {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .hc-shop-category-nav {
    padding: 0.8rem;
    border-radius: 18px;
  }

  .hc-shop-category-pills {
    flex-wrap: nowrap;
    margin-right: -0.8rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .hc-shop-category-pill {
    flex: 0 0 auto;
    min-height: 36px;
  }
}


/* ==========================================================
   HyperCorners v2.1 — épuration du Hero boutique + pilules catégories
   Goal: remove visual noise, no CTA duplication, no outlined category pills.
   ========================================================== */

body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main,
body.post-type-archive-product .ast-woocommerce-container,
body.tax-product_cat .ast-woocommerce-container,
body.tax-product_tag .ast-woocommerce-container {
  border-top: 0 !important;
}

body.post-type-archive-product .site-main::before,
body.tax-product_cat .site-main::before,
body.tax-product_tag .site-main::before,
body.post-type-archive-product .ast-woocommerce-container::before,
body.tax-product_cat .ast-woocommerce-container::before,
body.tax-product_tag .ast-woocommerce-container::before {
  display: none !important;
  content: none !important;
}

body.post-type-archive-product .hc-shop-hero,
body.tax-product_cat .hc-shop-hero,
body.tax-product_tag .hc-shop-hero {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  padding: clamp(1.45rem, 3vw, 2.25rem) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055) !important;
}

.hc-shop-hero {
  min-height: auto !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px) !important;
  align-items: center !important;
}

.hc-shop-hero-main {
  max-width: 680px !important;
}

.hc-shop-hero-title {
  max-width: 13ch !important;
  margin-bottom: 0.75rem !important;
  font-size: clamp(2rem, 3vw, 3.05rem) !important;
  line-height: 1.04 !important;
}

.hc-shop-hero-text {
  max-width: 62ch !important;
  color: #64748B !important;
  font-size: clamp(1rem, 1.18vw, 1.08rem) !important;
  line-height: 1.65 !important;
}

.hc-shop-hero-actions,
.hc-shop-hero-button,
.hc-shop-hero-note {
  display: none !important;
}

.hc-shop-hero-delivery {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 1rem 0 0;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--hc-blue);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.hc-shop-hero-proof {
  padding: 0.95rem !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.hc-shop-hero-proof-item {
  font-size: 0.9rem !important;
}

body.post-type-archive-product .hc-shop-category-nav,
body.tax-product_cat .hc-shop-category-nav,
body.tax-product_tag .hc-shop-category-nav {
  margin-bottom: 1rem !important;
  padding: 0.15rem 0 0.55rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hc-shop-category-nav-kicker {
  color: #64748B !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
}

.hc-shop-category-pills {
  gap: 0.45rem !important;
}

.hc-shop-category-pill {
  min-height: 36px !important;
  padding: 0.52rem 0.8rem !important;
  border: 0 !important;
  background: #F1F5F9 !important;
  color: #475569 !important;
  font-size: 0.88rem !important;
  box-shadow: none !important;
}

.hc-shop-category-pill small {
  min-width: 20px !important;
  height: 20px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #64748B !important;
}

.hc-shop-category-pill:hover,
.hc-shop-category-pill:focus {
  border: 0 !important;
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--hc-blue) !important;
  transform: none !important;
}

.hc-shop-category-pill.is-active {
  border: 0 !important;
  background: var(--hc-blue) !important;
  color: #FFFFFF !important;
  transform: none !important;
}

.hc-shop-category-pill.is-active small {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}

/* Remove the default reassurance strip when no custom text is intentionally set. */
body.post-type-archive-product .hc-shop-before-grid:empty,
body.tax-product_cat .hc-shop-before-grid:empty,
body.tax-product_tag .hc-shop-before-grid:empty {
  display: none !important;
}

body.post-type-archive-product .hc-shop-before-grid,
body.tax-product_cat .hc-shop-before-grid,
body.tax-product_tag .hc-shop-before-grid {
  margin-bottom: 0.8rem !important;
}

@media (max-width: 921px) {
  .hc-shop-hero {
    grid-template-columns: 1fr !important;
  }

  .hc-shop-hero-title {
    max-width: 16ch !important;
  }

  .hc-shop-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 544px) {
  body.post-type-archive-product .hc-shop-hero,
  body.tax-product_cat .hc-shop-hero,
  body.tax-product_tag .hc-shop-hero {
    padding: 1rem !important;
    border-radius: 22px !important;
  }

  .hc-shop-hero-title {
    max-width: none !important;
    font-size: clamp(1.55rem, 8vw, 2.1rem) !important;
  }

  .hc-shop-hero-delivery {
    width: 100% !important;
    justify-content: center !important;
  }

  .hc-shop-hero-proof {
    grid-template-columns: 1fr !important;
  }

  body.post-type-archive-product .hc-shop-category-nav,
  body.tax-product_cat .hc-shop-category-nav,
  body.tax-product_tag .hc-shop-category-nav {
    padding-bottom: 0.4rem !important;
  }

  .hc-shop-category-pill {
    flex: 0 0 auto !important;
  }
}


/* ==========================================================
   HyperCorners v2.2 — official shop cleanup layer
   Goal: compact the shop hero, force a calmer 3-column catalog,
   and polish WooCommerce archive notices on the official site.
   ========================================================== */

/* Remove remaining Astra / WooCommerce separators that can appear above the shop hero. */
body.post-type-archive-product .ast-article-single,
body.tax-product_cat .ast-article-single,
body.tax-product_tag .ast-article-single,
body.post-type-archive-product .ast-separate-container .ast-article-single,
body.tax-product_cat .ast-separate-container .ast-article-single,
body.tax-product_tag .ast-separate-container .ast-article-single {
  border-top: 0 !important;
}

body.post-type-archive-product .entry-content > hr:first-child,
body.tax-product_cat .entry-content > hr:first-child,
body.tax-product_tag .entry-content > hr:first-child,
body.post-type-archive-product .woocommerce-products-header + hr,
body.tax-product_cat .woocommerce-products-header + hr,
body.tax-product_tag .woocommerce-products-header + hr {
  display: none !important;
}

/* Hero: more compact, less empty space, no oversized marketing block. */
body.post-type-archive-product .hc-shop-hero,
body.tax-product_cat .hc-shop-hero,
body.tax-product_tag .hc-shop-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(1rem, 3vw, 2rem) !important;
  align-items: end !important;
  margin-bottom: 0.9rem !important;
  padding: clamp(1.2rem, 2.2vw, 1.8rem) !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(109, 40, 217, 0.10), transparent 34%),
    #FFFFFF !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045) !important;
}

body.post-type-archive-product .hc-shop-hero-main,
body.tax-product_cat .hc-shop-hero-main,
body.tax-product_tag .hc-shop-hero-main {
  max-width: 760px !important;
}

body.post-type-archive-product .hc-shop-hero-kicker,
body.tax-product_cat .hc-shop-hero-kicker,
body.tax-product_tag .hc-shop-hero-kicker {
  min-height: 28px !important;
  padding: 0.36rem 0.7rem !important;
  font-size: 0.74rem !important;
}

body.post-type-archive-product .hc-shop-hero-title,
body.tax-product_cat .hc-shop-hero-title,
body.tax-product_tag .hc-shop-hero-title {
  max-width: 15ch !important;
  margin: 0.75rem 0 0.55rem !important;
  color: #334155 !important;
  font-size: clamp(1.85rem, 2.65vw, 2.75rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.055em !important;
}

body.post-type-archive-product .hc-shop-hero-text,
body.tax-product_cat .hc-shop-hero-text,
body.tax-product_tag .hc-shop-hero-text {
  max-width: 64ch !important;
  margin: 0 !important;
  font-size: clamp(0.98rem, 1.08vw, 1.04rem) !important;
  line-height: 1.62 !important;
}

body.post-type-archive-product .hc-shop-hero-delivery,
body.tax-product_cat .hc-shop-hero-delivery,
body.tax-product_tag .hc-shop-hero-delivery {
  margin-top: 0.75rem !important;
  padding: 0.42rem 0.68rem !important;
  background: rgba(37, 99, 235, 0.075) !important;
  font-size: 0.86rem !important;
}

/* Turn the proof box into calm inline chips on desktop. */
body.post-type-archive-product .hc-shop-hero-proof,
body.tax-product_cat .hc-shop-hero-proof,
body.tax-product_tag .hc-shop-hero-proof {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.48rem !important;
  min-width: 220px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.post-type-archive-product .hc-shop-hero-proof-item,
body.tax-product_cat .hc-shop-hero-proof-item,
body.tax-product_tag .hc-shop-hero-proof-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  min-height: 34px !important;
  padding: 0.45rem 0.7rem !important;
  border-radius: 999px !important;
  background: rgba(248, 250, 252, 0.9) !important;
  color: #475569 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

body.post-type-archive-product .hc-shop-hero-proof-icon,
body.tax-product_cat .hc-shop-hero-proof-icon,
body.tax-product_tag .hc-shop-hero-proof-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.78rem !important;
}

/* Category navigation: flatter, lighter, no visible frames. */
body.post-type-archive-product .hc-shop-category-nav,
body.tax-product_cat .hc-shop-category-nav,
body.tax-product_tag .hc-shop-category-nav {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
}

body.post-type-archive-product .hc-shop-category-nav-kicker,
body.tax-product_cat .hc-shop-category-nav-kicker,
body.tax-product_tag .hc-shop-category-nav-kicker {
  display: block !important;
  margin-bottom: 0.55rem !important;
  color: #64748B !important;
}

body.post-type-archive-product .hc-shop-category-pill,
body.tax-product_cat .hc-shop-category-pill,
body.tax-product_tag .hc-shop-category-pill {
  min-height: 34px !important;
  padding: 0.46rem 0.75rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
}

body.post-type-archive-product .hc-shop-category-pill small,
body.tax-product_cat .hc-shop-category-pill small,
body.tax-product_tag .hc-shop-category-pill small {
  min-width: 18px !important;
  height: 18px !important;
  background: rgba(148, 163, 184, 0.14) !important;
  color: #64748B !important;
  font-size: 0.72rem !important;
}

body.post-type-archive-product .hc-shop-category-pill:hover,
body.tax-product_cat .hc-shop-category-pill:hover,
body.tax-product_tag .hc-shop-category-pill:hover {
  background: rgba(37, 99, 235, 0.075) !important;
}

body.post-type-archive-product .hc-shop-category-pill.is-active,
body.tax-product_cat .hc-shop-category-pill.is-active,
body.tax-product_tag .hc-shop-category-pill.is-active {
  background: var(--hc-blue) !important;
  color: #FFFFFF !important;
}

/* Official archive grid: force 3 clean columns even if Astra/WooCommerce tries 4 columns. */
@media (min-width: 922px) {
  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products,
  body.post-type-archive-product ul.products.columns-3,
  body.post-type-archive-product ul.products.columns-4,
  body.tax-product_cat ul.products.columns-3,
  body.tax-product_cat ul.products.columns-4,
  body.tax-product_tag ul.products.columns-3,
  body.tax-product_tag ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
}

body.post-type-archive-product.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce ul.products li.product,
body.tax-product_tag.woocommerce ul.products li.product,
body.post-type-archive-product.woocommerce-page ul.products li.product,
body.tax-product_cat.woocommerce-page ul.products li.product,
body.tax-product_tag.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.post-type-archive-product ul.products li.product a img,
body.tax-product_cat ul.products li.product a img,
body.tax-product_tag ul.products li.product a img {
  background: #F8FAFC !important;
}

/* WooCommerce notices after add-to-cart: make them match the shop style. */
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin: 0 0 1rem !important;
  padding: 0.9rem 1rem !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  color: var(--hc-text) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

body.woocommerce .woocommerce-message::before,
body.woocommerce-page .woocommerce-message::before,
body.woocommerce .woocommerce-info::before,
body.woocommerce-page .woocommerce-info::before {
  color: var(--hc-blue) !important;
}

body.woocommerce .woocommerce-message .button,
body.woocommerce-page .woocommerce-message .button,
body.woocommerce .woocommerce-info .button,
body.woocommerce-page .woocommerce-info .button {
  order: 2 !important;
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px !important;
  background: var(--hc-blue) !important;
  color: #FFFFFF !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
}

@media (max-width: 921px) {
  body.post-type-archive-product .hc-shop-hero,
  body.tax-product_cat .hc-shop-hero,
  body.tax-product_tag .hc-shop-hero {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body.post-type-archive-product .hc-shop-hero-proof,
  body.tax-product_cat .hc-shop-hero-proof,
  body.tax-product_tag .hc-shop-hero-proof {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }

  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 544px) {
  body.post-type-archive-product .hc-shop-hero-title,
  body.tax-product_cat .hc-shop-hero-title,
  body.tax-product_tag .hc-shop-hero-title {
    max-width: none !important;
  }

  body.post-type-archive-product .hc-shop-hero-proof,
  body.tax-product_cat .hc-shop-hero-proof,
  body.tax-product_tag .hc-shop-hero-proof {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce .woocommerce-message,
  body.woocommerce .woocommerce-info,
  body.woocommerce-page .woocommerce-message,
  body.woocommerce-page .woocommerce-info {
    display: block !important;
  }

  body.woocommerce .woocommerce-message .button,
  body.woocommerce-page .woocommerce-message .button,
  body.woocommerce .woocommerce-info .button,
  body.woocommerce-page .woocommerce-info .button {
    width: 100% !important;
    margin-top: 0.75rem !important;
  }
}


/* ==========================================================
   HyperCorners v2.4 — rollback sécurité panier / checkout
   Goal: keep the validated boutique + product UX and avoid aggressive
   layout rules on WooCommerce classic checkout/cart shortcodes.
   ========================================================== */

/* Do not force shortcode cart / checkout into custom CSS grids.
   Astra + WooCommerce keep the structural layout; HyperCorners only
   keeps light buttons, notices and catalog/product polish. */
body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-checkout form.checkout {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
  min-width: 0;
}

/* Safe classic WooCommerce buttons only — no layout forcing. */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout #place_order,
body.woocommerce-cart .coupon .button,
body.woocommerce button.button,
body.woocommerce a.button,
body.woocommerce input.button {
  border-radius: 999px !important;
  background: var(--hc-blue) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-cart .coupon .button:hover,
body.woocommerce button.button:hover,
body.woocommerce a.button:hover,
body.woocommerce input.button:hover {
  background: var(--hc-violet) !important;
  color: #FFFFFF !important;
}

/* Coupon and forms: only small visual polish, no positioning. */
body.woocommerce-cart .coupon input.input-text,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce form .form-row input.input-text,
body.woocommerce form .form-row textarea {
  border-radius: 12px;
}

@media (max-width: 768px) {
  body.woocommerce-cart .coupon input.input-text,
  body.woocommerce-cart .coupon .button {
    width: 100% !important;
    margin: 0 0 0.55rem !important;
  }
}


/* ==========================================================
   HyperCorners v2.5 — official cart / checkout polish
   Goal: improve the real official shortcode cart and checkout without
   forcing fragile layouts. These rules are intentionally light and scoped.
   ========================================================== */

/* Shared classic WooCommerce page framing */
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title {
  color: var(--hc-heading) !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
}

body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-checkout .entry-content > .woocommerce {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Classic cart table: calmer card framing */
body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
  border: 1px solid var(--hc-border) !important;
  border-radius: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #FFFFFF !important;
  overflow: hidden !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  border-color: var(--hc-border) !important;
}

body.woocommerce-cart table.cart th,
body.woocommerce-cart table.cart td {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.cart img {
  width: 74px !important;
  border-radius: 10px !important;
  background: #F8FAFC !important;
}

body.woocommerce-cart table.cart .product-name a {
  color: var(--hc-blue) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.cart .product-name a:hover,
body.woocommerce-cart table.cart .product-name a:focus {
  color: var(--hc-violet) !important;
}

body.woocommerce-cart table.cart .quantity .qty {
  min-height: 42px !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 10px !important;
  text-align: center !important;
}

/* Cart actions: keep WooCommerce flow, just polish spacing */
body.woocommerce-cart table.cart td.actions {
  padding: 1rem !important;
}

body.woocommerce-cart table.cart td.actions .coupon {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  align-items: center !important;
}

body.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-width: min(260px, 100%) !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0.65rem 0.9rem !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 12px !important;
}

body.woocommerce-cart table.cart td.actions .button {
  min-height: 44px !important;
  padding: 0.65rem 1.15rem !important;
  border-radius: 999px !important;
}

body.woocommerce-cart table.cart td.actions > .button[name="update_cart"] {
  float: right !important;
  margin-left: 0.75rem !important;
}

body.woocommerce-cart table.cart td.actions > .button[name="update_cart"]:disabled,
body.woocommerce-cart table.cart td.actions > .button[name="update_cart"][disabled] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* Cart totals: premium but not over-engineered */
body.woocommerce-cart .cart-collaterals {
  margin-top: 2rem !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  padding: 1.35rem !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 22px !important;
  background: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.055) !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 1rem !important;
  color: var(--hc-heading) !important;
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals table {
  margin-bottom: 1rem !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding-bottom: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  margin-bottom: 0 !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

/* Checkout coupon notice */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin-bottom: 1.25rem !important;
  padding: 0.9rem 1rem !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  color: var(--hc-text) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035) !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  color: var(--hc-blue) !important;
}

body.woocommerce-checkout form.checkout_coupon {
  margin: 0 0 1.25rem !important;
  padding: 1rem !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 18px !important;
  background: #FFFFFF !important;
}

/* Checkout form fields */
body.woocommerce-checkout form.checkout h3 {
  color: var(--hc-heading) !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
}

body.woocommerce-checkout form.checkout .form-row label {
  color: var(--hc-heading) !important;
  font-weight: 750 !important;
}

body.woocommerce-checkout form.checkout .form-row input.input-text,
body.woocommerce-checkout form.checkout .form-row textarea,
body.woocommerce-checkout form.checkout .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  min-height: 42px !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

/* Checkout order review: stable card, no forced columns */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  padding: 1.35rem !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 22px !important;
  background: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.055) !important;
}

body.woocommerce-checkout #order_review_heading {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  color: var(--hc-heading) !important;
  font-size: clamp(1.35rem, 2vw, 1.7rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
}

body.woocommerce-checkout #order_review table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
  padding: 0.85rem 0 !important;
}

body.woocommerce-checkout #payment {
  border-radius: 18px !important;
  background: transparent !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  padding: 1rem 0 !important;
  border-color: var(--hc-border) !important;
}

body.woocommerce-checkout #payment div.form-row {
  padding: 1rem 0 0 !important;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  color: #64748B !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

body.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 54px !important;
  margin-top: 0.75rem !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

/* Classic Woo notices */
body.woocommerce .woocommerce-error,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-message {
  border-top: 0 !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  color: var(--hc-text) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035) !important;
}

body.woocommerce .woocommerce-error::before,
body.woocommerce .woocommerce-info::before,
body.woocommerce .woocommerce-message::before {
  color: var(--hc-blue) !important;
}

/* Responsive safety */
@media (max-width: 768px) {
  body.woocommerce-cart table.cart td.actions .coupon {
    display: flex !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.cart td.actions .coupon .input-text,
  body.woocommerce-cart table.cart td.actions .coupon .button,
  body.woocommerce-cart table.cart td.actions > .button[name="update_cart"] {
    width: 100% !important;
    float: none !important;
    margin: 0 0 0.6rem !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-review-order {
    padding: 1rem !important;
    border-radius: 18px !important;
  }

  body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    display: block !important;
  }
}


/* ==========================================================
   HyperCorners v2.6 — fixes for notice icon overlap and
   checkout review card integration.
   ========================================================== */

/* Fix classic Woo notices: keep icon clear from text */
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error,
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error {
  position: relative !important;
  display: block !important;
  padding: 1rem 1.15rem 1rem 3rem !important;
  line-height: 1.6 !important;
}

body.woocommerce .woocommerce-message::before,
body.woocommerce .woocommerce-info::before,
body.woocommerce .woocommerce-error::before,
body.woocommerce-page .woocommerce-message::before,
body.woocommerce-page .woocommerce-info::before,
body.woocommerce-page .woocommerce-error::before {
  position: absolute !important;
  left: 1rem !important;
  top: 1rem !important;
  margin: 0 !important;
  line-height: 1 !important;
}

body.woocommerce .woocommerce-message .button,
body.woocommerce .woocommerce-info .button,
body.woocommerce .woocommerce-error .button,
body.woocommerce-page .woocommerce-message .button,
body.woocommerce-page .woocommerce-info .button,
body.woocommerce-page .woocommerce-error .button {
  float: right !important;
  margin: 0 0 0.75rem 1rem !important;
}

body.woocommerce .cart-empty,
body.woocommerce-page .cart-empty {
  margin-bottom: 1rem !important;
}

/* Checkout coupon toggle: avoid icon/text overlap and keep clean action */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  display: block !important;
  padding: 1rem 1.15rem 1rem 3rem !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  position: absolute !important;
  left: 1rem !important;
  top: 1rem !important;
  margin: 0 !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
  float: right !important;
  margin-left: 1rem !important;
  font-weight: 700 !important;
}

/* Checkout order review: merge title and card cleanly */
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 0 !important;
  padding: 1.15rem 1.35rem 0.55rem !important;
  border: 1px solid var(--hc-border) !important;
  border-bottom: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  background: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.055) !important;
}

body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  margin-top: 0 !important;
  border-top: 0 !important;
  border-radius: 0 0 22px 22px !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.055) !important;
}

@media (max-width: 768px) {
  body.woocommerce .woocommerce-message,
  body.woocommerce .woocommerce-info,
  body.woocommerce .woocommerce-error,
  body.woocommerce-page .woocommerce-message,
  body.woocommerce-page .woocommerce-info,
  body.woocommerce-page .woocommerce-error,
  body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    padding-left: 2.8rem !important;
  }

  body.woocommerce .woocommerce-message .button,
  body.woocommerce .woocommerce-info .button,
  body.woocommerce .woocommerce-error .button,
  body.woocommerce-page .woocommerce-message .button,
  body.woocommerce-page .woocommerce-info .button,
  body.woocommerce-page .woocommerce-error .button,
  body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
    float: none !important;
    display: inline-block !important;
    margin: 0.7rem 0 0 !important;
  }

  body.woocommerce-checkout #order_review_heading {
    padding: 1rem 1rem 0.45rem !important;
    border-radius: 18px 18px 0 0 !important;
  }

  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-review-order {
    border-radius: 0 0 18px 18px !important;
  }
}


/* ==========================================================
   HyperCorners v2.7 — single product simplification
   Goal: remove redundant category labels and make HyperScore visible
   immediately without removing the breadcrumb.
   ========================================================== */

/* Keep only the HyperCorners selection badge in the eyebrow row. */
body.single-product.woocommerce div.product .summary .hc-single-eyebrow {
  margin-bottom: 0.45rem !important;
}

body.single-product.woocommerce div.product .summary .hc-single-category {
  display: none !important;
}

/* Move HyperScore visually into the top decision area. */
body.single-product.woocommerce div.product .summary > .hc-hyperscore {
  display: inline-flex !important;
  margin: 0.35rem 0 0.65rem !important;
  padding: 0.42rem 0.72rem !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(109, 40, 217, 0.08)) !important;
  font-size: 0.9rem !important;
}

/* Hide Astra / Woo category link that appears between breadcrumb and title.
   The breadcrumb is kept for navigation, but this category repetition is removed. */
body.single-product.woocommerce div.product .summary > .ast-woo-product-category,
body.single-product.woocommerce div.product .summary > .posted_in,
body.single-product.woocommerce div.product .summary > .product_meta > .posted_in:first-child {
  display: none !important;
}

/* Product meta: keep SKU and tags if present, but remove the duplicate category row. */
body.single-product.woocommerce div.product .product_meta .posted_in {
  display: none !important;
}

/* Reduce vertical density after removing the repeated labels. */
body.single-product.woocommerce div.product .summary .woocommerce-breadcrumb {
  margin-bottom: 0.45rem !important;
}

body.single-product.woocommerce div.product .summary .product_title {
  margin-top: 0.35rem !important;
}

body.single-product.woocommerce div.product .product_meta {
  margin-top: 0.85rem !important;
}

@media (max-width: 768px) {
  body.single-product.woocommerce div.product .summary > .hc-hyperscore {
    margin-bottom: 0.6rem !important;
  }
}


/* ==========================================================
   HyperCorners v2.8 — single product breadcrumb + HyperScore layout
   Goal: move breadcrumb above the gallery, pin HyperScore to the top-right
   of the purchase card, and remove redundant category labels.
   ========================================================== */

body.single-product.woocommerce div.product {
  position: relative !important;
}

/* New breadcrumb area placed before gallery and summary. */
body.single-product.woocommerce div.product .hc-single-product-breadcrumb {
  width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
}

@media (min-width: 922px) {
  body.single-product.woocommerce div.product .hc-single-product-breadcrumb {
    grid-column: 1 / -1 !important;
  }
}

body.single-product.woocommerce div.product .hc-single-product-breadcrumb .woocommerce-breadcrumb,
body.single-product.woocommerce div.product .hc-single-product-breadcrumb .hc-product-breadcrumb-nav {
  margin: 0 !important;
  color: #64748B !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

body.single-product.woocommerce div.product .hc-single-product-breadcrumb a {
  color: #64748B !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

body.single-product.woocommerce div.product .hc-single-product-breadcrumb a:hover,
body.single-product.woocommerce div.product .hc-single-product-breadcrumb a:focus {
  color: var(--hc-blue) !important;
}

/* Hide breadcrumb/category repetitions inside the right information card. */
body.single-product.woocommerce div.product .summary .woocommerce-breadcrumb,
body.single-product.woocommerce div.product .summary .ast-breadcrumbs,
body.single-product.woocommerce div.product .summary .rank-math-breadcrumb,
body.single-product.woocommerce div.product .summary > .ast-woo-product-category,
body.single-product.woocommerce div.product .summary > .posted_in,
body.single-product.woocommerce div.product .summary > a[href*="/categorie-produit/"],
body.single-product.woocommerce div.product .summary > a[href*="/product-category/"],
body.single-product.woocommerce div.product .summary > a[href*="product_cat"],
body.single-product.woocommerce div.product .summary .product_meta .posted_in {
  display: none !important;
}

/* Purchase card top structure: selection left, HyperScore right. */
body.single-product.woocommerce div.product .summary.entry-summary,
body.single-product.woocommerce div.product div.summary {
  position: relative !important;
  padding-top: clamp(1.35rem, 2vw, 1.85rem) !important;
}

body.single-product.woocommerce div.product .summary .hc-single-eyebrow {
  max-width: calc(100% - 160px) !important;
  margin: 0 0 1.15rem !important;
  min-height: 34px !important;
}

body.single-product.woocommerce div.product .summary > .hc-hyperscore {
  position: absolute !important;
  top: clamp(1.15rem, 2vw, 1.55rem) !important;
  right: clamp(1.15rem, 2vw, 1.65rem) !important;
  z-index: 2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08) !important;
}

body.single-product.woocommerce div.product .summary .product_title {
  margin-top: 0 !important;
}

/* Keep the useful meta block, but remove empty spacing if category is hidden. */
body.single-product.woocommerce div.product .product_meta {
  margin-top: 0.9rem !important;
}

body.single-product.woocommerce div.product .product_meta:empty {
  display: none !important;
}

@media (max-width: 768px) {
  body.single-product.woocommerce div.product .hc-single-product-breadcrumb {
    margin-bottom: 0.85rem !important;
  }

  body.single-product.woocommerce div.product .summary .hc-single-eyebrow {
    max-width: none !important;
    margin-bottom: 0.7rem !important;
    min-height: auto !important;
  }

  body.single-product.woocommerce div.product .summary > .hc-hyperscore {
    position: static !important;
    display: inline-flex !important;
    margin: 0 0 0.75rem !important;
  }
}


/* ==========================================================
   HyperCorners v3.0 — stable product gallery
   Goal: stop visual jumps when product gallery images have
   different dimensions or aspect ratios.
   ========================================================== */

body.single-product.woocommerce div.product div.images,
body.single-product.woocommerce div.product .woocommerce-product-gallery {
  overflow: hidden !important;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  height: clamp(460px, 42vw, 620px) !important;
  min-height: clamp(460px, 42vw, 620px) !important;
  max-height: clamp(460px, 42vw, 620px) !important;
  border-radius: 24px 24px 0 0 !important;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  overflow: hidden !important;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery__wrapper,
body.single-product.woocommerce div.product .woocommerce-product-gallery__image,
body.single-product.woocommerce div.product .woocommerce-product-gallery__image > a {
  height: 100% !important;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery__image > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%) !important;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery__image img,
body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

/* Keep thumbnails stable as well, regardless of original image size. */
body.single-product.woocommerce div.product div.images .flex-control-thumbs {
  align-items: stretch !important;
}

body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

body.single-product.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 921px) {
  body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    height: clamp(360px, 72vw, 540px) !important;
    min-height: clamp(360px, 72vw, 540px) !important;
    max-height: clamp(360px, 72vw, 540px) !important;
  }
}

@media (max-width: 544px) {
  body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    height: clamp(300px, 88vw, 430px) !important;
    min-height: clamp(300px, 88vw, 430px) !important;
    max-height: clamp(300px, 88vw, 430px) !important;
    border-radius: 20px 20px 0 0 !important;
  }

  body.single-product.woocommerce div.product div.images .flex-control-thumbs {
    gap: 8px !important;
    padding: 10px !important;
  }

  body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
    border-radius: 12px !important;
  }
}


/* ==========================================================
   HyperCorners v3.1 — compact product gallery
   Goal: keep the stable gallery from v3.0 but reduce its visual
   footprint so main image + thumbnails are visible without zooming.
   ========================================================== */

body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
  height: clamp(360px, 34vw, 480px) !important;
  min-height: clamp(360px, 34vw, 480px) !important;
  max-height: clamp(360px, 34vw, 480px) !important;
}

body.single-product.woocommerce div.product div.images .flex-control-thumbs {
  grid-template-columns: repeat(4, minmax(72px, 96px)) !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px !important;
}

body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
  width: 100% !important;
  max-width: 96px !important;
  max-height: 96px !important;
}

body.single-product.woocommerce div.product div.images .flex-control-thumbs img {
  padding: 5px !important;
}

@media (min-width: 922px) {
  body.single-product.woocommerce div.product {
    align-items: start !important;
  }

  body.single-product.woocommerce div.product div.images,
  body.single-product.woocommerce div.product .woocommerce-product-gallery {
    max-width: 100% !important;
  }
}

@media (max-width: 921px) {
  body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    height: clamp(320px, 62vw, 430px) !important;
    min-height: clamp(320px, 62vw, 430px) !important;
    max-height: clamp(320px, 62vw, 430px) !important;
  }

  body.single-product.woocommerce div.product div.images .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(64px, 86px)) !important;
    gap: 9px !important;
    padding: 10px !important;
  }

  body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
    max-width: 86px !important;
    max-height: 86px !important;
  }
}

@media (max-width: 544px) {
  body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    height: clamp(260px, 76vw, 350px) !important;
    min-height: clamp(260px, 76vw, 350px) !important;
    max-height: clamp(260px, 76vw, 350px) !important;
  }

  body.single-product.woocommerce div.product div.images .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(54px, 74px)) !important;
    gap: 8px !important;
    padding: 9px !important;
  }

  body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
    max-width: 74px !important;
    max-height: 74px !important;
    border-radius: 11px !important;
  }
}
