/* =========================================================
   Components
   ========================================================= */

.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--text);
}

.cart-display {
  font-size: 1rem;
  background: #ffeb3b;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: bold;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-image img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.product-price {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.product-price .current {
  color: #e53935;
  font-weight: bold;
}

.product-price .original {
  color: #999;
  text-decoration: line-through;
}

.product-rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.add-to-cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
}

.add-to-cart-btn.added {
  background: var(--success);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-btn {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.checkout-btn:hover {
  background: #388e3c;
}

.account-menu {
  position: absolute;
  top: 110%;
  right: 0;

  display: none;
  flex-direction: column;
  gap: 0.5rem;

  background: white;
  border: 1px solid #ddd;
  border-radius: var(--radius);

  min-width: 150px;
  padding: 0.5rem;

  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: var(--z-dropdown);
}

.account-menu.active {
  display: flex;
}

.account-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: block;
  padding: 0.5rem;
}

.account-menu a:hover {
  color: var(--primary);
  background-color: #f0f0f0;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pagination-controls button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-controls button.active-page {
  background: var(--primary);
  color: white;
  font-weight: bold;
  border-color: var(--primary-dark);
}



.modal-slider {
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.modal-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #eee;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.prev-slide {
  left: 0;
}

.next-slide {
  right: 0;
}

.addToCart {
  width: 100%;
  background-color: #2563eb;
  color: white;
  padding: 8px;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.addToCart:hover:not(:disabled) {
  background-color: #1e40af;
}

.addToCart:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(37, 211, 102, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.2s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #128C7E;
}

.whatsapp-btn i {
  font-size: 1.8rem;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  display: block;
}

#productImageContainer {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 16rem;
}

#productImage {
  transition: transform 0.2s;
}

#productImageContainer:hover #zoomLens {
  display: block;
}

#zoomLens {
  display: none;
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}

#zoomImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  display: none;
  z-index: 5;
}

#productImageContainer:hover #zoomImage {
  display: block;
}