/* ===== Single Product Page (Custom) ===== */
main.site--product {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.woocommerce-notices-wrapper {
  margin: 0 0 12px;
}

.productPage {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
}

.productPage__header {
  margin: 0 0 12px;
}

.productPage__crumbInner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 14px;
  opacity: 0.92;
}

.productPage__crumbInner a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
}

.productPage__crumbInner a:hover {
  opacity: 1;
}

.productPage__crumbSep {
  opacity: 0.65;
}

.productPage__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
  align-items: start;
}

.productPage__gallery,
.productPage__summary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
}

.productPage__gallery {
  position: relative;
}

/* Sale badge */
.productPage__gallery .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);
}

/* Gallery sizing */
.productPage__gallery .woocommerce-product-gallery {
  margin: 0;
}

.productPage__gallery .woocommerce-product-gallery__wrapper {
  border-radius: 14px;
  overflow: hidden;
}

.productPage__gallery .woocommerce-product-gallery__image a,
.productPage__gallery .woocommerce-product-gallery__image img {
  display: block;
}

.productPage__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
}

.productPage__summary .product_title {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
}

.productPage__summary .price {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 22px;
}

.productPage__summary .price del {
  opacity: 0.75;
  font-weight: 800;
  margin-right: 6px;
}

.productPage__summary .price ins {
  text-decoration: none;
}

.productPage__summary .woocommerce-product-details__short-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 10px;
}

/* Replace default Woo stock bubble with our own line */
.productPage__summary .stock {
  display: none !important;
}

.prodStockDelivery {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 8px 0 0;
}

.prodStockDelivery__stock {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.prodStockDelivery__delivery {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  transition: color 280ms ease, font-weight 280ms ease;
}

.prodStockDelivery__delivery.is-flashing {
  color: #fff;
  font-weight: 900;
}

/* Add to cart */
.woocommerce div.product form.cart {
  margin: 0;
}

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

.prodBuyBar {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: stretch;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
  overflow: hidden;
}

.prodBuyBar__side {
  appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prodBuyBar__side:hover {
  background: rgba(0, 0, 0, 0.2);
}

.prodBuyBar__main {
  border: 0;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  height: 42px;
  width: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 900;
  padding: 0 10px;
}

.prodBuyBar__label {
  color: #fff;
  display: inline-block;
  transform-origin: center;
  transition: transform 420ms ease;
}

.prodBuyBar__main:hover .prodBuyBar__label {
  transform: scale(1.07);
}

.prodQty__inputWrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* keep qty input in DOM for Woo submit */
.prodQty__inputWrap input.qty {
  width: 1px;
  height: 1px;
}

/* Hide browser spinners */
.prodQty__inputWrap input.qty::-webkit-outer-spin-button,
.prodQty__inputWrap input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.prodQty__inputWrap input.qty {
  -moz-appearance: textfield;
}

.woocommerce div.product form.cart .single_add_to_cart_button.button,
.woocommerce div.product form.cart .single_add_to_cart_button.alt {
  width: auto;
  flex: 0 0 auto;
  font-weight: 900;
  border: 0;
}

/* Force override of WooCommerce default purple (more specific + !important) */
.woocommerce .productPage__summary button.single_add_to_cart_button.button.alt {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button.button:hover {
  filter: none;
  transform: none;
}

/* Meta */
.productPage__summary .product_meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.productPage__summary .product_meta a {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.productPage__summary .product_meta a:hover {
  opacity: 1;
}

/* Tabs + related section */
.productPage__below {
  margin-top: 14px;
}

.woocommerce div.product .woocommerce-tabs {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  opacity: 0.92;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  background: rgba(59, 130, 246, 0.20);
  border-color: rgba(59, 130, 246, 0.45);
  opacity: 1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  background: rgba(255, 255, 255, 0.10);
  opacity: 1;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  margin: 0;
  padding: 8px 6px 4px;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.woocommerce table.shop_attributes {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.woocommerce table.shop_attributes th {
  color: #fff;
  font-weight: 900;
  text-align: left;
  width: 38%;
}

.woocommerce table.shop_attributes td {
  color: var(--muted);
}

.woocommerce table.shop_attributes a {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.woocommerce table.shop_attributes a:hover {
  opacity: 1;
}

.woocommerce .related.products {
  margin-top: 14px;
}

.woocommerce .related.products>h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.productPage__section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
  margin: 0 0 14px;
}

.productPage__belowGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 14px;
}

.productPage__belowGrid .productPage__section {
  margin: 0;
}

.productPage__sectionTitle {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.productPage__section .entry-content {
  color: var(--muted);
}

@media (max-width: 980px) {
  .productPage__belowGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .productPage__main {
    grid-template-columns: 1fr;
  }
}
