/* ═══════════════════════════════════════════════════════════════
   HHG WOOCOMMERCE STYLES
   Overrides WooCommerce defaults to match the HHG design system
═══════════════════════════════════════════════════════════════ */

/* ─── Breadcrumb ─────────────────────────────────────────────── */

.hhg-product-breadcrumb {
  padding: 20px 0;
  border-bottom: 1px solid var(--hhg-border);
  background: var(--hhg-white);
}

.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--hhg-muted);
  margin: 0 !important;
}

.woocommerce-breadcrumb a {
  color: var(--hhg-muted);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: var(--hhg-olive);
}

/* ─── Product Hero Layout ─────────────────────────────────────── */

.hhg-product-hero {
  background: var(--hhg-white);
  padding: 56px 0 64px;
}

.hhg-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

/* ─── Gallery ────────────────────────────────────────────────── */

.hhg-product-gallery-col {
  position: sticky;
  top: 32px;
}

.woocommerce-product-gallery {
  margin: 0 !important;
}

.woocommerce-product-gallery__wrapper img {
  border-radius: 20px;
  border: 1px solid var(--hhg-border);
  box-shadow: var(--hhg-shadow);
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder when no gallery image */
.woocommerce-product-gallery__wrapper:empty::before,
.hhg-product-gallery-col:empty::before {
  content: 'Product Image';
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  border-radius: 20px;
  background: linear-gradient(
    150deg,
    rgba(173, 180, 166, 0.45) 0%,
    rgba(203, 173, 141, 0.22) 48%,
    rgba(226, 221, 205, 0.88) 100%
  );
  border: 1px solid var(--hhg-border);
  color: var(--hhg-sage);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ─── Product Summary ────────────────────────────────────────── */

.hhg-product-summary-col .product_title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hhg-text);
  margin: 0 0 16px;
}

/* Price */
.hhg-product-summary-col .price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.hhg-product-summary-col .price .woocommerce-Price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hhg-text);
  line-height: 1;
}

.hhg-product-summary-col .price del .woocommerce-Price-amount {
  font-size: 1.3rem;
  color: var(--hhg-muted);
  font-weight: 500;
}

.hhg-product-summary-col .price ins {
  text-decoration: none;
}

/* Short description */
.hhg-product-summary-col .woocommerce-product-details__short-description {
  border-top: 1px solid var(--hhg-border);
  border-bottom: 1px solid var(--hhg-border);
  padding: 20px 0;
  margin: 0 0 28px;
}

.hhg-product-summary-col .woocommerce-product-details__short-description p {
  font-size: 15px;
  line-height: 1.82;
  color: var(--hhg-muted);
  margin: 0 0 12px;
}

.hhg-product-summary-col .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

.hhg-product-summary-col .woocommerce-product-details__short-description ul {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hhg-product-summary-col .woocommerce-product-details__short-description li {
  font-size: 14.5px;
  color: var(--hhg-muted);
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hhg-product-summary-col .woocommerce-product-details__short-description li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hhg-tan);
  margin-top: 7px;
}

/* ─── Variations ─────────────────────────────────────────────── */

.variations_form .variations {
  width: 100%;
  border: none !important;
  margin-bottom: 20px;
}

.variations_form .variations tr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.variations_form .variations td,
.variations_form .variations th {
  padding: 0 !important;
  border: none !important;
  text-align: left;
  width: auto !important;
}

.variations_form .variations label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hhg-muted);
  display: block;
  margin-bottom: 6px;
}

