@import './grid.css';
@import './components/masthead-side-img.css';

.page-template-popular-page {
    background: #F7F9FA;
}

.page-template-popular-page .page-content {
    padding: 72px 0;
}

.page-template-popular-page .page-content * {
    font-family: 'Roboto Condensed';
}

/* Masthead */

.masthead-inner {
    height: 310px;
}

.masthead-inner-content {
    width: 100%;
}

/* Navigation */

.popular__nav {
    position: sticky;
    top: 90px;
    z-index: 100;
}

.popular__nav::after {
    content: "";
    display: block;
    width: 100dvw;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    opacity: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.popular__nav.nav-fixed::after {
    opacity: 1;
}

.popular__nav--list {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 50px;
    height: 50px;
    overflow: auto;
    transition: all 0.2s ease;
    scrollbar-width: none;
}

.popular__nav.nav-fixed .popular__nav--list {
    justify-content: space-between;
    height: 80px;
}

.popular__nav .popular__nav--item {
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    white-space: nowrap;
    color: #5D696F;
    margin: 0;
    z-index: 1;
    position: relative;
}

.popular__nav .popular__nav--item:hover {
    color: #353B3F;
}

.popular__nav .popular__nav--item.active {
    color: #353B3F;
}

.popular__nav .popular__nav--item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    border-bottom: 4px solid #FEC81E;
}

/* Catalog */

.popular__catalog--title {
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0;
    margin-top: 50px;
}

.popular__catalog--family {
    margin-top: 50px;
}

.popular__catalog--family-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    margin-bottom: 15px;
}

/* Product Card */

.popular__catalog .product-card-detail-info {
    gap: 24px;
}

.popular__catalog .popular__catalog--slick.slick-initialized .product-card-details-block {
    max-width: none !important;
}

.popular__catalog .product-card {
    padding: 24px !important;
}

.popular__catalog--slick .slick-track {
    margin-left: 0;
    padding: 5px 0;
}

.popular__catalog .popular__catalog--slick .slick-slide {
    box-shadow: none;
}

.popular__catalog .product-card__photos-slider .slider-item img {
    width: 324px;
    height: 300px;
}

.popular__catalog--slick .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0 5px;
    text-align: center;
    margin-top: 16px;
}

.popular__catalog--slick .slick-dots li {
    margin: 0;
    padding: 0;
}

.popular__catalog--slick .slick-dots li button {
    font-size: 0px;
    background: #fff;
    width: 100px;
    height: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    clip-path: none !important;
}

.popular__catalog--slick .slick-dots li.slick-active button {
    background: #ffc81e;
}

.popular__catalog--slick .slick-dots li::before {
    display: none;
}

.popular__catalog--slick .product-card__photos-slider .slick-track,
.popular__catalog--slick .product-card__photos-slider .slick-slide,
.popular__catalog--slick .product-card__photos-slider .slick-slide img {
    width: 100% !important;
}

.popular__catalog--slick .product-card__photos-slider .slick-list,
.popular__catalog--slick .product-card__photos-slider .slick-dots {
    padding: 0;
}

.popular__catalog--slick .product-card__photos-slider .slick-slide {
    margin: 0;
}

.popular__catalog--slick .product-card__photos-slider .slick-dots li {
    flex: 1;
    max-width: 72px;
}

.popular__catalog--slick .product-card__photos-slider .slick-dots li button { 
    background: #F0F0F0;
    width: 100%;
}

.popular__catalog .product-card .product-card__title {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    color: #060606;
    min-height: auto;
    margin: 0;
    padding: 0 !important;
    text-align: center;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.popular__catalog .product-card__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular__catalog .product-card__stats .product-card__stat-row {
    padding: 0;
    color: #060606;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    border: none;
}

.popular__catalog .product-card__stats .product-card__stat-row dt {
    flex: 1;
    display: flex;
    padding: 0;
    font-weight: 500;
    text-transform: uppercase;
}

.popular__catalog .product-card__stats .product-card__stat-row dt::after {
    content: '';
    flex: 1;
    margin: 0 5px;
    background-image: linear-gradient(to right, #5D696F 33%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 5px 1px;
    background-repeat: repeat-x;
}

.popular__catalog .product-card .product-detail {
    position: unset !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.popular__catalog .product-card .product-detail .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    background: #FEC81E !important;
    color: #000 !important;
    height: 48px;
    margin: 0 !important;
}

.popular__catalog .product-card .product-detail .btn:hover {
    background: #262A2C !important;
    color: #fff !important;
}

.popular__catalog .product-card .product-card__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.popular__catalog .product-card .product-card__price p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #5D696F;
    margin: 0;
}

.popular__catalog .product-card .product-card__price .product-card__price--total {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #060606;
    text-transform: uppercase;
}

/* Adaptive */

@media (max-width: 1100px) {
    .popular__catalog--slick .product-card__photos-slider .slick-dots li {
        max-width: 80px;
    }
}

@media (max-width: 1024px) {
    .popular__nav {
        top: 127px;
    }
}

@media (max-width: 960px) {
    .masthead-inner {
        height: 310px;
    }
}

@media (max-width: 800px) {
    .masthead-inner {
        height: 295px;
    }
}

@media (max-width: 599px) {
    .masthead-inner {
        height: 285px;
    }

    .rank-math-breadcrumb {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .page-template-popular-page .page-content {
        padding-top: 0;
    }
}

@media (max-width: 550px) {
    .popular__nav {
        top: 108px;
    }
}

@media (max-width: 500px) {
    .page-template-popular-page .page-content {
        padding: 10px 0 30px;
    }
}

@media (max-width: 450px) {
    .rank-math-breadcrumb {
        margin-bottom: 30px;
    }

    .popular__nav--list {
        gap: 35px;
        height: 35px;
    }

    .popular__nav .popular__nav--item {
        font-size: 18px;
        line-height: 24px;
    }

    .popular__catalog--title {
        font-size: 22px;
        line-height: 28px;
        margin-top: 30px;
    }

    .popular__catalog--family-title {
        font-size: 18px;
        line-height: 24px;
    }

    .popular__catalog--family {
        margin-top: 30px;
    }

    .popular__catalog .product-card .product-card__title {
        flex-direction: row;
        justify-content: center;
        font-size: 18px;
        line-height: 24px;
        gap: 5px;
    }

    .popular__catalog--slick .slick-list {
        padding: 0;
    }

    .popular__catalog .popular__catalog--slick .slick-slide {
        margin: 0;
    }

    .popular__catalog .product-card__stats .product-card__stat-row {
        font-size: 14px;
        line-height: 20px;
    }

    .popular__catalog .product-card .product-card__price p {
        font-size: 14px;
        line-height: 20px;
    }

    .popular__catalog .product-card .product-card__price .product-card__price--total {
        font-size: 18px;
        line-height: 24px;
    }

    .popular__catalog .product-card .product-detail .btn {
        font-size: 14px;
        line-height: 20px;
    }

    .popular__catalog .product-card-detail-info {
        gap: 16px;
    }

    .popular__catalog--slick .slick-dots {
        gap: 8px;
    }

    .popular__catalog--slick .slick-dots li button {
        width: 92px;
    }
}