/* Shopify Dawn parity — HookNest */
:root {
  --hn-bg: #ffffff;
  --hn-fg: #121212;
  --hn-muted: rgba(18, 18, 18, 0.75);
  --hn-border: rgba(18, 18, 18, 0.08);
  --hn-footer-bg: #242833;
  --hn-footer-fg: #ffffff;
  --hn-soft: #f3f3f3;
  --hn-max: 1200px;
  --hn-font: "Assistant", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.hooknest-theme,
body.hooknest-theme button,
body.hooknest-theme input,
body.hooknest-theme select,
body.hooknest-theme textarea {
  font-family: var(--hn-font) !important;
  color: var(--hn-fg);
  background: var(--hn-bg);
}

body.hooknest-theme .site,
body.hooknest-theme .site-content,
body.hooknest-theme .content-area,
body.hooknest-theme .col-full {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.hooknest-theme #content > .col-full,
body.hooknest-theme .site-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}

body.hooknest-theme .widget-area,
body.hooknest-theme .storefront-breadcrumb,
body.hooknest-theme .site-header,
body.hooknest-theme .storefront-primary-navigation,
body.hooknest-theme .site-search,
body.hooknest-theme .site-header-cart {
  display: none !important;
}

body.hooknest-theme.right-sidebar .content-area,
body.hooknest-theme.left-sidebar .content-area {
  width: 100% !important;
}

body.hooknest-theme a {
  color: var(--hn-fg);
}

/* Announcement */
.hn-announce {
  text-align: center;
  border-bottom: 1px solid var(--hn-border);
  background: #fff;
}

.hn-announce p {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--hn-fg);
}

