/**
 * Custom Shop Styles - Mobile First Approach
 * Base: 320px+ (Mobile)
 * Progressively enhanced for larger screens
 */

#primary, #page {
    background: #fafafa !important;
    width: 100%;
    
}

/* ============================================
   MOBILE BASE STYLES (320px+)
   ============================================ */

/* Base Container */
.woocommerce-custom-shop {
    width: 100%;
}

.custom-shop-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 10px;
    position: relative;
    transition: padding 0.3s ease; /* Smooth transition */
}

.custom-shop-wrapper.has-filters {
    padding: 40px 10px 20px 10px;
}

/* Category Header - Mobile */
.category-header {
    margin-bottom: 20px;
    text-align: center;
}
.woocommerce-breadcrumb::after, .woocommerce-breadcrumb::before {
    display: none !important;
}
 .woocommerce-breadcrumb {
    padding: 16px 16px !important;
    font-size: 12px !important;
    background: #fafafa !important ;
    font-weight: 600;
    display: flex ;
    align-items: center;
    justify-content: start;
    }
    .woocommerce-breadcrumb span {
    margin: 0 .7rem !important;
}
.woocommerce .woocommerce-breadcrumb {
    margin: 0 !important;
}
.woocommerce-breadcrumb p {
        color: #666 !important;
         transition: color 0.3s;
                 margin: 0 !important;


}
.woocommerce-breadcrumb a {
             transition: color 0.3s;
}
.woocommerce-breadcrumb a:hover {
        color: #B87939 !important;
}
.woocommerce-breadcrumb > *:nth-last-child(2) {
        color: #B87939 !important;
        margin: 0 !important;

}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.2;
}

.category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Product Items - Mobile */
.custom-product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Product Rating - Mobile */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
    margin: 6px 0;
}

 /*Star Rating Styles */
.star-rating {
    font-size: 12px !important;
    height: 1em;
    line-height: 1;
    position: relative;
    width: 5.4em;
    font-family: star;
    color: #f7c04a;
}

.star-rating::before {
    color: #d3ced2;
    content: "★★★★★";
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    color: #f7c04a;
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
}

.rating-count {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

/* No Reviews - Mobile */
.no-reviews {
    display: flex;
    align-items: center;
}

.no-reviews-text {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

/* Product Price - Mobile */
.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 6px 0 8px;
    align-self: start;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 1px !important;
}

.product-price del {
    color: #989898 !important;
}


/* Select Weight Button - Mobile */
.select-weight-btn {
    background: #b37535 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-align: center !important;
    display: block !important;
    transition: .2s !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: auto;
}

.select-weight-btn:hover {
    background: #8f5d27 !important;
    transform: translateY(-2px);
}

/* Loading Indicator - Mobile */
.shop-loading {
    text-align: center;
    padding: 30px 15px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination - Mobile */
.custom-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding: 0 12px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.page-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* No Products Message - Mobile */
.no-products {
    text-align: center;
    padding: 40px 15px;
    font-size: 16px;
    color: #666;
}

/* ============================================
   SMALL MOBILE (380px+)
   ============================================ */
@media (min-width: 380px) {
    .category-title {
        font-size: 24px;
    }
}

/* ============================================
   LARGE MOBILE (480px+)
   ============================================ */
@media (min-width: 480px) {

    .category-header {
        margin-bottom: 22px;
    }

    .category-title {
        font-size: 26px;
        margin: 0 0 10px;
    }

    .category-description {
        font-size: 15px;
    }


  
    .product-rating {
        margin: 7px 0;
    }

    /*.star-rating {*/
    /*    font-size: 12px;*/
    /*}*/

    .rating-count {
        font-size: 13px;
    }

    .no-reviews-text {
        font-size: 12px;
    }

    .product-price {
        font-size: 15px;
        margin: 7px 0 10px;
        align-self: start;
    }

    .select-weight-btn {
        padding: 9px 14px !important;
        font-size: 14px !important;
        border-radius: 22px !important;
    }

    .spinner {
        width: 45px;
        height: 45px;
    }

    .custom-pagination {
        gap: 8px;
        margin-top: 28px;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .no-products {
        padding: 50px 20px;
        font-size: 17px;
    }
}

/* ============================================
   TABLET - Small (640px+)
   ============================================ */
@media (min-width: 640px) {
    .star-rating {
    font-size: 1rem !important;
}

.star-rating::before {
    color: #d3ced2;
    content: "★★★★★";
    position: absolute;
}



  
}

/* ============================================
   TABLET - Medium (768px+)
   ============================================ */
@media (min-width: 768px) {
    .woocommerce-breadcrumb {
    margin:1rem 0 0 0 !important ;
    padding: 16px 16px !important;
    font-size: 16px !important;
}

    .category-header {
        margin-bottom: 25px;
    }

    .category-title {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
        line-height: 1.6;
    }


    .product-rating {
        min-height: 20px;
        margin: 8px 0;
        gap: 8px;
    }

   

    .rating-count,
    .no-reviews-text {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
        margin: 8px 0 12px;
    }

    .select-weight-btn {
        padding: 10px 16px !important;
        font-size: 15px !important;
        border-radius: 25px !important;
    }

    .shop-loading {
        padding: 40px 20px;
    }

    .spinner {
        border-width: 4px;
        width: 50px;
        height: 50px;
    }

    .custom-pagination {
        margin-top: 30px;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 15px;
        border-radius: 8px;
    }

    .no-products {
        padding: 60px 20px;
        font-size: 18px;
    }
}

/* ============================================
   DESKTOP - Small (1024px+)
   ============================================ */
@media (min-width: 1024px) {


    .product-price {
        font-size: 18px;
    }

    .select-weight-btn {
        padding: 12px 18px !important;
    }
}

/* ============================================
   DESKTOP - Large (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .category-title {
        font-size: 30px;
    }

    .select-weight-btn {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
}

/* ============================================
   DESKTOP - Extra Large (1400px+)
   ============================================ */
@media (min-width: 1400px) {

}