.best-seller-product-block {
    padding-bottom: 4rem;
}
.best-seller-product-container {
    max-width: 1200px;
    margin: 0 auto;
}

.best-seller-product-header {
    text-align: center;
    margin-bottom: 3rem;
}

.best-seller-product-subtitle {
    font-size: 1.125rem;
    color: var(--neautral-200);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.best-seller-product-title {
    font-size: 1.5rem;
    color: var(--gold-200);
    text-transform: uppercase;
}

.best-seller-product-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.best-seller-product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.best-seller-product-main-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 352px;
    background: linear-gradient(0deg, #010213, #010213), radial-gradient(139.9% 167.54% at 119.3% -3.75%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    margin-bottom: 20px;
}

.best-seller-product-main-image-wrap {
    width: 258px;
    height: 258px;
}

.best-seller-product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.best-seller-product-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.best-seller-thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background-color: var(--wp--preset--color--accent-3);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.02) 20px
    );
    overflow: hidden;
}

.best-seller-thumbnail.active {
    border-color: var(--wp--preset--color--base);
}

.best-seller-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.best-seller-product-details {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px 1rem;
}

.best-seller-product-details:before,
.best-seller-product-details:after {
    position: absolute;
    content:" ";
    width: 100%;
    z-index: 0;
    height: 52px;
    background-size: 40px 40px, 40px 40px;
}

.best-seller-product-details:before {
    top: 0;
    left: 0;
    background: url('../../../assets/images/best-seller-corner-topleft.svg') no-repeat 0 0 / 40px 40px, url('../../../assets/images/best-seller-corner-topright.svg') no-repeat 100% 0 / 40px 40px;
}

.best-seller-product-details:after {
    bottom: 0;
    left: 0;
    content:" ";
    background: url('../../../assets/images/best-seller-corner-botleft.svg') no-repeat left bottom / 40px 40px, url('../../../assets/images/best-seller-corner-botright.svg') no-repeat 100% 100% / 40px 40px;
}


.best-seller-product-name-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
}

.best-seller-product-name a {
    font-size: 1.75rem;
    color: var(--neautral-300);
    text-transform: capitalize;
    margin: 0;
    flex: 1;
}

.best-seller-product-sub-name {
    color: var(--gold-400);
    font-size: 0.875rem;
}

.best-seller-product-price {
    font-size: 1.5rem;
    color: var(--gold-200);
    text-align: left;
    font-family: var(--wp--preset--font-family--emblema-headline);
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 0.5rem;
}

/* Sale state: 2-column grid. Col 1 stacks RRP + New price, col 2 holds the Offer badge.
   Non-sale state: .bb-price-grid is just a wrapper for the single price line. */
.best-seller-product-price.sale .bb-price-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 16px;
    align-items: center;
}

.best-seller-product-price.sale .bb-price-grid__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 4px;
}

.best-seller-product-price.sale .bb-price-grid__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.best-seller-product-price.sale .bb-price-grid__label {
    font-family: var(--wp--preset--font-family--avenir);
    font-size: 0.75rem;
    color: var(--wp--preset--color--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.best-seller-product-price.sale del {
    font-size: 1rem;
    color: var(--wp--preset--color--accent-2);
    text-decoration-color: var(--gold-200);
}

.best-seller-product-price.sale ins {
    text-decoration: none;
}

.best-seller-product-price.sale .offer-badge {
    font-family: var(--wp--preset--font-family--avenir);
    color: #000;
    background-color: var(--gold-200);
    border-radius: 24px;
    font-size: .875rem;
    display: block;
    width: auto;
    padding: 0 8px;
    height: 26px;
    line-height: 26px;
    font-weight: 300;
    text-transform: unset;
}

/* Always-shown info container under the price: unit price + "incl. VAT plus
   Shipping cost", each on its own line. Text style mirrors the product-listing
   cards (product-listing.css), duplicated here because that stylesheet only
   loads on shop / product-taxonomy archives, not on the front page. */
.best-seller-product-price .bb-price-info {
    display: block;
    text-align: center;
}

.best-seller-product-price .mbnavus-card-unit-price,
.best-seller-product-price .mbnavus-card-shipping-costs {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-family: var(--wp--preset--font-family--avenir, Avenir, sans-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.25;
    color: color-mix(in srgb, var(--neautral-300) 72%, transparent);
    text-align: left;
}

.best-seller-product-price .mbnavus-card-shipping-costs a {
    color: inherit;
    text-decoration: underline;
}

.best-seller-product-price .mbnavus-card-shipping-costs a:hover {
    color: var(--gold-200);
}

.best-seller-product-description {
    font-size: .875rem;
    color: var(--neautral-200);
}
.best-seller-product-description p {
    margin-bottom: 1rem;
}

.best-seller-product-attributes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.best-seller-attribute {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.best-seller-attribute-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--base);
    text-transform: uppercase;
}

.best-seller-attribute-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--accent-5);
    background-color: var(--wp--preset--color--accent-2);
    color: var(--wp--preset--color--base);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.best-seller-product-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

.best-seller-product-actions .added_to_cart {
    display: flex;
    margin-top: 0;
    align-items: center;
}

.best-seller-product-actions .added_to_cart:before {
    content: " ";
    width: 24px;
    height: 24px;
    background-image: url(../../../assets/images/checked-icon.svg);
    background-repeat: no-repeat;
    background-color: var(--gold-200);
    border-radius: 50%;
    background-position: center center;
    margin-right: 1rem;
}

.best-seller-add-to-wishlist-button,
.best-seller-add-to-cart-button {
    cursor: pointer;
}

.best-seller-add-to-wishlist-button {
    position: relative;
    width: 28px;
    height: 24px;
    border: none;
    background: transparent;
    filter: brightness(0) saturate(100%) invert(78%) sepia(74%) saturate(276%) hue-rotate(339deg) brightness(101%) contrast(94%);
}

/* Default heart (unfilled) */
.best-seller-add-to-wishlist-button::before,
.best-seller-add-to-wishlist-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: opacity 0.3s ease;
}

