/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Announcement Bar */
.announcement-bar {
  background-color: #3730a3;
  padding: 10px 0;
  overflow: hidden;
}

.announcement-content {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: 48px;
}

.announcement-item img {
  height: 20px;
  width: auto;
  min-width: 80px;
}

.announcement-item span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: white;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
  background-color: #4338ca;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  gap: 16px;
}

.header-icon-btn {
  color: white;
  padding: 4px;
}

.header-logo {
  height: 40px;
  width: auto;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #d42a2a;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
}

.breadcrumb a {
  color: #888888;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #888888;
}

.breadcrumb .current {
  color: #1a1a1a;
  font-weight: 500;
}

/* Product Section */
.product-section {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .product-section {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  background-color: #f5f5f5;
  overflow: hidden;
}

.gallery-zoom-btn {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
}

.gallery-nav:hover {
  background-color: white;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-counter {
  text-align: center;
  font-size: 12px;
  color: #888888;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  overflow: hidden;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: #1a1a1a;
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.product-price-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label {
  font-size: 12px;
  color: #888888;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-original {
  font-size: 14px;
  color: #888888;
  text-decoration: line-through;
}

.price-discount-badge {
  background-color: #dc2626;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.price-current {
  font-size: 28px;
  font-weight: 700;
  color: #16a34a;
}

.price-installments {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555555;
}

.price-installments svg {
  flex-shrink: 0;
}

.price-savings {
  font-size: 14px;
  color: #4338ca;
  text-decoration: underline;
}

/* Kit Selector */
.kit-selector {
  border: 1px solid #e5e7eb;
  border-top: 5px solid #4338ca;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
}

.kit-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kit-header-left svg {
  color: #4338ca;
}

.kit-header-left span {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.kit-chevron {
  color: #888888;
  transition: transform 0.3s;
}

.kit-chevron.rotated {
  transform: rotate(180deg);
}

.kit-content {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kit-content.hidden {
  display: none;
}

.kit-subtitle {
  font-size: 14px;
  color: #666666;
}

.kit-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kit-option {
  width: 100%;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  background-color: white;
  transition: all 0.2s;
}

.kit-option:hover {
  border-color: #ccc;
}

.kit-option.selected {
  border-color: #4338ca;
  background-color: #eef2ff;
}

.kit-option-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.kit-option-left {
  flex: 1;
}

.kit-option-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kit-option-name span:first-child {
  font-weight: 700;
  color: #1a1a1a;
}

.kit-badge {
  background-color: #4338ca;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.kit-option-desc {
  margin-top: 4px;
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
}

.kit-option-right {
  text-align: right;
}

.kit-option-prices {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kit-original-price {
  font-size: 12px;
  color: #888888;
  text-decoration: line-through;
}

.kit-discount {
  background-color: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.kit-current-price {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.kit-items {
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.kit-items-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.kit-items ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kit-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #555555;
}

.kit-items li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpath d='m9 11 3 3L22 4'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.buy-button {
  display: block;
  width: 100%;
  background-color: #16a34a;
  color: white;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background-color 0.2s;
}

.buy-button:hover {
  background-color: #15803d;
}

/* Product Description */
.product-description {
  max-width: 768px;
  margin: 48px auto;
  padding-top: 40px;
  padding-bottom: 64px;
  border-top: 1px solid #e5e5e5;
}

.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.description-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

.description-bold {
  font-weight: 700;
}

.description-image {
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
}

.description-image img {
  width: 100%;
  height: auto;
}

.description-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 12px;
}

.description-list {
  list-style: disc;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #555555;
}

/* Reviews Section */
.reviews-section {
  max-width: 768px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .reviews-summary {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}

.reviews-average {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.average-number {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
}

.stars-container {
  display: flex;
  gap: 2px;
}

.star {
  position: relative;
  width: 20px;
  height: 20px;
}

.star-empty {
  color: #e0e0e0;
}

.star-filled {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #d4a017;
}

.total-reviews {
  font-size: 14px;
  color: #888888;
  margin-top: 4px;
}

.reviews-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-label {
  width: 64px;
  text-align: right;
  font-size: 12px;
  color: #666666;
}

.breakdown-bar {
  flex: 1;
  height: 10px;
  background-color: #e8e8e8;
  border-radius: 9999px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background-color: #d4a017;
  border-radius: 9999px;
}

.breakdown-count {
  width: 32px;
  font-size: 12px;
  color: #888888;
}

.reviews-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.write-review-btn {
  background-color: #4338ca;
  color: white;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.write-review-btn:hover {
  background-color: #3730a3;
}

.reviews-filter {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 9999px;
  font-size: 14px;
  color: #1a1a1a;
  background-color: white;
  outline: none;
}

/* Customer Reviews Grid */
.customer-reviews {
  margin-top: 40px;
  padding-bottom: 64px;
  columns: 2;
  column-gap: 12px;
}

@media (min-width: 768px) {
  .customer-reviews {
    columns: 3;
  }
}

@media (min-width: 1024px) {
  .customer-reviews {
    columns: 4;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
  }
}

.review-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
}

.review-image {
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.review-image.tall {
  aspect-ratio: 3/4;
}

.review-image.short {
  aspect-ratio: 4/3;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.review-image:hover img {
  transform: scale(1.05);
}

.review-content {
  padding: 12px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.review-verified {
  color: #4a9eed;
  width: 16px;
  height: 16px;
}

.review-stars {
  display: flex;
  gap: 1px;
  margin-top: 4px;
}

.review-stars .star {
  width: 14px;
  height: 14px;
}

.review-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #555555;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  background-color: #f5f5f5;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 16px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.footer-section {
  border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 1024px) {
  .footer-section {
    border-bottom: none;
  }
}

.footer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
}

@media (min-width: 1024px) {
  .footer-toggle {
    cursor: default;
    padding-bottom: 12px;
  }
  
  .footer-toggle-icon {
    display: none;
  }
}

.footer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s, opacity 0.3s;
  opacity: 0;
}

.footer-section.open .footer-content {
  max-height: 500px;
  padding-bottom: 16px;
  opacity: 1;
}

@media (min-width: 1024px) {
  .footer-content {
    max-height: none;
    opacity: 1;
    padding-bottom: 0;
  }
}

.footer-content p {
  font-size: 14px;
  color: #555555;
  margin-bottom: 8px;
}

.footer-content a {
  display: block;
  font-size: 14px;
  color: #555555;
  text-decoration: underline;
  margin-bottom: 8px;
}

.footer-content a:hover {
  color: #1a1a1a;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.footer-form input:focus {
  border-color: #4338ca;
}

.footer-form button {
  background-color: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.footer-form button:hover {
  background-color: #b91c1c;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.footer-social, .footer-payments {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-social span, .footer-payments span {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  background-color: #4338ca;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-icons a:hover {
  background-color: #3730a3;
}

.payment-icons {
  display: flex;
  gap: 12px;
}

.payment-icon {
  width: 48px;
  height: 32px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #666666;
}

.footer-copyright {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 12px;
  color: #888888;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 50;
  background-color: #16a34a;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.floating-cta:hover {
  background-color: #15803d;
}

.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .lightbox img {
    max-width: 450px;
    max-height: 70vh;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}
