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

html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
.header {
  background-color: #fff5e8;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.logo-container {
  flex-shrink: 0;
}

.logo {
  height: 1.5rem;
  width: auto;
}

.search-container {
  display: none;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 400px;
}

@media (min-width: 768px) {
  .search-container {
    display: flex;
  }
}

.search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
  font-size: 0.875rem;
  outline: none;
}

.search-input:focus {
  border-color: #3d5a4f;
}

.search-button {
  padding: 0.5rem 1.5rem;
  background-color: #3d5a4f;
  color: white;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #2d4a3f;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #4b5563;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.header-button:hover {
  color: #3d5a4f;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.header-button-text {
  display: none;
}

@media (min-width: 768px) {
  .header-button-text {
    display: inline;
  }
}

/* Navigation */
.navigation {
  background-color: #3d5a4f;
  color: white;
}

.nav-links {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 0;
  overflow-x: auto;
}

.nav-link {
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

/* Gallery */
.gallery-section {
  width: 100%;
}

.gallery-container {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .gallery-container {
    flex-direction: row;
  }
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .thumbnails {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.thumbnail {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s;
  padding: 0;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #3d5a4f;
}

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

.main-image-container {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f9fafb;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .product-title {
    font-size: 1.875rem;
  }
}

/* Price Section */
.price-section {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.price-original-container {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-original {
  font-size: 1.2rem;
  color: #dc2626;
  text-decoration: line-through;
  font-weight: bold;
  line-height: 0.001;
}

.badge-discount {
  background-color: #dc2626;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-current-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.price-current {
  font-size: 2rem;
  font-weight: bold;
  color: #3d5a4f;
}

@media (min-width: 640px) {
  .price-current {
    font-size: 2.25rem;
  }
}

.discount-badge {
  background-color: #dc2626;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 3.5rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.installment-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.font-semibold {
  font-weight: 600;
}

/* Shipping Info */
.shipping-info {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.shipping-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.correios-logo {
  width: 2rem;
  height: auto;
  flex-shrink: 0;
}

.shipping-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

@media (min-width: 640px) {
  .shipping-text {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
}

.shipping-title {
  font-size: 0.875rem;
  font-weight: bold;
  color: #1f2937;
}

.shipping-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.shipping-time {
  font-size: 0.875rem;
  font-weight: 900;
  color: #00B400;
  margin-left: 2.60rem;
  line-height: 0.2;
  letter-spacing: -0.025em;
}

/* Color Section */
.color-section {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.color-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .color-options {
    flex-direction: row;
  }
}

.color-option {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.2s;
  background-color: white;
}

.color-option:hover {
  border-color: #3d5a4f;
}

.color-option.active {
  border-color: #3d5a4f;
  background-color: #f0fdf4;
}

.color-name {
  font-size: 0.875rem;
  color: #1f2937;
}

/* Quantity Section */
.quantity-section {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.quantity-button {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  background-color: white;
  font-size: 1.25rem;
  font-weight: bold;
  color: #3d5a4f;
  transition: background-color 0.2s;
}

@media (min-width: 640px) {
  .quantity-button {
    width: 3rem;
    height: 3rem;
  }
}

.quantity-button:first-child {
  border-radius: 0.375rem 0 0 0.375rem;
}

.quantity-button:last-child {
  border-radius: 0 0.375rem 0.375rem 0;
}

.quantity-button:hover {
  background-color: #f3f4f6;
}

.quantity-input {
  width: 3rem;
  height: 2.5rem;
  text-align: center;
  border: 1px solid #d1d5db;
  border-left: none;
  border-right: none;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

@media (min-width: 640px) {
  .quantity-input {
    width: 4rem;
    height: 3rem;
  }
}

/* Buy Button */
.buy-button {
  width: 100%;
  padding: 1rem 2rem;
  background-color: #3d5a4f;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .buy-button {
    font-size: 1.125rem;
  }
}

.buy-button:hover {
  background-color: #2d4a3f;
}

/* Product Tabs */
.product-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-top: 1rem;
}

.tab-button {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-button:hover {
  color: #3d5a4f;
}

.tab-button.active {
  color: #3d5a4f;
  border-bottom-color: #3d5a4f;
}

/* Content Sections */
.gift-section,
.description-section,
.guarantee-section {
  margin: 3rem 0;
  text-align: center;
}

.gift-image,
.description-image,
.guarantee-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
}

/* Footer */
.footer {
  background-color: #f9fafb;
  margin-top: 4rem;
}

/* Benefits Bar */
.benefits-bar {
  background-color: white;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-icon {
  width: 2rem;
  height: 2rem;
  color: #3d5a4f;
  flex-shrink: 0;
}

.benefit-text {
  flex: 1;
}

.benefit-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.benefit-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Main Footer */
.footer-main {
  background-color: #3d5a4f;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list a {
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.footer-list a:hover {
  opacity: 0.8;
}

.footer-list li {
  font-size: 0.875rem;
}

/* Payment Icons */
.payment-icons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-icon {
  width: 3rem;
  height: auto;
  background-color: white;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

/* Verification Badges */
.verification-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-item {
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Footer Bottom */
.footer-bottom {
  background-color: #2d4a3f;
  color: white;
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: center;
  }
}

.poky-badge {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Utilities */
@media (max-width: 767px) {
  .container {
    padding: 0 0.75rem;
  }

  .main-content {
    padding: 1rem 0;
  }

  .product-grid {
    gap: 1.5rem;
  }
}
