/* TopDeals product page (mockup 10). Markup: views/ecommerce/product.blade.php. */
.td-pd { --p-navy: #0b1638; --p-yellow: #ffc812; --p-yellow-2: #ffb800; --p-red: #ee2e3a; --p-green: #1f9d55; --p-line: #e7e9ef; --p-soft: #f5f6fa; --p-muted: #6b7385; --p-text: #3a4155; --p-blue: #1a5fd0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--p-navy); }
.td-pd a { text-decoration: none; }
.td-pd h1, .td-pd h2, .td-pd h3, .td-pd h4 { font-family: inherit; }

/* Martfury's breadcrumb bar and top gap: the page has its own breadcrumb. */
main:has(.td-pd) > .ps-breadcrumb { display: none; }
main:has(.td-pd) .mt-40 { margin-top: 12px !important; }

.td-pd-crumbs .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; background: none; list-style: none; font-size: 13px; }
.td-pd-crumbs .breadcrumb li, .td-pd-crumbs .breadcrumb a { color: var(--p-text) !important; font-size: 13px; }
.td-pd-crumbs .breadcrumb li + li::before { content: '›'; padding-right: 6px; color: #8a90a0; }
.td-pd-crumbs .breadcrumb a:hover { color: var(--p-blue) !important; }

/* ---------- Top: gallery | info | buy box ---------- */
.td-pd-top { display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr) 336px; gap: 22px; align-items: start; }
.td-pd-contents { display: contents !important; }

