/**
 * Shop page styles – WooCommerce shop layout (skinfinity)
 * Sourced from html-pages/shop.html design.
 */

body.shop-page {
    background-color: #fdf4f7;
}

.page-banner {
    height: 320px;
    background-color: #f5e6e9;
    background-size: cover;
    background-position: center center;
    display: table;
    width: 100%;
    position: relative;
}

.page-banner .container {
    display: table;
    height: 100%;
}

.page-banner-entry {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    position: relative;
    z-index: 2;
    color: #1f1f1f;
}

.page-banner-entry h1 {
    font-size: 60px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 500;
    color: #1f1f1f;
}

@media (max-width: 991.98px) {
.page-banner-entry h1 {
        font-size: 42px;
    }
}

@media (max-width: 767.98px) {
.page-banner {
        height: 300px;
    }
.page-banner-entry h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
.page-banner {
        height: 200px;
    }
.page-banner-entry h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }
}

.breadcrumb-row {
    margin-top: 8px;
}

.breadcrumb-row .list-inline {
    margin: 0;
    display: inline-block;
    background: rgb(255, 255, 255);
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #fff;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.02);
    list-style: none;
}

.breadcrumb-row .list-inline li {
    padding: 0;
    margin-right: 3px;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
}

.breadcrumb-row .list-inline li i {
    font-size: 13px;
    margin-right: 5px;
}

.breadcrumb-row .list-inline li a {
    text-decoration: none;
    color: #b6554f;
    font-weight: 600;
}

.breadcrumb-row .list-inline li:last-child {
    color: #5a564d;
}

.breadcrumb-row .list-inline li:after {
    content: "\f105";
    margin-left: 7px;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", "fontawesome";
    font-weight: 900;
    opacity: 0.5;
}

.breadcrumb-row .list-inline li:last-child:after {
    display: none;
}

/* Card-style container around shop content */
.our-services {
    background: transparent;
    padding: 40px 0 80px;
}

.our-services > .container {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.06);
    padding: 80px 90px 90px;
    max-width: 1400px;
}

@media (max-width: 991.98px) {
.our-services > .container {
        padding: 40px 24px 50px;
        border-radius: 24px;
    }
}

/* Shop toolbar: center result count and ordering (e.g. "Showing the single result" + dropdown) */
.shop-loop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: center;
}
.shop-loop-toolbar .woocommerce-result-count {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #5a564d;
}
.shop-loop-toolbar .woocommerce-ordering {
    margin: 0;
    text-align: center;
}
@media (min-width: 576px) {
    .shop-loop-toolbar {
        flex-direction: row;
        justify-content: center;
    }
    .shop-loop-toolbar .woocommerce-result-count {
        width: auto;
    }
}

/* Product grid: bigger spacing like shop.html */
.shop-products.row,
ul.products {
    --bs-gutter-x: 32px;
    --bs-gutter-y: 40px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -16px -40px;
    padding: 0;
}
.shop-products > [class*="col-"] {
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 40px;
}

/* Single product: center and limit width so card looks like shop.html reference */
.shop-products > [class*="col-"]:only-child {
    max-width: 360px;
}

