/* actsoftware.net product page clone */

/* Beat Storefront / WooCommerce float layout */
.single-product div.product.act-pdp-product {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  clear: both;
}
.single-product .act-pdp-product::before,
.single-product .act-pdp-product::after {
  display: none !important;
  content: none !important;
}
.act-pdp-main {
  width: 100%;
}
.act-pdp-gallery-col,
.act-pdp-summary,
.act-pdp-main > * {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  clear: none !important;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary.entry-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .col-full,
.single-product .site-main .col-full {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single-product,
.single-product .site-content,
.single-product .act-content,
.single-product #primary,
.single-product .site-main { background: #fff !important; }

.act-pdp-hero-band {
  background: #f9fafb;
  padding: 0 0 32px;
  margin-bottom: 0;
}

.act-pdp-breadcrumb { padding: 24px 0 0; }
.act-pdp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.act-pdp-breadcrumb a { color: #313031; text-decoration: none; }
.act-pdp-breadcrumb a:hover { color: #171717; }
.act-pdp-breadcrumb-current { color: #6b7280; }

.act-pdp-mobile-only { display: block; padding-top: 16px; }
.act-pdp-desktop-only { display: none; }
@media (min-width: 992px) {
  .act-pdp-mobile-only { display: none !important; }
  .act-pdp-desktop-only { display: block !important; }
}

.act-pdp-mobile-head { margin-bottom: 16px; }
.act-pdp-mobile-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.act-pdp-wrap { padding: 24px 0 40px; }
@media (min-width: 992px) {
  .act-pdp-wrap { padding: 32px 0 48px; }
}
.act-pdp-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 992px) {
  .act-pdp-main { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Gallery frame */
.act-pdp-gallery-col .woocommerce-product-gallery {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  aspect-ratio: 1;
  position: relative;
}
.act-pdp-product span.onsale,
.act-pdp-product .woocommerce-product-gallery__trigger { display: none !important; }
.act-pdp-gallery-col .woocommerce-product-gallery img {
  object-fit: contain !important;
  max-height: 100% !important;
  width: 100% !important;
  margin: auto !important;
}

/* Summary */
.act-pdp-summary {
  background: transparent;
  border: none;
  padding: 0;
  width: 100% !important;
  float: none !important;
}
.act-pdp-desktop-title {
  font-size: 1.875rem !important;
  font-weight: 700 !important;
  margin: 0 0 16px !important;
  line-height: 1.25 !important;
}
.act-pdp-summary > .product_title { display: none !important; }
.act-pdp-summary > .price { display: none !important; }

.act-pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.act-pdp-price-row-inner,
.act-pdp-price-row .price,
.act-pdp-price-row-inner .price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 !important;
}
.act-pdp-price-row ins .amount,
.act-pdp-price-row ins {
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: #eb3030 !important;
  text-decoration: none !important;
}
.act-pdp-price-row del .amount,
.act-pdp-price-row del {
  font-size: 1.5rem !important;
  color: #6b7280 !important;
  opacity: 1 !important;
}
.act-save-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}
.act-save-amount-line {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
  font-weight: 500;
}

.act-pdp-excerpt { margin-bottom: 20px; font-size: 14px; line-height: 1.7; color: #6b7280; }
.act-pdp-excerpt p { margin: 0 0 12px; }
.act-pdp-excerpt p strong { color: #171717; }
.act-pdp-excerpt ul { margin: 0; padding: 0 0 0 1.1em; list-style: disc; }
.act-pdp-excerpt li { margin-bottom: 6px; }
.act-pdp-excerpt li strong { color: #171717; }

.act-pdp-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}
.act-pdp-rating .act-rated-text { display: none; }
@media (min-width: 768px) { .act-pdp-rating .act-rated-text { display: inline; } }

.act-pdp-summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 24px !important;
}
@media (max-width: 991px) {
  .act-pdp-summary form.cart {
    flex-direction: column;
    align-items: stretch;
  }
  .act-pdp-summary .single_add_to_cart_button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
.act-pdp-summary .quantity {
  display: flex !important;
}
.act-pdp-summary .quantity {
  display: flex !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.act-qty-wrap { display: flex; align-items: stretch; }
.act-qty-btn {
  border: none;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
  color: #6b7280;
  font-size: 10px;
}
.act-qty-btn:hover { background: #f3f4f6; }
.act-pdp-summary .quantity input.qty {
  width: 48px !important;
  border: none !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  text-align: center;
  font-weight: 600;
}
.act-pdp-summary .single_add_to_cart_button {
  flex: 1;
  min-width: 160px;
  background: #eb3030 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
}
.act-pdp-summary .single_add_to_cart_button:hover { filter: brightness(0.92); }

.act-pdp-trust { margin-top: 8px; }
.act-pdp-trust-label { font-size: 18px; font-weight: 600; margin: 0 0 12px; color: #171717; }
.act-pdp-trust-items { display: flex; flex-direction: column; gap: 8px; }
.act-pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #171717;
}
.act-trust-svg { width: 20px; height: 20px; color: #059669; flex-shrink: 0; }

/* Lower band — enforce section order: tabs → why → FAQ → related */
.act-pdp-lower-band { background: #fff; }
.act-pdp-lower {
  display: flex;
  flex-direction: column;
  padding: 0 0 64px;
}
.act-pdp-lower .act-pdp-tabs { order: 1; }
.act-pdp-lower .act-why-choose { order: 2; }
.act-pdp-lower .act-faq { order: 3; }
.act-pdp-lower .act-pdp-related { order: 4; }
.act-pdp-lower > .related.products { display: none !important; order: 99; }

/* Tabs */
.act-pdp-tabs { margin-top: 48px; }
.act-pdp-tabs-nav-wrap { border-bottom: 1px solid #e5e7eb; }
.act-pdp-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  max-width: 896px;
  margin: 0 auto;
}
.act-pdp-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: -1px;
}
.act-pdp-tab-btn.is-active {
  color: #eb3030;
  border-bottom-color: #eb3030;
}
.act-tab-count { font-weight: 400; font-size: 14px; margin-left: 4px; }
.act-pdp-tabs-panels { max-width: 896px; margin: 0 auto; padding: 40px 16px 0; }
.act-pdp-tab-prose { font-size: 15px; line-height: 1.75; color: #6b7280; }
.act-pdp-tab-prose h2, .act-pdp-tab-prose h3 {
  color: #171717;
  font-weight: 700;
  margin: 1.5em 0 0.75em;
  font-size: 1.25rem;
}
.act-pdp-tab-prose ul, .act-pdp-tab-prose ol { padding-left: 1.25em; }
.act-pdp-tab-prose strong { color: #171717; }
.act-pdp-tab-prose img { max-width: 100%; height: auto; }
.act-pdp-tab-prose table { width: 100%; border-collapse: collapse; }
.act-pdp-tab-prose table th,
.act-pdp-tab-prose table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.act-pdp-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.act-pdp-info-table th,
.act-pdp-info-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  text-align: left;
}
.act-pdp-info-table th { background: #f9fafb; width: 35%; font-weight: 600; color: #171717; }

/* Why Choose Us */
.act-why-choose { padding: 48px 0; }
.act-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 992px) {
  .act-why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.act-why-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  transition: box-shadow 0.2s;
}
@media (min-width: 768px) { .act-why-card { padding: 24px; } }
.act-why-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.act-why-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .act-why-card-head { gap: 12px; margin-bottom: 12px; } }
.act-why-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(235, 48, 48, 0.1);
  color: #eb3030;
  flex-shrink: 0;
}
.act-why-icon-wrap svg { width: 18px; height: 18px; }
.act-why-card h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: #171717;
}
@media (min-width: 768px) { .act-why-card h3 { font-size: 16px; } }
.act-why-card p {
  font-size: 11px;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}
@media (min-width: 768px) { .act-why-card p { font-size: 14px; line-height: 1.6; } }

/* FAQ */
.act-faq { padding: 48px 0; }
.act-faq-columns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .act-faq-columns { flex-direction: row; gap: 12px; }
  .act-faq-col { flex: 1; display: flex; flex-direction: column; gap: 12px; }
}
.act-faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.act-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #171717;
  cursor: pointer;
  list-style: none;
}
.act-faq-item summary::-webkit-details-marker { display: none; }
.act-faq-item[open] summary { color: #eb3030; }
.act-faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: #6b7280; transition: transform 0.2s; }
.act-faq-item[open] .act-faq-chevron { transform: rotate(180deg); }
.act-faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
}

/* Related carousel */
.act-pdp-related {
  padding: 32px 0 0;
  border-top: 1px solid #e5e7eb;
}
.act-section-heading {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: #171717;
}
.act-section-divider {
  width: 80px;
  height: 4px;
  background: #eb3030;
  border-radius: 2px;
  margin: 0 auto 32px;
}
.act-related-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.act-related-track::-webkit-scrollbar { display: none; }
.act-related-slide {
  flex: 0 0 52vw;
  max-width: 240px;
  scroll-snap-align: start;
}
@media (min-width: 768px) { .act-related-slide { flex: 0 0 240px; } }
.act-related-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.act-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.act-related-image {
  aspect-ratio: 1;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.act-related-image img { object-fit: contain !important; max-height: 100% !important; }
.act-related-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  padding: 12px 16px 4px;
  line-height: 1.35;
  color: #171717;
}
.act-related-price {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.act-related-price ins { color: #eb3030; font-weight: 700; text-decoration: none; }
.act-related-price del { color: #6b7280; font-size: 12px; }
.act-related-atc {
  display: block;
  margin: 0 16px 16px;
  text-align: center;
  background: #eb3030 !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Hide default related products section from WooCommerce */
.act-pdp-lower > .related.products { display: none !important; }
