/*!
 * AitiCore-CMS - Management system built with AitiCore-Flex.
 * Author: Afan
 * Website: https://aiti-solutions.com
 * GitHub: https://github.com/afandisini
 * License: MIT
 * File: product-detail.css
 * Description: Main CSS file for the AitiCore-CMS application.
 */
.product-detail-page {
  background: var(--front-footer-bg);
  color: var(--front-main-text);
}
.product-hero {
  padding: 3rem 0 2rem;
}
.product-breadcrumb .breadcrumb-item a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}
.product-breadcrumb .breadcrumb-item.active {
  color: var(--bs-emphasis-color);
  white-space: normal;
}
.product-breadcrumb {
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-breadcrumb::-webkit-scrollbar,
.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.product-breadcrumb .breadcrumb {
  flex-wrap: nowrap;
  min-width: 100%;
  width: max-content;
}
.product-breadcrumb .breadcrumb-item {
  white-space: nowrap;
}
.product-bottom-cta,
.product-content-card,
.product-gallery,
.product-summary-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
}
.product-gallery {
  padding: 1rem;
  position: sticky;
  top: 1.5rem;
}
.product-gallery-main {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.12),
    rgba(14, 165, 233, 0.08)
  );
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.product-gallery-image {
  aspect-ratio: 16/10;
  display: block;
  object-fit: cover;
  width: 100%;
}
.product-gallery-preview-btn {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.18);
  color: #fff;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  width: 2.75rem;
  z-index: 2;
}
.product-gallery-preview-btn:focus,
.product-gallery-preview-btn:hover {
  background: #f97316;
  color: #fff;
  transform: translateY(-1px);
}
.product-gallery-badge {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  left: 1rem;
  padding: 0.45rem 0.9rem;
  position: absolute;
  top: 1rem;
}
.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-thumb {
  background: 0 0;
  border: 2px solid transparent;
  border-radius: 1rem;
  flex: 0 0 92px;
  overflow: hidden;
  padding: 0;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.product-thumb.is-active,
.product-thumb:hover {
  border-color: #f97316;
}
.product-thumb img {
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
  width: 100%;
}
.product-content-card,
.product-summary-card {
  padding: 1.5rem;
}
.specs-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.12);
  border-radius: 1.25rem;
  overflow: hidden;
}
.specs-header {
  align-items: center;
  background: color-mix(
    in srgb,
    var(--bs-body-bg) 78%,
    var(--front-main-text) 22%
  );
  border-bottom: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
  padding: 1rem 1.25rem;
}
.specs-header i {
  color: #f97316;
}
.specs-table {
  border-collapse: collapse;
  margin: 10px;
  width: 100%;
}
.specs-table tr {
  border-bottom: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
}
.specs-table tr:last-child {
  border-bottom: none;
}
.specs-table td {
  padding: 1rem 1.25rem;
  vertical-align: top;
}
.specs-table td:first-child {
  color: var(--bs-secondary-color);
  width: 38%;
}
.faq-item {
  background: var(--bs-body-bg);
  border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.12);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-header {
  align-items: center;
  background: 0 0;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  width: 100%;
}
.faq-header:focus,
.faq-header:hover {
  background: color-mix(
    in srgb,
    var(--bs-body-bg) 84%,
    var(--front-main-text) 16%
  );
}
.faq-header i {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-header i {
  transform: rotate(180deg);
}
.faq-body {
  display: none;
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition:
    max-height 0.25s ease,
    padding 0.25s ease;
}
.faq-item.open .faq-body {
  display: block;
  max-height: none;
  padding: 0 1.25rem 1.25rem;
}
.faq-body p:last-child {
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}
.product-summary-top {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.product-pill,
.section-kicker {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.35rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  text-transform: uppercase;
}
.product-cart-link,
.product-pill,
.section-kicker {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
}
.product-cart-link {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  color: var(--theme-toggle-text);
  font-weight: 600;
  height: 42px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  width: 42px;
}
.product-cart-link:focus,
.product-cart-link:hover {
  border-color: color-mix(
    in srgb,
    var(--theme-toggle-border) 45%,
    var(--front-accent) 55%
  );
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  color: var(--theme-toggle-text);
  transform: translateY(-1px);
}
.product-cart-link-floating {
  position: fixed;
  right: 64px;
  top: 14px;
  z-index: 1199;
}
.product-cart-link i {
  font-size: 1rem;
}
.product-cart-count {
  align-items: center;
  background: #f97316;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  height: 1.15rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.15rem;
  padding: 0 0.2rem;
  position: absolute;
  right: -0.2rem;
  top: -0.3rem;
}
.product-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.product-excerpt {
  color: var(--bs-secondary-color);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.product-meta-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}
.product-meta-item {
  align-items: center;
  background: rgba(var(--bs-secondary-rgb), 0.08);
  border-radius: 1rem;
  color: var(--bs-secondary-color);
  display: flex;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
}
.product-meta-item i,
.product-meta-item-stock.is-development i,
.product-meta-item-stock.is-ready i,
.product-meta-item-stock.is-ready strong {
  color: #f97316;
}
.product-meta-item-stock {
  --product-stock-bg: rgba(15, 23, 42, 0.96);
  --product-stock-text: hsla(0, 0%, 100%, 0.88);
  --product-stock-border: rgba(249, 115, 22, 0.18);
  --product-stock-badge-bg: hsla(0, 0%, 100%, 0.08);
  --product-stock-badge-text: #f97316;
  justify-content: space-between;
}
.product-meta-item-stock span {
  flex: 1;
}
.product-meta-item-stock strong {
  background: var(--product-stock-badge-bg);
  border-radius: 999px;
  color: var(--product-stock-badge-text);
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.32rem 0.55rem;
}
.product-meta-item-stock.is-development,
.product-meta-item-stock.is-ready {
  background: linear-gradient(
    135deg,
    var(--product-stock-bg),
    color-mix(in srgb, var(--product-stock-bg) 82%, #1f2937 18%)
  );
  color: var(--product-stock-text);
}
.product-meta-item-stock.is-ready {
  border: 1px solid var(--product-stock-border);
}
.product-meta-item-stock.is-development {
  border: 1px solid rgba(148, 163, 184, 0.16);
}
[data-theme="light"] .product-meta-item-stock {
  --product-stock-bg: hsla(0, 0%, 100%, 0.96);
  --product-stock-text: #1f2937;
  --product-stock-border: rgba(249, 115, 22, 0.24);
  --product-stock-badge-bg: rgba(249, 115, 22, 0.12);
  --product-stock-badge-text: #ea580c;
}
[data-theme="dark"] .product-meta-item-stock {
  --product-stock-bg: rgba(15, 23, 42, 0.96);
  --product-stock-text: hsla(0, 0%, 100%, 0.88);
  --product-stock-border: rgba(249, 115, 22, 0.18);
  --product-stock-badge-bg: hsla(0, 0%, 100%, 0.08);
  --product-stock-badge-text: #f97316;
}
.product-price-box {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.12),
    rgba(14, 165, 233, 0.08)
  );
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}
.product-price-label {
  color: var(--bs-secondary-color);
  display: block;
  margin-bottom: 0.4rem;
}
.product-price-value {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.product-price-note,
.section-heading p {
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}
.product-actions {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.product-buy-form {
  display: block;
}
.product-btn-primary,
.product-btn-secondary,
.product-btn-whatsapp {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  width: 100%;
}
.product-btn-primary {
  background: #f97316;
  color: #fff;
}
.product-btn-primary:focus,
.product-btn-primary:hover {
  background: #ea580c;
  color: #fff;
}
.product-btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.product-btn-whatsapp:focus,
.product-btn-whatsapp:hover {
  background: #20bd5a;
  color: #fff;
}
.product-btn-secondary {
  background: 0 0;
  border-color: rgba(var(--bs-emphasis-color-rgb), 0.16);
  color: var(--bs-emphasis-color);
}
.product-btn-secondary:focus,
.product-btn-secondary:hover {
  background: rgba(var(--bs-secondary-rgb), 0.08);
  color: var(--bs-emphasis-color);
}
.product-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.product-cta-links a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
}
.product-cta-links a:focus,
.product-cta-links a:hover,
.product-nav-tabs .nav-link:focus,
.product-nav-tabs .nav-link:hover {
  color: #ea580c;
}
.product-author-note {
  align-items: center;
  color: var(--bs-secondary-color);
  display: flex;
  gap: 0.65rem;
}
.product-section {
  padding: 2rem 0 0;
}
.product-section-muted {
  padding-top: 1rem;
}
.section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-heading h2 {
  margin: 0.75rem 0 0.5rem;
}
.section-heading-left {
  text-align: left;
}
.product-module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.product-module-item {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.04);
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
}
.product-module-check {
  align-items: center;
  background: rgba(34, 197, 94, 0.16);
  border-radius: 999px;
  color: #16a34a;
  display: inline-flex;
  flex-shrink: 0;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}
.product-rich-content {
  color: var(--bs-body-color);
}
.product-rich-content img {
  border-radius: 1rem;
  height: auto;
  max-width: 100%;
}
.product-rich-content table {
  width: 100%;
}
.product-rich-content-compact > :last-child {
  margin-bottom: 0;
}
.product-side-stack {
  display: grid;
  gap: 1rem;
}
.product-tab-card {
  overflow: hidden;
}
.product-nav-tabs {
  border-bottom: 1px solid var(--bs-border-color);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}
.product-nav-tabs .nav-link {
  background: rgba(var(--bs-secondary-rgb), 0.08);
  border: 0;
  border-radius: 999px;
  color: var(--bs-secondary-color);
  font-weight: 700;
  padding: 0.75rem 1rem;
}
.product-nav-tabs .nav-link.active {
  background: rgba(249, 115, 22, 0.14);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
  color: #f97316;
}
.product-tab-content .tab-pane {
  min-height: 280px;
}
.product-review-summary {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}
.product-review-form-card,
.product-review-item,
.product-review-score-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.04);
}
.product-review-score-card {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.12),
    rgba(14, 165, 233, 0.08)
  );
  padding: 1.25rem;
}
.product-review-score-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}
.product-review-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}
.product-review-score-meta {
  background: rgba(var(--bs-secondary-rgb), 0.04);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
}
.product-review-score-meta h3 {
  margin-bottom: 0.5rem;
}
.product-review-form-card {
  padding: 1.25rem;
}
.rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rating-star-label {
  align-items: center;
  background: rgba(var(--bs-secondary-rgb), 0.08);
  border-radius: 999px;
  color: var(--bs-secondary-color);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
}
.rating-star-label span {
  color: inherit;
  font-size: 0.8rem;
}
.btn-check:checked + .rating-star-label {
  background: rgba(249, 115, 22, 0.14);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
  color: #ea580c;
}
.product-review-submit {
  min-width: 200px;
  width: auto;
}
.product-review-list {
  display: grid;
  gap: 1rem;
}
.product-review-item {
  padding: 1.25rem;
}
.product-review-item-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.product-review-name {
  font-weight: 700;
}
.product-review-date {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}
.product-review-rating {
  color: #f59e0b;
  text-align: right;
}
.product-review-rating strong {
  color: var(--bs-emphasis-color);
  display: block;
  font-size: 0.9rem;
}
.product-section-cta {
  padding: 2rem 0 3rem;
}
.product-bottom-cta {
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.12),
    rgba(14, 165, 233, 0.12)
  );
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.5rem;
}
.product-bottom-cta h2 {
  margin: 0.7rem 0 0;
}
.product-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
@media (max-width: 991.98px) {
  .product-detail-page .product-hero > .container,
  .product-detail-page .product-section > .container {
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .product-detail-page .row.g-4 {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
  }
  .product-gallery {
    position: static;
  }
  .product-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-review-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .product-breadcrumb {
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .product-breadcrumb .breadcrumb {
    align-items: flex-start;
  }
  .product-breadcrumb .breadcrumb-item.active {
    min-width: min(15rem, calc(100vw - 8rem));
    overflow-wrap: anywhere;
  }
  .product-hero {
    padding-top: 2rem;
  }
  .product-detail-page .product-hero > .container,
  .product-detail-page .product-section > .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .product-cart-link-floating {
    right: 64px;
  }
  .product-bottom-cta,
  .product-content-card,
  .product-gallery,
  .product-summary-card {
    border-radius: 1.25rem;
    padding: 1rem;
  }
  .product-meta-grid {
    grid-template-columns: 1fr;
  }
  .product-bottom-actions,
  .product-bottom-actions .btn,
  .product-nav-tabs .nav-link {
    width: 100%;
  }
  .product-nav-tabs {
    gap: 0.5rem;
  }
  .product-thumb {
    flex-basis: 84px;
  }
  .product-review-item-head {
    flex-direction: column;
  }
  .product-review-rating {
    text-align: left;
  }
}