/* Header — Dawn 3-col */
.hn-header {
  border-bottom: 1px solid var(--hn-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hn-header__inner {
  max-width: var(--hn-max);
  margin: 0 auto;
  padding: 0.35rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  position: relative;
}

.hn-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hn-nav a {
  color: var(--hn-fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hn-nav a:hover,
.hn-nav .current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 1px;
}

.hn-logo {
  display: flex;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.hn-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

.hn-utils {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.1rem;
}

.hn-utils a {
  color: var(--hn-fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.hn-cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--hn-fg);
  color: #fff;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.hn-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hn-border);
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

/* Hero — Shopify banner--adapt ~56.28% */
.hn-hero {
  width: 100%;
  background: var(--hn-soft);
}

.hn-hero__media {
  position: relative;
  width: 100%;
  padding-bottom: 56.2799%;
  overflow: hidden;
}

.hn-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Featured */
.hn-featured {
  padding: 2.75rem 0 1.25rem;
}

.hn-wrap {
  max-width: var(--hn-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hn-featured h2 {
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 2rem;
}

.hn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hn-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hn-card__media {
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hn-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  margin: 0 !important;
  transition: transform 0.4s ease;
}

.hn-card a:hover .hn-card__media img {
  transform: scale(1.03);
}

.hn-card__info h3 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.hn-card__price {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hn-muted);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hn-price-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hn-view-all {
  text-align: center;
  margin: 2.25rem 0 0.5rem;
}

.hn-view-all a {
  display: inline-block;
  min-width: 10rem;
  padding: 0.9rem 1.75rem;
  background: var(--hn-fg);
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--hn-fg);
}

.hn-view-all a:hover {
  opacity: 0.88;
}

.hn-empty {
  text-align: center;
  color: var(--hn-muted);
}

/* Image + text rows */
.hn-rows {
  background: var(--hn-soft);
  padding: 2.25rem 0 2.75rem;
  margin-top: 1.5rem;
}

.hn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--hn-max);
  margin: 0 auto 1.25rem;
  background: #fff;
  overflow: hidden;
}

.hn-row--reverse .hn-row__media {
  order: 2;
}

.hn-row__media {
  min-height: 320px;
  background: #fff;
}

.hn-row__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.hn-row__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2.75rem;
}

.hn-row__text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hn-row__text p {
  margin: 0;
  color: var(--hn-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Footer */
.hn-footer {
  background: var(--hn-footer-bg);
  color: #ffffff;
  padding: 3rem 0 1.5rem;
}

.hn-footer a,
.hn-footer a:visited,
.hn-footer a:link,
.hn-footer .menu a,
.hn-footer li a,
body.hooknest-theme .hn-footer a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 1;
}

.hn-footer a:hover,
.hn-footer a:focus,
body.hooknest-theme .hn-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  opacity: 0.9;
}

.hn-footer__grid {
  max-width: var(--hn-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.hn-footer h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.15rem;
  color: #fff;
}

.hn-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hn-footer li {
  margin-bottom: 0.65rem;
}

.hn-footer__company {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hn-footer__bottom {
  max-width: var(--hn-max);
  margin: 2.25rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.hn-footer__bottom a,
body.hooknest-theme .hn-footer__bottom a {
  font-size: inherit;
  color: #ffffff !important;
}

/* Inner pages */
.hn-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3.5rem;
}

.hn-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
}

.hn-page .entry-content,
.hn-page .rte {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}

.hn-page .rte p {
  margin: 0 0 1rem;
}

/* Shop / archive / PDP */
body.hooknest-theme.post-type-archive-product .site-main,
body.hooknest-theme.tax-product_cat .site-main,
body.hooknest-theme.woocommerce-shop .site-main,
body.hooknest-theme.single-product .site-main,
body.hooknest-theme.woocommerce-cart .site-main,
body.hooknest-theme.woocommerce-checkout .site-main {
  max-width: var(--hn-max) !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem 3rem !important;
}

body.hooknest-theme ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.25rem;
  margin: 0 !important;
  padding: 0 !important;
}

body.hooknest-theme ul.products::before,
body.hooknest-theme ul.products::after {
  display: none !important;
}

body.hooknest-theme ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  text-align: left;
}

body.hooknest-theme ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 0 1rem;
  background: #fff;
}

body.hooknest-theme .woocommerce-loop-product__title {
  font-size: 1rem !important;
  font-weight: 400 !important;
}

body.hooknest-theme .button,
body.hooknest-theme button.button,
body.hooknest-theme input.button,
body.hooknest-theme #respond input#submit,
body.hooknest-theme a.button {
  background: var(--hn-fg) !important;
  border-color: var(--hn-fg) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  font-family: var(--hn-font) !important;
}

@media (max-width: 990px) {
  .hn-grid,
  body.hooknest-theme ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hn-logo img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 749px) {
  .hn-header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 4.25rem;
    padding: 0.35rem 1rem;
  }

  .hn-nav-wrap {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--hn-border);
    padding: 1rem 1.25rem;
  }

  .hn-header.is-open .hn-nav-wrap {
    display: block;
  }

  .hn-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hn-menu-toggle {
    display: inline-block;
  }

  .hn-logo img {
    width: 72px;
    height: 72px;
  }

  .hn-grid,
  body.hooknest-theme ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem 1rem;
  }

  .hn-row,
  .hn-row--reverse {
    grid-template-columns: 1fr;
  }

  .hn-row--reverse .hn-row__media {
    order: 0;
  }

  .hn-row__text {
    padding: 1.75rem 1.35rem;
  }

  .hn-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hn-wrap {
    padding: 0 1rem;
  }
}

/* Breadcrumbs */
.hn-crumbs {
  max-width: var(--hn-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.85rem;
  color: var(--hn-muted);
}

.hn-crumbs a {
  color: var(--hn-fg);
  text-decoration: none;
}

.hn-crumbs a:hover {
  text-decoration: underline;
}

.hn-crumbs__sep {
  margin: 0 0.45rem;
  opacity: 0.45;
}

/* Shop archive */
.hn-shop {
  padding: 0.5rem 0 3rem;
}

.hn-shop__header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.hn-shop .woocommerce-products-header__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.hn-shop__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hn-border);
  font-size: 0.9rem;
  color: var(--hn-muted);
}

.hn-shop__toolbar .woocommerce-result-count {
  margin: 0;
}

