/* =========================================================
   Vrindavan Digital
   BESTSELLERS PAGE
========================================================= */


/* =========================================================
   PAGE HERO
========================================================= */

.bestseller-page-hero {
    padding: 120px 0 85px;
    background: var(--bg);
}

.bestseller-hero-inner {
    padding-bottom: 70px;
    border-bottom: 1px solid var(--border);
}

.bestseller-page-title {
    margin: 0;
    font-size: clamp(55px, 7vw, 105px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -5px;
    color: var(--dark);
}

.bestseller-page-title span {
    display: block;
}

.bestseller-hero-copy {
    max-width: 390px;
    margin-left: auto;
    padding-bottom: 8px;
}

.bestseller-hero-copy p {
    margin-bottom: 32px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--muted);
}

.bestseller-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--dark);
}

.bestseller-hero-meta span,
.bestseller-hero-meta strong {
    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
}


/* =========================================================
   FEATURED BESTSELLER
========================================================= */

.bestseller-feature {
    padding-bottom: 130px;
    background: var(--bg);
}

.bestseller-feature-wrapper {
    position: relative;
    min-height: 790px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bestseller-feature-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bestseller-feature-image img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.bestseller-feature-wrapper:hover .bestseller-feature-image img {
    transform: scale(1.025);
}

.bestseller-feature-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(10, 12, 9, 0.8) 0%,
            rgba(10, 12, 9, 0.28) 56%,
            rgba(10, 12, 9, 0.05) 100%
        );
}

.bestseller-feature-number {
    position: absolute;
    z-index: 3;
    top: 38px;
    right: 45px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);

    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;

    color: rgba(255, 255, 255, 0.85);
}

.bestseller-feature-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    padding: 75px 70px;
}

