/* ============ OVERLAY & SHEET ============ */
.product-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6); /* var(--text-dark) with opacity */
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 999;
}

.product-sheet {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ============ CLOSE BUTTON ============ */
.sheet-close {
  position: absolute;
  right: 16px;
  top: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--amber-light);
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  transition: all 0.2s;
  z-index: 10;
}

.sheet-close:hover {
  background: var(--cream-dark);
  transform: rotate(90deg);
}

/* ============ IMAGE ============ */
.sheet-image {
  text-align: center;
  padding: 40px 20px 20px;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--white) 100%);
}

.sheet-image img {
  max-width: 85%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

/* ============ BODY CONTENT ============ */
.sheet-body {
  padding: 24px;
}

.sheet-body h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--green-dark);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
}

.product-price {
  margin-top: 12px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber);
  font-family: var(--font-sans);
}

.product-price span {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}

/* ============ STOCK BADGE ============ */
.stock-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
    background:#e8f7eb;
    color:#22863a;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.stock-badge.out {
  background: var(--cream-dark);
  color: var(--text-mid);
}

/* ============ WHATSAPP SHARE ============ */
.share-wa {
  margin-top: 20px;
}

.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #25D366; /* WhatsApp brand color, harmonizes with green palette */
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.whatsapp-share-btn:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.whatsapp-share-btn i {
  font-size: 1.2rem;
}

/* ============ INFO CARD ============ */
.info-card {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  color: var(--text-mid);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-row strong {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1rem;
}

/* ============ ORIGIN HIGHLIGHT ============ */
.origin-highlight {
  margin-top: 24px;
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  color: var(--green-dark);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ PRODUCT DESCRIPTION ============ */
.product-description {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.product-description h2 {
  font-family: var(--font);
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.product-description-content {
  font-family: var(--font-sans);
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 1rem;
}

.product-description-content p {
  margin-bottom: 16px;
}

.product-description-content p:last-child {
  margin-bottom: 0;
}

/* ============ FOOTER & ACTIONS ============ */
.sheet-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.btn-add-cart {
  width: 100%;
  border: none;
  background: var(--green-mid);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-add-cart:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.quantity-controls button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quantity-controls button:hover {
  background: var(--green-dark);
}

.quantity-controls span {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: var(--green-dark);
  font-family: var(--font-sans);
}

/* ============ DESKTOP ADJUSTMENTS ============ */
@media (min-width: 768px) {
  .product-overlay {
    align-items: center;
    padding: 20px;
  }

  .product-sheet {
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }

  .sheet-image {
    padding: 30px 30px 10px;
  }

  .sheet-body {
    padding: 30px;
  }

  .sheet-footer {
    padding: 24px 30px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}