.hn-shop__toolbar .woocommerce-ordering {
  margin: 0;
}

.hn-shop__toolbar select {
  border: 1px solid var(--hn-border);
  border-radius: 0;
  padding: 0.45rem 0.65rem;
  font: inherit;
  background: #fff;
}

/* Catalog cards — Dawn-like, no loop ATC */
body.hooknest-theme ul.products li.product .button,
body.hooknest-theme ul.products li.product .added_to_cart {
  display: none !important;
}

body.hooknest-theme ul.products li.product .price {
  color: var(--hn-muted) !important;
  font-size: 0.9rem !important;
  margin: 0.25rem 0 0 !important;
}

body.hooknest-theme ul.products li.product h2,
body.hooknest-theme ul.products li.product .woocommerce-loop-product__title {
  margin: 0 !important;
}

body.hooknest-theme .woocommerce-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

body.hooknest-theme .woocommerce-pagination ul {
  display: inline-flex !important;
  gap: 0.35rem;
  border: 0 !important;
}

body.hooknest-theme .woocommerce-pagination li {
  border: 0 !important;
  float: none !important;
}

body.hooknest-theme .woocommerce-pagination a,
body.hooknest-theme .woocommerce-pagination span {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hn-border) !important;
  background: #fff !important;
  color: var(--hn-fg) !important;
  padding: 0 0.5rem !important;
}

body.hooknest-theme .woocommerce-pagination .current {
  background: var(--hn-fg) !important;
  color: #fff !important;
  border-color: var(--hn-fg) !important;
}

/* PDP — CSS grid (no floats) + stable gallery */
.hn-pdp {
  padding: 0.5rem 0 3rem;
}

.hn-pdp div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2.5rem;
  row-gap: 2rem;
  align-items: start;
}

.hn-pdp .woocommerce-product-gallery,
.hn-pdp div.images,
body.single-product .woocommerce-product-gallery {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  position: relative !important;
  overflow: hidden;
}

.hn-pdp .summary.entry-summary {
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}

.hn-pdp .woocommerce-tabs,
.hn-pdp .related.products,
.hn-pdp .upsells.products,
.hn-pdp section.related {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  padding-top: 0.25rem;
  margin-top: 0.5rem;
}

/* Before FlexSlider inits: show only first image (prevents stacked chaos).
   WC gallery often has no .flexslider class — gate on .flex-viewport instead. */
.hn-pdp .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}

.hn-pdp .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
  display: none !important;
  margin: 0 !important;
}

.hn-pdp .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  display: block !important;
  width: 100% !important;
}

/* FlexSlider owns slide widths/floats — do not override them */
.hn-pdp .flex-viewport {
  max-width: 100% !important;
  margin: 0 !important;
}

.hn-pdp .woocommerce-product-gallery__image a {
  display: block !important;
  margin: 0 !important;
}

.hn-pdp .woocommerce-product-gallery__image img:not(.zoomImg) {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  object-fit: contain;
}

.hn-pdp .woocommerce-product-gallery__image img.zoomImg {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
}

.hn-pdp .woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  z-index: 2;
  width: 2rem !important;
  height: 2rem !important;
}

/* Thumbnails — flex row, fixed cell size */
.hn-pdp ol.flex-control-nav,
.hn-pdp ol.flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin: 0.75rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  box-sizing: border-box !important;
}

/* Storefront clearfix pseudos become ghost grid cells — kill them */
.hn-pdp ol.flex-control-thumbs::before,
.hn-pdp ol.flex-control-thumbs::after,
.hn-pdp ol.flex-control-nav::before,
.hn-pdp ol.flex-control-nav::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.hn-pdp ol.flex-control-thumbs li {
  display: block !important;
  flex: 0 0 6.5rem !important;
  width: 6.5rem !important;
  max-width: 6.5rem !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.hn-pdp ol.flex-control-thumbs li img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.55 !important;
  cursor: pointer;
}

.hn-pdp ol.flex-control-thumbs li img.flex-active,
.hn-pdp ol.flex-control-thumbs li img:hover {
  opacity: 1 !important;
}

