/* Single product page */
.section.product-section {
  margin: -510px auto 80px;
}

.maze-single-product__layout {
  max-width: var(--maze-max);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.maze-single-product__gallery-col {
  background: rgba(15, 23, 42, 0.88);
  border-radius: 16px;
  border: 1px solid var(--maze-border-soft);
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  display: flex;
}
.wp-singular .maze-single-product .woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-4 {
  width: 100%;
  margin: 0 auto;
}
.woocommerce-product-gallery__wrapper > :first-child {
  margin-bottom: 20px;
}

.maze-single-product .woocommerce-product-gallery {
  margin-bottom: 0;
}

.maze-single-product__summary {
  position: sticky;
  top: 20px;
  background: rgba(15, 23, 42, 0.88);
  border-radius: 16px;
  border: 1px solid var(--maze-border-soft);
  padding: 22px 24px 26px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.maze-single-product .product_title {
  margin-bottom: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  line-height: 1.25;
  color: #fff;
}

.maze-single-product .price {
  margin-bottom: 14px;
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #f3cf78;
}

.maze-single-product .woocommerce-product-details__short-description {
  margin-bottom: 18px;
  color: rgba(229, 231, 235, 0.92);
  line-height: 1.7;
}

.maze-single-product .variations_form.cart,
.maze-single-product form.cart {
  margin-top: 0;
  margin-bottom: 18px;
}

.maze-single-product .variations td,
.maze-single-product .variations th {
  padding: 0 0 12px;
  color: #fff;
  font-weight: 500;
}

.maze-single-product .variations td.value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.maze-single-product .variations select {
  min-width: 190px;
  min-height: 42px;
  padding: 10px 42px 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(249, 214, 149, 0.35);
  background-color: rgba(24, 31, 58, 0.82);
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #f3cf78 50%),
    linear-gradient(135deg, #f3cf78 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.maze-single-product .variations select option {
  color: #0f172a;
  background: #ffffff;
}

.maze-single-product .variations select option:checked {
  color: #ffffff;
  background: #1b2342;
}

.maze-single-product .variations select:hover {
  border-color: rgba(249, 214, 149, 0.65);
}

.maze-single-product .variations select:focus {
  outline: none;
  border-color: rgba(249, 214, 149, 0.85);
  box-shadow: 0 0 0 3px rgba(249, 214, 149, 0.14);
}

.maze-single-product .reset_variations {
  color: #f3cf78;
  font-size: 14px;
  text-underline-offset: 2px;
}

.maze-single-product .reset_variations:hover {
  color: #fff2db;
}

.maze-single-product .quantity .qty {
  min-height: 42px;
  width: 88px;
  border-radius: 10px;
  border: 1px solid rgba(249, 214, 149, 0.35);
  background: rgba(24, 31, 58, 0.82);
  color: #fff;
  padding: 0 10px;
}

.maze-single-product.product.type-product .single_add_to_cart_button {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid rgba(249, 214, 149, 0.35);
  background: linear-gradient(0deg, #b98c4b 0%, #fff2db 70%, #edd39f 84%, #f8dcae 98%);
  color: #483208!important;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.maze-single-product.product.type-product .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.maze-single-product .product_meta {
  padding-top: 14px;
  border-top: 1px solid var(--maze-border-soft);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(212, 212, 216, 0.95);
}

.maze-single-product .product_meta a {
  color: #f3cf78;
}

.maze-single-product .woocommerce-tabs {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--maze-border-soft);
  border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.4);
}

.maze-single-product .woocommerce-tabs ul.tabs {
  margin: 0 0 16px;
  border-bottom: 1px solid var(--maze-border-soft);
}

.maze-single-product .woocommerce-tabs ul.tabs li {
  border: none;
  background: transparent;
  margin-right: 8px;
}

.maze-single-product .woocommerce-tabs ul.tabs li a {
  color: #d4d4d8;
  font-weight: 500;
}

.maze-single-product .woocommerce-tabs ul.tabs li.active a {
  color: #fff;
}

.maze-single-product .woocommerce-product-gallery__image img,
.maze-single-product .woocommerce-product-gallery__wrapper img,
.maze-single-product .flex-control-thumbs li img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.maze-single-product .woocommerce-product-gallery__wrapper > :first-child a,
.maze-single-product .woocommerce-product-gallery__wrapper > :first-child img {
  cursor: zoom-in;
}

.maze-image-modal-open {
  overflow: hidden;
}

.maze-image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.maze-image-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.maze-image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.92);
}

.maze-image-modal__img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.maze-image-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.maze-image-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.maze-single-product .flex-control-thumbs li {
  overflow: hidden;
  border-radius: 12px;
}

.related .products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}




@media (max-width: 1200px) {
  .maze-single-product__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .maze-single-product__summary {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1024px) {
  .related .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section.product-section {
    margin-top: -340px;
  }

  .maze-single-product__gallery-col,
  .maze-single-product__summary,
  .maze-single-product .woocommerce-tabs {
    padding: 16px;
  }

  .maze-single-product .product_title {
    font-size: 30px;
  }

  .maze-image-modal {
    padding: 16px;
  }

  .maze-image-modal__img {
    max-height: calc(100vh - 32px);
  }
}

