/**
 * Shop Page Styles - Fixed Version
 * Modern, minimal and attractive design for WooCommerce shop page
 */

/* Remove Default WooCommerce Styles */
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    width: 100%;
}

/* Hide Sidebar Completely */
.woocommerce-shop-page .sidebar,
.woocommerce-shop-page .widget-area,
.woocommerce-shop-page aside,
#secondary {
    display: none !important;
}

/* Make Shop Full Width */
.woocommerce-shop-page #primary,
.woocommerce-shop-page .content-area,
.woocommerce-shop-page main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Main Shop Container */
body.woocommerce-shop-page,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
    background: transparent;
}

.woocommerce-shop-page .site-main,
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

/* Page Header */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.woocommerce-products-header__title,
.page-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    padding: 0;
    font-family: 'IRANSansX', sans-serif;
}

.woocommerce-products-header .term-description,
.page-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
    font-family: 'IRANSansX', sans-serif;
}

/* Toolbar (Result Count & Ordering) */
.woocommerce-before-shop-loop,
.woocommerce .woocommerce-before-shop-loop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    gap: 20px;
    flex-wrap: wrap;
}

.woocommerce-result-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin: 0;
    font-family: 'IRANSansX', sans-serif;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select.orderby {
    padding: 12px 40px 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-family: 'IRANSansX', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 35px;
}

.woocommerce-ordering select.orderby:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Products Grid */
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both;
}

.woocommerce ul.products li.product,
ul.products li.product {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    text-align: center;
}

.woocommerce ul.products li.product::before,
ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.woocommerce ul.products li.product:hover::before,
ul.products li.product:hover::before {
    opacity: 1;
}

/* Product Link */
.woocommerce ul.products li.product a,
ul.products li.product a {
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

/* Product Image */
.woocommerce ul.products li.product img,
ul.products li.product img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 0 20px 0 !important;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    display: block;
}

.woocommerce ul.products li.product:hover img,
ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale,
ul.products li.product .onsale {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3b3b 100%);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'IRANSansX', sans-serif;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(255, 59, 59, 0.4);
    margin: 0;
    min-width: auto;
    min-height: auto;
    line-height: 1;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    font-family: 'IRANSansX', sans-serif !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover h2,
.woocommerce ul.products li.product:hover h3,
ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product:hover h2,
ul.products li.product:hover h3 {
    color: #667eea !important;
}

/* Product Rating */
.woocommerce ul.products li.product .star-rating,
ul.products li.product .star-rating {
    margin: 10px auto !important;
    font-size: 14px;
}

.woocommerce ul.products li.product .star-rating span,
ul.products li.product .star-rating span {
    color: #ffd700;
}

/* Product Price */
.woocommerce ul.products li.product .price,
ul.products li.product .price {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-family: 'IRANSansX', sans-serif !important;
    color: #667eea !important;
}

.woocommerce ul.products li.product .price del,
ul.products li.product .price del {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins,
ul.products li.product .price ins {
    text-decoration: none !important;
    color: #667eea !important;
    background: none !important;
}

.woocommerce ul.products li.product .price .amount,
ul.products li.product .price .amount {
    color: inherit;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
ul.products li.product .button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    padding: 14px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'IRANSansX', sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    margin-top: 15px !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
    color: #fff !important;
}

.woocommerce ul.products li.product .button.added,
ul.products li.product .button.added {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
    border-color: transparent !important;
}

.woocommerce ul.products li.product .button.loading,
ul.products li.product .button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.woocommerce ul.products li.product .button.loading::after,
ul.products li.product .button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pagination */
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px 0;
    padding: 0;
    clear: both;
}

.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul {
    display: flex;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'IRANSansX', sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4) !important;
    color: #fff !important;
}

/* No Products Found */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-no-products-found,
.woocommerce-info,
.woocommerce-no-products-found {
    text-align: center;
    padding: 60px 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 18px !important;
    font-family: 'IRANSansX', sans-serif !important;
    margin: 40px 0 !important;
}

.woocommerce .woocommerce-info::before,
.woocommerce-info::before {
    content: "🔍";
    display: block;
    font-size: 60px;
    margin-bottom: 20px;
}

/* Added to Cart Notice */
.woocommerce-message {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 20px 25px !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 16px !important;
    color: #4caf50 !important;
    font-family: 'IRANSansX', sans-serif !important;
    margin-bottom: 30px !important;
}

.woocommerce-message::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
}

.woocommerce-message a.button {
    background: #4caf50 !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.woocommerce-message a.button:hover {
    background: #45a049 !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 25px;
    }

    .woocommerce-products-header__title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce-shop-page .site-main,
    .post-type-archive-product .site-main,
    .tax-product_cat .site-main,
    .tax-product_tag .site-main {
        padding: 60px 15px 40px;
    }

    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px;
    }

    .woocommerce ul.products li.product img,
    ul.products li.product img {
        height: 200px !important;
    }

    .woocommerce-products-header {
        margin-bottom: 40px;
        padding: 30px 15px;
        border-radius: 16px;
    }

    .woocommerce-products-header__title {
        font-size: 28px;
    }

    .woocommerce-before-shop-loop {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-ordering select.orderby {
        width: 100%;
    }

    .woocommerce ul.products li.product .onsale,
    ul.products li.product .onsale {
        top: 25px;
        right: 25px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
    }

    .woocommerce ul.products li.product .price,
    ul.products li.product .price {
        font-size: 18px !important;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 40px;
        height: 40px;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        padding: 15px;
    }

    .woocommerce ul.products li.product img,
    ul.products li.product img {
        height: 250px !important;
    }

    .woocommerce-products-header__title {
        font-size: 24px;
    }

    .woocommerce ul.products li.product .button,
    ul.products li.product .button {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}
.woocommerce-ordering{
    margin-bottom: 30px;
}