/* Adantech Shop Clean Professional v1.3.0 */

body.adt-scp-active,
body.adt-scp-active .woocommerce,
body.adt-scp-active .products,
body.adt-scp-active .adt-scp-top {
    font-family: var(--adt-scp-font, IRANSansX, YekanBakh, Vazirmatn, IRANSans, Tahoma, Arial, sans-serif) !important;
}

body.adt-scp-active *,
body.adt-scp-active *::before,
body.adt-scp-active *::after {
    box-sizing: border-box;
}

body.adt-scp-active .main-page-wrapper,
body.adt-scp-active .website-wrapper,
body.adt-scp-active .site-content {
    overflow-x: hidden !important;
}

body.adt-scp-active .main-page-wrapper {
    padding-top: 0 !important;
    background: #fff !important;
}

body.adt-scp-active .page-title,
body.adt-scp-active .page-title-default,
body.adt-scp-active .wd-page-title,
body.adt-scp-active .wd-shop-title,
body.adt-scp-active .shop-title-wrapper,
body.adt-scp-active .woocommerce-products-header,
body.adt-scp-active .title-size-default {
    display: none !important;
}

body.adt-scp-active .shop-content-area,
body.adt-scp-active .wd-content-layout,
body.adt-scp-active .wd-products-element,
body.adt-scp-active .wd-products-holder,
body.adt-scp-active .site-content,
body.adt-scp-active .woocommerce {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.adt-scp-top {
    width: min(calc(100% - 28px), var(--adt-scp-max, 1320px));
    margin: 24px auto 20px;
    direction: rtl;
}

.adt-scp-titlebar {
    min-height: 104px;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,122,26,.09), transparent 25%),
        linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 12px 32px rgba(16,24,40,.035);
    padding: 21px 25px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.adt-scp-titlebar h1 {
    margin: 3px 0 5px;
    color: #111827;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.45;
}

.adt-scp-titlebar p {
    margin: 0;
    color: #667085;
    font-size: 12.5px;
    font-weight: 750;
}

.adt-scp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #98a2b3;
    font-size: 11.5px;
    font-weight: 800;
}

.adt-scp-breadcrumb a {
    color: #667085 !important;
    text-decoration: none !important;
}

.adt-scp-breadcrumb span {
    color: var(--adt-scp-primary, #ff7a1a);
}

.adt-scp-breadcrumb i {
    color: #c4c9d2;
    font-style: normal;
}

.adt-scp-catbar {
    margin-bottom: 18px;
}

.adt-scp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.adt-scp-head strong {
    color: #111827;
    font-size: 17px;
    font-weight: 950;
}

.adt-scp-head span {
    color: #667085;
    font-size: 12px;
    font-weight: 750;
}

.adt-scp-cats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 3px 1px 10px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
}

.adt-scp-cat {
    min-width: 138px;
    max-width: 138px;
    min-height: 88px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid #e8edf3;
    color: #111827 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(16,24,40,.035);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 12px 10px;
    transition: .2s ease;
    scroll-snap-align: start;
}

.adt-scp-cat:hover {
    transform: translateY(-2px);
    border-color: rgba(255,122,26,.32);
    box-shadow: 0 18px 40px rgba(16,24,40,.075);
}

