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

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

.page-banner {
    height: 320px;
    background-color: #ebe3da;
    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: #5c4033;
    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;
    }
}

/* Search / filter results header */
.shop-results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 0 0 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #faf7f2 0%, #f3ebe0 100%);
    border: 1px solid #ebe4d8;
    border-radius: 16px;
}

.shop-results-query {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #5c4033;
    font-weight: 500;
}

.shop-results-clear {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #5c4033;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5ddd3;
    border-radius: 999px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.shop-results-clear:hover {
    color: #fff;
    background: var(--accent-color, #a67c52);
    border-color: var(--accent-color, #a67c52);
}

.shop-no-results {
    text-align: center;
    padding: 48px 24px 24px;
}

.shop-no-results p {
    margin: 0 0 20px;
    font-size: 17px;
    color: #6b7280;
}

body.shop-page.shop-has-search .page-banner-entry h1 {
    font-size: clamp(28px, 4vw, 48px);
    max-width: 900px;
}

/* Shop search bar */
.shop-search-wrap {
    margin: 0 auto 36px;
    max-width: 920px;
}

body.shop-page .shop-search-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.shop-page .shop-search-form::before,
body.shop-page .shop-search-form::after {
    display: none;
}

body.shop-page .shop-search-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    min-height: 58px;
    background: #f4f4f4;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border: 1px solid #ececec;
}

body.shop-page .shop-search-category {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
}

body.shop-page .shop-search-select {
    border: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
    padding: 0 36px 0 22px;
    min-height: 58px;
    width: auto;
    min-width: 160px;
    max-width: 240px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23374151' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px 6px;
    line-height: 1.4;
}

.shop-search-select:focus {
    outline: none;
}

body.shop-page .shop-search-divider {
    flex: 0 0 1px;
    align-self: center;
    width: 1px;
    height: 28px;
    background: #d1d5db;
}

body.shop-page .shop-search-field {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

body.shop-page .shop-search-input {
    width: 100%;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 20px;
    min-height: 58px;
    font-size: 15px;
    font-weight: 400;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

.shop-search-input::placeholder {
    color: #9ca3af;
}

.shop-search-input:focus {
    outline: none;
}

body.shop-page .shop-search-submit {
    flex: 0 0 58px;
    width: 58px;
    min-height: 58px;
    border: 0 !important;
    margin: 0;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #e02020 !important;
    color: #fff !important;
    cursor: pointer;
    border-radius: 0 14px 14px 0;
    transition: background-color 0.15s ease;
    box-shadow: none !important;
}

body.shop-page .shop-search-submit:hover,
body.shop-page .shop-search-submit:focus {
    background: #c91b1b !important;
    color: #fff !important;
    outline: none;
    opacity: 1;
}

.shop-search-submit i {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 640px) {
    .shop-search-wrap {
        margin-bottom: 24px;
    }

    body.shop-page .shop-search-bar {
        flex-wrap: wrap !important;
        border-radius: 12px;
    }

    body.shop-page .shop-search-category {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }

    body.shop-page .shop-search-select {
        width: 100%;
        max-width: none;
        padding-left: 16px;
    }

    body.shop-page .shop-search-divider {
        display: none;
    }

    body.shop-page .shop-search-field {
        flex: 1 1 auto;
        width: auto;
    }

    body.shop-page .shop-search-input {
        padding-left: 16px;
    }

    body.shop-page .shop-search-submit {
        flex: 0 0 52px;
        width: 52px;
        min-height: 52px;
        border-radius: 0 0 12px 0;
    }

    .shop-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Shop toolbar: result count (left), filters (right) */
.shop-loop-toolbar {
    margin-bottom: 32px;
    padding-top: 4px;
    border-top: 1px solid #ebebeb;
}

.shop-loop-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 24px;
    padding-top: 20px;
}

.shop-toolbar-left .woocommerce-result-count {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
    font-weight: 400;
}

.shop-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 22px;
}

.shop-toolbar-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.shop-toolbar-sale label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
    font-weight: 400;
    user-select: none;
}

.shop-toolbar-sale input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1f2937;
    cursor: pointer;
}

.shop-toolbar-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
    margin-right: 4px;
}

.shop-toolbar-per-page {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.shop-toolbar-per-page a {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.shop-toolbar-per-page a:hover {
    color: #111827;
    border-bottom-color: #d1d5db;
}

.shop-toolbar-per-page a.is-active {
    border-bottom-color: #111827;
}

.shop-toolbar-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shop-toolbar-sort .woocommerce-ordering {
    margin: 0;
}

.shop-toolbar-sort .woocommerce-ordering form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.shop-toolbar-sort .woocommerce-ordering select.orderby {
    border: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111827' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right center;
    background-size: 10px 6px;
    padding: 0 18px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    max-width: 220px;
}

.shop-toolbar-sort .woocommerce-ordering select.orderby:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .shop-loop-toolbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .shop-toolbar-divider {
        display: none;
    }
}

/* 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 add-to-cart overlay on product cards */
body.shop-page .item-box .item-media ul {
    display: none !important;
}

/* WooCommerce default loop buttons on shop (when search breaks body class) */
body.shop-page .woocommerce ul.products li.product .button,
body.shop-page .shop-products .add_to_cart_button {
    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: #6b5d4f;
    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: #6b5d4f !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: #5c4033;
}

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

.item-info .price .amount,
.item-info .price bdi,
.item-info .price ins {
    color: #5c4033;
    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;
}

/* 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;
}
