@font-face {
  font-family: "Lato Regular";
  src: url("fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato Black";
  src: url("fonts/Lato-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato Regular", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

.header {
  background: #000;
  color: #fff;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.top-bar {
  background: #000;
  padding: 8px 20px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-bar p {
  font-family: "Lato Black", sans-serif;
  font-weight: 900;
}

.top-nav {
  display: flex;
  gap: 20px;
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.main-header {
  padding: 15px 0;
}

.main-header .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  text-decoration: none;
}

.search-bar {
  flex: 1;
  display: flex;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: #333;
  color: #fff;
  outline: none;
}

.search-bar button {
  padding: 12px 20px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
}

.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cart-icon,
.user-icon {
  color: #fff;
  text-decoration: none;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.main-nav {
  background: #222;
  padding: 0;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

.main-nav .container {
  display: flex;
  gap: 25px;
  padding: 12px 20px;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.nav-item.promo {
  color: #ff6b6b;
  font-weight: bold;
}

.nav-item.outlet {
  color: #ffd700;
  font-weight: bold;
}

.breadcrumb {
  padding: 15px 0;
  background: #f5f5f5;
  font-size: 13px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb span {
  color: #999;
  margin: 0 5px;
}

.product-section {
  padding: 40px 0;
}

.product-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-images {
  display: flex;
  gap: 15px;
}

.thumbnail-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 380px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.thumbnail.active {
  border-color: #e74c3c;
}

.main-image {
  flex: 1;
  transform: translateX(-8px);
  position: relative;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  max-height: 900px; /* ajuste o valor */
}


.main-image img {
  max-width: 100%;
  height: auto;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
  font-weight: bold;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: bold;
}

.stars {
  color: #ff6b35;
  font-size: 18px;
}

.review-count {
  color: #666;
  font-size: 14px;
}

.price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-weight: bold;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 16px;
}

.current-price {
  font-size: 32px;
  font-weight: bold;
  color: #2ecc71;
}

.discount {
  background: #2ecc71;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.alert-box {
  background: #fff3cd;
  border-left: 4px solid #ff6b35;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  line-height: 1.3;
}

.corporate-box {
  background: #f0f0f0;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 25px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}

.corporate-box p {
  margin-bottom: 0;
}

.corporate-box a {
  color: #e74c3c;
  font-weight: bold;
}

.corporate-box small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #666;
}

.size-selector {
  margin-bottom: 25px;
}

.size-selector label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-family: "Lato Black", sans-serif;
  font-weight: 900;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-btn {
  padding: 10px 20px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.size-btn.active {
  border-color: #e74c3c;
  background: #fff;
  font-weight: bold;
}

.color-selector {
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.color-carousel {
  display: grid;
  margin-left: 0px;
  margin-right: 20px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.color-option {
  border: 1px solid #444444;
  border-radius: 4px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 165px;
  width: 100px;
  overflow: hidden;
}

.color-option.active {
  border-color: #f37053;
  box-shadow: 0 0 8px rgba(243, 112, 83, 0.5);
}

.color-option img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 0;
  padding: 10px;
  background: #fff;
  padding: 0;
  height: 80px;
}


.color-option p {
  font-size: 18px;
  line-height: 1.1; /* padrão é tipo 1.4 ou 1.6 */
  margin: 4px 0 2px 0;
  font-family: "Lato Black", sans-serif;
  font-weight: 900;
  color: #444444;
}

.color-option.active p {
  color: #f37053;
}

.color-price {
  font-size: 18px;
  font-family: "Lato Black", sans-serif;
  font-weight: 900;
  color: #444444;
  background: transparent;
  padding: 0px;
  margin: 0;
  width: 100%;
}

.color-option.active .color-price {
  color: #f37053;
}

.text-customization {
  margin-bottom: 25px;
  max-width: 100%;
  padding: 0 5px;
}

.text-customization label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
}

.text-customization input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

.text-color-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.text-color {
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.text-color.active {
  border-color: #e74c3c;
  transform: scale(1.1);
}

.no-custom-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.no-custom-btn:hover {
  background: #f5f5f5;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  max-width: 100%;
}

.add-to-cart-btn {
  flex: 1;
  font-family: "Lato Black", sans-serif;
  font-weight: 900;
  padding: 18px;
  background: #00913D;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.add-to-cart-btn:hover {
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
}

.wishlist-btn {
  width: 60px;
  padding: 18px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.wishlist-btn:hover {
  background: #f5f5f5;
}

.additional-items {
  text-align: center;
  padding: 15px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  color: #999;
  width: 95%;
}

.related-products {
  padding: 60px 0;
  background: #f9f9f9;
}

.related-products h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 24px;
}

.products-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-colors {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.buy-btn {
  width: 100%;
  padding: 12px;
  background: #2d2d2d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.description-section {
  padding: 60px 0;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header .icon {
  transition: transform 0.3s;
}

.accordion-item.active .icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 20px;
}

.accordion-content h3 {
  margin: 20px 0 10px;
  font-size: 18px;
}

.accordion-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.reviews-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.reviews-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  margin-bottom: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
}

.rating-box {
  text-align: center;
}

.rating-number {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.rating-box .stars {
  color: #ff6b35;
  font-size: 24px;
  margin-bottom: 10px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.rating-bar .bar {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar .fill {
  height: 100%;
  background: #ffd700;
}

.review-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.review-photos img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.review-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.verified {
  color: #2ecc71;
  font-size: 12px;
}

.location {
  color: #999;
  font-size: 12px;
}

.review-date {
  color: #999;
  font-size: 14px;
}

.review-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.review-item > p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.review-rating .rating-number {
  font-size: 24px;
  font-weight: bold;
}

.review-rating .stars {
  color: #ff6b35;
}

.review-images {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.review-images img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.review-product {
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
}

.review-helpful {
  color: #999;
  font-size: 13px;
}

.why-love-section {
  padding: 60px 0;
}

.why-love-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  text-align: center;
}

.feature-icon {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.feature-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.feature p {
  font-size: 14px;
  line-height: 1.6;
}

.footer {
  background: #f5f5f5;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-col p {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  color: #666;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
}

.newsletter {
  display: flex;
  margin-bottom: 20px;
}

.newsletter input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.newsletter button {
  padding: 12px 20px;
  background: #2d2d2d;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 15px;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-icon {
  font-size: 32px;
  color: #333;
  transition: color 0.3s;
}

.payment-icon:hover {
  color: #f37053;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.copyright p {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

.certifications h4 {
  margin-bottom: 15px;
  font-size: 14px;
}

.cert-logos {
  display: flex;
  gap: 10px;
}

.cert-logos img {
  height: 40px;
}

.carousel-btn {
  display: none;
}

@media (max-width: 768px) {
  * {
    max-width: 100vw;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 10px;
    overflow-x: hidden;
    max-width: 100%;
  }

  .top-bar {
    padding: 6px 10px;
    font-size: 10px;
    justify-content: center;
  }

  .top-bar p {
    font-family: "Lato Black", sans-serif;
    font-weight: 900;
  }

  .top-nav {
    display: none;
  }

  .main-header {
    padding: 8px 0;
  }

  .main-header .container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hamburger-menu {
    display: flex;
    order: 1;
  }

  .logo {
    order: 2;
    flex: 1;
  }

  .header-icons {
    order: 3;
    gap: 10px;
  }

  .search-bar {
    order: 4;
    width: 100%;
    flex: none;
    margin-top: 5px;
  }

  .search-bar input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .search-bar button {
    padding: 8px 12px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: #222;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav .container {
    flex-direction: column;
    padding: 70px 15px 15px;
    gap: 0;
  }

  .nav-item {
    padding: 12px 8px;
    border-bottom: 1px solid #333;
    font-size: 14px;
  }

  .breadcrumb {
    padding: 8px 0;
    font-size: 11px;
    overflow-x: auto;
  }

  .product-section {
    padding: 15px 0;
  }

  .product-section .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-images {
    flex-direction: column-reverse;
  }

  .thumbnail-carousel {
    flex-direction: row;
    width: 100%;
  }

  .thumbnail-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    max-height: none;
  }

  .thumbnail {
    min-width: 50px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .main-image {
    min-height: 250px;
    padding: 15px;
  }

  .product-info h1 {
    font-size: 18px;
  }

  .rating {
    gap: 8px;
  }

  .stars {
    font-size: 14px;
  }

  .review-count {
    font-size: 12px;
  }

  .price {
    gap: 10px;
  }

  .old-price {
    font-size: 14px;
  }

  .current-price {
    font-size: 24px;
  }

  .discount {
    font-size: 12px;
    padding: 3px 6px;
  }

  .alert-box {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    width: 95%;
  }

  .corporate-box {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    width: 95%;
  }

  .corporate-box small {
    font-size: 10px;
    margin-top: 2px;
  }

  .size-selector label {
    font-size: 13px;
  }

  .size-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  .color-selector {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .color-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .color-carousel::-webkit-scrollbar {
    display: none;
  }

  .color-option {
    padding: 0;
    min-width: 100px;
    
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .color-option img {
    height: 100px;
    padding: 2px;
  }

  .color-option p {
    font-size: 15px;
    margin: 2px 0;
    font-family: "Lato Black", sans-serif;
    font-weight: 900;
  }

  .color-price {
    font-size: 18px;
    padding: 2px;
    font-family: "Lato Black", sans-serif;
    font-weight: 900;
  }

  .text-customization {
    padding: 0 2px;
  }

  .text-customization label {
    font-size: 13px;
  }

  .text-customization input {
    padding: 10px;
    font-size: 13px;
    width: 95%;
  }

  .text-color {
    width: 32px;
    height: 32px;
  }

  .no-custom-btn {
    padding: 10px;
    font-size: 13px;
    width: 95%;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 2px;
  }

  .add-to-cart-btn {
    padding: 14px;
    font-size: 14px;
    width: 95%;
  }

  .wishlist-btn {
    width: 95%;
    padding: 14px;
  }

  .related-products {
    padding: 30px 0;
  }

  .related-products h2 {
    font-size: 18px;
  }

  .products-slider {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .description-section {
    padding: 30px 0;
  }

  .accordion-header {
    padding: 15px;
    font-size: 16px;
  }

  .reviews-section {
    padding: 30px 0;
  }

  .reviews-section h2 {
    font-size: 20px;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .rating-number {
    font-size: 36px;
  }

  .review-photos {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-item {
    padding: 15px;
  }

  .review-header {
    flex-direction: column;
    gap: 5px;
  }

  .review-item h3 {
    font-size: 16px;
  }

  .why-love-section {
    padding: 30px 0;
  }

  .why-love-section h2 {
    font-size: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer {
    padding: 30px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newsletter {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter input,
  .newsletter button {
    border-radius: 4px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .payment-icon {
    font-size: 28px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .color-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  will-change: opacity, visibility;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.popup-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.popup-modal {
  background: white;
  border-radius: 12px;
  padding: 30px 25px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.popup-overlay:not(.hidden) .popup-modal {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px) translateZ(0);
    opacity: 0;
  }
  to {
    transform: translateY(0) translateZ(0);
    opacity: 1;
  }
}

.popup-modal h2 {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 25px;
  line-height: 1.3;
  color: #000;
}

.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: #000;
}

.wheel-section {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 50% 0%, 85.35% 14.65%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 45px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: white;
  text-align: center;
  line-height: 1.3;
}

.section-1 {
  background: #2d2d2d;
  transform: rotate(0deg);
}

.section-2 {
  background: #1a1a1a;
  transform: rotate(45deg);
}

.section-2 span {
  transform: rotate(0deg);
  display: inline-block;
}

.section-3 {
  background: #2d2d2d;
  transform: rotate(90deg);
}

.section-3 span {
  transform: rotate(0deg);
  display: inline-block;
}

.section-4 {
  background: #c41e23;
  transform: rotate(135deg);
}

.section-4 span {
  transform: rotate(0deg);
  display: inline-block;
  font-size: 13px;
}

.section-5 {
  background: #2d2d2d;
  transform: rotate(180deg);
}

.section-5 span {
  transform: rotate(0deg);
  display: inline-block;
  font-size: 11px;
}

.section-6 {
  background: #1a1a1a;
  transform: rotate(225deg);
}

.section-6 span {
  transform: rotate(0deg);
  display: inline-block;
}

.section-7 {
  background: #2d2d2d;
  transform: rotate(270deg);
}

.section-7 span {
  transform: rotate(0deg);
  display: inline-block;
}

.section-8 {
  background: #1a1a1a;
  transform: rotate(315deg);
}

.section-8 span {
  transform: rotate(0deg);
  display: inline-block;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: #c41e23;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: white;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #c41e23;
  z-index: 101;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-pointer::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: #c41e23;
  border-radius: 50%;
}

.wheel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wheel.spinning {
  animation: spin 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1800deg);
  }
}

.timer-container {
  margin: 20px 0;
}

.timer-container p {
  font-size: 13px;
  margin-bottom: 8px;
  color: #666;
  font-weight: 600;
}

.countdown {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #333;
}

.countdown span {
  color: #c41e23;
}

.popup-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s;
}

.popup-btn.primary {
  background: #c41e23;
  color: white;
}

.popup-btn.primary:hover {
  background: #a01820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 35, 0.3);
}

.popup-btn.primary:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

.popup-btn.secondary {
  background: white;
  color: #333;
  border: 2px solid #333;
}

.popup-btn.secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.popup-modal {
    position: relative;
    z-index: 10000;
}


@media (max-width: 768px) {
  .popup-modal {
    padding: 25px 20px;
  }

  .popup-modal h2 {
    font-size: 18px;
  }

  .wheel-container {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .wheel-center {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .color-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