.best-seller-add-to-wishlist-button::before {
    background-image: url('../../../assets/images/heart-wishlist-add.svg');
    opacity: 1;
}

/* Added heart (filled) */
.best-seller-add-to-wishlist-button::after {
    background-image: url('../../../assets/images/heart-wishlist-added.svg');
    opacity: 0;
}

/* Hover — show filled */
.best-seller-add-to-wishlist-button:hover::before {
    opacity: 0;
}
.best-seller-add-to-wishlist-button:hover::after {
    opacity: 1;
}

/* Added state — show filled */
.best-seller-add-to-wishlist-button.added::before {
    opacity: 0;
}
.best-seller-add-to-wishlist-button.added::after {
    opacity: 1;
}

/* Added + hover — show unfilled (toggle hint) */
.best-seller-add-to-wishlist-button.added:hover::before {
    opacity: 1;
}
.best-seller-add-to-wishlist-button.added:hover::after {
    opacity: 0;
}

/* Loading state */
.best-seller-add-to-wishlist-button.loading {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.best-seller-product-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.best-seller-benefit {
    display: flex;
    align-items: flex-start;
    font-size: 0.75rem;
    color: var(--gold-500);
    padding-left: 24px;
    position: relative;
    font-weight: 400;
}

.best-seller-benefit-icon {
    flex-shrink: 0;
    width: 18px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    filter: brightness(0) saturate(100%) invert(81%) sepia(17%) saturate(565%) hue-rotate(1deg) brightness(80%) contrast(86%);
}

.best-seller-benefit span {
    position: relative;
    z-index: 0;
}

.best-seller-benefit-icon svg {
    width: 100%;
    height: 100%;
    color: inherit;
    object-fit: cover;
    flex-shrink: 0;
}

.best-seller-benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media ( min-width: 768px) {
    .best-seller-product-details:after {
        height: 44px;
    }

    .best-seller-benefit {
        display: flex;
        width: calc(50% - 8px);
    }

    .best-seller-product-benefits  {
        background-image: url('../../../assets/images/footer-bg-line.svg');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: top center;
        padding-top: 30px;
    }

    .best-seller-product-actions .added_to_cart {
        position: absolute;
        bottom: -28px;
        right: 0;
        justify-content: flex-end;
    }
}

@media (min-width: 960px) {
    .best-seller-product-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
    .best-seller-product-main-image {
        height: stretch;
        margin-bottom: 0;
    }
}

@media ( min-width: 1024px) {
    .best-seller-product-main-image-wrap {
        width: 360px;
        height: 360px;
    }
}

@media (min-width: 1280px) {
    .best-seller-product-content {
        column-gap: 2rem;
    }
    .best-seller-product-benefits  {
        padding-top: 40px;
    }

    .best-seller-product-name {
        font-size: 2rem;
    }
    .best-seller-product-main-image-wrap {
        width: 420px;
        height: 420px;
    }

    .best-seller-product-actions a {
        width: 256px;
    }

    .best-seller-product-actions .added_to_cart {
        bottom: -32px;
    }

    .best-seller-add-to-wishlist-button {
        width: 40px;
        height: 40px;
    }
    .best-seller-product-price.sale del,
    .best-seller-product-price.sale ins  {
        font-family: var(--wp--preset--font-family--emblema-headline-two);
    }
    .best-seller-product-price.sale ins {
        font-size: 1.5rem;
    }
}

@media ( min-width: 1440px) {
    .best-seller-product-title {
        font-size: 1.875rem;
    }
    .best-seller-product-name {
        font-size: 2.5rem;
    }
    .best-seller-product-details {
        padding: 40px 30px;
    }
    
    .best-seller-add-to-wishlist-button {
        width: 52px;
        height: 52px;
    }
    .best-seller-product-details:after {
        height: 46px;
    }
    .best-seller-product-main-image-wrap {
        width: 464px;
        height: 464px;
    }
}
