.store-container {
  padding: 6rem 0;
  text-align: center;
}

.store-header {
  margin-bottom: 2rem;
}

.store-header__title {
  font-size: 2.5rem;
  font-weight: bold;
}

.store-header__subtitle {
  font-size: 1.125rem;
  color: #555;
}

.store-products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card__image {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5a5f;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
}

.product-card__content {
  padding: 15px;
  text-align: left;
}

.product-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.product-card__description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.product-card__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.5rem;
  font-weight: bold;
  color: #212121;
}

.price-unit {
  font-size: 0.875rem;
  color: #888;
}

.product-card__box-size {
  margin-bottom: 1rem;
}

.product-card__box-size label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.875rem;
}

.box-size-select-card {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.875rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.box-size-select-card:focus {
  outline: none;
  border-color: #1976d2;
}

.product-card__quantity {
  margin-bottom: 1rem;
}

.product-card__quantity label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.875rem;
}

.product-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-add-to-cart,
.btn-mercadolibre,
.btn-view-details {
  flex: 1;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-to-cart {
  background-color: #1976d2;
}

.btn-add-to-cart:hover {
  background-color: #125a9e;
}

.btn-view-details {
  background-color: #757575;
}

.btn-view-details:hover {
  background-color: #616161;
}

.btn-mercadolibre {
  background-color: #fff159;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-mercadolibre:hover {
  background-color: #f0e44a;
  color: #333;
}

.ml-logo {
  width: 16px;
  height: 16px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: #555;
}

.quantity-btn:hover {
  background: #f8f9fa;
  border-color: #1976d2;
  color: #1976d2;
}

.quantity-input {
  width: 60px;
  text-align: center;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  background: white;
  transition: border-color 0.3s ease;
}

.quantity-input:focus {
  outline: none;
  border-color: #1976d2;
}

.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-modal__content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.checkout-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkout-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.checkout-modal__body {
  max-height: 70vh;
  overflow-y: auto;
}

.checkout-steps {
  display: flex;
  margin-bottom: 20px;
}

.checkout-step {
  flex: 1;
  position: relative;
  text-align: center;
}

.step-number {
  background-color: #1976d2;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  font-size: 0.875rem;
}

.step-label {
  font-size: 0.875rem;
}

.checkout-step.active .step-number {
  background-color: #ff5a5f;
}

.checkout-content {
  margin-bottom: 20px;
}

.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
}

.checkout-actions {
  text-align: right;
}

.btn-back,
.btn-next {
  background-color: #1976d2;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-next {
  background-color: #ff5a5f;
}

.btn-next:hover,
.btn-back:hover {
  opacity: 0.9;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1976d2;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invoice-data {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Order Summary */
.order-summary {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
}

.summary-section {
  margin-bottom: 1rem;
}

.summary-section h4 {
  margin-bottom: 0.5rem;
  color: #333;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.cost-breakdown {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cost-row.total {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-method {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.payment-method:hover {
  border-color: #1976d2;
}

.payment-method label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.payment-icon {
  font-size: 1.5rem;
}

.payment-note {
  background: #e3f2fd;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  color: #1976d2;
}

.btn-process-payment {
  background: #4caf50;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-process-payment:hover {
  background: #45a049;
}

.btn-process-payment:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Cart Items */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-item__image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item__details {
  flex: 1;
}

.cart-item__details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.cart-item__price {
  color: #1976d2;
  font-weight: bold;
  margin: 0.25rem 0;
}

.cart-item__cans {
  color: #666;
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item__remove {
  background: #f44336;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cart-item__remove:hover {
  background: #d32f2f;
}

.cart-empty {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

/* Product Details Modal */
.product-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-details-modal__content {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.product-details-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.product-details-modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.product-details-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.product-details-modal__close:hover {
  background-color: #f0f0f0;
}

.product-details-modal__body {
  padding: 2rem;
}

.product-details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-height: calc(100vh - 180px);
}

.product-details-image {
  position: relative;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  min-height: 400px;
}

.product-details-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.product-details-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f9f9f9;
}

.product-details-info::-webkit-scrollbar {
  width: 6px;
}

.product-details-info::-webkit-scrollbar-track {
  background: #f9f9f9;
  border-radius: 10px;
}

.product-details-info::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.product-details-info::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff5a5f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: bold;
}

/* Removed duplicate - now handled above */

.product-details-info h3 {
  font-size: 1.75rem;
  margin: 0;
  color: #333;
  font-weight: bold;
}

.product-details-description {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.product-details-price {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0;
}

.product-details-price .price-current {
  font-size: 2rem;
  font-weight: bold;
  color: #1976d2;
}

.product-details-price .price-unit {
  font-size: 1rem;
  color: #888;
}

.product-details-specs,
.product-details-benefits {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.product-details-specs h4,
.product-details-benefits h4 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #333;
}

.product-details-specs ul,
.product-details-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-details-specs li,
.product-details-benefits li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  color: #555;
}

.product-details-specs li:last-child,
.product-details-benefits li:last-child {
  border-bottom: none;
}

.product-details-specs li strong {
  color: #333;
}

.product-details-benefits li::before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Product Details Purchase Section */
.product-details-purchase {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid #e9ecef;
}

.purchase-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.purchase-option:last-of-type {
  margin-bottom: 0;
}

.purchase-option label {
  font-weight: 600;
  color: #333;
  min-width: 140px;
  font-size: 0.9rem;
}

.box-size-select {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.box-size-select:focus {
  outline: none;
  border-color: #1976d2;
}

.purchase-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.purchase-summary span {
  font-size: 0.9rem;
  color: #666;
}

.purchase-summary strong {
  color: #1976d2;
  font-weight: 600;
}

.product-details-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-add-to-cart-details {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
  flex: 1;
  justify-content: center;
}

.btn-add-to-cart-details:hover {
  background-color: #125a9e;
}

.btn-mercadolibre-details {
  background-color: #fff159;
  color: #333;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
  flex: 1;
  justify-content: center;
  text-decoration: none;
}

.btn-mercadolibre-details:hover {
  background-color: #f0e44a;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .store-products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }
  
  .product-card__actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .product-details-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 150px);
  }
  
  .product-details-image {
    height: 250px;
    min-height: 250px;
  }
  
  .product-details-info {
    max-height: calc(100vh - 450px);
  }
  
  .purchase-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .purchase-option label {
    min-width: auto;
    width: 100%;
  }
  
  .box-size-select {
    width: 100%;
  }
  
  .purchase-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .product-details-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .checkout-modal__content {
    width: 95%;
    max-width: none;
    margin: 1rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .payment-methods {
    gap: 0.5rem;
  }
  
  .checkout-actions {
    text-align: center;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .cart-item__details {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .store-products {
    grid-template-columns: 1fr;
  }
  
  .store-header__title {
    font-size: 2rem;
  }
  
  .product-card__content {
    padding: 12px;
  }
  
  .checkout-modal__content {
    padding: 15px;
  }
  
  .checkout-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .checkout-step {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .step-number {
    margin: 0;
  }
}