.adt-scp-cat i {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: #fff7ed;
    color: var(--adt-scp-primary, #ff7a1a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.adt-scp-cat i img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.adt-scp-cat .dashicons {
    font-family: dashicons !important;
    width: 19px;
    height: 19px;
    font-size: 19px;
}

.adt-scp-cat span {
    color: #111827;
    font-size: 12px;
    font-weight: 950;
}

.adt-scp-cat small {
    color: #98a2b3;
    font-size: 10.5px;
    font-weight: 750;
}

.adt-scp-filterbar {
    min-height: 64px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 12px 32px rgba(16,24,40,.035);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.adt-scp-filter-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adt-scp-filter-title b {
    color: #111827;
    font-size: 15px;
    font-weight: 950;
}

.adt-scp-filter-title small {
    color: #98a2b3;
    font-size: 11.5px;
    font-weight: 750;
}

.adt-scp-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adt-scp-filter-actions a {
    min-height: 36px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    color: #344054 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 900;
}

.adt-scp-filter-actions a:hover,
.adt-scp-filter-actions a.is-active {
    background: #fff7ed;
    border-color: rgba(255,122,26,.25);
    color: var(--adt-scp-primary, #ff7a1a) !important;
}

.adt-scp-filter-actions .dashicons {
    font-family: dashicons !important;
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.adt-scp-filter-actions .adt-scp-reset {
    background: #fff1f2;
    border-color: rgba(239,35,60,.15);
    color: var(--adt-scp-accent, #ef233c) !important;
}

body.adt-scp-active .shop-loop-head,
body.adt-scp-active .wd-shop-tools {
    width: min(calc(100% - 28px), var(--adt-scp-max, 1320px)) !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
}

body.adt-scp-active ul.products,
body.adt-scp-active .products,
body.adt-scp-active .wd-products,
body.adt-scp-active .products.elements-grid {
    width: min(calc(100% - 28px), var(--adt-scp-max, 1320px)) !important;
    max-width: var(--adt-scp-max, 1320px) !important;
    margin: 0 auto 34px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(var(--adt-scp-desktop-cols, 4), minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
    justify-content: start !important;
    direction: rtl !important;
}

body.adt-scp-active ul.products::before,
body.adt-scp-active ul.products::after,
body.adt-scp-active .products::before,
body.adt-scp-active .products::after {
    display: none !important;
}

body.adt-scp-active ul.products li.product,
body.adt-scp-active .product-grid-item,
body.adt-scp-active .wd-product,
body.adt-scp-active .products .product,
body.adt-scp-active .wd-col {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    flex: none !important;
    margin: 0 !important;
}

body.adt-scp-active .product-wrapper,
body.adt-scp-active li.product,
body.adt-scp-active .wd-product {
    position: relative !important;
    min-height: 420px !important;
    background: #fff !important;
    border: 1px solid #dfe6ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(16,24,40,.035) !important;
    overflow: hidden !important;
    transition: .2s ease !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
}

body.adt-scp-active .product-wrapper:hover,
body.adt-scp-active li.product:hover,
body.adt-scp-active .wd-product:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(255,122,26,.28) !important;
    box-shadow: 0 22px 48px rgba(16,24,40,.08) !important;
}

body.adt-scp-active .product-element-top,
body.adt-scp-active .product-image-link {
    width: 100% !important;
    height: 188px !important;
    min-height: 188px !important;
    padding: 20px 18px 8px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

body.adt-scp-active li.product a img,
body.adt-scp-active .product-element-top img,
body.adt-scp-active .product-image-link img,
body.adt-scp-active .wd-product img {
    width: 100% !important;
    max-width: 190px !important;
    height: 165px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

body.adt-scp-active .product-information,
body.adt-scp-active .product-info {
    width: 100% !important;
    padding: 6px 18px 15px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

body.adt-scp-active .wd-product-cats,
body.adt-scp-active .product-cats,
body.adt-scp-active .product-category {
    min-height: 28px !important;
    max-height: 40px !important;
    overflow: hidden !important;
    margin: 0 0 8px !important;
    color: #8a94a6 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

body.adt-scp-active .wd-product-cats a,
body.adt-scp-active .product-cats a,
body.adt-scp-active .product-category a {
    color: #8a94a6 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.adt-scp-active li.product .woocommerce-loop-product__title,
body.adt-scp-active .wd-product .wd-entities-title,
body.adt-scp-active .product-title,
body.adt-scp-active .product-title a,
body.adt-scp-active .wd-entities-title a {
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.7 !important;
    min-height: 52px !important;
    margin: 0 0 13px !important;
    text-align: center !important;
    text-decoration: none !important;
    overflow: hidden !important;
    display: block !important;
}

body.adt-scp-active .price,
body.adt-scp-active span.price {
    width: 100% !important;
    min-height: 48px !important;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 13px !important;
    margin: auto 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

body.adt-scp-active .price,
body.adt-scp-active span.price,
body.adt-scp-active .woocommerce-Price-amount,
body.adt-scp-active .price .amount {
    color: #ef4f2f !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

body.adt-scp-active .price del,
body.adt-scp-active .price del .amount {
    color: #a3aab7 !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
}

body.adt-scp-active .price ins {
    text-decoration: none !important;
}

/* هیچ کانتینر دکمه‌ای مخفی نمی‌شود */
body.adt-scp-active .wd-add-btn,
body.adt-scp-active .product-actions,
body.adt-scp-active .product-buttons {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* دکمه‌های دیگر داخل کارت حذف می‌شوند، اما دکمه مشاهده محصول باقی می‌ماند */
body.adt-scp-active .wd-add-btn > a:not(.adt-scp-view-product),
body.adt-scp-active li.product > a.button:not(.adt-scp-view-product),
body.adt-scp-active .product-wrapper > a.button:not(.adt-scp-view-product),
body.adt-scp-active a.add_to_cart_button:not(.adt-scp-view-product) {
    display: none !important;
}

body.adt-scp-active a.adt-scp-view-product {
    width: auto !important;
    min-width: 148px !important;
    max-width: calc(100% - 34px) !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 8px auto 14px !important;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f3f5f8 !important;
    color: #4b5563 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    z-index: 20 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.adt-scp-active a.adt-scp-view-product::after {
    content: "\f174";
    font-family: dashicons !important;
    width: 17px;
    height: 17px;
    font-size: 17px;
    line-height: 1;
    color: #4b5563;
}

body.adt-scp-active a.adt-scp-view-product:hover {
    background: #fff2e8 !important;
    color: var(--adt-scp-primary, #ff7a1a) !important;
}

body.adt-scp-active a.adt-scp-view-product:hover::after {
    color: var(--adt-scp-primary, #ff7a1a) !important;
}

body.adt-scp-active .adt-scp-view-product + .adt-scp-view-product {
    display: none !important;
}

@media (max-width: 1024px) {
    body.adt-scp-active ul.products,
    body.adt-scp-active .products,
    body.adt-scp-active .wd-products,
    body.adt-scp-active .products.elements-grid {
        grid-template-columns: repeat(var(--adt-scp-tablet-cols, 3), minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .adt-scp-top {
        width: min(calc(100% - 22px), var(--adt-scp-max, 1320px));
        margin-top: 17px;
    }

    .adt-scp-titlebar {
        min-height: 88px;
        border-radius: 18px;
        padding: 16px;
        margin-bottom: 15px;
    }

    .adt-scp-titlebar h1 {
        font-size: 22px;
    }

    .adt-scp-titlebar p {
        display: none;
    }

    .adt-scp-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .adt-scp-cat {
        min-width: 126px;
        max-width: 126px;
        min-height: 84px;
    }

    .adt-scp-filterbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .adt-scp-filter-actions {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    body.adt-scp-active ul.products,
    body.adt-scp-active .products,
    body.adt-scp-active .wd-products,
    body.adt-scp-active .products.elements-grid {
        width: min(calc(100% - 22px), var(--adt-scp-max, 1320px)) !important;
        grid-template-columns: repeat(var(--adt-scp-mobile-cols, 2), minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.adt-scp-active .product-wrapper,
    body.adt-scp-active li.product,
    body.adt-scp-active .wd-product {
        min-height: 346px !important;
        border-radius: 16px !important;
    }

    body.adt-scp-active .product-element-top,
    body.adt-scp-active .product-image-link {
        height: 132px !important;
        min-height: 132px !important;
        padding: 13px 11px 4px !important;
    }

    body.adt-scp-active li.product a img,
    body.adt-scp-active .product-element-top img,
    body.adt-scp-active .product-image-link img,
    body.adt-scp-active .wd-product img {
        max-width: 135px !important;
        height: 118px !important;
    }

    body.adt-scp-active .product-information,
    body.adt-scp-active .product-info {
        padding: 5px 12px 12px !important;
    }

    body.adt-scp-active li.product .woocommerce-loop-product__title,
    body.adt-scp-active .wd-product .wd-entities-title,
    body.adt-scp-active .product-title,
    body.adt-scp-active .product-title a,
    body.adt-scp-active .wd-entities-title a {
        font-size: 13px !important;
        min-height: 42px !important;
    }

    body.adt-scp-active a.adt-scp-view-product {
        min-width: 116px !important;
        max-width: calc(100% - 22px) !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 12px !important;
        margin: 7px auto 11px !important;
        font-size: 10.8px !important;
    }
}

@media (max-width: 390px) {
    body.adt-scp-active ul.products,
    body.adt-scp-active .products,
    body.adt-scp-active .wd-products,
    body.adt-scp-active .products.elements-grid {
        grid-template-columns: 1fr !important;
    }
}
