/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,000+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.16.1765111298
Updated: 2025-12-07 16:11:38



/*
Theme Name: Astra Child Clean
Description: Clean CSS for tehranianshop.ir with header cart top-right
Version: 1.0
*/

/* ---------- HEADER CART ---------- */
.custom-header-cart {
    position: fixed;      /* ثابت بالای صفحه */
    top: 18px;
    right: 18px;
    z-index: 9999;
    background: #fff;
    padding: 10px 14px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.custom-header-cart .cart-contents {
    font-size: 28px;     
    text-decoration: none;
    color: #ff2e63;
    position: relative;
    display: inline-block;
}

.custom-header-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff2e63;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

/* ---------- WooCommerce Products ---------- */
.woocommerce ul.products {
    display: grid;
    gap: 20px;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {opacity:0; transform:translateY(20px);}
    to {opacity:1; transform:translateY(0);}
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f3f3;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.6;
    height: 45px;
    overflow: hidden;
}

.woocommerce ul.products li.product .price {
    font-size: 15px;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 8px;
}

.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, #ff5f9e, #ff2e63);
    color: #fff;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: 0.3s;
    margin-top: 6px;
}

.woocommerce ul.products li.product .button:hover {
    transform: scale(1.05);
}

/* ---------- VIP BEST SELLERS ---------- */
.woocommerce ul.products li.product.best-selling {
    border: 2px solid #ffd700;
}

.woocommerce ul.products li.product.best-selling::before {
    content: "⭐ پرفروش";
    position: absolute;
    top: 12px;
    left: 12px;
    background: gold;
    color: #000;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* ---------- SLIDER ---------- */
.swiper,
.elementor-swiper,
.woocommerce-product-slider {
    border-radius: 20px;
    overflow: hidden;
}

.swiper-slide img,
.elementor-swiper img {
    border-radius: 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .woocommerce ul.products li.product a img {
        height: 180px;
    }
}

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

    .custom-header-cart {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .custom-header-cart .cart-contents {
        font-size: 24px;
    }

    .custom-header-cart .cart-count {
        top: -6px;
        right: -8px;
        padding: 2px 6px;
        font-size: 11px;
    }
}