.hn-pdp .product_title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hn-pdp .price {
  font-size: 1.2rem !important;
  color: var(--hn-fg) !important;
  margin: 0 0 1rem !important;
}

.hn-pdp .woocommerce-product-details__short-description {
  color: var(--hn-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.hn-pdp .variations {
  width: 100%;
  margin-bottom: 1rem;
}

.hn-pdp .variations td,
.hn-pdp .variations th {
  padding: 0.35rem 0;
  border: 0;
  vertical-align: middle;
}

.hn-pdp .variations select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--hn-border);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  font: inherit;
  background: #fff;
}

.hn-pdp .single_add_to_cart_button,
body.hooknest-theme .hn-pdp .single_add_to_cart_button.button,
body.hooknest-theme.single-product button.single_add_to_cart_button,
body.hooknest-theme.single-product button.single_add_to_cart_button.button.alt,
body.hooknest-theme.single-product .summary button.button.alt {
  min-height: 3rem !important;
  padding: 0.9rem 1.75rem !important;
  width: auto !important;
  min-width: 12rem;
  background: #121212 !important;
  background-color: #121212 !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  border-color: #121212 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

body.hooknest-theme.single-product button.single_add_to_cart_button:hover,
body.hooknest-theme.single-product button.single_add_to_cart_button.button.alt:hover {
  background: #000 !important;
  color: #fff !important;
  opacity: 1 !important;
}

body.hooknest-theme .woocommerce-message {
  border-top-color: #121212 !important;
  background: #f6f6f6 !important;
}

body.hooknest-theme .woocommerce-message .button {
  background: #121212 !important;
  color: #fff !important;
}

.hn-pdp .quantity .qty {
  min-height: 3rem;
  width: 4rem;
  border: 1px solid var(--hn-border);
  border-radius: 0;
  margin-right: 0.65rem;
  text-align: center;
}

.hn-pdp .product_meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hn-border);
  font-size: 0.9rem;
  color: var(--hn-muted);
}

.hn-pdp .product_meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hn-pdp .woocommerce-tabs {
  display: block !important;
  clear: both !important;
  overflow: visible !important;
  margin-top: 1.5rem !important;
  padding-top: 0.5rem;
}

.hn-pdp .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1.5rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hn-border) !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
  overflow: visible !important;
}

.hn-pdp .woocommerce-tabs ul.tabs::before,
.hn-pdp .woocommerce-tabs ul.tabs::after {
  content: none !important;
  display: none !important;
}

.hn-pdp .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 1.75rem 0 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
  box-shadow: none !important;
}