.variations_form .variations select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--hhg-border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--hhg-text);
  background: var(--hhg-bg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d6d6d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.variations_form .variations select:focus {
  border-color: var(--hhg-olive);
  background-color: var(--hhg-white);
}

.reset_variations {
  font-size: 12px;
  color: var(--hhg-muted);
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

.reset_variations:hover {
  color: var(--hhg-olive);
}

/* Variation price */
.woocommerce-variation-price .price {
  margin-bottom: 16px;
}

/* ─── Add to Cart Button ──────────────────────────────────────── */

.woocommerce div.product form.cart .button,
.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--hhg-olive) !important;
  color: #fff !important;
  border: 1.5px solid var(--hhg-olive) !important;
  border-radius: 999px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  padding: 13px 28px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background 0.22s ease, border-color 0.22s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.woocommerce div.product form.cart .button:hover,
.single_add_to_cart_button:hover {
  background: var(--hhg-olive-dark) !important;
  border-color: var(--hhg-olive-dark) !important;
}

/* Quantity input */
.woocommerce div.product form.cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.woocommerce div.product form.cart .quantity {
  display: none; /* hide quantity for testing packages — one per purchase */
}

/* ─── Trust Signals ───────────────────────────────────────────── */

.hhg-product-trust {
  list-style: none;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hhg-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hhg-product-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--hhg-muted);
  font-weight: 500;
}

.hhg-product-trust svg {
  flex-shrink: 0;
}

.hhg-product-client-note {
  font-size: 12.5px;
  color: var(--hhg-muted);
  line-height: 1.7;
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--hhg-neutral);
  border-radius: 8px;
}

/* ─── Long Description Section ────────────────────────────────── */

.hhg-product-description-section {
  padding: 80px 0;
  background: var(--hhg-bg);
}

.hhg-product-description-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--hhg-text);
  line-height: 1.25;
  margin: 40px 0 16px;
}

.hhg-product-description-content h2:first-child {
  margin-top: 0;
}

.hhg-product-description-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hhg-text);
  margin: 28px 0 10px;
}

.hhg-product-description-content p {
  font-size: 16px;
  line-height: 1.88;
  color: var(--hhg-muted);
  margin: 0 0 18px;
}

.hhg-product-description-content ul,
.hhg-product-description-content ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hhg-product-description-content li {
  font-size: 15.5px;
  color: var(--hhg-muted);
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hhg-product-description-content ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hhg-tan);
  margin-top: 8px;
}

.hhg-product-description-content ol {
  counter-reset: ol-counter;
}

.hhg-product-description-content ol li {
  counter-increment: ol-counter;
}

.hhg-product-description-content ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--hhg-olive);
  letter-spacing: 0.05em;
  margin-top: 5px;
}

.hhg-product-description-content strong {
  color: var(--hhg-text);
  font-weight: 600;
}

/* Design polish pass */
.hhg-product-page {
  background:
    radial-gradient(circle at top left, rgba(203, 173, 141, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(173, 180, 166, 0.12), transparent 22%),
    linear-gradient(180deg, #fbf7f2 0%, #f7f4ef 28%, #ffffff 100%);
}

.hhg-product-breadcrumb {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,244,239,0.92));
}

.hhg-product-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(203, 173, 141, 0.16), transparent 18%),
    radial-gradient(circle at 12% 12%, rgba(173, 180, 166, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.95), #ffffff 100%);
}

.hhg-product-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: 24px;
  width: 280px;
  height: 280px;
  border-radius: 44% 56% 58% 42% / 44% 37% 63% 56%;
  background: rgba(203, 173, 141, 0.12);
  filter: blur(10px);
}

.hhg-product-layout {
  position: relative;
  z-index: 1;
}

.hhg-product-gallery-col {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.96), rgba(247,244,239,0.88));
  border: 1px solid var(--hhg-border);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 28px 70px rgba(43, 43, 43, 0.08);
}

.woocommerce-product-gallery__wrapper img {
  border-radius: 24px;
  box-shadow: none;
  border: 0;
}

.hhg-product-summary-col {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 226, 215, 0.92);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(43,43,43,0.07);
}

.hhg-product-summary-col .price {
  padding: 12px 0 2px;
}

.hhg-product-summary-col .woocommerce-product-details__short-description {
  background: rgba(247, 244, 239, 0.72);
  border: 1px solid var(--hhg-border);
  border-radius: 18px;
  padding: 18px 18px;
}

.variations_form .variations select {
  background-color: rgba(255,255,255,0.9);
}

