/* ========================================= */
/* PRODUCT PAGE - LOFT BUSINESS DESIGN      */
/* ========================================= */

/* Breadcrumb Navigation */
.breadcrumb-section {
  background: var(--white);
  border-bottom: 1px solid var(--tertiary-dark);
  height: 60px;
  display: flex;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb a {
  color: var(--text-color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-color-accent);
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--tertiary-dark);
  font-weight: 600;
}

/* Product Hero Section */
.product-hero {
  width: 100vw;
  height: 100vh; /* full viewport */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 80px 1fr; /* row 1: desktop navbar (80px), row 2: visible area */
  position: relative;
  background-image: var(--hero-bg, url("/assets/img/page-hero-bg.webp"));
  background-size: cover;
  background-position: center;
  overflow: clip;
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 24, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 0;
}

.product-hero__gallery {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: heroGalleryIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.product-gallery {
  width: 100%;
  max-width: 560px;
  padding: 60px 40px;
  position: relative;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 */
  background: transparent;
  overflow: hidden;
}

.product-gallery__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
}

.product-gallery__image.active {
  opacity: 1;
}

.product-gallery__main:hover .product-gallery__image.active {
  transform: scale(1.03);
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  color: var(--white);
}

.product-gallery__nav:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--shadow-color);
  transform: translateY(-50%) scale(1.08);
}

.product-gallery__nav--prev {
  left: 0;
}
.product-gallery__nav--next {
  right: 0;
}

.product-gallery__thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.06);
}

.product-gallery__thumb:hover {
  opacity: 0.75;
  border-color: rgba(255, 255, 255, 0.4);
}

.product-gallery__thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
}

/* Info Card Column */
.product-hero__card {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0 40px 20px;
  position: relative;
  z-index: 1;
  animation: heroCardIn 0.7s 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.product-hero__card-inner {
  background: var(--white);
  padding: 48px 44px;
  border-top: 4px solid var(--primary-color);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 2px 0 var(--primary-color) inset;
  width: 100%;
  position: relative;
}

.product-hero__card-inner::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-dark);
}

/* Product Title */
.product-title {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 500;
  color: var(--shadow-color);
  margin: 0 0 28px 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary-color);
}

/* Product Meta */
.product-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin: 0 0 20px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.product-meta__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tertiary-dark);
  font-size: 14px;
  font-weight: 500;
}

.product-meta__item i {
  color: var(--primary-color);
  font-size: 16px;
}

/* Product Description */
.product-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tertiary-color);
  margin: 0 0 22px 0;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Product Tags */
.product-tags {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 22px 0;
  padding: 10px 0;
  border-top: 1px solid var(--light-gray);
}

.product-tags__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--tertiary-color);
  white-space: nowrap;
}

.product-tags__value {
  font-size: 13px;
  color: var(--tertiary-dark);
  font-weight: 500;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.product-actions .btn {
  display: inline-block;
  padding: 16px 42px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.product-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-actions .btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(238, 10, 16, 0.3);
  transform: translateY(-2px);
}

.product-actions .btn:hover::after {
  opacity: 1;
}

/* Entry Animations */
@keyframes heroGalleryIn {
  from {
    opacity: 0;
    transform: translateX(-28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Product Tabs Section - Full Width with Sticky Sidebar */
.product-tabs {
  width: 100vw;
  padding: 80px 0;
  background: var(--white);
  position: relative;
}

.product-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tertiary-color) 20%,
    var(--tertiary-color) 80%,
    transparent
  );
}

.product-tabs__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.product-tabs__main {
  min-width: 0;
}

.product-tabs__nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 2px solid var(--tertiary-dark);
  margin-bottom: 50px;
}

.product-tabs__nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-bottom: 2px;
}

.product-tab {
  padding: 18px 35px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color-accent);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  position: relative;
}

.product-tab::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.product-tab:hover {
  color: var(--tertiary-dark);
}

.product-tab:hover::after {
  width: 60%;
}

.product-tab.is-active {
  color: var(--tertiary-dark);
  border-bottom-color: var(--primary-color);
}

.product-tab.is-active::after {
  width: 100%;
}

.product-tabs__panel {
  display: none;
}

.product-tabs__panel.is-active {
  display: block;
}

/* Overview Sections */
.overview-section {
  margin-bottom: 60px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(20, 20, 24, 0.1);
  position: relative;
}

.overview-section:hover::before {
  opacity: 1;
}

.overview-title {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--tertiary-dark);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  padding-left: 0;
  padding-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.overview-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  top: auto;
  transform: none;
  width: 48px;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.4s ease;
}

.overview-section:hover .overview-title::before {
  width: 80px;
}

.overview-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color-main);
  margin-bottom: 15px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.overview-text:last-child {
  margin-bottom: 0;
}

/* Features Section */
.features-section {
  margin-bottom: 50px;
}

.features-section:last-child {
  margin-bottom: 0;
}

