:root {
    --dark-blue: #25355C;
    --yellow: #FCD116;
    --cyan: #29A9E0;
    --white: #FFFFFF;
    --text-base: #333333;
    --bg-page: #F5F7FA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-base);
}

.no-print {
    background-color: var(--dark-blue);
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.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;
}

.btn-print:hover {
    background-color: var(--yellow);
    color: var(--dark-blue);
}

.page-container {
    max-width: 1000px;
    margin: 30px auto;
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 8px solid var(--cyan);
}

.catalog-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.catalog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background-color: var(--yellow);
}

.main-logo {
    max-width: 280px;
}

.storytelling {
    text-align: center;
    margin-bottom: 40px;
}

.storytelling h1 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 26px;
}

.storytelling p {
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.catalog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-card {
    border: 1px solid #E1E8ED;
    border-left: 6px solid var(--cyan);
    border-radius: 6px;
    padding: 25px;
    background-color: #FAFCFF;
    /* Regras vitais para o PDF não quebrar o card no meio */
    page-break-inside: avoid;
    break-inside: avoid;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.product-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    background-color: var(--yellow);
    color: var(--dark-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-header h2 {
    color: var(--dark-blue);
    font-size: 22px;
}

.capacity-badge {
    background-color: var(--cyan);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.product-content {
    display: flex;
    gap: 25px;
    align-items: stretch;
}

.image-placeholder {
    flex: 0 0 180px;
    background-color: #E8EEF2;
    border: 1px dashed var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-size: 12px;
    border-radius: 4px;
    min-height: 180px;
    text-align: center;
    padding: 10px;
}

.product-image-container {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
}

.table-wrapper {
    flex: 1;
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table th {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px;
    text-align: left;
}

.specs-table td {
    padding: 10px;
    border: 1px solid #D5DEE5;
    color: #444;
}

.specs-table tr:nth-child(even) {
    background-color: #F0F4F8;
}

.catalog-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px solid var(--cyan);
}

.footer-icon {
    width: 50px;
    margin-bottom: 10px;
}

.catalog-footer p {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 14px;
}

/* Mágica do PDF */
@media print {
    @page {
        size: A4 portrait;
        margin: 15mm;
    }

    body {
        background-color: var(--white);
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .no-print {
        display: none !important;
    }

    .page-container {
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-top: none;
        max-width: 100%;
    }

    .product-card {
        border: 1px solid #ccc;
        background-color: var(--white);
    }
    
    .capacity-badge {
        background-color: var(--cyan) !important;
        color: var(--white) !important;
    }

    .specs-table th {
        background-color: var(--dark-blue) !important;
        color: var(--white) !important;
    }
}

/* 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 15px 20px rgba(0, 0, 0, 0.2));
}

.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;
  }
}