/* styles.css – diseño limpio y responsivo */
body {
  margin: 0;
  font-family: sans-serif;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
.navbar {
  display: flex;
  padding: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  height: 40px;
}
.navbar nav a {
  margin: 0 1rem;
}
.btn-contact {
  padding: 0.5rem 1rem;
  border: 2px solid #333;
  border-radius: 4px;
}
.hero {
  background: url('/images/warichos_home.png') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text {
  background: rgba(255,255,255,0.8);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
}
.btn {
  display: inline-block;
  background: #c9a86e;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-top: 1rem;
}
.about, .products, .testimonials, .contact {
  padding: 4rem 2rem;
}
.about {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.about-img img {
  width: 100%;
  border-radius: 8px;
}
.cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  margin: 1rem;
}
.card p {
  margin: 0 1rem 1rem;
}
.testimonials .reviews {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.review {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.review img {
  border-radius: 50%;
  height: 60px;
  margin-bottom: 0.5rem;
}
.review h3 {
  margin: 0.5rem 0;
}
.review span {
  display: block;
  font-size: 0.9rem;
  color: #666;
}
.contact-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact form {
  flex: 2;
  display: grid;
  gap: 1rem;
}
.contact input, .contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
.contact-info {
  flex: 1;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
}
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.shop-section {
  padding: 4rem 2rem;
}

.product-carousel-wrapper {
  position: relative;
  margin-top: 2rem;
}

.product-carousel-wrapper.empty .product-carousel {
  display: none;
}

.product-carousel-wrapper.empty .product-carousel-empty {
  display: block;
}

.product-carousel-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1rem;
}

.product-carousel .carousel-inner {
  padding: 1rem 3rem;
}

.product-carousel .carousel-item {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
  width: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
  background-color: #c9a86e;
  border-radius: 50%;
  background-size: 30px 30px;
  padding: 1.5rem;
}

.product-carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.product-carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.product-carousel .carousel-control-prev:focus,
.product-carousel .carousel-control-next:focus {
  outline: none;
  box-shadow: none;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  height: 100%;
}
.product img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.product .options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.product .option-label {
  font-size: 0.65rem;
  width: 100%;
  margin-top: 0.25rem;
}
.product select,
.product input[type='number'] {
  flex: 1 1 100%;
  min-width: 0;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.product button {
  background: #c9a86e;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .product-carousel .carousel-inner {
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .product-carousel .carousel-inner {
    padding: 1rem 1.5rem;
  }

  .product-carousel .carousel-control-prev,
  .product-carousel .carousel-control-next {
    width: 2.5rem;
  }

  .product-carousel .carousel-control-prev-icon,
  .product-carousel .carousel-control-next-icon {
    padding: 1.2rem;
  }
}

@media (max-width: 576px) {
  .product-carousel .carousel-inner {
    padding: 1rem;
  }

  .product-carousel .carousel-control-prev,
  .product-carousel .carousel-control-next {
    display: none;
  }
}

.product-type-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f7f2e8;
  color: #a0702e;
  font-size: 0.7rem;
  font-weight: 600;
}

.product-features {
  text-align: left;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px dashed #e2d5c0;
  border-radius: 6px;
  background: #fffdf9;
}

.product-features .feature-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a0702e;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.feature-list li {
  font-size: 0.8rem;
  color: #444;
}

.feature-list .feature-name {
  font-weight: 600;
}

.cart-icon {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  background: #c9a86e;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}


.cart-box {
  display: none;
  position: fixed;
  top: 4rem;
  right: 1.5rem;
  background: #fff8f0;
  border: 2px solid #d6a97a;
  border-radius: 1rem;
  padding: 1rem;
  width: 380px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  font-family: 'Quicksand', sans-serif;
}

.cart-box.active {
  display: block;
}

.cart-item {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.cart-item-desc {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

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

.cart-item input[type="number"] {
  width: 3rem;
}

.cart-item .remove-item {
  background: none;
  border: none;
  color: #c00;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.cart-total {
  font-weight: bold;
  margin-top: 0.5rem;
  text-align: right;
  font-size: 1rem;
}

.cart-order-total {
  font-weight: bold;
  text-align: right;
  font-size: 1rem;
}

.cart-summary {
  display: flex;
  gap: 0.5rem;
}
.cart-summary > div {
  flex: 1;
}

.cart-empty {
  text-align: center;
  font-weight: bold;
  padding: 1rem 0;
}

.checkout-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  background-color: #d6a97a;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background-color: #c28c54;
}

#checkout-link {
  display: none;
}

#shipping-msg {
  display: none;
}

#shipping-section,
#payment-section {
  margin-top: 0.75rem;
}

#payment-options label {
  display: block;
  margin-bottom: 0.25rem;
}

#finalize-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.shipping-msg {
  text-align: center;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.shipping-free {
  color: green;
}

.shipping-missing {
  background-color: #ffb3b3;
  color: white;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  display: inline-block;
}

.ship-logo {
  max-height: 40px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .cart-box {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-width: calc(100% - 1rem);
    border-radius: 0.5rem;
  }
  .cart-item {
    grid-template-columns: auto 1fr auto;
  }
  .cart-item .item-controls {
    width: auto;
    justify-content: flex-start;
  }
  .cart-summary {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (max-width: 576px) {
  .swal2-popup {
    width: 90% !important;
  }
}

.swal2-popup {
  border-radius: 1rem;
  font-size: 1rem;
}

.order-summary-list {
  list-style: disc;
  padding-left: 1.5rem;
}