/* Gallery (Botble's slick gallery, vertical thumbnails) */
.td-pd-gallery { min-width: 0; width: auto !important; max-width: none !important; padding: 0 !important; }
.td-pd-gallery .bb-product-gallery { display: flex; flex-direction: row-reverse; gap: 12px; }
.td-pd-gallery .bb-product-gallery-images { flex: 1; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--p-soft); }
.td-pd-gallery .bb-product-gallery-images img { width: 100%; aspect-ratio: 600 / 425; object-fit: contain; background: #fff; }
.td-pd-gallery .bb-product-gallery-thumbnails { flex: 0 0 76px; width: 76px; }
.td-pd-gallery .bb-product-gallery-thumbnails img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; background: #fff; cursor: pointer; }
.td-pd-gallery .bb-product-gallery-thumbnails .slick-current img { border-color: var(--p-yellow); }
.td-pd-gallery .bb-product-gallery-thumbnails .slick-slide > div { padding: 0 0 8px; }
.td-pd-gallery .slick-arrow { width: 38px; height: 38px; border-radius: 50%; background: #fff !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .14); color: var(--p-navy); z-index: 2; }

/* Info */
.td-pd-info { min-width: 0; }
.td-pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.td-pd-off { padding: 5px 10px; border-radius: 6px; background: var(--p-red); color: #fff; font-size: 12.5px; font-weight: 700; }
.td-pd-label { padding: 5px 10px; border-radius: 6px; background: #e8efff; color: #2a4a9a; font-size: 12.5px; font-weight: 600; }
.td-pd .td-pd-title { margin: 0 0 8px !important; font-size: clamp(22px, 1.9vw, 28px) !important; font-weight: 800 !important; line-height: 1.18 !important; letter-spacing: -.6px; color: var(--p-navy) !important; }
.td-pd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; color: var(--p-muted); }
.td-pd-rating__link { display: inline-flex; align-items: center; gap: 6px; color: var(--p-muted) !important; }
.td-pd-rating__link b { color: var(--p-navy); font-weight: 600; }
.td-pd-rating .td-stars { font-size: 15px; }
.td-pd-sep { color: #c3c7d1; }
.td-pd-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; font-size: 13px; color: var(--p-text); }
.td-pd-meta a { color: var(--p-blue) !important; }
.td-pd-pricebox { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.td-pd-price { display: flex !important; align-items: baseline; gap: 10px; margin: 0 !important; }
.td-pd-price > span:first-child { font-size: 34px !important; font-weight: 800 !important; color: var(--p-navy) !important; letter-spacing: -1px; line-height: 1.1; }
.td-pd-price.sale > span:first-child { color: var(--p-red) !important; }
.td-pd-price small, .td-pd-price del { font-size: 18px !important; font-weight: 500 !important; color: #8a90a0 !important; }
.td-pd-save { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #fde7e8; color: var(--p-red); font-size: 12.5px; font-weight: 600; }
.td-pd-tax { margin: 4px 0 0; font-size: 12px; color: var(--p-muted); }
.td-pd-stock { margin: 12px 0 14px; font-size: 14px; font-weight: 700; }
.td-pd-stock .is-in { display: inline-flex; align-items: center; gap: 8px; color: var(--p-green); }
.td-pd-stock .is-in i { font-size: 18px; }
.td-pd-stock .is-out, .td-pd-stock .text-danger { color: var(--p-red) !important; }
.td-pd-stock .text-success { color: var(--p-green) !important; }
.td-pd-desc { margin-bottom: 14px; font-size: 13.5px; line-height: 1.6; color: var(--p-text); }
.td-pd-desc p { margin: 0 0 8px; font-size: 13.5px; color: var(--p-text); }
.td-pd-desc ul { margin: 0 0 8px; padding-left: 18px; }
.td-pd-flash { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.td-pd-flash .td-timer b { background: var(--p-red); color: #fff; border-radius: 5px; min-width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 14px; }

/* Variation swatches (Martfury renderer) */
.td-pd-swatches { margin-bottom: 14px; }
.td-pd-swatches .attribute-name, .td-pd-swatches label.attribute-name { font-size: 13.5px; font-weight: 600; color: var(--p-navy); }
.td-pd-swatches .attribute-values ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.td-pd-swatches .text-swatch li span, .td-pd-swatches .visual-swatch li span { border-radius: 8px !important; }
.td-pd-swatches .text-swatch li input:checked ~ span, .td-pd-swatches .visual-swatch li input:checked ~ span { box-shadow: 0 0 0 2px var(--p-navy) !important; border-color: var(--p-navy) !important; }

/* Quantity + wishlist */
.td-pd-qtyrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.td-qty { display: inline-flex !important; align-items: center; height: 42px; width: auto !important; max-width: none !important; border: 1px solid var(--p-line); border-radius: 9px; overflow: hidden; background: #fff; position: static !important; }
.td-qty button { position: static !important; width: 40px; height: 100%; border: 0; background: none; color: var(--p-navy); font-size: 14px; display: grid; place-items: center; transform: none !important; cursor: pointer; }
.td-qty button:hover { background: var(--p-soft); }
.td-qty input { width: 52px !important; height: 100% !important; padding: 0 !important; border: 0 !important; border-left: 1px solid var(--p-line) !important; border-right: 1px solid var(--p-line) !important; border-radius: 0 !important; text-align: center; font-size: 15px; font-weight: 600; color: var(--p-navy); -moz-appearance: textfield; }
.td-qty input::-webkit-outer-spin-button, .td-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.td-pd-wish { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--p-navy) !important; }
.td-pd-wish i { font-size: 19px; }
.td-pd-wish:hover, .td-pd-wish.active { color: var(--p-red) !important; }

/* Buy box */
.td-pd-buy { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(11, 22, 56, .04); }
.td-pd-buy h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--p-navy); }
.td-pd-buy h2 i { font-size: 22px; }
.td-pd-ship { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--p-soft); }
.td-pd-ship i { font-size: 18px; color: var(--p-navy); margin-top: 1px; }
.td-pd-ship span { font-size: 12.5px; color: var(--p-muted); line-height: 1.4; }
.td-pd-ship b { display: block; font-size: 13.5px; font-weight: 600; color: var(--p-navy); }
.td-pd-ship b a { color: var(--p-blue) !important; }
.td-pd-ship.is-free { background: #ecf8f0; }
.td-pd-ship.is-free i, .td-pd-ship.is-free b { color: var(--p-green); }
.td-pd-btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border: 0; border-radius: 9px; background: var(--p-yellow); color: var(--p-navy) !important; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.td-pd-btn:hover { background: var(--p-yellow-2); }
.td-pd-btn i { font-size: 19px; }
.td-pd-btn--soft { background: #fff3c4; }
.td-pd-btn--soft:hover { background: #ffe999; }
.td-pd-btn--sm { width: auto; height: 42px; padding: 0 18px; font-size: 14px; }
.td-pd-btn[disabled], .td-pd-btn.btn-disabled { opacity: .5; cursor: not-allowed; }
.td-pd-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--p-muted); }
.td-pd-pay { justify-content: center; }
.td-pd-pay li span { border: 1px solid var(--p-line); }

/* ---------- Feature strip ---------- */
.td-pd-features { display: flex; margin: 26px 0 0; padding: 16px 10px; list-style: none; border-radius: 12px; background: #f6f7fa; }
.td-pd-features li { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--p-navy); border-left: 1px solid #e1e4ea; }
.td-pd-features li:first-child { border-left: 0; }
.td-pd-features i { font-size: 26px; flex: none; }

/* ---------- Lower: tabs | bought together | also like ---------- */
.td-pd-lower { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .95fr); gap: 22px; margin-top: 26px; align-items: start; }
.td-pd-lower.no-bundle { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.td-pd-lower.no-also { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.td-pd-lower.no-bundle.no-also { grid-template-columns: 1fr; }
.td-pd .td-pd-tablist { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0 0 18px !important; padding: 0 !important; border-bottom: 1px solid var(--p-line); list-style: none; }
.td-pd-tablist li { margin: 0 !important; }
.td-pd .td-pd-tablist li a { display: block; padding: 10px 0 !important; font-size: 14.5px !important; font-weight: 500; line-height: 1.3 !important; white-space: nowrap; color: var(--p-text) !important; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.td-pd .td-pd-tablist li.active a { color: var(--p-navy) !important; font-weight: 700; border-bottom-color: var(--p-yellow); }
.td-pd-tabs .ps-tab { display: none; }
.td-pd-tabs .ps-tab.active { display: block; }
.td-pd-h { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--p-navy); }
.td-pd-content, .td-pd-content p, .td-pd-content li { font-size: 15px; line-height: 1.65; color: var(--p-text); }
.td-pd-content img { max-width: 100%; height: auto; border-radius: 8px; }
.td-pd-checks { margin: 0 0 14px; padding: 0; list-style: none; }
.td-pd-checks li { position: relative; padding: 4px 0 4px 30px; font-size: 15px; color: var(--p-text); }
.td-pd-checks li::before { content: '✓'; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--p-yellow); color: var(--p-navy); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.td-pd-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.td-pd-links a, .td-pd-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--p-blue) !important; }
.td-pd-faq { padding: 12px 0; border-bottom: 1px solid var(--p-line); }
.td-pd-faq summary { font-weight: 600; cursor: pointer; }

.td-pd-bundle { padding: 16px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; }
.td-pd-bundle h2, .td-pd-also__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.4px; color: var(--p-navy); }
.td-pd-bundle__items { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0; }
.td-pd-bundle__item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--p-navy) !important; }
.td-pd-bundle__img { display: block; padding: 6px; border: 1px solid var(--p-line); border-radius: 8px; background: #fff; }
.td-pd-bundle__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.td-pd-bundle__name { font-size: 12.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-pd-bundle__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }
.td-pd-bundle__price > span:first-child { font-size: 16px; font-weight: 800; color: var(--p-navy); }
.td-pd-bundle__price.sale > span:first-child { color: var(--p-red); }
.td-pd-bundle__price small, .td-pd-bundle__price del { font-size: 12px; color: #8a90a0; }
.td-pd-bundle__plus { align-self: center; margin-top: -40px; font-size: 22px; font-weight: 700; color: var(--p-navy); }
.td-pd-bundle__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--p-line); }
.td-pd-bundle__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--p-navy); }
.td-pd-bundle__total b { font-size: 20px; font-weight: 800; color: var(--p-red); }
.td-pd-bundle__total del { font-size: 13px; color: #8a90a0; }

.td-pd-also__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.td-pd-also__head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--p-blue) !important; }
.td-pd-also__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.td-pd-also__grid .td-card__vendor { display: none; }
.td-pd-related { margin-top: 32px; }
.td-pd-related .td-card__vendor { display: none; }

