
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.tax-product_brand {
    background: #f5f7fb;
}

body.post-type-archive-product .term-description,
body.post-type-archive-product .taxonomy-description,
body.post-type-archive-product .archive-description,
body.tax-product_cat .term-description,
body.tax-product_cat .taxonomy-description,
body.tax-product_cat .archive-description,
body.tax-product_tag .term-description,
body.tax-product_tag .taxonomy-description,
body.tax-product_tag .archive-description {
    display: none !important;
}

.buytuga-archive-header {
    width: 100%;
    max-width: 1240px;
    margin: 18px auto 14px;
    padding: 0 18px;
    box-sizing: border-box;
}

.buytuga-archive-header__inner {
    border: 1px solid #e8edf3;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 34px rgba(15, 39, 66, 0.05);
    padding: 24px 28px;
}

.buytuga-archive-header__title {
    margin: 0 0 10px;
    color: #0f2742;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
}

.buytuga-archive-header__description {
    margin: 0 0 12px;
    color: #3d5168;
    font-size: 15px;
    line-height: 1.7;
    max-width: 920px;
}

.buytuga-archive-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.buytuga-archive-header__count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f7f9fc;
    border: 1px solid #e6edf4;
    color: #10243d;
    font-size: 13px;
    font-weight: 800;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
    margin: 0 !important;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    margin: 0 !important;
    color: #46596f;
    font-size: 14px;
    line-height: 1.4;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe3ec;
    background: #fff;
    padding: 9px 14px;
    color: #24364a;
    box-shadow: none;
}

body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto 28px !important;
    padding: 0 18px !important;
    list-style: none !important;
    box-sizing: border-box;
}

body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
    display: none !important;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 16px 16px !important;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 39, 66, 0.055);
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-sizing: border-box;
}

body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 39, 66, 0.085);
    border-color: #d9e3ed;
}

body.post-type-archive-product ul.products li.product a img,
body.tax-product_cat ul.products li.product a img,
body.tax-product_tag ul.products li.product a img {
    width: 100% !important;
    max-width: 100%;
    height: 190px !important;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto 12px !important;
    display: block;
}

body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product h2,
body.tax-product_cat ul.products li.product h2,
body.tax-product_tag ul.products li.product h2 {
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    color: #0f2742 !important;
    margin: 6px 0 10px !important;
    min-height: 74px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
    margin-top: auto !important;
    min-height: 46px;
    color: #12253d !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
}

body.post-type-archive-product ul.products li.product .price del,
body.tax-product_cat ul.products li.product .price del,
body.tax-product_tag ul.products li.product .price del {
    color: #7a8797 !important;
    opacity: 1 !important;
    font-size: 14px;
    margin-right: 4px;
}

body.post-type-archive-product ul.products li.product .price ins,
body.tax-product_cat ul.products li.product .price ins,
body.tax-product_tag ul.products li.product .price ins {
    color: #ff6426 !important;
    text-decoration: none !important;
    margin-right: 5px;
}

body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button,
body.post-type-archive-product ul.products li.product .added_to_cart,
body.tax-product_cat ul.products li.product .added_to_cart,
body.tax-product_tag ul.products li.product .added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px !important;
    border: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    box-shadow: 0 6px 16px rgba(15, 39, 66, 0.08);
}

body.post-type-archive-product ul.products li.product .button.add_to_cart_button,
body.post-type-archive-product ul.products li.product .button.product_type_simple,
body.tax-product_cat ul.products li.product .button.add_to_cart_button,
body.tax-product_cat ul.products li.product .button.product_type_simple,
body.tax-product_tag ul.products li.product .button.add_to_cart_button,
body.tax-product_tag ul.products li.product .button.product_type_simple {
    background: #ffc400 !important;
    color: #10243d !important;
}

body.post-type-archive-product ul.products li.product .button.product_type_variable,
body.post-type-archive-product ul.products li.product .button.product_type_external,
body.post-type-archive-product ul.products li.product .button.product_type_grouped,
body.post-type-archive-product ul.products li.product .button.product_type_bundle,
body.post-type-archive-product ul.products li.product .added_to_cart,
body.tax-product_cat ul.products li.product .button.product_type_variable,
body.tax-product_cat ul.products li.product .button.product_type_external,
body.tax-product_cat ul.products li.product .button.product_type_grouped,
body.tax-product_cat ul.products li.product .button.product_type_bundle,
body.tax-product_cat ul.products li.product .added_to_cart,
body.tax-product_tag ul.products li.product .button.product_type_variable,
body.tax-product_tag ul.products li.product .button.product_type_external,
body.tax-product_tag ul.products li.product .button.product_type_grouped,
body.tax-product_tag ul.products li.product .button.product_type_bundle,
body.tax-product_tag ul.products li.product .added_to_cart {
    background: #0f73ff !important;
    color: #ffffff !important;
}

