

/* =========================================================
   MARTISH THEME - SHOP PAGE STYLES
   ========================================================= */

.shop-page-section {
    width: 100%;
    padding: 40px 0 60px;
}

.shop-page-section .container {
    /*max-width: 1320px;*/
    max-width: 100%;
}


/* ---------------------------------------------------------
   SIDEBAR WIDGETS - shared box style
--------------------------------------------------------- */
.shop-sidebar {
    margin-bottom: 30px;
}

.shop-widget {
  border-radius: 12px;
    padding: 18px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.shop-widget-title {
    font-weight: 800;
    font-size: 18px;
    margin: 0 0 16px;
    color: #1c1c1c;
}

.shop-widget-search {
    background-color: var(--shopback);
    padding: 8px;
}


/* ---------------------------------------------------------
   SEARCH FORM
--------------------------------------------------------- */
.shop-search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.shop-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    color: #1c1c1c;
}

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

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

.shop-search-btn {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #1c1c1c;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-search-btn:hover {
    color: var(--martish-orange, #f8a51b);
}


/* ---------------------------------------------------------
   CATEGORY LIST
--------------------------------------------------------- */
.shop-category-list {
    list-style: none;
    margin: 0;
    padding: 6px 8px;
    background-color: var(--shopback);
    border-radius: 12px;
}

.shop-category-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-category-item:last-child {
    border-bottom: none;
}

.shop-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    color: var(--body);
    font-size: 16px;
    font-weight: 500;
    color: var(--body);
   line-height: 24px;
}

