/* Product-template spacing fix for the Gutenify block theme.
 * Keep this deliberately narrow: only the single-product content wrappers
 * surrounding the After Hours selector are reset. Header/footer styles and
 * site-wide containers are left untouched.
 */
body.ahp-pb-enhanced-product-page .wp-site-blocks {
  gap: 0 !important;
}

body.ahp-pb-enhanced-product-page .wp-site-blocks > .wp-block-group,
body.ahp-pb-enhanced-product-page .wp-site-blocks > footer.wp-block-template-part {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

body.ahp-pb-enhanced-product-page .wp-site-blocks > .wp-block-group > .wp-block-group.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ahp-pb-enhanced-product-page #primary.content-area,
body.ahp-pb-enhanced-product-page #main.site-main,
body.ahp-pb-enhanced-product-page #main.site-main > .woocommerce-notices-wrapper,
body.ahp-pb-enhanced-product-page #main.site-main > div.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ahp-pb-enhanced-product-page #main.site-main > .woocommerce-notices-wrapper:empty {
  display: none !important;
}

body.ahp-pb-enhanced-product-page .ahp-pb-product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.ahp-pb-enhanced-product-page div.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.ahp-pb-enhanced-product-page div.product > .summary,
.ahp-pb-enhanced-product-page div.product > .woocommerce-tabs,
.ahp-pb-enhanced-product-page div.product > .related,
.ahp-pb-enhanced-product-page div.product > .upsells {
  display: none !important;
}

.ahp-pb-product,
.ahp-pb-product * {
  box-sizing: border-box;
}

.ahp-pb-product {
  --ahp-bg: #020203;
  --ahp-panel: rgba(7, 7, 10, 0.92);
  --ahp-line: rgba(255, 255, 255, 0.13);
  --ahp-purple: #9b4dff;
  --ahp-purple-2: #6f22db;
  --ahp-purple-3: #c58aff;
  --ahp-blue: #6fb4ff;
  --ahp-text: #ffffff;
  --ahp-muted: rgba(255, 255, 255, 0.72);
  --ahp-max: 1380px;

  position: relative;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
  color: var(--ahp-text);
  font-family: Inter, Poppins, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(820px 520px at 82% 6%, rgba(155, 77, 255, 0.25), transparent 70%),
    radial-gradient(620px 420px at 8% 16%, rgba(111, 34, 219, 0.16), transparent 74%),
    linear-gradient(180deg, #020203 0%, #050506 48%, #010102 100%);
  overflow: hidden;
  isolation: isolate;
}

.ahp-pb-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(155, 77, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(155, 77, 255, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  z-index: -1;
}

.ahp-pb-container {
  width: min(100%, var(--ahp-max));
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.ahp-pb-product-card {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(520px, 1.14fr);
  gap: 22px;
  align-items: start;
}

.ahp-pb-media-panel,
.ahp-pb-summary-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(460px 290px at 100% 0%, rgba(155, 77, 255, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(10, 9, 13, 0.94), rgba(5, 5, 7, 0.96));
  border: 1px solid var(--ahp-line);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ahp-pb-media-panel {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 42px;
  position: sticky;
  top: 118px;
}

.ahp-pb-media-glow {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.16);
  filter: blur(64px);
  pointer-events: none;
}

.ahp-pb-product-image-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  place-items: center;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ahp-pb-product-image-stage.is-changing {
  opacity: 0.35;
  transform: scale(0.985);
}

.ahp-pb-product-image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 520px);
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.64)) drop-shadow(0 0 32px rgba(155, 77, 255, 0.22));
}

