/* =========================================================
   Roster Product Collections
   Asortiman / Akcija / Outlet
   ========================================================= */

.rspc-page {
    width: 100%;
}

.rspc-description {
    max-width: 900px;
    margin: 0 auto 24px;
    color: #777;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.rspc-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 20px;
    color: #858585;
    font-size: 13px;
}


/* =========================================================
   GRID
   ========================================================= */

.rspc-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    width: 100%;
}

.rspc-product-col {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.rspc-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(165, 145, 129, 0.26);
    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.rspc-card:hover {
    transform: translateY(-6px);

    border-color: rgba(165, 145, 129, 0.62);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.11);
}


/* =========================================================
   IMAGE
   ========================================================= */

.rspc-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f7f6f4;

    text-decoration: none !important;
}

.rspc-card-image img {
    position: absolute;

    top: 0;
    left: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;
    object-position: center center;

    transition:
        transform .48s ease,
        filter .48s ease;
}

.rspc-card:hover .rspc-card-image img {
    transform: scale(1.055);
    filter: brightness(.93);
}


/* =========================================================
   IMAGE HOVER
   ========================================================= */

.rspc-image-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(30, 28, 26, 0.26);

    opacity: 0;

    transition: opacity .28s ease;
}

.rspc-image-overlay span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 9px 16px;

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 4px;

    background: rgba(255, 255, 255, .94);

    color: #66594f;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;

    transform: translateY(8px);

    transition: transform .28s ease;
}

.rspc-card:hover .rspc-image-overlay {
    opacity: 1;
}

.rspc-card:hover .rspc-image-overlay span {
    transform: translateY(0);
}


/* =========================================================
   PRODUCT INFO
   ========================================================= */

.rspc-card-info {
    position: relative;

    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;

    min-height: 145px;

    padding: 17px 13px 16px;

    background: #fff;

    border-top: 1px solid rgba(0, 0, 0, .04);
}

.rspc-card-info::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 36px;
    height: 2px;

    background: #a59181;

    transform: translateX(-50%);

    transition: width .3s ease;
}

.rspc-card:hover .rspc-card-info::before {
    width: 62px;
}


/* =========================================================
   TITLE
   ========================================================= */

.rspc-card-title {
    width: 100%;

    margin: 0 0 9px;

    text-align: center !important;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: .1px;
}

.rspc-card-title a {
    display: block;

    color: #3d3936 !important;

    text-align: center !important;
    text-decoration: none !important;

    transition: color .22s ease;
}

.rspc-card:hover .rspc-card-title a {
    color: #8c7666 !important;
}


/* =========================================================
   PRICE
   ========================================================= */

.rspc-card-price {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 5px 8px;

    width: 100%;

    margin: 1px 0 12px;

    text-align: center;
}

.rspc-current-price {
    color: #2d2a28;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.rspc-old-price {
    color: #9b9b9b;

    font-size: 13px;
    font-weight: 400;

    text-decoration: line-through;
}

.rspc-discount-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 22px;

    padding: 3px 7px;

    border-radius: 20px;

    background: #a59181;

    color: #fff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.rspc-card-actions {
    display: flex;

    justify-content: center;

    width: 100%;

    margin-top: auto;
}

.rspc-add-to-cart-form {
    width: 100%;
    margin: 0;
}

.rspc-add-to-cart,
.rspc-details-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;
    min-height: 40px;

    padding: 9px 14px;

    border: 1px solid #2f2b29;
    border-radius: 5px;

    background: #2f2b29;

    color: #fff !important;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        background .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.rspc-add-to-cart:hover,
.rspc-details-button:hover {
    background: #a59181;
    border-color: #a59181;

    color: #fff !important;

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(165, 145, 129, .22);
}

.rspc-cart-icon {
    display: inline-block;

    font-size: 15px;
    line-height: 1;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.rspc-pagination {
    display: flex;

    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 40px 0 10px;
}

.rspc-page-link,
.rspc-ellipsis {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #e3e3e3;

    background: #fff;

    color: #444;

    font-size: 14px;

    text-decoration: none !important;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.rspc-page-link:hover {
    background: #ccbeaf;
    border-color: #ccbeaf;
    color: #fff;
}

.rspc-page-link.is-current {
    background: #a59181;
    border-color: #a59181;

    color: #fff;

    pointer-events: none;
}

.rspc-prev,
.rspc-next {
    font-size: 22px;
    line-height: 1;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.rspc-empty {
    margin-top: 20px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {

    .rspc-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 16px;
    }

}

@media (max-width: 767px) {

    .rspc-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .rspc-toolbar {
        justify-content: flex-start;
    }

    .rspc-card {
        border-radius: 9px;
    }

    .rspc-card-info {
        min-height: 126px;
        padding: 13px 8px 11px;
    }

    .rspc-card-title {
        margin-bottom: 7px;
        font-size: 12.5px;
    }

    .rspc-current-price {
        font-size: 15px;
    }

    .rspc-old-price {
        font-size: 11px;
    }

    .rspc-add-to-cart,
    .rspc-details-button {
        min-height: 36px;
        padding: 8px 7px;
        font-size: 11.5px;
    }

    .rspc-image-overlay {
        display: none;
    }

}

@media (max-width: 390px) {

    .rspc-products {
        gap: 14px 8px;
    }

}
