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

:root {
  --primary-color: #ea1d2c;
  --secondary-color: #ff6b6b;
  --dark-color: #2d3436;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --success-color: #00b894;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  color: var(--dark-color);
  background-color: var(--light-gray);
  line-height: 1.6;
}
.logo {
  width: 100px;
  /* height: 100px; */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow);
  /* position: sticky; */
  top: 0;
  z-index: 100;
}

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

.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-img {
  max-height: 50px;
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.header-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.delivery-time,
.rating {
  font-size: 0.9rem;
  color: var(--dark-color);
  font-weight: 500;
}

/* Banner */
.banner {
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    url("img/capa.jpeg") center center;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.banner .container {
  position: relative;
  z-index: 2;
}

.banner-content {
  text-align: center;
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
  padding-bottom: 120px;
}

/* Categories */
.categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-btn {
  padding: 0.7rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  color: var(--dark-color);
}

.category-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}

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

.product-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-info {
  padding: 1.2rem;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.add-to-cart-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.add-to-cart-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

/* Cart Button */
.cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(234, 29, 44, 0.4);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 99;
}

.cart-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(234, 29, 44, 0.5);
}

.cart-icon {
  font-size: 1.5rem;
}

.cart-text {
  font-weight: 600;
  font-size: 1rem;
}