.ahp-pb-product-placeholder {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  min-height: 430px;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ahp-pb-product-placeholder span {
  color: var(--ahp-purple-3);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ahp-pb-product-placeholder strong {
  color: #fff;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.ahp-pb-media-badges {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ahp-pb-media-badges span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ahp-pb-summary-panel {
  padding: clamp(22px, 3vw, 38px);
}

.ahp-pb-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 13px;
  margin: 0 0 16px;
  border-radius: 999px;
  color: var(--ahp-purple-3);
  background: rgba(155, 77, 255, 0.12);
  border: 1px solid rgba(181, 108, 255, 0.26);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(155, 77, 255, 0.18);
}

.ahp-pb-summary-panel h1 {
  margin: 0 0 22px !important;
  color: #fff !important;
  font-size: clamp(42px, 5.1vw, 78px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.07em !important;
  font-weight: 950 !important;
}

.ahp-pb-facility-badge,
.ahp-pb-coa-box,
.ahp-pb-under-title {
  margin-bottom: 14px;
}

.ahp-pb-facility-badge {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 900;
}

.ahp-pb-coa-box {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.ahp-pb-coa-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.ahp-pb-coa-toggle strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.ahp-pb-coa-toggle::after {
  content: "+";
  margin-left: auto;
  color: var(--ahp-purple-3);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.ahp-pb-coa-toggle[aria-expanded="true"]::after {
  content: "–";
}

.ahp-pb-coa-panel {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.ahp-pb-coa-panel[hidden] {
  display: none !important;
}

.ahp-pb-coa-panel p {
  margin: 0;
  color: var(--ahp-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ahp-pb-coa-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 11px;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(155, 77, 255, 0.1);
  border: 1px solid rgba(155, 77, 255, 0.22);
  font-size: 13px;
  font-weight: 850;
}

.ahp-pb-coa-panel a::after {
  content: "↗";
  color: var(--ahp-purple-3);
}

.ahp-pb-under-title {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.56;
  font-weight: 650;
}

.ahp-pb-form,
.ahp-pb-single-selector,
.ahp-pb-option-stage {
  display: grid;
  gap: 18px;
}

.ahp-pb-choose-label {
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ahp-pb-mg-picker,
.ahp-pb-qty-pricing-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(155, 77, 255, 0.11), transparent 74%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.105);
}

.ahp-pb-mg-picker > span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ahp-pb-mg-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ahp-pb-mg-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 82px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 13px 20px !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  transition: 0.16s ease;
}

.ahp-pb-mg-button:hover,
.ahp-pb-mg-button.is-active {
  color: #fff !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(155, 77, 255, 0.56), rgba(64, 22, 122, 0.78)) !important;
  border-color: rgba(111, 180, 255, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(111, 180, 255, 0.15), 0 16px 34px rgba(0, 0, 0, 0.24) !important;
  transform: translateY(-1px) !important;
}

.ahp-pb-mg-button:disabled {
  opacity: 0.42;
  cursor: not-allowed !important;
  transform: none !important;
}

.ahp-pb-qty-pricing-box {
  gap: 16px;
}

.ahp-pb-qty-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.ahp-pb-qty-control span,
.ahp-pb-tier-head span {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ahp-pb-qty-control strong,
.ahp-pb-tier-head strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
}

.ahp-pb-qty-stepper {
  display: inline-grid;
  grid-template-columns: 48px 76px 48px;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(111, 180, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ahp-pb-qty-stepper button,
.ahp-pb-qty-stepper input {
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  -moz-appearance: textfield;
}

.ahp-pb-qty-stepper input::-webkit-outer-spin-button,
.ahp-pb-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ahp-pb-qty-stepper button {
  cursor: pointer;
  color: #6fb4ff !important;
  background: rgba(111, 180, 255, 0.08) !important;
}

.ahp-pb-live-price-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ahp-pb-live-price-row {
  min-height: 72px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.ahp-pb-live-price-row-wide {
  grid-column: 1 / -1;
}

.ahp-pb-live-price-row span {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ahp-pb-live-price-row strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.ahp-pb-live-price-row.is-main {
  background: linear-gradient(135deg, rgba(155, 77, 255, 0.24), rgba(111, 180, 255, 0.08));
  border-color: rgba(111, 180, 255, 0.25);
}

.ahp-pb-live-price-row.is-main strong {
  color: #6fb4ff;
  font-size: 24px;
  text-shadow: 0 0 18px rgba(111, 180, 255, 0.18);
}

.ahp-pb-tier-table-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.095);
}

.ahp-pb-tier-head {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ahp-pb-tier-head span {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ahp-pb-tier-table {
  width: 100%;
  margin: 0 !important;
  border-collapse: collapse;
  color: #fff;
  background: transparent !important;
}

.ahp-pb-tier-table th,
.ahp-pb-tier-table td {
  padding: 13px 16px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  text-align: left;
  color: #fff;
  background: transparent;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.ahp-pb-tier-table th {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.ahp-pb-tier-table tr:last-child td {
  border-bottom: 0 !important;
}

.ahp-pb-tier-table tbody tr.is-active td {
  color: #fff;
  background: rgba(111, 180, 255, 0.1);
}

.ahp-pb-tier-table td:last-child {
  color: #6fb4ff;
  font-weight: 950;
}

.ahp-pb-add-button {
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 15px 22px !important;
  border: 1px solid rgba(197, 138, 255, 0.55) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #9b4dff, #6f22db) !important;
  box-shadow: 0 16px 38px rgba(111, 34, 219, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-align: center;
}

.ahp-pb-add-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ahp-pb-add-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1100px) {
  .ahp-pb-product-card {
    grid-template-columns: 1fr;
  }

  .ahp-pb-media-panel {
    position: relative;
    top: auto;
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .ahp-pb-container {
    padding: 18px 14px 42px;
  }

  .ahp-pb-media-panel,
  .ahp-pb-summary-panel {
    border-radius: 24px;
  }

  .ahp-pb-media-panel {
    min-height: 430px;
    padding: 28px 20px 70px;
  }

  .ahp-pb-product-image {
    max-height: 360px;
  }

  .ahp-pb-media-badges {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .ahp-pb-media-badges span {
    min-height: 34px;
    padding: 7px 5px;
    font-size: 9px;
  }

  .ahp-pb-summary-panel h1 {
    font-size: clamp(40px, 16vw, 62px) !important;
  }

  .ahp-pb-eyebrow {
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
  }

  .ahp-pb-mg-button {
    min-width: max-content !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: 14px !important;
  }

  .ahp-pb-qty-control,
  .ahp-pb-live-price-panel {
    grid-template-columns: 1fr;
  }

  .ahp-pb-live-price-row-wide {
    grid-column: auto;
  }

  .ahp-pb-qty-stepper {
    width: 100%;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .ahp-pb-tier-table th,
  .ahp-pb-tier-table td {
    padding: 12px 10px;
    font-size: 12px;
  }
}


.ahp-pb-add-button.is-loading {
  position: relative;
  opacity: 0.78;
  cursor: wait;
}

.ahp-pb-add-button.is-loading::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ahp-pb-spin 0.7s linear infinite;
}

.ahp-pb-add-button.is-added {
  background: linear-gradient(135deg, #8f4fff, #4f22aa) !important;
  box-shadow: 0 16px 38px rgba(111, 34, 219, 0.38), 0 0 26px rgba(155, 77, 255, 0.24) !important;
}

/* WooCommerce may inject a native View cart link after the custom AJAX
   button. The selector already provides its own confirmation, so keep the form
   clean and prevent that duplicate link from taking up space. */
.ahp-pb-form > a.added_to_cart,
.ahp-pb-form > a.wc-forward.added_to_cart,
.ahp-pb-form .added_to_cart.wc-forward {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ahp-pb-ajax-message {
  margin-top: -6px;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ahp-pb-ajax-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ahp-pb-ajax-message.is-success {
  color: #f4eaff;
  background: rgba(155, 77, 255, 0.12);
  border: 1px solid rgba(197, 138, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ahp-pb-ajax-message.is-error {
  color: #ffd9df;
  background: rgba(255, 74, 111, 0.10);
  border: 1px solid rgba(255, 112, 142, 0.34);
}

@keyframes ahp-pb-spin {
  to { transform: rotate(360deg); }
}