/* Kill Storefront Font Awesome chevron on active tab */
.hn-pdp .woocommerce-tabs ul.tabs li::before,
.hn-pdp .woocommerce-tabs ul.tabs li::after,
.hn-pdp .woocommerce-tabs ul.tabs li.active::before,
.hn-pdp .woocommerce-tabs ul.tabs li.active::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.hn-pdp .woocommerce-tabs ul.tabs li a {
  display: inline-block !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  color: var(--hn-muted) !important;
  padding: 0.85rem 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

.hn-pdp .woocommerce-tabs ul.tabs li a:focus,
.hn-pdp .woocommerce-tabs ul.tabs li a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hn-pdp .woocommerce-tabs ul.tabs li.active a,
.hn-pdp .woocommerce-tabs ul.tabs li a:hover {
  color: var(--hn-fg) !important;
  border-bottom-color: var(--hn-fg) !important;
}

.hn-pdp .woocommerce-tabs .panel,
.hn-pdp .woocommerce-Tabs-panel {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.25rem 0 0 !important;
  clear: both !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.hn-pdp .woocommerce-Tabs-panel--description {
  max-width: 40rem;
}

.hn-pdp .woocommerce-Tabs-panel h2:first-child {
  display: none;
}

.hn-pdp .woocommerce-Tabs-panel,
.hn-pdp .woocommerce-Tabs-panel p {
  color: var(--hn-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.hn-pdp .related ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Hide Storefront prev/next product arrows */
.storefront-product-pagination,
body.hooknest-theme .storefront-product-pagination {
  display: none !important;
}

/* Cart / checkout */
body.hooknest-theme.woocommerce-cart .site-main,
body.hooknest-theme.woocommerce-checkout .site-main {
  max-width: var(--hn-max) !important;
  margin: 0 auto !important;
  padding: 1rem 1.5rem 3rem !important;
}

.hn-cart-empty {
  text-align: center;
  padding: 3rem 1rem 4rem;
  max-width: 32rem;
  margin: 0 auto;
}

.hn-cart-empty h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.hn-cart-empty p {
  color: var(--hn-muted);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.hn-cart-empty__cta {
  display: inline-block !important;
  padding: 0.9rem 1.75rem !important;
}

body.hooknest-theme table.cart {
  border: 0;
}

body.hooknest-theme table.cart th {
  border-bottom: 1px solid var(--hn-border);
  font-weight: 500;
}

body.hooknest-theme table.cart td {
  border-bottom: 1px solid var(--hn-border);
  padding: 1rem 0.5rem;
  vertical-align: middle;
}

body.hooknest-theme .cart-collaterals .cart_totals {
  width: 100%;
  float: none;
  background: var(--hn-soft);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

body.hooknest-theme .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  text-align: center;
  padding: 1rem !important;
  font-size: 1rem !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Block cart / checkout CTAs — white on black (links inherit --hn-fg otherwise) */
body.hooknest-theme .wc-block-cart__submit-button,
body.hooknest-theme a.wc-block-cart__submit-button,
body.hooknest-theme .wc-block-components-button.contained,
body.hooknest-theme a.wc-block-components-button.contained,
body.hooknest-theme .wc-block-components-checkout-place-order-button,
body.hooknest-theme button.wc-block-components-checkout-place-order-button,
body.hooknest-theme .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
  background: var(--hn-fg) !important;
  background-color: var(--hn-fg) !important;
  border-color: var(--hn-fg) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.hooknest-theme .wc-block-cart__submit-button:hover,
body.hooknest-theme a.wc-block-cart__submit-button:hover,
body.hooknest-theme .wc-block-components-button.contained:hover,
body.hooknest-theme a.wc-block-components-button.contained:hover,
body.hooknest-theme .wc-block-components-checkout-place-order-button:hover {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.9;
}

body.hooknest-theme .wc-block-components-button.contained .wc-block-components-button__text,
body.hooknest-theme .wc-block-cart__submit-button .wc-block-components-button__text {
  color: #fff !important;
}

/* Hide empty Stripe express "OR" gap on cart */
body.hooknest-theme .wc-block-components-express-payment:not(:has(button)),
body.hooknest-theme .wc-block-components-express-payment__title-container:has(+ .wc-block-components-express-payment__content:empty),
body.hooknest-theme .wc-block-components-express-payment--cart:not(:has(.wc-block-components-express-payment__event-buttons *)) {
  display: none !important;
}

body.hooknest-theme .wc-block-components-express-payment-continue-rule {
  display: none !important;
}

body.hooknest-theme .wc-block-cart__submit-container {
  margin-top: 1rem !important;
}

@media (max-width: 749px) {
  .hn-pdp div.product {
    grid-template-columns: 1fr !important;
    row-gap: 1.5rem;
  }

  .hn-pdp .woocommerce-product-gallery,
  .hn-pdp div.images,
  body.single-product .woocommerce-product-gallery,
  .hn-pdp .summary.entry-summary {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hn-pdp ol.flex-control-thumbs li {
    flex-basis: calc(33.333% - 0.34rem) !important;
    width: calc(33.333% - 0.34rem) !important;
    max-width: calc(33.333% - 0.34rem) !important;
  }

  .hn-shop__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hn-pdp .single_add_to_cart_button,
  body.hooknest-theme .hn-pdp .single_add_to_cart_button.button {
    width: 100% !important;
  }

  .hn-crumbs {
    padding: 1rem 1rem 0;
  }
}
