/* Product detail page redesign (2026-09-30). Global (not homepage-scoped) -
   this page is never the homepage. Prefixed .hp-pd throughout so nothing
   here can collide with the shared theme's own .shop-details-* classes,
   which are left in the markup untouched (JS/ajax/slick depend on them). */

.hp-pd {
    padding-top: 20px;
}

.hp-pd__top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

/* No column's own last child may leave a trailing gap, or the grid
   (as tall as its tallest column) drags the tabs down with it. */
.hp-pd__top > * > :last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 1199.98px) {
    .hp-pd__top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .hp-pd__sidebar {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }
}

/* The bare 1fr this used to have (not minmax(0,1fr)) is exactly the same
   trap hit earlier on the homepage grids: a plain 1fr track can't shrink
   below its content's min-content width, and the gallery's slick carousel
   sets a huge explicit pixel width on .slick-track, so the whole column
   (and everything sharing its row) inflated to match it - the reported
   ~21,000,000px column bug on phone/tablet.
   Threshold is 575.98px (phone only), not 767.98px: a "768px" test
   viewport measures a few px narrower in practice (scrollbar width), so
   767.98 was still catching tablet and forcing it down to 1 column too -
   tablet (768-1199.98px) must stay 2-column per the 1199.98px rule above. */
@media (max-width: 575.98px) {
    .hp-pd__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-pd__sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-pd__top > * {
        min-width: 0;
    }

    .hp-pd__gallery,
    .hp-pd__gallery .shop-details-top-slider,
    .hp-pd__gallery .shop-details-bottom-slider-area,
    .hp-pd__gallery .slick-slider,
    .hp-pd__gallery .slick-list,
    .hp-pd__gallery .slick-track {
        max-width: 100%;
        overflow: hidden;
    }
}

/* ---- Gallery ---- */
.hp-pd__gallery .big-product-image {
    max-height: 520px;
}

.hp-pd__gallery .shop-details-thumb-wrapper.product-image {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.hp-pd__gallery .shop-details-thumb-wrapper.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hp-pd__gallery .shop-details-bottom-slider-area {
    position: relative;
    margin: 12px 0 0 !important;
    padding: 0 28px;
    overflow: hidden;
    height: auto !important;
    max-height: 100px;
}

/* The theme's own .shop-details-thums base rule (height:500px) is shared
   by BOTH the main image and every small thumb (both carry that same
   class) - slick then reads that 500px as the natural slide height when
   computing .slick-track/.slick-list's own height, and can bake it in as
   an inline style, which no external CSS can beat without !important.
   This was the real cause of the ~1200px blank strip under the main
   image on phone and tablet. display:flex on .slick-track forces a
   single horizontal row regardless of any float/wrap quirk. */
.hp-pd__gallery .shop-details-bottom-slider-area .slick-list,
.hp-pd__gallery .shop-details-bottom-slider-area .slick-track {
    height: auto !important;
}

.hp-pd__gallery .shop-details-bottom-slider-area .slick-track {
    display: flex !important;
}

/* Fallback for the rare case slick fails to initialise at all (no
   .slick-initialized class): let the thumbs scroll horizontally as a
   plain flex row instead of falling back to the browser's default block
   float layout, which was stacking them 3-per-row down the page. Scoped
   to :not(.slick-initialized) only so it can never fight slick's own
   flex/width once slick IS running. */
.hp-pd__gallery .shop-details-bottom-slider-area .global-slick-init:not(.slick-initialized) {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0;
}

.hp-pd__gallery .shop-details-bottom-slider-area .global-slick-init:not(.slick-initialized) .shop-details-thumb-wrapper {
    flex: 0 0 auto;
}

/* The previous margin:0 5px gutter was the real cause of the invisible
   thumbs: slick sets each .slick-slide's WIDTH inline based on
   slidesToShow, with no allowance for an outside margin, so the margin
   added extra total width per slide that slick's own track-width math
   never accounted for - the slides no longer fit in one row and
   .slick-current's translateX pointed at stale, wrapped-away positions.
   padding (inside the box, box-sizing:border-box) creates the same
   visual gutter without changing the slide's outer width at all. */
.hp-pd__gallery .shop-details-bottom-slider-area .slick-slide {
    margin: 0 !important;
    padding: 0 5px;
    box-sizing: border-box;
    /* display:flex on .slick-track makes every slide a flex item, and
       flex items default to flex-shrink:1 - with 30 thumbnails and no
       explicit flex-basis, the browser was shrinking all of them down
       to squeeze the full set into the track's width, instead of
       respecting slick's own inline per-slide width (which is what
       decides how many actually show per row/scroll position). This
       pins each slide at exactly the width slick itself set. */
    flex: 0 0 auto !important;
}

.hp-pd__gallery .shop-details-bottom-slider-area .slick-slide > div {
    height: 100%;
}

.hp-pd__gallery .shop-details-bottom-slider-area .slick-list {
    margin: 0 !important;
}

.hp-pd__gallery .shop-details-bottom-slider-area .shop-details-thums-small {
    width: 100% !important;
    height: 80px !important;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

.hp-pd__gallery .shop-details-bottom-slider-area .shop-details-thums-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hp-pd__gallery .shop-details-bottom-slider-area .slick-current .shop-details-thums-small {
    border: 2px solid var(--hp-green, #1e8e3e);
}

.hp-pd__gallery .shop-details-bottom-slider-area .prev-icon,
.hp-pd__gallery .shop-details-bottom-slider-area .next-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    cursor: pointer;
    z-index: 2;
}

.hp-pd__gallery .shop-details-bottom-slider-area .prev-icon {
    left: 2px;
}

.hp-pd__gallery .shop-details-bottom-slider-area .next-icon {
    right: 2px;
}

/* ---- Info column ---- */
.hp-pd__info .hp-pd__title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0;
    /* full title, no clamp/ellipsis */
    display: block;
    overflow: visible;
    white-space: normal;
}

@media (max-width: 768px) {
    .hp-pd__info .hp-pd__title {
        font-size: 22px;
    }
}

.hp-pd__rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 16px;
    color: #555;
}