ul.products li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Product card: bigger like shop.html (generous white space, clear separator) */
.item-box {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-media {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.item-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
}

/* Action list (Add To Cart) - appears on hover */
.item-media ul {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    transition: all 0.25s ease;
}

.item-box:hover .item-media ul {
    bottom: 20px;
}

/* Shop page: remove cart icon from product cards on hover */
.post-type-archive-product .item-box .item-media ul {
    display: none !important;
}

.item-media ul li {
    display: inline-block;
    padding: 0 4px;
}

.item-media ul li a {
    width: 40px;
    height: 40px;
    display: inline-block;
    background: #1f1f1f;
    color: #fff;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.item-media ul li a:hover {
    background: #0b9f92;
    color: #fff;
}

/* WooCommerce add-to-cart button: match icon-only design */
.item-media ul li .button,
.item-media ul li a.add_to_cart_button {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    line-height: 40px !important;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 16px !important;
    border-radius: 8px;
    background: #1f1f1f !important;
    color: #fff !important;
    border: 0 !important;
}
.item-media ul li .button:hover,
.item-media ul li a.add_to_cart_button:hover {
    background: #0b9f92 !important;
    color: #fff !important;
}
.item-media ul li .button::before,
.item-media ul li a.add_to_cart_button::before {
    content: "\f290";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    text-indent: 0;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
}
.item-media ul li .button,
.item-media ul li a.add_to_cart_button {
    position: relative;
}

.item-info {
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.item-info .title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.item-info .title a {
    color: #1f1f1f;
    text-decoration: none;
}

.item-info .title a:hover {
    color: #b6554f;
}

.item-info .price {
    font-weight: 400;
    font-size: 17px;
    margin: 0;
}

.item-info .price .amount,
.item-info .price bdi,
.item-info .price ins {
    color: #b6554f;
    text-decoration: none;
}

.item-info .price del {
    margin-left: 8px;
    color: #94a3b8;
    font-weight: 400;
}

.item-info .price del .amount {
    color: #94a3b8;
}

/* Hide default WooCommerce breadcrumb and archive title on shop */
.woocommerce-breadcrumb,
.woocommerce-products-header {
    display: none !important;
}

/* Hide result count ("Showing 1-16 of 17 results") and sorting dropdown on all shop/archive pages */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* Pagination styling – override WooCommerce woocommerce.css (use .woocommerce for specificity) */
.pagination-bx {
    margin-top: 50px;
}

/* Override WooCommerce nav/ul: remove borders, use flex, center */
.woocommerce .pagination-bx .pagination,
.woocommerce nav.woocommerce-pagination,
.woocommerce .pagination-bx .pagination ul,
.woocommerce nav.woocommerce-pagination ul {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 10px 0 !important;
    list-style: none !important;
    gap: 8px;
    flex-wrap: wrap;
    border: none !important;
    border-right: none !important;
    white-space: normal !important;
    clear: none !important;
}

.woocommerce .pagination-bx .pagination li,
.woocommerce nav.woocommerce-pagination ul li {
    display: inline-block !important;
    float: none !important;
    border: none !important;
    border-right: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* Numbered page buttons: light bg, dark text, rounded */
.woocommerce .pagination-bx .pagination li a,
.woocommerce nav.woocommerce-pagination a.page-numbers:not(.prev):not(.next),
.woocommerce nav.woocommerce-pagination span.page-numbers.current {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 15px;
    border-radius: 10px;
    border: none !important;
    font-size: 16px;
    font-weight: 400;
    color: #4E535E;
    background: #E8F6F4 !important;
    text-decoration: none !important;
    text-align: center;
    line-height: 1;
    transition: all 0.2s ease-out;
    margin: 0 !important;
}

/* Active page: teal background, white text */
.woocommerce .pagination-bx .pagination li.active a,
.woocommerce .pagination-bx .pagination li a:hover,
.woocommerce nav.woocommerce-pagination span.page-numbers.current,
.woocommerce nav.woocommerce-pagination a.page-numbers:not(.prev):not(.next):hover {
    background: #2EC4B6 !important;
    color: #ffffff !important;
}

/* Prev/Next: teal text only, no background */
.woocommerce .pagination-bx .pagination li.previous a,
.woocommerce .pagination-bx .pagination li.next a,
.woocommerce nav.woocommerce-pagination a.prev,
.woocommerce nav.woocommerce-pagination a.next {
    border: none !important;
    background: transparent !important;
    color: #2EC4B6 !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    min-width: auto !important;
}

.woocommerce .pagination-bx .pagination li.previous a:hover,
.woocommerce .pagination-bx .pagination li.next a:hover,
.woocommerce nav.woocommerce-pagination a.prev:hover,
.woocommerce nav.woocommerce-pagination a.next:hover {
    background: rgba(46, 196, 182, 0.1) !important;
    color: #2EC4B6 !important;
}
