/* Small additions on top of the original store CSS: piece / carton pricing. */

.original-product-body .carton-line { display: block; margin-top: 3px; font-size: 11.5px; color: #8e7768; }
.original-product-body .carton-line b { color: var(--brand-maroon); font-weight: 700; }

.unit-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -6px 0 16px; max-width: 460px; }
.unit-switch button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; text-align: right; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.unit-switch button span { font-size: 13px; color: #666; }
.unit-switch button b { font-size: 15px; color: var(--brand-maroon); }
.unit-switch button.active { border-color: var(--brand-maroon); background: var(--brand-cream); }

.detail-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.detail-thumbs button { width: 64px; height: 64px; padding: 3px; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.detail-thumbs button.active { border-color: var(--brand-maroon); }
.detail-thumbs img { width: 100% !important; height: 100% !important; object-fit: contain; }

.cart-item-info .unit-tag { display: inline-block; width: fit-content; margin: 2px 0 4px; padding: 1px 10px; border-radius: 20px; font-size: 11.5px; background: #f1f1f1; color: #666; }
.cart-item-info .unit-tag.carton { background: var(--brand-cream); color: var(--brand-maroon); font-weight: 700; }

.wholesale-card-body .wholesale-price { color: #8e7768; }
.wholesale-card-body .wholesale-price b { color: var(--brand-maroon); font-size: 15px; }
.wholesale-select.active { background: var(--brand-maroon); color: #fff; }
.wholesale-cart { width: 100%; margin-top: 7px; padding: 9px; border: 1px solid var(--brand-maroon); border-radius: 4px; background: #fff; color: var(--brand-maroon); font-size: 12px; font-weight: 700; cursor: pointer; }
.wholesale-cart:hover { background: var(--brand-cream); }
.wholesale-selected > .wholesale-line span { flex: 1; }
.wholesale-selected > .wholesale-line input { width: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; text-align: center; }
.wholesale-selected > .wholesale-line b { color: var(--brand-maroon); font-size: 13px; white-space: nowrap; }
.wholesale-selected > .wholesale-line.total { background: var(--brand-cream); }
.wholesale-sent { align-content: center; text-align: center; }
.wholesale-sent h3 { color: var(--brand-maroon); margin-bottom: 8px; }

/* WhatsApp: floating button + clickable numbers */
.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wa-button { width: 58px; height: 58px; border: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); transition: transform 0.2s; }
.wa-button:hover { transform: scale(1.07); }
.wa-float:not(.open) .wa-button { animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.wa-panel { width: min(300px, calc(100vw - 40px)); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); animation: wa-in 0.2s ease-out; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #128c7e; color: #fff; }
.wa-panel-head span, .wa-contact span { display: flex; flex-direction: column; line-height: 1.4; }
.wa-panel-head b { font-size: 14px; }
.wa-panel-head small { font-size: 12px; opacity: 0.85; }
.wa-contact { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; color: #333; transition: background 0.15s; }
.wa-contact:last-child { border-bottom: 0; }
.wa-contact:hover { background: #f3fbf6; }
.wa-contact svg { color: #25d366; flex-shrink: 0; }
.wa-contact b { font-size: 14px; }
.wa-contact small { font-size: 13px; color: #777; text-align: right; }

.contact-wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px; border-radius: 20px; background: #25d366; color: #fff !important; font-size: 12.5px; font-weight: 700; width: fit-content; }
.contact-wa:hover { background: #1ebe5b; }
.contact-details a[href^="tel:"] { color: inherit; }
.original-footer .footer-wa svg { color: #25d366; }

.offer-prices .offer-piece { color: #999; font-size: 12px; }
.catalog-empty { padding: 50px 10px; text-align: center; color: #999; }

/* Consistent catalog photo backdrop and pack size next to the product title. */
.original-product-image,
.detail-image {
  background: #cad2c6;
  isolation: isolate;
}
.original-product-image img[src$=".webp"],
.detail-image > img[src$=".webp"] {
  mix-blend-mode: darken;
}
.najjar-pack-weight {
  display: inline-block;
  font-size: .62em;
  font-weight: 600;
  white-space: nowrap;
  margin-inline-start: .35em;
}

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

/* Fill the photo frame without a contrasting inset. */
.original-product-image > a > img {
  padding: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  object-position: center;
}
.original-product-image > a > img[src$=".png"] {
  object-fit: cover;
}

.wholesale-card-image {
  background: #cad2c6;
  isolation: isolate;
}
.wholesale-card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}
.wholesale-card-image > img[src$=".png"] { object-fit: cover; }
.wholesale-card-image > img[src$=".webp"] { mix-blend-mode: darken; }
