/* Product details page (product.php) — loaded only on that page */

.product__media--nav img {
    cursor: pointer;
}

.product__media--nav video {
    width: 100%;
    cursor: pointer;
}

video {
    width: 100%;
}
/* ===== Product gallery ===== */
.product-details .product__media--preview { border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.product-details .product__media--preview .swiper-slide { display: flex; align-items: center; justify-content: center; }
.product-details .product__media--preview img,
.product-details .product__media--preview video { width: 100%; max-height: 460px; object-fit: contain; border-radius: 12px; display: block; }
.hf-thumbs { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hf-thumbs .product__media--nav { flex: 1 1 auto; min-width: 0; margin: 0 !important; overflow: hidden; }
.hf-thumbs .product__media--nav .swiper-slide { height: 76px; padding: 3px; border-radius: 10px; border: 2px solid transparent; background: #fff; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, box-shadow .2s; display: flex; align-items: center; justify-content: center; }
.hf-thumbs .product__media--nav .swiper-slide:hover { opacity: .85; }
.hf-thumbs .product__media--nav .swiper-slide img,
.hf-thumbs .product__media--nav .swiper-slide video { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; border-radius: 7px; }
.hf-thumbs .product__media--nav .swiper-slide.swiper-slide-thumb-active { opacity: 1; border-color: #06402A; box-shadow: 0 0 0 3px rgba(6, 64, 42, .15); }
.hf-thumb-arrow { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d1d5db; background: #fff; color: #06402A; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.hf-thumb-arrow:hover:not(.swiper-button-disabled) { background: #06402A; color: #fff; border-color: #06402A; }
.hf-thumb-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
@media (max-width: 575px) {
    .hf-thumbs .product__media--nav .swiper-slide { height: 62px; }
    .hf-thumb-arrow { flex-basis: 30px; width: 30px; height: 30px; font-size: 12px; }
}

/* ===== Product buy box ===== */
.hf-buybox { --hf-green: #06402A; --hf-green-2: #0b5d3d; --hf-line: #e5e7eb; --hf-muted: #6b7280; }
.product-details .main-show-product-box .price-list.hf-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--hf-line); }
.hf-price .hf-now { font-size: 28px; font-weight: 700; color: #111; line-height: 1.1; }
.hf-price .hf-old { font-size: 18px; color: #9ca3af; text-decoration: line-through; }
.hf-price .hf-save { font-style: normal; font-size: 13px; font-weight: 600; color: #fff; background: #b91c1c; border-radius: 999px; padding: 3px 10px; }
.hf-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px 0 4px; font-size: 15px; color: var(--hf-muted); }
.hf-meta p { margin: 0; }
.hf-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hf-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hf-stock.in { color: #15803d; }
.hf-stock.out { color: #b91c1c; }
.hf-ship { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--hf-line); border-radius: 8px; background: #f8faf9; }
.hf-ship > i { font-size: 22px; color: var(--hf-green); margin-top: 3px; }
.hf-ship-title { font-weight: 700; color: #111; margin: 0; font-size: 16px; }
.hf-ship-note { margin: 2px 0 0; font-size: 14px; color: var(--hf-muted); line-height: 1.45; }
.hf-ship-note a { color: var(--hf-green); text-decoration: underline; }
.hf-ship-est { margin: 6px 0 0; font-size: 14px; color: #111; }
.product-details .product-hitbtn-box.hf-actions { height: auto; padding: 20px 0 10px; gap: 14px; align-items: center; }
.hf-actions .hf-qty-label { margin: 0; font-size: 16px; font-weight: 600; color: #111; }
.hf-qty { display: inline-flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; height: 48px; background: #fff; }
.hf-qty button { width: 44px; border: 0; background: #f1f5f9; color: #111; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .15s; }
.hf-qty button:hover:not(:disabled) { background: #e2e8f0; }
.hf-qty button:disabled { color: #cbd5e1; cursor: not-allowed; }
.hf-qty input { width: 56px; border: 0; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; text-align: center; font-size: 17px; font-weight: 600; -moz-appearance: textfield; }
.hf-qty input::-webkit-outer-spin-button, .hf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hf-btns { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 260px; }
.hf-btn { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 10px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, opacity .15s; border: 2px solid var(--hf-green); }
.hf-btn-outline { background: #fff; color: var(--hf-green); }
.hf-btn-outline:hover:not(:disabled) { background: var(--hf-green); color: #fff; }
.hf-btn-solid { background: var(--hf-green); color: #fff; }
.hf-btn-solid:hover:not(:disabled) { background: var(--hf-green-2); border-color: var(--hf-green-2); }
.hf-btn:disabled { opacity: .5; cursor: not-allowed; }
.hf-msg { margin: 6px 0 0; font-size: 14px; color: #b91c1c; }
.hf-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 13px; color: var(--hf-muted); }
.hf-trust i { color: var(--hf-green); margin-right: 5px; }
.hf-btn { white-space: nowrap; }
@media (max-width: 575px) {
    .hf-price .hf-now { font-size: 24px; }
    .hf-actions .hf-qty-label { width: 100%; }
    .hf-btns { flex: 1 1 100%; }
    .hf-btn { flex: 1 1 0; font-size: 15px; }
    .hf-trust { flex-direction: column; }
}

/* Stop the 3px sideways scroll on phones caused by the shared header/footer */
html, body { overflow-x: clip; }
