/**
 * FSP Single Product Page Styles
 * Dark-themed WooCommerce product page with hero-style gradient background
 *
 * @package Free_Style_Products
 */

/* ==========================================================================
   | QUICK FIX
   ========================================================================== */


  


/* ==========================================================================
   | 
   ========================================================================== */


.single_variation_wrap .woocommerce-variation-description p {
  color: var(--hw-white, #ffffff);
  margin-top: 0px;
  margin-bottom: 1rem;
}
/* Remove spinners universally */
input[type="number"] {
  appearance: textfield; /* Standard */
  -moz-appearance: textfield; /* Firefox */
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* ============================================================
   PRODUCT PAGE - HERO-STYLE GRADIENT BACKGROUND
   ============================================================ */

.single-product #primary.site-main,
.single-product .site-main {
  background: linear-gradient(
    135deg,
    var(--hw-dark, #0f0f0f) 0%,
    var(--hw-dark-secondary, #1a1a1a) 50%,
    var(--hw-dark-tertiary, #2d2d2d) 100%
  );
  min-height: 100vh;
  position: relative;
}

/* Green-tinted radial gradient overlays */
.single-product #primary.site-main::before,
.single-product .site-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(44, 198, 77, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(44, 198, 77, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* SVG grid overlay pattern */
.single-product #primary.site-main::after,
.single-product .site-main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23grid)" width="100" height="100"/></svg>');
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.single-product #page {
  background: linear-gradient(
    135deg,
    var(--hw-dark, #0f0f0f) 0%,
    var(--hw-dark-secondary, #1a1a1a) 50%,
    var(--hw-dark-tertiary, #2d2d2d) 100%
  );
}

/* Ensure all content sits above the overlays */
.single-product .entry-header,
.single-product .entry-content,
.single-product .container,
.single-product .single_product_page {
  position: relative;
  z-index: 1;
}

.single-product .entry-content {
  padding: 0;
}

/* ============================================================
   HIDE SIDEBAR
   ============================================================ */

.single-product #secondary.widget-area,
.single-product aside.widget-area,
.single-product .sidebar {
  display: none !important;
}

.single-product #primary {
  width: 100%;
  float: none;
  margin: 0 auto;
}

/* ============================================================
   PAGE TITLE / HEADER
   ============================================================ */

.single-product .entry-header,
.single-product .page-header {
  background-color: transparent;
  text-align: center;
  padding: 30px 20px 10px;
}

/* ============================================================
   PRODUCT PAGE LAYOUT WRAPPER
   ============================================================ */

.single-product .single_product_page {
  padding: 60px 0 40px;
}

/* Hide breadcrumb on single product */
.single-product .woocommerce-breadcrumb {
  display: none !important;
}

/* ============================================================
   Unified WooCommerce Notice Styling
   Priority: DTF custom notice styling wins on conflicts
   ============================================================ */

/* Base wrapper */
.woocommerce-notices-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: 100%;
  max-width: 680px;
  padding: 0 16px;
  box-sizing: border-box;
  pointer-events: none; /* allow clicks through empty wrapper */
}

/* Base styles for all notice types */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: var(--hw-radius, 8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 14px 16px;
  margin: 0 0 10px 0;
  animation: dtf-notice-slide-in 0.3s ease forwards;
  line-height: 1.4;
}

/* Type accents */
.woocommerce-notices-wrapper .woocommerce-message {
  border-left: 5px solid var(--hw-primary, #2ecc71);
}

.woocommerce-notices-wrapper .woocommerce-info {
  border-left: 5px solid #3d7bfd;
}

.woocommerce-notices-wrapper .woocommerce-error {
  border-left: 5px solid var(--hw-error, #dc3545);
}

/* Optional single product targeting, if needed for extra specificity */
.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-info,
.single-product .woocommerce-notices-wrapper .woocommerce-error {
  background: #ffffff;
  color: #1a1a1a;
}

/* Links inside notices */
.woocommerce-notices-wrapper a {
  color: var(--hw-primary, #2cc64d);
  text-decoration: none;
}

.woocommerce-notices-wrapper a:hover {
  text-decoration: underline;
}

/* Slide animation */
@keyframes dtf-notice-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon wrapper */
.notification-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.notification-icon {
  display: block;
  filter: invert(1);
}

/* Message text */
.notification-subject {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: inherit;
}

/* WooCommerce forward button inside notice */
.notification-subject a.button.wc-forward {
  display: inline-block;
  margin-left: 10px;
  padding: 5px 14px;
  background-color: var(--hw-primary, #2ecc71);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.notification-subject a.button.wc-forward:hover {
  background-color: #27ae60;
  text-decoration: none;
}

/* Close button */
.notification-close-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.notification-close-wrapper:hover {
  opacity: 1;
}

.notification-close-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* Optional: make default WooCommerce lists cleaner if errors render as UL */
.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-message li,
.woocommerce-notices-wrapper .woocommerce-info li {
  margin: 0;
}

/* Optional mobile tuning */
@media (max-width: 767px) {
  .woocommerce-notices-wrapper {
    top: 12px;
    padding: 0 12px;
  }

  .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce-notices-wrapper .woocommerce-info,
  .woocommerce-notices-wrapper .woocommerce-error {
    padding: 12px 14px;
    gap: 10px;
  }

  .notification-subject {
    font-size: 13px;
  }

  .notification-subject a.button.wc-forward {
    margin-left: 8px;
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* ============================================================
   PRODUCT PAGE PRIMARY LAYOUT (Bootstrap grid)
   ============================================================ */

.single-product div.product {
  display: block;
}

/* DTF product: flex row layout (gallery + details side by side) */
.single-product div.product.product_cat-dtf {
  display: flex;
  flex-flow: row wrap;
  gap: 24px;
}

.single-product div.product.product_cat-dtf > .woocommerce-product-gallery {
  flex: 0 0 auto;
  width: 40%;
  max-width: 540px;
}

.single-product div.product.product_cat-dtf > .product-details-wrapper {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
}

.single-product div.product.product_cat-dtf > .product-additional-postdetails {
  flex: 0 0 100%;
}

@media screen and (max-width: 768px) {
  .single-product div.product.product_cat-dtf > .woocommerce-product-gallery,
  .single-product div.product.product_cat-dtf > .product-details-wrapper {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   PRODUCT GALLERY LAYOUT
   ============================================================ */

/* Gallery container fills its column */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce div.product div.images {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

/* Prevent images from scaling beyond their real size */
.single-product .woocommerce-product-gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   PRODUCT DETAILS WRAPPER - CARD PANEL
   ============================================================ */

.single-product .product-details-wrapper {
  background-color: rgba(30, 30, 50, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--hw-radius-lg, 16px);
  padding: 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
  height: 100%;
}

/* ============================================================
   PRODUCT TITLE
   ============================================================ */

.single-product .product_title {
  color: var(--hw-white, #ffffff);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

/* ============================================================
   PRODUCT PRICE
   ============================================================ */

.single-product .summary .price {
  color: var(--hw-primary, #2cc64d);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.single-product .summary .price del {
  color: #8080a0;
  font-size: 1rem;
  opacity: 0.7;
}

.single-product .summary .price ins {
  text-decoration: none;
  color: var(--hw-primary, #2cc64d);
}

/* ============================================================
   PRODUCT EXCERPT / SHORT DESCRIPTION
   ============================================================ */

.single-product .summary .woocommerce-product-details__short-description {
  color: #d0d0e0;
  line-height: 1.6;
}

.single-product .summary .woocommerce-product-details__short-description p {
  color: #d0d0e0;
}

/* ============================================================
   ENTRY-SUMMARY MARGIN RESET
   ============================================================ */

div.product-details-wrapper > div.entry-summary {
  margin: 0;
}

/* ============================================================
   COMBINED PRICE + CATEGORY BADGES ROW
   ============================================================ */

.fsp-price-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.fsp-price-meta-row__price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fsp-price-meta-row__price .price {
  margin-bottom: 0;
}

.fsp-price-prefix {
  color: #b0b0cc;
  font-size: 0.85rem;
  font-weight: 500;
}

.fsp-price-meta-row__badges {
  flex: 1 1 0%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.fsp-price-meta-row__badges::-webkit-scrollbar {
  height: 3px;
}

.fsp-price-meta-row__badges::-webkit-scrollbar-track {
  background: transparent;
}

.fsp-price-meta-row__badges::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.fsp-badges-scroll {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

/* ============================================================
   BADGE STYLES (Categories / Tags)
   ============================================================ */

.fsp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.fsp-badge--cat {
  background: rgba(255, 255, 255, 0.06);
  color: #d0d0e0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Prevent :visited color change on badges */
a.fsp-badge--cat,
a.fsp-badge--cat:visited {
  color: #d0d0e0;
}

a.fsp-badge--cat:hover {
  background: rgba(44, 198, 77, 0.12);
  color: var(--hw-primary, #2cc64d);
  border-color: rgba(44, 198, 77, 0.25);
  text-decoration: none;
}

/* Hide the old product_meta output (now rendered via fsp_price_and_meta_row) */
.single-product .summary .product_meta.fsp-meta-badges {
  display: none;
}

/* ============================================================
   PRODUCT RATING / REVIEWS
   ============================================================ */

.single-product .summary .woocommerce-product-rating {
  margin-bottom: 12px;
}

.single-product .summary .woocommerce-product-rating .star-rating {
  color: #ffb400;
}

.single-product .summary .woocommerce-product-rating .woocommerce-review-link {
  color: #b0b0cc;
  font-size: 0.85rem;
}

/* ============================================================
   VARIATION / FORM FIELDS
   ============================================================ */

.single-product .summary .variations {
  margin-bottom: 16px;
}

.single-product .summary .variations td,
.single-product .summary .variations th {
  background-color: transparent;
  border: none;
  padding: 6px 0;
}

/* Hide variation labels (Color, Size) - intuitive without them */
.single-product .summary .variations th.label {
  display: none;
}

.single-product .summary .variations label {
  display: none;
}

/* Selected variation name (e.g. ": Safety Green") */
.single-product .summary .variations .woo-selected-variation-item-name {
  color: #d0d0e0;
  font-weight: 400;
  font-size: 0.85rem;
}

/* ============================================================
   VARIATION SWATCHES - COLOR ITEMS
   ============================================================ */

/* Color swatch base */
.single-product .summary .color-variable-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.single-product .summary .color-variable-item .variable-item-contents {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.single-product .summary .color-variable-item .variable-item-span-color {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.single-product .summary .color-variable-item:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.single-product .summary .color-variable-item.selected {
  border-color: var(--hw-primary, #2cc64d);
  box-shadow: 0 0 0 2px rgba(44, 198, 77, 0.3);
}

/* ============================================================
   VARIATION SWATCHES - SIZE / BUTTON ITEMS
   ============================================================ */

.single-product .summary .button-variable-item {
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  border: 2px solid #3d3d55;
  background-color: rgba(26, 26, 48, 0.6);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.single-product .summary .button-variable-item .variable-item-contents {
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-product .summary .button-variable-item .variable-item-span-button {
  color: #d0d0e0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
}

.single-product .summary .button-variable-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(40, 40, 70, 0.8);
  transform: translateY(-1px);
}

.single-product .summary .button-variable-item.selected {
  border-color: var(--hw-primary, #2cc64d);
  background-color: rgba(44, 198, 77, 0.12);
  box-shadow: 0 0 0 1px rgba(44, 198, 77, 0.2);
}

.single-product
  .summary
  .button-variable-item.selected
  .variable-item-span-button {
  color: var(--hw-primary, #2cc64d);
  font-weight: 700;
}

/* Disabled / out-of-stock swatch */
.single-product .summary .variable-item.disabled,
.single-product
  .summary
  .variable-item[data-wvstooltip-out-of-stock]:not(
    [data-wvstooltip-out-of-stock=""]
  ) {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   FORM FIELDS (select, input, textarea)
   ============================================================ */

.single-product .summary .variations select,
.single-product .summary select,
.single-product .summary input[type="text"],
.single-product .summary input[type="number"],
.single-product .summary textarea {
  background-color: rgba(26, 26, 48, 0.6);
  color: var(--hw-white, #ffffff);
  border: 2px solid #3d3d55;
  border-radius: var(--hw-radius, 8px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.single-product .summary select:focus,
.single-product .summary input[type="text"]:focus,
.single-product .summary input[type="number"]:focus,
.single-product .summary textarea:focus {
  outline: none;
  border-color: var(--hw-primary, #2cc64d);
  box-shadow: 0 0 0 3px rgba(44, 198, 77, 0.15);
}

/* Quantity Input */
.single-product .summary .quantity input.qty {
  background-color: rgba(26, 26, 48, 0.6);
  color: var(--hw-white, #ffffff);
  border: 2px solid #3d3d55;
  border-radius: var(--hw-radius, 8px);
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}

.single-product .summary .quantity input.qty::-webkit-inner-spin-button,
.single-product .summary .quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single-product .summary .quantity input.qty:focus {
  outline: none;
  border-color: var(--hw-primary, #2cc64d);
  box-shadow: 0 0 0 3px rgba(44, 198, 77, 0.15);
}

/* ============================================================
   ADD TO CART BUTTON
   ============================================================ */

.single-product .summary button.single_add_to_cart_button,
.single-product .summary .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--hw-primary, #2cc64d),
    var(--hw-primary-dark, #22a03d)
  );
  color: var(--hw-white, #ffffff);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: var(--hw-radius, 8px);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--hw-transition, all 0.3s ease);
  box-shadow: 0 4px 15px rgba(44, 198, 77, 0.3);
  margin-top: 0;
}

.single-product .summary button.single_add_to_cart_button:hover,
.single-product .summary .single_add_to_cart_button:hover {
  background: linear-gradient(
    135deg,
    var(--hw-primary-light, #4ed96a),
    var(--hw-primary, #2cc64d)
  );
  box-shadow: 0 6px 25px rgba(44, 198, 77, 0.45);
  transform: translateY(-2px);
}

.single-product .summary button.single_add_to_cart_button:active,
.single-product .summary .single_add_to_cart_button:active {
  transform: translateY(0);
}

/* Disabled state */
.single-product .summary button.single_add_to_cart_button:disabled,
.single-product .summary .single_add_to_cart_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   PRODUCT GALLERY
   ============================================================ */

.single-product .woocommerce-product-gallery img {
  border-radius: var(--hw-radius, 8px);
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.single-product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img.flex-active {
  border-color: var(--hw-primary, #2cc64d);
}

/* ============================================================
   PRODUCT TABS (Description, Reviews, etc.)
   ============================================================ */

.single-product .woocommerce-tabs {
  margin-top: 48px;
}

.single-product .woocommerce-tabs ul.tabs {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(51, 51, 80, 0.6);
}

.single-product .woocommerce-tabs ul.tabs li {
  list-style: none !important;
  margin: 0 !important;
}

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

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 20px;
  color: #b0b0cc;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--hw-white, #ffffff);
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hw-primary, #2cc64d);
  border-bottom-color: var(--hw-primary, #2cc64d);
}

.single-product .woocommerce-tabs .panel {
  padding: 20px 0;
  color: #d0d0e0;
}

.single-product .woocommerce-tabs .panel h2 {
  color: var(--hw-white, #ffffff);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.single-product .woocommerce-tabs .panel p {
  color: #d0d0e0;
  line-height: 1.6;
}

/* ============================================================
   PRODUCT ADDITIONAL POST DETAILS
   ============================================================ */

.single-product .product-additional-postdetails {
  margin-top: 30px;
  color: #d0d0e0;
}

/* ============================================================
   LOGIN-GATED PRICING
   ============================================================ */

.fsp-login-to-price {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.fsp-login-to-price a {
  color: var(--hw-primary, #2cc64d);
  text-decoration: none;
  border-bottom: 1px dashed var(--hw-primary, #2cc64d);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.fsp-login-to-price a:hover {
  color: var(--hw-primary-light, #4ed96a);
  border-color: var(--hw-primary-light, #4ed96a);
}

/* ============================================================
   LOGIN-GATED ADD-TO-CART
   Overlay on single_variation_wrap that greys out qty + button
   and shows "LOGIN TO ADD TO CART" text on top.
   ============================================================ */

.single_variation_wrap.fsp-cart-blocked-wrap {
  position: relative;
}

.single_variation_wrap.fsp-cart-blocked-wrap > .woocommerce-variation,
.single_variation_wrap.fsp-cart-blocked-wrap
  > .woocommerce-variation-add-to-cart {
  opacity: 0.12;
  pointer-events: none;
  filter: grayscale(1) blur(2px);
}

.fsp-cart-blocked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(15, 15, 25, 0.55);
  border-radius: var(--hw-radius, 8px);
}

.fsp-cart-blocked-overlay a {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: color 0.2s ease;
}

.fsp-cart-blocked-overlay a:hover {
  color: var(--hw-primary, #2cc64d) !important;
  text-decoration: underline;
}

/* ============================================================
   RELATED / UPSELL PRODUCTS
   ============================================================ */

.single-product .related.products,
.single-product .upsells.products {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(51, 51, 80, 0.4);
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  color: var(--hw-white, #ffffff);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hw-primary, #2cc64d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product {
  background-color: rgba(30, 30, 50, 0.6);
  border-radius: var(--hw-radius, 8px);
  padding: 16px;
  border: 1px solid rgba(51, 51, 80, 0.6);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  text-align: center;
}

.single-product .related.products ul.products li.product:hover,
.single-product .upsells.products ul.products li.product:hover {
  border-color: rgba(44, 198, 77, 0.3);
  transform: translateY(-2px);
}

.single-product .related.products ul.products li.product a,
.single-product .upsells.products ul.products li.product a {
  color: var(--hw-white, #ffffff);
  text-decoration: none;
}

.single-product .related.products ul.products li.product img,
.single-product .upsells.products ul.products li.product img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 10px;
}

.single-product
  .related.products
  ul.products
  li.product
  .woocommerce-loop-product__title,
.single-product
  .upsells.products
  ul.products
  li.product
  .woocommerce-loop-product__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 8px 0 6px;
  color: var(--hw-white, #ffffff);
}

.single-product .related.products ul.products li.product .price,
.single-product .upsells.products ul.products li.product .price {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.single-product .related.products .woocommerce-Price-amount,
.single-product .upsells.products .woocommerce-Price-amount {
  color: var(--hw-primary, #2cc64d);
}

/* Hide "Select Options" button on related/upsell product cards */
.single-product .related.products ul.products li.product a.button,
.single-product .upsells.products ul.products li.product a.button,
.single-product .related.products ul.products li.product .button,
.single-product .upsells.products ul.products li.product .button {
  display: none !important;
}

/* Login-gated pricing on related product cards */
.single-product .related.products ul.products li.product .fsp-login-to-price,
.single-product .upsells.products ul.products li.product .fsp-login-to-price {
  font-size: 0.8rem !important;
}

.single-product .related.products ul.products li.product .fsp-login-to-price a,
.single-product .upsells.products ul.products li.product .fsp-login-to-price a {
  color: var(--hw-primary, #2cc64d);
  text-decoration: none;
  border-bottom: 1px dashed var(--hw-primary, #2cc64d);
}

.single-product
  .related.products
  ul.products
  li.product
  .fsp-login-to-price
  a:hover,
.single-product
  .upsells.products
  ul.products
  li.product
  .fsp-login-to-price
  a:hover {
  color: var(--hw-primary-light, #4ed96a);
}

/* ============================================================
   LOADING / BLOCKUI OVERLAY
   ============================================================ */

.single-product .blockUI.blockOverlay {
  background-color: rgba(15, 15, 15, 0.7) !important;
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media screen and (max-width: 900px) {
  .single-product .product-details-wrapper {
    padding: 20px;
  }

  .single-product .woocommerce-tabs ul.tabs {
    flex-wrap: wrap;
  }

  .single-product .woocommerce-tabs ul.tabs li a {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media screen and (max-width: 48em) {
  .single-product .product-details-wrapper {
    padding: 16px;
    margin-top: 16px;
    height: auto;
  }

  .single-product .product_title {
    font-size: 1.3rem;
  }

  .fsp-price-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .fsp-color-deco-row {
    flex-direction: column;
    gap: 12px;
  }

  .single-product .summary .woocommerce-variation-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .single-product
    .summary
    .woocommerce-variation-add-to-cart
    button.single_add_to_cart_button {
    width: 100%;
    font-size: 1rem;
    padding: 14px 20px;
    height: auto;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .single-product .related.products ul.products li.product img,
  .single-product .upsells.products ul.products li.product img {
    height: 120px;
  }
}

/* ============================================================
   SIZE SECTION WITH LABEL + TOOLTIP
   ============================================================ */

.fsp-size-section {
  margin-bottom: 24px;
  padding-top: 12px;
}

.fsp-size-section__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.fsp-size-section__label {
  color: #d0d0e0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fsp-size-upcharge-notice {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: help;
}

.fsp-info-icon {
  width: 16px;
  height: 16px;
  color: #8080a0;
  transition: color 0.2s ease;
}

.fsp-size-upcharge-notice:hover .fsp-info-icon {
  color: var(--hw-primary, #2cc64d);
}

.fsp-size-upcharge-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #d0d0e0;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fsp-size-upcharge-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a2e;
}

.fsp-size-upcharge-notice:hover .fsp-size-upcharge-tooltip {
  display: block;
}

/* ============================================================
   COLOR + DECORATION LOCATIONS ROW
   ============================================================ */

.fsp-color-deco-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
}

/* Color / Size attribute labels */
.fsp-attr-label {
  display: block;
  color: #d0d0e0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.fsp-color-deco-row__color {
  flex: 0 0 auto;
}

.fsp-color-deco-row__color .variations {
  margin-bottom: 0 !important;
}

.fsp-color-deco-row__deco {
  flex: 1 1 0%;
  min-width: 0;
}

/* Decoration Locations */
.fsp-decoration-locations {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fsp-decoration-locations__label-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
}

.fsp-decoration-locations__title {
  color: #d0d0e0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
}

.fsp-decoration-locations__note {
  color: #8080a0;
  font-size: 0.7rem;
  font-style: italic;
  text-align: right;
  margin-top: 2px;
}

.fsp-decoration-locations__select {
  width: 44px;
  height: 44px;
  padding: 0;
  text-align: center;
  background-color: rgba(26, 26, 48, 0.6);
  color: var(--hw-white, #ffffff);
  border: 2px solid #3d3d55;
  border-radius: var(--hw-radius, 8px);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fsp-decoration-locations__select:focus {
  outline: none;
  border-color: var(--hw-primary, #2cc64d);
  box-shadow: 0 0 0 3px rgba(44, 198, 77, 0.15);
}

/* ============================================================
   QTY + ADD TO CART ROW LAYOUT
   ============================================================ */

.single-product .summary .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}

.single-product .summary .woocommerce-variation-add-to-cart .quantity {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.single-product .summary .woocommerce-variation-add-to-cart .quantity::before {
  content: "Quantity";
  color: #b0b0cc;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

#product-150 .product-quantity-input-container .quantity input.qty {
  width: 64px !important;
}

div.summary > p.price {
  display: none;
}

.single-product
  .summary
  .woocommerce-variation-add-to-cart
  .quantity
  input.qty {
  width: 64px;
  height: 48px;
}

.single-product
  .summary
  .woocommerce-variation-add-to-cart
  button.single_add_to_cart_button {
  flex: 1 1 0%;
  margin-top: 0;
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   COMPACT VARIATION SWATCHES
   ============================================================ */

.single-product .summary .variable-items-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   DTF PRODUCT OVERRIDES
   Hide badges, deco locations, size section, qty label.
   Reset generic product rules that break the DTF custom layout.
   ============================================================ */

.single-product div.product.product_cat-dtf .fsp-price-meta-row__badges,
.single-product div.product.product_cat-dtf .fsp-meta-badges {
  display: none !important;
}

/* DTF: reset the generic qty+cart row layout — DTF has its own structure */
.fsp-dtf-variation-wrap .woocommerce-variation-add-to-cart {
  display: block;
}

/* DTF: remove the pseudo "Quantity" label */
.fsp-dtf-variation-wrap .woocommerce-variation-add-to-cart .quantity::before {
  display: none;
}

/* DTF: let quantity inputs flow naturally (undo the 64px rigid width) */
.fsp-dtf-variation-wrap .quantity {
  display: flex;
  flex-direction: row;
  flex-shrink: unset;
}

.fsp-dtf-variation-wrap .quantity input.qty {
  width: auto !important;
  height: auto !important;
}

/* DTF: make add-to-cart button full-width and much taller */
.fsp-dtf-variation-wrap button.single_add_to_cart_button {
  width: 100% !important;
  height: auto !important;
  padding: 20px 36px !important;
  font-size: 1.1rem !important;
  margin-top: 12px;
}

#product-150
  .fsp-dtf-variation-wrap
  .woocommerce-variation-add-to-cart
  button.single_add_to_cart_button {
  padding: 12px 28px !important;
}
.fsp-dtf-variation-wrap
  .woocommerce-variation-add-to-cart
  button.single_add_to_cart_button {
  flex: 1 1 0%;
  height: 48px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/**===========================||==========||===============||=====||==========||=========**/

/* ============================================================
   PASSWORD EYE ICON
   ============================================================ */

.password-input {
  position: relative;
  display: block;
}

.password-input .woocommerce-Input,
.password-input .input-text {
  padding-right: 46px !important;
}

.password-input .show-password-input {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 3;
  opacity: 0.8;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  font-size: 0;
}

.password-input .show-password-input:hover {
  opacity: 1;
}

.password-input .show-password-input:focus {
  outline: none;
  box-shadow: none !important;
}

.password-input .show-password-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ced6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>") !important;
}

.password-input .show-password-input.display-password {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232CC64D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.94 10.94 0 0 1 12 19C5 19 1 12 1 12a21.77 21.77 0 0 1 5.06-5.94'/><path d='M9.9 4.24A10.94 10.94 0 0 1 12 5c7 0 11 7 11 7a21.8 21.8 0 0 1-4.31 5.36'/><path d='M1 1l22 22'/><path d='M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58'/></svg>") !important;
}