body.post-type-archive-product ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_tag ul.products li.product .button:hover {
    filter: brightness(0.98);
}

body.post-type-archive-product ul.products li.product .buytuga-archive-actions,
body.tax-product_cat ul.products li.product .buytuga-archive-actions,
body.tax-product_tag ul.products li.product .buytuga-archive-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

body.post-type-archive-product ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale,
body.tax-product_tag ul.products li.product .onsale {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
    background: #ff5a1f !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 16px rgba(255, 90, 31, 0.22);
}

body.post-type-archive-product ul.products li.product.outofstock,
body.tax-product_cat ul.products li.product.outofstock,
body.tax-product_tag ul.products li.product.outofstock {
    border-color: #e3e8ee;
    background: #fcfdff;
}

body.post-type-archive-product ul.products li.product .stock.out-of-stock,
body.tax-product_cat ul.products li.product .stock.out-of-stock,
body.tax-product_tag ul.products li.product .stock.out-of-stock {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #111827 !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0 !important;
    z-index: 2;
}

body.post-type-archive-product nav.woocommerce-pagination,
body.tax-product_cat nav.woocommerce-pagination,
body.tax-product_tag nav.woocommerce-pagination {
    max-width: 1240px;
    margin: 10px auto 18px;
    padding: 0 18px;
    box-sizing: border-box;
}

body.post-type-archive-product nav.woocommerce-pagination ul,
body.tax-product_cat nav.woocommerce-pagination ul,
body.tax-product_tag nav.woocommerce-pagination ul {
    border: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li,
body.tax-product_cat nav.woocommerce-pagination ul li,
body.tax-product_tag nav.woocommerce-pagination ul li {
    border: 0 !important;
    float: none !important;
    overflow: visible !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li span,
body.post-type-archive-product nav.woocommerce-pagination ul li a,
body.tax-product_cat nav.woocommerce-pagination ul li span,
body.tax-product_cat nav.woocommerce-pagination ul li a,
body.tax-product_tag nav.woocommerce-pagination ul li span,
body.tax-product_tag nav.woocommerce-pagination ul li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px !important;
    border-radius: 999px;
    border: 1px solid #dfe6ee !important;
    background: #ffffff !important;
    color: #0f2742 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(15, 39, 66, 0.045);
}

body.post-type-archive-product nav.woocommerce-pagination ul li span.current,
body.tax-product_cat nav.woocommerce-pagination ul li span.current,
body.tax-product_tag nav.woocommerce-pagination ul li span.current {
    background: #ffc400 !important;
    border-color: #ffc400 !important;
    color: #10243d !important;
}

body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
    max-width: 1240px;
    margin: 14px auto 8px;
    padding: 0 18px;
    color: #617388;
    font-size: 13px;
}

@media (max-width: 1199px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .buytuga-archive-header {
        margin: 14px auto 12px;
        padding: 0 12px;
    }

    .buytuga-archive-header__inner {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .buytuga-archive-header__title {
        font-size: 28px;
    }

    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 0 12px !important;
    }

    body.post-type-archive-product ul.products li.product,
    body.tax-product_cat ul.products li.product,
    body.tax-product_tag ul.products li.product {
        padding: 14px 12px 14px !important;
        border-radius: 18px;
    }

    body.post-type-archive-product ul.products li.product a img,
    body.tax-product_cat ul.products li.product a img,
    body.tax-product_tag ul.products li.product a img {
        height: 150px !important;
    }

    body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
    body.post-type-archive-product ul.products li.product h2,
    body.tax-product_cat ul.products li.product h2,
    body.tax-product_tag ul.products li.product h2 {
        font-size: 15px !important;
        min-height: 64px;
    }

    body.post-type-archive-product nav.woocommerce-pagination,
    body.tax-product_cat nav.woocommerce-pagination,
    body.tax-product_tag nav.woocommerce-pagination {
        padding: 0 12px;
    }
}

@media (max-width: 540px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: 1fr;
    }

    .buytuga-archive-header__title {
        font-size: 24px;
    }

    .buytuga-archive-header__description {
        font-size: 14px;
    }
}