.bestseller-feature-content h2 {
    margin-bottom: 25px;
    font-size: clamp(47px, 6vw, 82px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -4px;
    color: #fff;
}

.bestseller-feature-content p {
    max-width: 520px;
    margin-bottom: 35px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   BESTSELLER INTRO
========================================================= */

.bestseller-intro {
    padding: 130px 0;
    background: var(--dark);
}

.bestseller-intro .section-label {
    font-size: 13px;
    color: #a8b09b;
}

.bestseller-intro h2 {
    max-width: 950px;
    margin: 0;

    font-size: clamp(34px, 4.3vw, 61px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -2.4px;

    color: rgba(255, 255, 255, 0.92);
}


/* =========================================================
   BESTSELLER SHOP
========================================================= */

.bestseller-shop {
    padding: 130px 0 140px;
    background: var(--surface);
}

.bestseller-shop-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.bestseller-shop-header h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 57px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -2.4px;
}

.bestseller-product-count {
    padding-bottom: 7px;

    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: var(--muted);
}


/* =========================================================
   TOOLBAR
========================================================= */

.bestseller-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 45px;
    padding: 17px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bestseller-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bestseller-filter {
    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: 50px;
    background: transparent;

    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;

    color: var(--muted);
    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.bestseller-filter:hover {
    color: var(--dark);
}

.bestseller-filter.active {
    border-color: var(--dark);
    background: var(--dark);
    color: #fff;
}


/* =========================================================
   SORT
========================================================= */

.bestseller-sort {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bestseller-sort label {
    font-family: var(--heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
}

.bestseller-sort select {
    min-width: 165px;
    padding: 8px 28px 8px 5px;

    border: 0;
    outline: 0;
    background-color: transparent;

    font-family: var(--heading);
    font-size: 13px;
    font-weight: 500;

    color: var(--dark);
    cursor: pointer;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.bestseller-product-grid {
    row-gap: 65px !important;
}

.bestseller-product {
    transition:
        opacity 0.35s ease,
        transform 0.45s var(--ease);
}

.bestseller-product.is-hidden {
    display: none;
}

.bestseller-product .product-image {
    position: relative;
    aspect-ratio: 0.79;
    overflow: hidden;
}

.bestseller-product .product-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.bestseller-product .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.7s var(--ease);
}

.bestseller-product:hover .product-image img {
    transform: scale(1.035);
}

.bestseller-product .product-info {
    padding-top: 18px;
}

.bestseller-product .product-category {
    font-size: 12px;
    line-height: 1.5;
}

.bestseller-product .product-info h3 {
    font-size: 16px;
    line-height: 1.4;
}

.bestseller-product .product-price {
    font-size: 14px;
}


/* =========================================================
   BESTSELLER BADGE
========================================================= */

.bestseller-badge {
    background: var(--dark) !important;
    color: #fff !important;
}


/* =========================================================
   LOAD MORE
========================================================= */

.bestseller-load-more {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 85px;
    padding-top: 28px;

    border-top: 1px solid var(--border);
}

.bestseller-load-more > span {
    font-family: var(--heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.bestseller-load-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 13px 20px;

    border: 1px solid var(--dark);
    background: transparent;

    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: var(--dark);
    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.bestseller-load-button i {
    transition: transform 0.35s var(--ease);
}

.bestseller-load-button:hover {
    background: var(--dark);
    color: #fff;
}

.bestseller-load-button:hover i {
    transform: rotate(90deg);
}


/* =========================================================
   TOP THREE / RANKING
========================================================= */

.bestseller-ranking {
    padding: 140px 0;
    background: var(--bg);
}

.bestseller-ranking-heading {
    display: grid;
    grid-template-columns: 25% 75%;
    align-items: start;
    margin-bottom: 75px;
}

.bestseller-ranking-heading h2 {
    margin: 0;

    font-size: clamp(45px, 5.5vw, 76px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -3.5px;
}

.bestseller-rank-item {
    position: relative;

    display: grid;
    grid-template-columns: 70px 145px 1fr 120px 55px;
    align-items: center;
    gap: 28px;

    padding: 22px 0;

    border-top: 1px solid var(--border);
    color: var(--dark);

    transition:
        padding 0.4s var(--ease),
        background 0.3s ease;
}

.bestseller-rank-item:last-child {
    border-bottom: 1px solid var(--border);
}

.bestseller-rank-number {
    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.bestseller-rank-image {
    width: 145px;
    height: 105px;
    overflow: hidden;
    background: #e9e8e3;
}

.bestseller-rank-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s var(--ease);
}

.bestseller-rank-name > span {
    display: block;
    margin-bottom: 6px;

    font-family: var(--heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: var(--muted);
}

.bestseller-rank-name h3 {
    margin: 0;

    font-size: clamp(20px, 2vw, 27px);
    font-weight: 500;
    letter-spacing: -0.8px;
}

.bestseller-rank-price {
    font-family: var(--heading);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.bestseller-rank-arrow {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    justify-self: end;

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 15px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.4s var(--ease);
}

.bestseller-rank-item:hover .bestseller-rank-image img {
    transform: scale(1.07);
}

.bestseller-rank-item:hover .bestseller-rank-arrow {
    transform: rotate(45deg);
    border-color: var(--dark);
    background: var(--dark);
    color: #fff;
}


/* =========================================================
   EDITORIAL SECTION
========================================================= */

.bestseller-editorial {
    padding: 0 0 140px;
    background: var(--bg);
}

.bestseller-editorial .row {
    background: var(--accent-light);
}

.bestseller-editorial-content {
    min-height: 700px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 75px;
}

.bestseller-editorial-content h2 {
    margin-bottom: 28px;

    font-size: clamp(40px, 4.6vw, 63px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -2.8px;
}

.bestseller-editorial-content p {
    max-width: 500px;
    margin-bottom: 36px;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;

    color: var(--muted);
}

.bestseller-editorial-image {
    height: 700px;
    overflow: hidden;
}

.bestseller-editorial-image img {
    width: 100%;
    height: 110%;
    object-fit: cover;
}


/* =========================================================
   NEXT PAGE CTA
========================================================= */

.bestseller-next {
    padding: 0 0 130px;
    background: var(--surface);
}

.bestseller-next-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;

    padding: 90px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bestseller-next-inner h2 {
    margin: 0;

    font-size: clamp(45px, 5.5vw, 75px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -3.5px;
}

.bestseller-next-link {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 25px;

    font-family: var(--heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: var(--dark);
}

.bestseller-next-arrow {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--dark);
    border-radius: 50%;

    font-size: 18px;

    transition:
        transform 0.4s var(--ease),
        background 0.3s ease,
        color 0.3s ease;
}

.bestseller-next-link:hover .bestseller-next-arrow {
    transform: translateX(7px);
    background: var(--dark);
    color: #fff;
}


/* =========================================================
   TYPOGRAPHY SAFETY
========================================================= */

.bestseller-page-hero .section-label,
.bestseller-intro .section-label,
.bestseller-shop .section-label,
.bestseller-ranking .section-label,
.bestseller-editorial .section-label,
.bestseller-next .section-label {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 1px;
}


/* =========================================================
   DESKTOP HOVER
========================================================= */

@media (hover: hover) {

    .bestseller-product .product-image::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;

        background: rgba(20, 22, 17, 0);

        transition: background 0.4s ease;
    }

    .bestseller-product:hover .product-image::after {
        background: rgba(20, 22, 17, 0.025);
    }

    .bestseller-product .product-wishlist,
    .bestseller-product .product-cart-wrap,
    .bestseller-product .product-badge {
        z-index: 3;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .bestseller-page-hero {
        padding: 90px 0 65px;
    }

    .bestseller-page-title {
        font-size: clamp(58px, 9vw, 82px);
        letter-spacing: -4px;
    }

    .bestseller-hero-copy {
        max-width: 620px;
        margin: 40px 0 0;
    }


    .bestseller-feature {
        padding-bottom: 100px;
    }

    .bestseller-feature-wrapper {
        min-height: 680px;
    }

    .bestseller-feature-content {
        padding: 55px 45px;
    }


    .bestseller-intro {
        padding: 100px 0;
    }

    .bestseller-intro .section-label {
        display: block;
        margin-bottom: 35px;
    }


    .bestseller-shop {
        padding: 100px 0;
    }

    .bestseller-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }


    .bestseller-ranking {
        padding: 100px 0;
    }

    .bestseller-ranking-heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bestseller-rank-item {
        grid-template-columns: 50px 120px 1fr 90px 50px;
        gap: 20px;
    }

    .bestseller-rank-image {
        width: 120px;
        height: 95px;
    }


    .bestseller-editorial {
        padding-bottom: 100px;
    }

    .bestseller-editorial-content {
        min-height: auto;
        padding: 60px 50px;
    }

    .bestseller-editorial-image {
        height: 600px;
    }


    .bestseller-next {
        padding-bottom: 100px;
    }

    .bestseller-next-inner {
        padding: 75px 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .bestseller-page-hero {
        padding: 75px 0 50px;
    }

    .bestseller-hero-inner {
        padding-bottom: 45px;
    }

    .bestseller-page-title {
        font-size: 49px;
        line-height: 1.02;
        letter-spacing: -2.8px;
    }

    .bestseller-hero-copy {
        margin-top: 30px;
    }

    .bestseller-hero-copy p {
        font-size: 16px;
    }

    .bestseller-hero-meta span,
    .bestseller-hero-meta strong {
        font-size: 12px;
    }


    .bestseller-feature {
        padding-bottom: 80px;
    }

    .bestseller-feature-wrapper {
        min-height: 630px;
    }

    .bestseller-feature-number {
        top: 25px;
        right: 25px;
        font-size: 12px;
    }

    .bestseller-feature-content {
        padding: 45px 25px;
    }

    .bestseller-feature-content h2 {
        font-size: 45px;
        letter-spacing: -2.4px;
    }

    .bestseller-feature-content p {
        font-size: 16px;
    }


    .bestseller-intro {
        padding: 80px 0;
    }

    .bestseller-intro h2 {
        font-size: 34px;
        letter-spacing: -1.6px;
    }


    .bestseller-shop {
        padding: 80px 0;
    }

    .bestseller-shop-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 35px;
    }

    .bestseller-shop-header h2 {
        font-size: 39px;
    }

    .bestseller-toolbar {
        margin-bottom: 35px;
    }

    .bestseller-filters {
        width: 100%;
    }

    .bestseller-filter {
        padding: 9px 13px;
        font-size: 12px;
    }

    .bestseller-sort {
        width: 100%;
        justify-content: space-between;
    }

    .bestseller-sort label {
        font-size: 12px;
    }

    .bestseller-sort select {
        font-size: 13px;
        text-align: right;
    }

    .bestseller-product-grid {
        row-gap: 45px !important;
    }

    .bestseller-product .product-category {
        font-size: 12px;
    }

    .bestseller-product .product-info h3 {
        font-size: 15px;
    }

    .bestseller-product .product-price {
        font-size: 14px;
    }

    .bestseller-load-more {
        margin-top: 60px;
    }


    .bestseller-ranking {
        padding: 80px 0;
    }

    .bestseller-ranking-heading {
        margin-bottom: 50px;
    }

    .bestseller-ranking-heading h2 {
        font-size: 44px;
        letter-spacing: -2.2px;
    }

    .bestseller-rank-item {
        grid-template-columns: 35px 85px 1fr 45px;
        gap: 14px;
        padding: 17px 0;
    }

    .bestseller-rank-image {
        width: 85px;
        height: 75px;
    }

    .bestseller-rank-number {
        font-size: 12px;
    }

    .bestseller-rank-name > span {
        font-size: 12px;
    }

    .bestseller-rank-name h3 {
        font-size: 16px;
    }

    .bestseller-rank-price {
        display: none;
    }

    .bestseller-rank-arrow {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }


    .bestseller-editorial {
        padding-bottom: 80px;
    }

    .bestseller-editorial-content {
        padding: 50px 30px;
    }

    .bestseller-editorial-content h2 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .bestseller-editorial-content p {
        font-size: 16px;
    }

    .bestseller-editorial-image {
        height: 500px;
    }


    .bestseller-next {
        padding-bottom: 80px;
    }

    .bestseller-next-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 70px 0;
    }

    .bestseller-next-inner h2 {
        font-size: 45px;
        letter-spacing: -2.4px;
    }

    .bestseller-next-link {
        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .bestseller-page-title {
        font-size: 43px;
        letter-spacing: -2.2px;
    }

    .bestseller-feature-wrapper {
        min-height: 580px;
    }

    .bestseller-feature-content h2 {
        font-size: 39px;
    }

    .bestseller-product-grid {
        --bs-gutter-x: 14px;
    }

    .bestseller-product .product-image {
        aspect-ratio: 0.76;
    }

    .bestseller-product .product-category {
        font-size: 12px;
    }

    .bestseller-product .product-info h3 {
        font-size: 15px;
    }

    .bestseller-product .product-price {
        font-size: 14px;
    }

    .bestseller-load-more {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .bestseller-load-more > span {
        font-size: 12px;
    }

    .bestseller-load-button {
        font-size: 12px;
    }

    .bestseller-ranking-heading h2 {
        font-size: 39px;
    }

    .bestseller-rank-item {
        grid-template-columns: 28px 70px 1fr 38px;
        gap: 10px;
    }

    .bestseller-rank-image {
        width: 70px;
        height: 65px;
    }

    .bestseller-rank-name > span {
        font-size: 11px;
    }

    .bestseller-rank-name h3 {
        font-size: 15px;
    }

    .bestseller-rank-arrow {
        width: 36px;
        height: 36px;
    }

    .bestseller-editorial-content {
        padding: 45px 24px;
    }

    .bestseller-editorial-content h2 {
        font-size: 37px;
    }

    .bestseller-editorial-image {
        height: 430px;
    }

    .bestseller-next-inner h2 {
        font-size: 40px;
    }

    .bestseller-next-arrow {
        width: 54px;
        height: 54px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bestseller-feature-image img,
    .bestseller-product .product-image img,
    .bestseller-rank-image img,
    .bestseller-rank-arrow,
    .bestseller-load-button i,
    .bestseller-next-arrow {
        transition: none;
    }

}