.features-section__title {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--tertiary-dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Table wrapper for responsive scrolling */
.features-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
}

.features-table thead {
  background: var(--tertiary-dark);
  color: var(--white);
}

.features-table th {
  width: 50%;
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.features-table td {
  width: 50%;
  padding: 15px 20px;
  border-bottom: 1px solid var(--light-gray);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.features-table tr:last-child td {
  border-bottom: none;
}

.features-table tbody tr:hover {
  background: var(--light-color);
}

.features-table__label {
  font-weight: 500;
  color: var(--text-color-accent);
  font-size: 14px;
}

.features-table__value {
  color: var(--tertiary-dark);
  font-weight: 600;
  font-size: 14px;
}

/* Scrollbar styling for table wrapper */
.features-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.features-table-wrapper::-webkit-scrollbar-track {
  background: var(--light-color);
}

.features-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--tertiary-color);
}

.features-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--tertiary-dark);
}

/* Contact Sidebar - Sticky */
.contact-sidebar {
  position: sticky;
  top: 100px;
  background: var(--light-color);
  padding: 35px 25px;
}

.contact-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--tertiary-color)
  );
}

.contact-sidebar__title {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--tertiary-dark);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.contact-sidebar__item {
  display: block;
}

.contact-sidebar__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--tertiary-dark);
  font-weight: 500;
  font-size: 14px;
  background: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.whatsapp a {
  color: #25d366;
}

.viber a {
  color: #665cac;
}

.telegram a {
  color: #0088cc;
}

.contact-sidebar__item a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-sidebar__item a:hover {
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--tertiary-color),
    var(--tertiary-dark)
  );
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.whatsapp a:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.viber a:hover {
  background: linear-gradient(135deg, #665cac, #7c519d);
}

.telegram a:hover {
  background: linear-gradient(135deg, #0088cc, #0077b5);
}

.contact-sidebar__item a:hover::before {
  left: 100%;
}

.contact-sidebar__item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-sidebar__item a:hover i {
  transform: scale(1.15) rotate(5deg);
}

.contact-sidebar__cta {
  width: 100%;
}

.contact-sidebar__cta .btn {
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(238, 10, 16, 0.3);
}

.contact-sidebar__cta .btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(0) rotate(45deg);
  transition: transform 0.6s ease;
}

.contact-sidebar__cta .btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(238, 10, 16, 0.4);
}

.contact-sidebar__cta .btn:hover::before {
  transform: translateX(100%) translateY(0) rotate(45deg);
}

.contact-sidebar__cta .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(238, 10, 16, 0.3);
}

/* Download PDF Button */
.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #c82333, #a71d2a);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-download-pdf:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-download-pdf i {
  font-size: 16px;
}

.btn-download-pdf .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Features Panel Header */
.features-panel-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.features-panel-header .btn-download-pdf {
  padding: 10px 20px;
  font-size: 13px;
}

/* Secondary Button Style */
.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: #fff;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #495057);
}

/* Small Button Variant */
.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .product-tabs__wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .product-hero {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 65px auto auto; /* mobile navbar (65px), gallery, card */
  }

  .product-hero__gallery {
    grid-row: 2;
    grid-column: 1;
  }

  .product-hero__card {
    grid-row: 3;
    grid-column: 1;
    padding: 0 40px 60px 40px;
    justify-content: center;
  }

  .product-gallery {
    padding: 40px;
    max-width: 480px;
    margin: 0 auto;
  }

  .product-hero__card-inner {
    max-width: 640px;
  }

  .product-tabs__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .product-gallery {
    padding: 30px 20px;
  }

  .product-hero__card {
    padding: 0 20px 50px 20px;
  }

  .product-hero__card-inner {
    padding: 36px 28px;
  }

  .product-tabs {
    padding: 50px 0;
  }

  .product-tabs__nav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .product-tab {
    padding: 15px 25px;
    font-size: 13px;
    white-space: nowrap;
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
    text-align: center;
  }

  .features-panel-header {
    justify-content: center;
  }

  .overview-section {
    padding: 30px 0;
  }

  .overview-title {
    font-size: 1.5rem;
  }

  .features-section__title {
    font-size: 1.35rem;
  }

  .features-table th,
  .features-table td {
    padding: 12px 15px;
    font-size: 13px;
  }

  .features-table__label {
    font-size: 13px;
  }

  .features-table__value {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .breadcrumb-section {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-hero {
    grid-template-rows: 60px auto auto; /* navbar shrinks to 60px */
  }

  .product-hero__card-inner {
    padding: 28px 20px;
  }

  .product-actions .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .contact-sidebar {
    padding: 25px 20px;
  }

  .product-tabs {
    padding: 36px 0;
  }

  .overview-title {
    font-size: 1.3rem;
  }

  .overview-text {
    font-size: 14px;
    line-height: 1.7;
  }

  .features-section__title {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

  .features-table th,
  .features-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .features-table__label,
  .features-table__value {
    font-size: 12px;
  }
}