.hhg-product-trust {
  background: rgba(247, 244, 239, 0.56);
  border: 1px solid var(--hhg-border);
  border-radius: 18px;
  padding: 18px 18px;
  border-top: 1px solid var(--hhg-border);
}

.hhg-product-client-note {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(226,221,205,0.8), rgba(247,244,239,0.9));
}

.hhg-product-description-section {
  background:
    linear-gradient(180deg, #f9f5ef 0%, #f4efe6 100%);
}

.hhg-product-description-content {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(233,226,215,0.88);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 22px 52px rgba(43,43,43,0.06);
}

.hhg-product-next-section .hhg-card {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,244,239,0.92));
}

.hhg-step-num {
  box-shadow: 0 10px 20px rgba(43,43,43,0.08);
}

.hhg-product-related-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), #ffffff 100%);
}

.hhg-product-related-section ul.products {
  gap: 22px !important;
}

.hhg-product-related-section ul.products li.product {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,239,0.92));
  border: 1px solid var(--hhg-border);
  border-radius: 24px;
  padding: 18px 18px 22px !important;
  box-shadow: 0 18px 40px rgba(43,43,43,0.05);
}

.hhg-product-related-section ul.products li.product::before {
  content: "";
  display: block;
  height: 4px;
  margin: -18px -18px 18px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--hhg-tan), var(--hhg-olive));
}

.hhg-product-related-section ul.products li.product img {
  border-radius: 18px;
  margin-bottom: 16px !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--hhg-border);
  border-top-width: 1px !important;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,239,0.92));
  box-shadow: 0 16px 30px rgba(43,43,43,0.05);
}

.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout .col2-set,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--hhg-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(43,43,43,0.06);
}

@media (max-width: 900px) {
  .hhg-product-summary-col,
  .hhg-product-description-content {
    padding: 24px;
  }
}

/* ─── What's Next ────────────────────────────────────────────── */

.hhg-product-next-section {
  padding: 0 0 80px;
  background: var(--hhg-bg);
}

.hhg-next-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hhg-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hhg-border);
}

.hhg-next-steps li:last-child {
  border-bottom: none;
}

.hhg-step-num {
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--hhg-tan);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.hhg-next-steps li p {
  font-size: 15px;
  color: var(--hhg-muted);
  line-height: 1.75;
  margin: 0;
}

/* ─── Related Products ───────────────────────────────────────── */

.hhg-product-related-section {
  padding: 80px 0;
  background: var(--hhg-white);
}

.hhg-product-related-header {
  margin-bottom: 40px;
}

.hhg-product-related-section .related h2,
.hhg-product-related-section .related > h2 {
  display: none; /* We output our own heading above */
}

.hhg-product-related-section .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hhg-product-related-section .products li.product {
  background: var(--hhg-bg);
  border: 1px solid var(--hhg-border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.hhg-product-related-section .products li.product:hover {
  box-shadow: var(--hhg-shadow);
  transform: translateY(-3px);
}

.hhg-product-related-section .products li.product a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--hhg-border);
}

.hhg-product-related-section .products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hhg-text);
  padding: 18px 20px 6px;
  margin: 0;
  line-height: 1.35;
}

.hhg-product-related-section .products li.product .price {
  padding: 0 20px;
  font-size: 1.1rem;
  color: var(--hhg-text);
  margin-bottom: 16px;
}

.hhg-product-related-section .products li.product .button {
  margin: auto 20px 20px !important;
  width: calc(100% - 40px) !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  min-height: 42px !important;
}

/* ─── Disclaimer ──────────────────────────────────────────────── */

.hhg-product-disclaimer {
  font-size: 13px !important;
  color: var(--hhg-muted) !important;
  line-height: 1.7 !important;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hhg-product-layout {
    gap: 48px;
  }

  .hhg-product-related-section .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .hhg-product-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hhg-product-gallery-col {
    position: static;
  }

  .hhg-product-hero {
    padding: 40px 0 48px;
  }

  .hhg-product-related-section .products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce div.product form.cart .button {
    width: 100% !important;
  }
}