.td-pd a:focus-visible, .td-pd button:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    .td-pd-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 300px; gap: 18px; }
    .td-pd-lower, .td-pd-lower.no-also { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .td-pd-also { grid-column: 1 / -1; }
    .td-pd-also__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .td-pd-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .td-pd-buy { grid-column: 1 / -1; position: static; }
    .td-pd-features { flex-wrap: wrap; row-gap: 14px; }
    .td-pd-features li { flex: 1 1 45%; }
}
@media (max-width: 860px) {
    .td-pd-top, .td-pd-lower, .td-pd-lower.no-bundle, .td-pd-lower.no-also { grid-template-columns: minmax(0, 1fr); }
    .td-pd-gallery .bb-product-gallery { flex-direction: column; }
    .td-pd-gallery .bb-product-gallery-thumbnails { flex: none; width: 100%; }
    .td-pd-also__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .td-pd-features { flex-direction: column; }
    .td-pd-features li { border-left: 0; padding: 0 6px; }
    .td-pd-price > span:first-child { font-size: 28px !important; }
}

/* Martfury's sticky product bar (appears when scrolling the product page): TopDeals colours. */
.header--product { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; box-shadow: 0 4px 16px rgba(11, 22, 56, .1); }
.header--product .ps-product__title { font-weight: 700 !important; color: #0b1638 !important; }
.header--product .ps-btn { background: #ffc812 !important; color: #0b1638 !important; border-radius: 8px !important; font-weight: 700 !important; }
.header--product .ps-btn:hover { background: #ffb800 !important; }
.header--product .ps-product__price, .header--product .ps-product__price span:first-child { color: #ee2e3a !important; font-weight: 800 !important; }

/* Martfury's fixed mobile bar (Add to cart / Buy Now) on product pages. */
.navigation--mobile-product { display: none !important; }
@media (max-width: 991px) {
    .navigation--mobile-product { display: flex !important; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(11, 22, 56, .1); }
    .navigation--mobile-product .ps-btn { flex: 1; min-width: 0; height: 46px; display: flex !important; align-items: center; justify-content: center; padding: 0 10px !important; white-space: nowrap; font-size: 15px !important; line-height: 1 !important; border-radius: 9px !important; background: #fff3c4 !important; color: #0b1638 !important; font-family: Inter, system-ui, sans-serif; font-weight: 700 !important; }
    .navigation--mobile-product .ps-btn--black { background: #ffc812 !important; }
    /* Room for the fixed bar so it never covers the end of the page. */
    body:has(.navigation--mobile-product) { padding-bottom: 68px; }
}
