:root {
  --dark-blue: #25355c;
  --yellow: #fcd116;
  --cyan: #29a9e0;
  --white: #ffffff;
  --text-dark: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e0e5ec;
  color: var(--text-dark);
}

.no-print {
  background-color: var(--dark-blue);
  color: white;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.btn-print {
  background-color: var(--cyan);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 10px;
}
.btn-print:hover {
  background-color: var(--yellow);
  color: var(--dark-blue);
}

#catalog-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.page {
  width: 210mm;
  height: 297mm;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  page-break-after: always;
  break-after: page;
}
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.page-header {
  background-color: var(--dark-blue);
  color: var(--white);
  text-align: center;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
  border-bottom: 4px solid var(--cyan);
}
.page-header .destaque {
  color: var(--yellow);
}

.page-body {
  flex: 1;
  display: flex;
  padding: 40px;
  position: relative;
  z-index: 1;
}
.left-column {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
}

.product-code {
  color: var(--dark-blue);
  font-weight: 900;
  margin-bottom: 30px;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--yellow);
  color: var(--dark-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.code-line-1 {
  font-size: 60px;
  line-height: 0.9;
  letter-spacing: -2px;
}
.code-line-2-3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.code-line-2 {
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 45px;
  padding: 0 10px;
  border-radius: 4px;
}
.code-line-3 {
  font-size: 30px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.feature-icon {
  width: 45px;
  height: 45px;
  background-color: var(--dark-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid var(--cyan);
}
.feature-text h4 {
  color: var(--dark-blue);
  font-size: 14px;
  margin-bottom: 3px;
}
.feature-text p {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
}

.right-column {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.3));
}
.vertical-text {
  position: absolute;
  right: -250px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 9px;
  color: #888;
  white-space: nowrap;
}

.page-footer {
  background-color: var(--dark-blue);
  color: var(--white);
  height: 320px;
  display: flex;
  padding: 30px 40px;
  position: relative;
  z-index: 3;
}
.page-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--cyan);
}
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 20px;
}
.specs-text-list {
  list-style: none;
  font-size: 11px;
  line-height: 1.5;
  color: #dde2ec;
}
.specs-text-list li {
  margin-bottom: 4px;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-logo-main {
  height: 35px;
  filter: brightness(0) invert(1);
}

.footer-right {
  flex: 0 0 45%;
  position: relative;
}
.tech-table-container {
  background-color: var(--white);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  margin-top: -120px;
  margin-bottom: 15px;
  border-bottom: 4px solid var(--yellow);
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.tech-table th,
.tech-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e1e8ed;
}
.tech-table tr:nth-child(odd) {
  background-color: #f8fafc;
}
.tech-table th {
  text-align: left;
  color: var(--dark-blue);
  font-weight: 700;
}
.tech-table td {
  text-align: right;
  color: #444;
  font-weight: 600;
}
.tech-table tr.table-header-row {
  background-color: var(--dark-blue);
  color: var(--white);
}
.tech-table tr.table-header-row th,
.tech-table tr.table-header-row td {
  color: var(--white);
  border-bottom: none;
}
.legal-notes {
  font-size: 9px;
  color: #8a9bb8;
  line-height: 1.4;
  text-align: right;
}
.page-number {
  position: absolute;
  bottom: -10px;
  right: 0;
  font-size: 24px;
  font-weight: bold;
  color: var(--white);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  body {
    background-color: var(--white);
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print {
    display: none !important;
  }
  .page {
    margin: 0;
    box-shadow: none;
  }
}

/* Lightbox Styles */
.product-image {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.product-image:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.4));
}

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: #ffffff;
  padding: 15px;
}

.lightbox-caption {
  margin-top: 15px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: var(--yellow, #fcd116);
  transform: scale(1.2);
}

@media print {
  .lightbox-modal {
    display: none !important;
  }
}

/* Gallery & Carousel Styles */
.image-slider-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.slider-main-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(37, 53, 92, 0.7);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.slider-arrow:hover {
  background-color: var(--cyan, #29a9e0);
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev {
  left: 5px;
}
.slider-arrow.next {
  right: 5px;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  z-index: 5;
}
.thumb-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 2px solid #e1e8ed;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ffffff;
  padding: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.thumb-img.active,
.thumb-img:hover {
  border-color: var(--cyan, #29a9e0);
  transform: scale(1.08);
}

/* Lightbox Carousel Navigation */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 10000;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox-arrow:hover {
  background-color: var(--cyan, #29a9e0);
  transform: translateY(-50%) scale(1.15);
}
.lightbox-arrow.prev {
  left: 20px;
}
.lightbox-arrow.next {
  right: 20px;
}

.lightbox-counter {
  margin-top: 5px;
  color: #a0aec0;
  font-size: 13px;
}

/* Icon Hover Effects */
.feature-item {
  cursor: pointer;
}
.feature-icon {
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  background-color: var(--cyan, #29a9e0);
  color: var(--white, #ffffff);
  box-shadow: 0 6px 15px rgba(41, 169, 224, 0.4);
}

/* Cover Page Styles */
.catalog-cover-page {
  background: linear-gradient(145deg, #29a9e0 0%, #1c88bd 50%, #1e2b4d 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 30px;
  color: #ffffff;
}

.cover-top-shape {
  position: absolute;
  top: -40px;
  left: 30px;
  width: 85%;
  height: 260px;
  border: 4px solid var(--yellow, #fcd116);
  border-radius: 0 0 140px 0;
  pointer-events: none;
  z-index: 1;
}

.cover-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 35px;
}

.cover-title {
  font-size: 68px;
  font-weight: 900;
  color: var(--yellow, #fcd116);
  text-transform: capitalize;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.cover-subtitle {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  background-color: var(--dark-blue, #1e2b4d);
  color: #ffffff;
  padding: 4px 24px;
  border-radius: 20px;
  margin-top: 12px;
  letter-spacing: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cover-arch-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.cover-arch-bg {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50% 50% 0 0;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle, rgba(30, 43, 77, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 15px 35px rgba(0, 0, 0, 0.3);
  top: 15px;
  z-index: 1;
}

.cover-product-img {
  position: relative;
  z-index: 2;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.cover-product-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 25px 40px rgba(252, 209, 22, 0.5));
}

.cover-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.cover-logo {
  max-width: 260px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.cover-accent-line {
  width: 180px;
  height: 4px;
  background-color: var(--yellow, #fcd116);
  border-radius: 2px;
  margin-top: 12px;
}

.cover-concentric-circles {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.15),
              0 0 0 40px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}