.cart-count {
  background: white;
  color: var(--primary-color);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-total {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--dark-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.close-btn:hover {
  color: var(--dark-color);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-image {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quantity-btn {
  background: var(--light-gray);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.quantity-btn:hover {
  background: var(--primary-color);
  color: white;
}

.cart-item-quantity {
  font-weight: 700;
  font-size: 1.1rem;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.total-label {
  font-weight: 600;
}

.total-value {
  font-weight: 700;
  color: var(--primary-color);
}

.checkout-btn {
  width: 100%;
  background: var(--success-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.checkout-btn:hover {
  background: #019874;
  transform: scale(1.02);
}

/* Product Modal */
.product-modal-content {
  max-width: 600px;
  max-height: 85vh;
}

.product-detail-image {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

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

.product-detail-image .product-image-fallback {
  font-size: 6rem;
}

.product-modal-body {
  overflow-y: auto;
  max-height: 85vh;
}

.product-detail-info {
  padding: 1.5rem;
}

.product-detail-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

.product-detail-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.size-selector {
  margin-bottom: 1.5rem;
}

.size-selector h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.size-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.size-option:hover {
  border-color: var(--primary-color);
  background: rgba(234, 29, 44, 0.05);
}

.size-option.selected {
  border-color: var(--primary-color);
  background: rgba(234, 29, 44, 0.1);
}

.size-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.size-price {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
}

.add-to-cart-detail-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.add-to-cart-detail-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .banner {
    padding: 2rem 0;
    min-height: 180px;
  }

  .banner-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem 0;
  }

  .logo-img {
    max-height: 40px;
    height: 50px;
  }

  .header-info {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .categories {
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    padding: 0 5px;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-image {
    height: 150px;
  }

  .product-image-fallback {
    font-size: 2.5rem;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .product-description {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .add-to-cart-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .cart-button {
    bottom: 15px;
    right: 15px;
    left: 15px;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
  }

  .cart-text {
    font-size: 0.9rem;
  }

  .cart-count {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }

  .cart-total {
    font-size: 1rem;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    margin: 10px;
    border-radius: 12px;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .cart-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
  }

  .cart-item-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .cart-item-price {
    font-size: 0.9rem;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .cart-item-quantity {
    font-size: 1rem;
  }

  .modal-footer {
    padding: 1rem;
  }

  .total-section {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .checkout-btn {
    padding: 0.9rem;
    font-size: 1rem;
  }

  .product-modal-content {
    max-width: 95%;
    margin: 10px;
  }

  .product-detail-image {
    height: 180px;
    font-size: 3.5rem;
  }

  .product-detail-image .product-image-fallback {
    font-size: 3.5rem;
  }

  .product-detail-info {
    padding: 1rem;
  }

  .product-detail-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .product-detail-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .size-selector h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .size-option {
    padding: 0.8rem 1rem;
  }

  .size-name {
    font-size: 0.95rem;
  }

  .size-price {
    font-size: 0.95rem;
  }

  .add-to-cart-detail-btn {
    padding: 0.9rem;
    font-size: 1rem;
  }
}

/* Responsive para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .product-image {
    height: 190px;
  }

  .product-detail-image {
    height: 220px;
  }
}

/* Responsive para telas muito pequenas */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .banner {
    padding: 1.5rem 0;
    min-height: 150px;
  }

  .banner-content h2 {
    font-size: 1.4rem;
  }

  .banner-content p {
    font-size: 0.8rem;
  }

  .header-content {
    gap: 0.3rem;
    padding: 0.3rem 0;
  }

  .logo-img {
    max-height: 35px;
    height: 40px;
  }

  .header-info {
    gap: 0.8rem;
    font-size: 0.75rem;
  }

  .categories {
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0;
  }

  .category-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 15px;
  }

  .products-grid {
    gap: 0.8rem;
  }

  .product-image {
    height: 130px;
  }

  .product-image-fallback {
    font-size: 2rem;
  }

  .product-info {
    padding: 0.8rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .add-to-cart-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .cart-button {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
  }

  .cart-text {
    font-size: 0.8rem;
  }

  .cart-count {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .cart-total {
    font-size: 0.9rem;
  }

  .modal-content {
    width: 98%;
    margin: 5px;
  }

  .modal-header {
    padding: 0.8rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 0.8rem;
  }

  .cart-item {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .cart-item-image {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .cart-item-name {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 0.8rem;
  }

  .quantity-btn {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }

  .cart-item-quantity {
    font-size: 0.9rem;
  }

  .modal-footer {
    padding: 0.8rem;
  }

  .total-section {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .checkout-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .product-modal-content {
    max-width: 98%;
    margin: 5px;
  }

  .product-detail-image {
    height: 150px;
    font-size: 2.8rem;
  }

  .product-detail-image .product-image-fallback {
    font-size: 2.8rem;
  }

  .product-detail-info {
    padding: 0.8rem;
  }

  .product-detail-name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .product-detail-description {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .size-selector h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .size-option {
    padding: 0.6rem 0.8rem;
  }

  .size-name {
    font-size: 0.9rem;
  }

  .size-price {
    font-size: 0.9rem;
  }

  .add-to-cart-detail-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Promoção Styles */
.promotion-card {
  border: 2px solid #ff6b6b;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  position: relative;
  overflow: hidden;
}

.promotion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ea1d2c, #ff6b6b);
  animation: shimmer 2s infinite;
}

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

.promotion-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ea1d2c);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.promotion-badge::after {
  content: " ⏰";
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.promotion-price {
  color: #ea1d2c !important;
  font-weight: bold;
  font-size: 1.1rem;
}

.promotion-btn {
  background: linear-gradient(45deg, #ff6b6b, #ea1d2c) !important;
  color: white !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promotion-btn:hover {
  background: linear-gradient(45deg, #ea1d2c, #ff6b6b) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 29, 44, 0.3);
}

.promotion-info {
  background: #fff5f5;
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.promotion-info h3 {
  color: #ea1d2c;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.promotion-info ul {
  list-style: none;
  padding: 0;
}

.promotion-info li {
  padding: 0.3rem 0;
  color: #2d3436;
  position: relative;
  padding-left: 1.5rem;
}

.promotion-info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00b894;
  font-weight: bold;
}

/* Tamanho em Promoção */
.promotion-size {
  border: 2px solid #ff6b6b !important;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%) !important;
}

.promotion-size.selected {
  background: linear-gradient(135deg, #ffecec 0%, #ffd4d4 100%) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Carrinho - Item Grátis */
.free-item {
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  border: 2px solid #00b894;
  border-radius: 8px;
  position: relative;
}

.free-badge {
  background: linear-gradient(45deg, #00b894, #00a085);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  display: inline-block;
}

.free-price {
  color: #00b894 !important;
  font-weight: bold;
  font-size: 1rem;
}

/* Responsive para promoções */
@media (max-width: 768px) {
  .promotion-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
}