.shop-category-link:hover,
.shop-category-item.is-active .shop-category-link {
    color: var(--primary_hover, #4caf50);
}

.shop-category-count {
    color: #9a9a9a;
    font-size: 13px;
}


/* ---------------------------------------------------------
   PRICE FILTER WIDGET (WooCommerce default + fallback)
--------------------------------------------------------- */
.shop-price-filter-widget .price_slider_wrapper,
.shop-price-filter-fallback {
    width: 100%;
}

.shop-price-filter-widget .price_slider {
    margin-bottom: 14px;
}

/* jQuery UI slider track */
.shop-price-filter-widget .ui-slider {
    position: relative;
    height: 4px;
    background-color: #e6e6e6;
    border-radius: 4px;
    border: none;
}

.shop-price-filter-widget .ui-slider .ui-slider-range {
    position: absolute;
    height: 100%;
    background-color: var(--martish-orange, #f8a51b);
    border-radius: 4px;
}

.shop-price-filter-widget .ui-slider .ui-slider-handle {
    position: absolute;
    top: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--martish-orange, #f8a51b);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
}

.shop-price-filter-widget .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-price-filter-widget .price_label {
    font-size: 13.5px;
    color: #6a6a6a;
    order: 1;
    flex: 1 1 100%;
}

.shop-price-filter-widget button[type="submit"],
.price-filter-btn {
    background-color: var(--martish-orange, #f8a51b);
    color: #1c1c1c;
    border: none;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 26px;
    border-radius: 30px;
    order: 2;
}

.shop-price-filter-widget button[type="submit"]:hover,
.price-filter-btn:hover {
    background-color: var(--martish-orange);
    color: #ffffff;
}

/* Fallback min/max inputs */
.price-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-filter-input {
    flex: 1 1 50%;
    min-width: 0;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13.5px;
}

.price-filter-sep {
    color: #9a9a9a;
}


/* ---------------------------------------------------------
   BEST DEALS WIDGET
--------------------------------------------------------- */
.best-deals-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.best-deal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px;
    background-color: #ffffff;
    transition: box-shadow 0.25s ease;
}

.best-deal-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.best-deal-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.best-deal-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.best-deal-info {
    flex: 1 1 auto;
    min-width: 0;
}

.best-deal-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 4px 0 4px;
    line-height: 1.3;
}

.best-deal-price {
    color: var(--martish-orange, #f8a51b);
    font-weight: 800;
    font-size: 14px;
}

/* star rating */
.best-deal-info .star-rating {
    font-size: 12px;
    color: var(--martish-orange, #f8a51b);
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    width: 5.4em;
    font-family: inherit;
}

.best-deal-info .star-rating::before {
    content: "\2606\2606\2606\2606\2606";
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    color: #e0e0e0;
}

.best-deal-info .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.best-deal-info .star-rating span::before {
    content: "\2605\2605\2605\2605\2605";
    top: 0;
    position: absolute;
    left: 0;
}


/* ---------------------------------------------------------
   SHOP TOOLBAR (result count + sort)
--------------------------------------------------------- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.woocommerce-result-count {
    margin: 0;
    color: #6a6a6a;
    font-size: 14px;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1c1c1c;
    background-color: #ffffff;
    min-width: 220px;
}


/* ---------------------------------------------------------
   PRODUCT GRID
--------------------------------------------------------- */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.products::before,
ul.products::after {
    content: none !important;
}


/* ---------------------------------------------------------
   PRODUCT CARD
--------------------------------------------------------- */
.shop-product-card {
  overflow: hidden;
  border-radius: 12px;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
}


li.shop-product-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

li.shop-product-card:hover {
    background-color: var(--martish-orange, #f8a51b);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.shop-product-link {
    display: block;
    color: inherit;
}

.shop-product-link:hover {
    color: inherit;
}

/* Image area */
.shop-product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.shop-product-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    position: absolute;
    z-index: 999;
}

li.shop-product-card:hover .shop-product-image-wrap img {
    transform: scale(1.05);
}

/* Sale badge */
.shop-product-image-wrap .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--martish-green-dark, #4caf50);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* Wishlist heart */
.shop-product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.85);
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, background-color 0.25s ease;
    z-index: 2;
}

.shop-product-wishlist:hover,
.shop-product-wishlist.active {
    color: #ffffff;
    background-color: var(--martish-green-dark, #4caf50);
}

/* Info area */
.shop-product-info {
    padding: 16px 18px 8px;
}

.shop-product-info h2,
.shop-product-info .woocommerce-loop-product__title {
  color: var(--heading);
  font-size: 19px;
  font-weight: 701;
  line-height: 1.3;
  margin-bottom: 6px;
  font-family: "Gilroy", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.shop-product-info h2,
.shop-product-info .woocommerce-loop-product__title:hover {
    color: var(--primary_hover);
}


.product-transition::after {
  content: '';
  width: 100%;
  height: 50%;
  border-radius: 12px;
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--primary);
  opacity: 0.1;
  -webkit-transition: all ease 0.35s;
  transition: all ease 0.35s;
}

/*================shop product card hover=*/

.shop-product-card:hover .product-transition::after {
    height: 100%;
    opacity: 8;
}

.shop-product-card:hover .shop-product-image-wrap img {
  transform: scale(1.3);
}

.shop-product-excerpt {
    font-size: 13px;
    color: #6a6a6a;
    line-height: 1.6;
    margin-bottom: 12px;
    min-height: 40px;
}

li.shop-product-card:hover .shop-product-excerpt {
    color: #4a3a00;
}

.shop-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-product-price {
    font-weight: 800;
    font-size: 17px;
    color: var(--martish-orange, #f8a51b);
}

li.shop-product-card:hover .shop-product-price {
    color: #1c1c1c;
}

.shop-product-price del {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 14px;
    margin-right: 6px;
}

.shop-product-price ins {
    text-decoration: none;
}

/* Add to cart button - circular, bottom right of card */
.shop-product-cart-btn {
    position: absolute;
    bottom: 16px;
    right: 18px;
    z-index: 2;
}

.shop-product-cart-btn a.add_to_cart_button,
.shop-product-cart-btn a.product_type_simple,
.shop-product-cart-btn a.added_to_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--martish-orange, #f8a51b);
    color: #1c1c1c;
    font-size: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.shop-product-cart-btn a.add_to_cart_button::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4H5L5.8 7M5.8 7H21L18 14H7M5.8 7L7 14M7 14L5 18H19' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='17' cy='21' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4H5L5.8 7M5.8 7H21L18 14H7M5.8 7L7 14M7 14L5 18H19' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='17' cy='21' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

li.shop-product-card:hover .shop-product-cart-btn a.add_to_cart_button {
    background-color: #1c1c1c;
    color: var(--martish-orange, #f8a51b);
}

.shop-product-cart-btn a.added_to_cart {
    margin-top: 6px;
    font-size: 11px;
    width: auto;
    height: auto;
    padding: 4px 10px;
    border-radius: 12px;
}


/* ---------------------------------------------------------
   PAGINATION
--------------------------------------------------------- */
.woocommerce-pagination {
    margin-top: 36px;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li {
    list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    color: #1c1c1c;
    font-weight: 700;
    font-size: 14px;
}

.woocommerce-pagination .page-numbers .current,
.woocommerce-pagination .page-numbers a:hover {
    background-color: var(--martish-orange, #f8a51b);
    border-color: var(--martish-orange, #f8a51b);
    color: #1c1c1c;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 991.98px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .shop-sidebar {
        order: 2;
    }

    .shop-main {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    ul.products {
        grid-template-columns: 1fr;
    }

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

    .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }
}