.hp-pd__rating-row .hp-pd__stars {
    color: #f5a623;
    font-size: 18px;
    letter-spacing: 1px;
}

.hp-pd__rating-row .hp-pd__divider {
    color: #ccc;
}

.hp-pd__price-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 14px;
}

.hp-pd__price-row .hp-pd__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--hp-green, #1e8e3e);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .hp-pd__price-row {
        flex-wrap: wrap;
    }
}

.hp-pd__price-row .hp-pd__old-price {
    font-size: 22px;
    color: #999;
    text-decoration: line-through;
}

.hp-pd__badge {
    background: #e53935;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.hp-pd__stock {
    display: block;
    margin-top: 10px;
    font-size: 17px;
}

.hp-pd__stock.text-success {
    color: var(--hp-green, #1e8e3e);
}

.hp-pd__stock.text-danger {
    color: #e53935;
}

/* Variant pill options */
.hp-pd__info .size-lists {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.hp-pd__info .size-lists li {
    padding: 7px 16px;
    border: 1.5px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    list-style: none;
}

.hp-pd__info .size-lists li.active {
    border-color: var(--hp-green, #1e8e3e);
    background: var(--hp-green, #1e8e3e);
    color: #fff;
}

.hp-pd__info .size-lists.color-list li {
    padding: 3px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* Quantity box - the "Quantity:" label was removed from the markup
   (an aria-label carries it for accessibility instead); .substract/
   .quantity-input/.plus stay as flat siblings exactly as before since
   main.js's plus/minus handlers use $(this).prev()/.next() on that
   exact sibling order. */
.hp-pd__qty-row {
    margin-top: 14px;
}

.hp-pd__info .product-quantity.hp-pd__qty {
    display: flex;
    align-items: stretch;
    width: 166px;
    height: 50px;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #fff;
}

.hp-pd__info .product-quantity.hp-pd__qty .substract,
.hp-pd__info .product-quantity.hp-pd__qty .plus {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #222;
    font-size: 22px;
}

.hp-pd__info .product-quantity.hp-pd__qty .substract:hover,
.hp-pd__info .product-quantity.hp-pd__qty .plus:hover {
    background: #f5f5f5;
}

.hp-pd__info .product-quantity.hp-pd__qty .substract {
    border-right: 1px solid #ddd;
}

.hp-pd__info .product-quantity.hp-pd__qty .plus {
    border-left: 1px solid #ddd;
}

.hp-pd__info .product-quantity.hp-pd__qty .quantity-input {
    flex: 1;
    width: auto;
    border: 0 !important;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    outline: none;
    -moz-appearance: textfield;
}

.hp-pd__info .product-quantity.hp-pd__qty .quantity-input::-webkit-outer-spin-button,
.hp-pd__info .product-quantity.hp-pd__qty .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hp-pd__qty-row .quantity-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-pd__qty-row .stock-available {
    /* Duplicate of .hp-pd__stock shown once already under the price -
       kept in the DOM (not removed) because syncStock() in this file's
       own script section writes live variant-stock updates into it by
       this exact class; only hidden from view here. */
    display: none;
}

/* Add to cart row */
.hp-pd__cart-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hp-pd__cart-row .quantity-btn {
    display: flex;
    gap: 10px;
    flex: 1;
    margin-top: 0 !important;
}

.hp-pd__cart-row .btn-wrapper {
    flex: 1;
}

/* The theme's own .cmn-btn/.btn-bg-1/.btn-details/.btn-wishlist/
   .heart-btn rules carry hover states (opacity fades, background:none,
   mismatched text colours) plus ::before/::after overlay layers that
   fight with the flat green look here. .hp-pd__actions kills those
   overlays outright and every state below is forced with !important
   so it wins regardless of the theme rule's own specificity. */
.hp-pd__actions a,
.hp-pd__actions button {
    position: relative;
    opacity: 1 !important;
    transition: background-color .15s, color .15s, border-color .15s;
}

.hp-pd__actions a:not(.cart-loading)::before,
.hp-pd__actions a::after,
.hp-pd__actions button:not(.cart-loading)::before,
.hp-pd__actions button::after {
    display: none !important;
    content: none !important;
}

/* .cart-loading's own ::before is the real add-to-cart spinner overlay
   (main.js adds .active-loading for 1.5s on click, toggling this
   pseudo-element's visibility/opacity) - deliberately excluded from the
   kill-rule above so it keeps working exactly as it does site-wide
   (dark overlay + white loading-cart.gif, both already readable). */
.hp-pd__actions a.cart-loading::before {
    border-radius: 8px !important;
}

.hp-pd__actions a:focus-visible,
.hp-pd__actions button:focus-visible {
    outline: 2px solid var(--hp-green, #1e8e3e);
    outline-offset: 2px;
}

.hp-pd__cart-row .hp-pd__btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    width: 100%;
    background: var(--hp-green, #1e8e3e) !important;
    color: #fff !important;
    border: 1.5px solid var(--hp-green, #1e8e3e) !important;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px !important;
}

.hp-pd__cart-row .hp-pd__btn-cart * {
    color: inherit !important;
}

.hp-pd__cart-row .hp-pd__btn-cart:hover {
    background: var(--hp-green-dark, #15803d) !important;
    border-color: var(--hp-green-dark, #15803d) !important;
    color: #fff !important;
}

.hp-pd__cart-row .hp-pd__btn-cart:active {
    background: #11652a !important;
    border-color: #11652a !important;
}

.hp-pd__cart-row .hp-pd__btn-wish {
    width: 64px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--hp-green, #1e8e3e) !important;
    background: #fff !important;
    border-radius: 8px !important;
    color: var(--hp-green, #1e8e3e) !important;
    font-size: 22px;
}

.hp-pd__cart-row .hp-pd__btn-wish * {
    color: inherit !important;
}

.hp-pd__cart-row .hp-pd__btn-wish:hover {
    background: var(--hp-green, #1e8e3e) !important;
    color: #fff !important;
}

.hp-pd__cart-row .hp-pd__btn-wish.active {
    background: var(--hp-green, #1e8e3e) !important;
    color: #fff !important;
}

.hp-pd__info .wishlist-compare {
    margin-top: 10px;
}

.hp-pd__info .wishlist-compare-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-pd__info .hp-pd__btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    width: 100%;
    border: 1.5px solid var(--hp-green, #1e8e3e) !important;
    background: #fff !important;
    color: var(--hp-green, #1e8e3e) !important;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px !important;
    margin-top: 0 !important;
}

.hp-pd__info .hp-pd__btn-buy * {
    color: inherit !important;
}

.hp-pd__info .hp-pd__btn-buy:hover {
    background: var(--hp-green, #1e8e3e) !important;
    color: #fff !important;
}

.hp-pd__info .hp-pd__btn-buy:active {
    background: var(--hp-green-dark, #15803d) !important;
    color: #fff !important;
}

.hp-pd__info .btn-addCompare {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #777;
    margin-top: 8px !important;
    border: 0;
    background: none;
    padding: 0;
    height: auto;
}

.hp-pd__info .btn-addCompare:hover {
    color: var(--hp-green, #1e8e3e);
}

/* Out of stock state */
.hp-pd__actions .is-disabled,
.hp-pd__cart-row.is-disabled .hp-pd__btn-cart,
.hp-pd__info .hp-pd__btn-buy.is-disabled {
    background: #eee !important;
    color: #999 !important;
    border-color: #ddd !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Trust row - shares the .hp-trust-badges class/markup from
   hp-footer-redesign.css (kept for that file's own usage) but is
   overridden here to a fixed 3-column grid so all 3 items always
   fit on one row, with a single top divider (the theme's own
   .shop-border-top + mt-4/pt-4 classes were removed from this
   wrapper div in the blade file to avoid a second, redundant line). */
.hp-pd__info .hp-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    flex-wrap: initial;
    margin: 14px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.hp-pd__info .hp-trust-badges li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 10px;
    border-left: 1px solid #eee;
}

.hp-pd__info .hp-trust-badges li:first-child {
    padding-left: 0;
    border-left: 0;
}

.hp-pd__info .hp-trust-badges li i {
    flex: 0 0 22px;
    font-size: 22px;
    color: var(--hp-green, #1e8e3e);
}

.hp-pd__info .hp-trust-badges li > div {
    min-width: 0;
}

.hp-pd__info .hp-trust-badges li strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-pd__info .hp-trust-badges li span {
    display: block;
    font-size: 11.5px;
    color: #777;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The info column is only ~346px wide once it's one of two columns
   (gallery|info) at tablet widths, too narrow to fit 3 across without
   truncating ("Secure P…" etc) - stack below 992px, not just 480px. */
@media (max-width: 991.98px) {
    .hp-pd__info .hp-trust-badges {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .hp-pd__info .hp-trust-badges li {
        border-left: 0;
        padding-left: 0;
    }
}

/* ---- Sidebar ---- */
/* This must be desktop-only (>=1200px): an earlier, unscoped version of
   this same rule sat AFTER the <=1199.98px grid override further up
   this file, in source order - since both had equal specificity (one
   class each), the later, unconditional rule always won regardless of
   viewport, silently cancelling the tablet 2-column grid every time.
   Wrapping the flex layout in its own min-width query removes the
   conflict outright instead of depending on rule order. */
@media (min-width: 1200px) {
    .hp-pd__sidebar {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}

/* Tablet (576-1199.98px): the earlier grid rules (top of this file)
   already make .hp-pd__sidebar a 2-column grid in this range - Share
   just needs to span both columns instead of sitting in whichever one
   the auto-placement algorithm drops it into, so it reads as "Sold By +
   Delivery side by side, Share full width below". */
@media (min-width: 575.98px) and (max-width: 1199.98px) {
    .hp-pd__share {
        grid-column: 1 / -1;
    }
}

.hp-pd__sidebar .single-sidebar-details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin: 0 !important;
}

.hp-pd__share {
    margin: 0;
}

.hp-pd__sidebar .title-sidebar-global {
    font-size: 18px;
    color: #111;
    text-align: left;
}

.hp-pd__sold-card .best-seller-sidebar.hp-seller__head {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    text-align: left;
    margin-top: 14px !important;
}

.hp-pd__sold-card .best-seller-sidebar.hp-seller__head .thumb-brand {
    width: 66px !important;
    height: 66px !important;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 !important;
    transform: none !important;
}

.hp-pd__sold-card .thumb-brand img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hp-pd__sold-card .best-seller-contents.hp-seller__meta {
    margin-top: 0 !important;
    flex: 1;
    min-width: 0;
}

.hp-pd__sold-card .hp-seller__name-row.common-title-two {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hp-pd__sold-card .hp-seller__mid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.hp-pd__sold-card .hp-seller__mid-row .rating-wrap {
    margin: 0 !important;
}

.hp-pd__sold-card .hp-seller__visit-link {
    font-size: 14px;
    color: var(--hp-green, #1e8e3e);
    text-decoration: underline;
}

.hp-pd__sold-card .color-stock {
    display: none !important;
}

.hp-pd__sold-card .hp-pd__stats {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.hp-pd__sold-card .hp-pd__stats.single-stat {
    justify-content: center;
}

.hp-pd__sold-card .hp-pd__stat {
    flex: 1;
    text-align: center;
}

.hp-pd__sold-card .hp-pd__stats:not(.single-stat) .hp-pd__stat:first-child {
    border-right: 1px solid #eee;
}

.hp-pd__sold-card .hp-pd__stat strong {
    display: block;
    font-size: 18px;
    color: #111;
}

.hp-pd__sold-card .hp-pd__stat span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

.hp-pd__sold-card .sidebar-wrapper-btn {
    display: flex;
    gap: 10px;
    margin-top: 14px !important;
}

.hp-pd__sold-card .sidebar-wrapper-btn > * {
    flex: 1;
}

.hp-pd__sold-card .sidebar-wrapper-btn .visit-btn.visit__btn__outline {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1.5px solid var(--hp-green, #1e8e3e) !important;
    background: #fff !important;
    color: var(--hp-green, #1e8e3e) !important;
    border-radius: 8px !important;
    font-size: 14px;
    padding: 0 !important;
    margin-top: 0 !important;
}

.hp-pd__sold-card .sidebar-wrapper-btn .visit-btn.visit__btn__outline:hover {
    background: var(--hp-green, #1e8e3e) !important;
    color: #fff !important;
}

.hp-pd__sold-card .chatContact__btnWrapper {
    margin-top: 0 !important;
    height: 100%;
}

.hp-pd__sold-card .chatContact__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    background: var(--hp-green, #1e8e3e);
    color: #fff;
    border-radius: 8px !important;
    font-size: 14px;
    cursor: pointer;
}

.hp-pd__sold-card .chatContact__btn:hover {
    background: var(--hp-green-dark, #15803d);
}

/* Delivery card */
.hp-pd__delivery-card .promo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-pd__delivery-card .promo-list .list {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.hp-pd__delivery-card .promo-list .list:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.hp-pd__delivery-card .promo-list .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--hp-green, #1e8e3e);
    border-radius: 50%;
    font-size: 20px;
    color: var(--hp-green, #1e8e3e);
}

.hp-pd__delivery-card .promo-list .icon svg {
    width: 22px;
    height: 22px;
}

.hp-pd__delivery-card .promo-title {
    font-size: 17px;
    margin: 0;
    color: #111;
}

.hp-pd__delivery-card .promo-para {
    font-size: 15px;
    color: #777;
}

/* Share (not a card) */
.hp-pd__share {
    padding: 4px 4px;
}

.hp-pd__share h5 {
    text-align: left;
    font-size: 18px;
    color: #111;
    margin-bottom: 14px;
}

.hp-pd__share .share-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-pd__share .share-list .list {
    list-style: none;
}

/* Only 6 icons in the mockup (FB, X, LinkedIn, Pinterest, WhatsApp, copy
   link) - the shared single_post_share() helper also renders Reddit
   (used elsewhere too, so left untouched there); hide just that one
   icon here rather than forking the helper. */
.hp-pd__share .share-list li:has(.la-reddit) {
    display: none;
}

.hp-pd__share .share-list .social-icon,
.hp-pd__share .share-list .hp-pd__copy-link {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111;
    border-radius: 8px !important;
    font-size: 15px;
    cursor: pointer;
}

.hp-pd__share .share-list .social-icon:hover,
.hp-pd__share .share-list .hp-pd__copy-link:hover {
    background: var(--hp-green, #1e8e3e);
    color: #fff;
}

/* ---- Tabs (full width) ---- */
.hp-pd__tabs {
    margin-top: 28px;
    clear: both;
    width: 100%;
}

.hp-pd__tabs .tab-content-item::after {
    content: "";
    display: table;
    clear: both;
}

.hp-pd__tabs .details-tab {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

/* The theme's generic `.tabs li.active::before/::after` rule stretches
   those pseudo-elements to 100%x100% with a solid green fill (a
   full-tab highlight style meant for a different tab component) which
   was fighting with our own ::after underline attempt and painting a
   green box behind the green active text. Neutralised with box-shadow
   instead of a pseudo-element, and background forced transparent. */
.hp-pd__tabs .details-tab li,
.hp-pd__tabs .details-tab li a {
    background: transparent !important;
}

.hp-pd__tabs .details-tab li::before,
.hp-pd__tabs .details-tab li::after {
    display: none !important;
    content: none !important;
}

.hp-pd__tabs .details-tab li {
    font-size: 20px;
    color: #333;
    padding-bottom: 14px;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.hp-pd__tabs .details-tab li.active,
.hp-pd__tabs .details-tab li.active a {
    color: var(--hp-green, #1e8e3e) !important;
}

.hp-pd__tabs .details-tab li.active {
    box-shadow: inset 0 -3px 0 var(--hp-green, #1e8e3e);
}

@media (max-width: 767.98px) {
    .hp-pd__tabs .details-tab {
        gap: 28px;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hp-pd__tabs .details-tab::-webkit-scrollbar {
        display: none;
    }

    .hp-pd__tabs .details-tab li {
        font-size: 16px;
        flex-shrink: 0;
    }

    /* Specs table: stack label above value instead of 2 fixed columns,
       which were too narrow on phone. */
    .hp-pd__tabs #description table,
    .hp-pd__tabs #description table tbody,
    .hp-pd__tabs #description table tr,
    .hp-pd__tabs #description table td,
    .hp-pd__tabs .hp-pd__specs-table,
    .hp-pd__tabs .hp-pd__specs-table tbody,
    .hp-pd__tabs .hp-pd__specs-table tr,
    .hp-pd__tabs .hp-pd__specs-table td {
        display: block;
        width: 100% !important;
    }

    .hp-pd__tabs #description table tr,
    .hp-pd__tabs .hp-pd__specs-table tr {
        padding: 8px 16px;
        border-bottom: 1px solid #eee;
    }

    .hp-pd__tabs #description table td,
    .hp-pd__tabs .hp-pd__specs-table td {
        height: auto;
        padding: 2px 0;
        border-right: 0;
    }
}

.hp-pd__tabs .tab-content-item {
    border: 0 !important;
    padding: 28px 0 0 !important;
    margin-top: 0 !important;
}

.hp-pd__tabs #description,
.hp-pd__tabs #information,
.hp-pd__tabs #description p,
.hp-pd__tabs #information p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.hp-pd__tabs #description img {
    float: none !important;
    display: block !important;
    max-width: min(100%, 820px) !important;
    width: auto !important;
    height: auto !important;
    margin: 16px auto !important;
    border-radius: 8px;
}

.hp-pd__tabs #description p,
.hp-pd__tabs #description div {
    float: none !important;
}

.hp-pd__tabs #description table,
.hp-pd__tabs .hp-pd__specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.hp-pd__tabs #description table tr,
.hp-pd__tabs .hp-pd__specs-table tr {
    border-bottom: 1px solid #eee;
}

.hp-pd__tabs #description table tr:last-child,
.hp-pd__tabs .hp-pd__specs-table tr:last-child {
    border-bottom: 0;
}

.hp-pd__tabs #description table td,
.hp-pd__tabs #description table th,
.hp-pd__tabs .hp-pd__specs-table td {
    height: 40px;
    padding: 8px 16px;
    border-right: 1px solid #eee;
}

.hp-pd__tabs #description table td:last-child,
.hp-pd__tabs #description table th:last-child,
.hp-pd__tabs .hp-pd__specs-table td:last-child {
    border-right: 0;
    color: #444;
}

.hp-pd__tabs #description table td:first-child,
.hp-pd__tabs #description table th:first-child,
.hp-pd__tabs .hp-pd__specs-table td:first-child {
    width: 22%;
    font-weight: 700;
    color: #111;
}

.hp-pd__tabs .ratings.select-ratings,
.hp-pd__tabs .tab-review .ratings {
    color: #f5a623;
}

/* Seller card inside the Information tab ("From <country>" / "About
   Since <year>") - reset the theme's 2-column pill-like list layout
   (column-count + bold 20px labels) to a plain, clearly non-tab block
   so it doesn't read as extra tab items next to the real tabs above. */
.hp-pd__tabs .seller-box-list {
    column-count: 1 !important;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hp-pd__tabs .seller-box-list .box-list {
    font-size: 14px;
    color: #777;
    margin: 0 !important;
    list-style: none;
}

.hp-pd__tabs .seller-box-list .box-list strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-top: 2px !important;
}

.hp-pd__tabs .seller-details-para {
    font-size: 15px;
    color: #666;
    margin-top: 10px;
}

/* "More from this store" - reuses the shared .hp-pcard card component
   (same partial the homepage "Our Specialty" grid uses), scoped here
   since that CSS normally only loads under body.homepage-redesign-v2. */
.hp-pd__related {
    margin-top: 40px;
    clear: both;
    width: 100%;
}

.hp-pd__related h3 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    text-align: left;
}

.hp-pd__related .hp-spec-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

@media (max-width: 1280px) {
    .hp-pd__related .hp-spec-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hp-pd__related .hp-spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hp-pd__related .hp-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hp-pd__related .hp-pcard {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    height: 100%;
    transition: box-shadow .2s;
}

.hp-pd__related .hp-pcard:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.hp-pd__related .hp-pcard__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2e9e5b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 1;
}

.hp-pd__related .hp-pcard__badge--sale {
    background: #e53935;
}

.hp-pd__related .hp-pcard__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    margin-bottom: 12px;
    background: #fff;
}

.hp-pd__related .hp-pcard__img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hp-pd__related .hp-pcard__title {
    font-size: 15px;
    line-height: 1.35;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 3);
}

.hp-pd__related .hp-pcard__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.hp-pd__related .hp-pcard__meta .rating {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

.hp-pd__related .hp-pcard__meta .rating i {
    color: #f5a623;
    font-size: 12px;
}

.hp-pd__related .hp-pcard__btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 100%;
    border: 1.5px solid var(--hp-green, #1e8e3e);
    border-radius: 30px;
    color: var(--hp-green, #1e8e3e);
    font-size: 14px;
    white-space: nowrap;
    padding: 0 10px;
}

.hp-pd__related .hp-pcard__btn:hover {
    background: var(--hp-green, #1e8e3e);
    color: #fff;
}

.hp-pd__related .hp-pcard__icons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.hp-pd__related .hp-pcard__icons a {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--hp-green, #1e8e3e);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--hp-green, #1e8e3e);
    font-size: 14px;
}

/* Add to Cart row on phone/tablet: stays a row (not stacked) - Add to
   Cart flexes to fill the space, wishlist stays a fixed 52px square next
   to it. This previously stacked them and stretched the wishlist button
   to a full-width bar below 480px. */
@media (max-width: 767.98px) {
    .hp-pd__cart-row {
        flex-direction: row;
    }

    .hp-pd__cart-row .btn-wrapper {
        flex: 1;
        min-width: 0;
    }

    .hp-pd__cart-row .hp-pd__btn-cart {
        width: 100%;
    }

    .hp-pd__cart-row .hp-pd__btn-wish {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }
}
