/* Component Styles */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #1a3a5f;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0f2a47;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 95, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #1a3a5f;
  border-color: #1a3a5f;
}

.btn-secondary:hover {
  background-color: #1a3a5f;
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: scale(1.05);
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a3a5f;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Accordion */
.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background-color: #f8f9fa;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #e9ecef;
}

.accordion-header.active {
  background-color: #1a3a5f;
  color: #ffffff;
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 2000px;
}

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff;
}

.accordion-body ul {
  list-style: none;
}

.accordion-body li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 1.5rem;
  position: relative;
}

.accordion-body li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #1a3a5f;
}

.accordion-body li:last-child {
  border-bottom: none;
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #1a3a5f;
  color: #ffffff;
  border-color: #1a3a5f;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background-color: #f0f0f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateY(10px);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-overlay h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem;
  color: #ffffff;
  text-align: center;
  max-width: 90vw;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
}

.lightbox-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lightbox-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* Table */
.table-container {
  overflow-x: auto;
  margin-top: 2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead {
  background-color: #1a3a5f;
  color: #ffffff;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination-info {
  margin: 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #1a3a5f;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #1a3a5f;
  color: #ffffff;
  border-color: #1a3a5f;
}

.pagination-btn.active {
  background-color: #1a3a5f;
  color: #ffffff;
  border-color: #1a3a5f;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-dots {
  padding: 0.5rem;
  color: #999;
}

/* Search Input */
.search-box {
  margin-bottom: 2rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #1a3a5f;
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 3rem 0;
  position: relative;
  flex-wrap: wrap;
  gap: 2rem;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 0;
}

.stepper-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  padding: 0 1rem;
}

.stepper-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: #1a3a5f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.stepper-title {
  font-weight: 600;
  color: #1a3a5f;
  margin-bottom: 0.5rem;
}

.stepper-description {
  color: #666;
  font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: #1a3a5f;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(26, 58, 95, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #0f2a47;
  transform: translateY(-4px);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1a3a5f;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a3a5f;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #dc3545;
}

.form-group.error .form-error {
  display: block;
}

/* Contact Info Cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.contact-info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info-title {
  font-weight: 600;
  color: #1a3a5f;
  margin-bottom: 0.5rem;
}

.contact-info-text {
  color: #666;
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.125rem;
  margin-top: 2rem;
}

/* Trust Band */
.trust-band {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin: 3rem 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.trust-item-title {
  font-weight: 600;
  color: #1a3a5f;
  margin-bottom: 0.5rem;
}

.trust-item-text {
  color: #666;
  font-size: 0.9rem;
}

/* Mission/Vision/Values Cards */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.mvv-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mvv-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mvv-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a5f;
  margin-bottom: 1rem;
}

.mvv-text {
  color: #666;
  line-height: 1.8;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a3a5f;
  margin-bottom: 0.75rem;
}

.service-text {
  color: #666;
  font-size: 0.9rem;
}

/* Gallery Preview */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background-color: #f0f0f0;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-preview-item:hover img {
  transform: scale(1.1);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
}

.no-image-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #adb5bd;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-code {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a3a5f;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.product-meta {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.part-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.part-number-item {
  display: inline-block;
  padding: 0.375rem 0.625rem;
  background: #e8eef5;
  color: #1a3a5f;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #d0d9e5;
}

.part-number-more {
  display: inline-block;
  padding: 0.375rem 0.625rem;
  background: #1a3a5f;
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #1a3a5f;
}

.part-count {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #e8eef5;
  color: #1a3a5f;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.5rem 0 0 0;
}

.product-action {
  margin-top: auto;
}

.product-action .btn {
  width: 100%;
  text-align: center;
  display: block;
  padding: 0.75rem 1rem;
}

.no-results {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  color: #999;
}

.no-results p {
  font-size: 1.125rem;
  margin: 0;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Product Detail Page Placeholder */
.product-placeholder-large {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.product-placeholder-large::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.1) 20px,
    rgba(255, 255, 255, 0.1) 40px
  );
}

.no-image-text-large {
  font-size: 1.5rem;
  font-weight: 700;
  color: #adb5bd;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #1a3a5f;
  text-decoration: underline;
}

.breadcrumbs a:hover {
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: #999;
}

