/*
Theme Name: digital5
Theme URI: https://goldseeds.ir
Author: digital5
Author URI: https://goldseeds.ir
Description: قالب فوق‌سبک و خالص برای المنتور پرو و ووکامرس، کاملاً قابل طراحی با المنتور پرو
Version: 1.0.5
Text Domain: digital5
Tags: e-commerce, woocommerce, custom-menu, featured-images, theme-options, thread-comments, translation-ready, blog, right-sidebar
*/

/* ==================================================
   1. RESET & BASE
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Estedad', 'Vazir', 'Tahoma', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #007cba;
}
a:hover {
    color: #005a87;
}

::selection {
    color: #ffffff;
    background-color: #1450A3;
}
::-webkit-scrollbar-track {
    background: #ccc;
}
::-webkit-scrollbar {
    width: 5px;
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #757a86;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1450A3;
}

.site-main {
    max-width: 100%;
    margin: 0 auto;
}
.site-header {
    padding: 20px;
    background: #f5f5f5;
}
.site-footer {
    padding: 20px;
    background: #f5f5f5;
    text-align: center;
    margin-top: 40px;
}

blockquote {
    background: #f6f6f6;
    padding: 15px 15px 1px 15px;
    border-radius: 11px;
    color: #434343;
}

.tag-a-white a,
.tag-a-white a:hover {
    color: white;
}

.custom-avatar {
    font-family: 'Estedad', sans-serif !important;
}

.icon-call-calling {
    transform: rotate(270deg);
}

/* ==================================================
   2. WOOCOMMERCE GENERAL
   ================================================== */

/* --- Buttons & Forms --- */
:is(.e-loop-item .elementor-widget-woocommerce-product-add-to-cart,
    .woocommerce div.product .e-loop-item .elementor-widget-woocommerce-product-add-to-cart) form.cart .button {
    text-align: center;
    font-family: 'EstedadFN';
}

.woocommerce div.product form.cart .reset_variations {
    font-family: 'EstedadFN';
    color: #2a964a;
}

.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button,
.woocommerce-page .woocommerce-error .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-message .button {
    font-family: 'EstedadFN';
}

.woocommerce-message {
    font-family: 'EstedadFN';
}
.woocommerce .woocommerce-ordering select {
    font-family: 'EstedadFN';
}
.woocommerce .woocommerce-result-count {
    font-family: 'EstedadFN';
}

#chaty-widget-0 .on-hover-text {
    font-family: 'EstedadFN';
}

button.woocommerce-Button.button {
    margin-top: 12px;
}

.woocommerce .star-rating span {
    color: #000;
}

/* --- Messages --- */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce #reviews #commentform .logged-in-as,
.woocommerce .comment-form .logged-in-as {
    background: #ffffff !important;
    border-left: 4px solid #000 !important;
    color: #000 !important;
    padding: 14px 50px 14px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.woocommerce #reviews #commentform .logged-in-as a,
.woocommerce .comment-form .logged-in-as a {
    color: #000 !important;
    font-weight: 500;
}

/* ==================================================
   3. PRODUCT PRICES (DEL / INS)
   ================================================== */
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce div.product p.price s,
.woocommerce div.product span.price s,
.product .price del,
.product .price s,
.price del,
.price s,
.woocommerce-Price-amount del,
.woocommerce-Price-amount s {
    display: inline-block !important;
    text-decoration: line-through !important;
    text-decoration-color: inherit !important;
    text-decoration-thickness: auto !important;
}

.elementor-widget-woocommerce-product-price .price del,
.elementor-widget-woocommerce-product-price .price s,
.elementor-widget-woocommerce-product-variations .price del,
.elementor-widget-woocommerce-product-variations .price s {
    display: inline-block !important;
    text-decoration: line-through !important;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.product .price ins,
.price ins {
    text-decoration: none !important;
    background: none !important;
    display: inline-block !important;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    opacity: 0.7;
    font-size: 0.9em;
    margin-right: 10px;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #006224;
    font-weight: bold;
    font-size: 1.1em;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000000;
    font-size: 1.6em;
}

.elementor-765 .elementor-element.elementor-element-cf8ce17.elementor-wc-products ul.products li.product .price ins .amount,
.elementor-857 .elementor-element.elementor-element-828e51a.elementor-wc-products ul.products li.product .price ins .amount {
    display: inline-block;
    color: #3f8749 !important;
}

.elementor-765 .elementor-element.elementor-element-cf8ce17.elementor-wc-products ul.products li.product span.onsale {
    background-color: #000 !important;
}

/* Hide description titles */
.woocommerce-Tabs-panel--description h2,
.product .description h2,
.elementor-widget-woocommerce-product-content h2 {
    display: none !important;
}

/* ==================================================
   4. ONSALE BADGE
   ================================================== */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
    background-color: #000;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 60px;
    min-height: 60px;
    line-height: 60px;
    text-align: center;
    padding: 0;
}

.onsale,
.woocommerce span.onsale,
.product .onsale {
    display: none !important;
}

@media (max-width: 768px) {
    .woocommerce span.onsale {
        min-width: 45px;
        min-height: 45px;
        font-size: 12px;
        line-height: 45px;
    }
}

/* ==================================================
   5. REVIEW / COMMENT FORM (Black & White)
   ================================================== */
.woocommerce #reviews #commentform,
.woocommerce .comment-form,
.woocommerce #reviews #commentform *,
.woocommerce .comment-form *,
.woocommerce #review_form .stars label {
    font-family: 'Vazirmatn', 'IRANSans', 'Peyda', 'Estedad', Tahoma, sans-serif !important;
}

/* Cookies consent */
.woocommerce .comment-form-cookies-consent,
.woocommerce #reviews #commentform .comment-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 22px !important;
    padding: 5px 0 !important;
    flex-wrap: wrap !important;
}
.woocommerce .comment-form-cookies-consent input#wp-comment-cookies-consent,
.woocommerce #reviews #commentform .comment-form-cookies-consent input#wp-comment-cookies-consent {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #000 !important;
    border-radius: 3px !important;
    background: #fff !important;
    cursor: pointer !important;
    order: 0 !important;
    accent-color: #000 !important;
}
.woocommerce .comment-form-cookies-consent label,
.woocommerce #reviews #commentform .comment-form-cookies-consent label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000 !important;
    letter-spacing: 0.3px !important;
    order: 1 !important;
    cursor: pointer !important;
}

/* Notes & labels */
.woocommerce #reviews #commentform .comment-notes,
.woocommerce .comment-form .comment-notes {
    color: #000 !important;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 400;
}
.woocommerce #reviews #commentform label,
.woocommerce .comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #000 !important;
    margin-bottom: 6px;
}

/* Inputs & textarea */
.woocommerce #reviews #commentform input[type="text"],
.woocommerce #reviews #commentform input[type="email"],
.woocommerce .comment-form input[type="text"],
.woocommerce .comment-form input[type="email"],
.woocommerce #reviews #commentform textarea#comment,
.woocommerce .comment-form textarea#comment {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 8px;
    color: #000000 !important;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
    line-height: 1.6;
}
.woocommerce #reviews #commentform input:focus,
.woocommerce #reviews #commentform textarea:focus,
.woocommerce .comment-form input:focus,
.woocommerce .comment-form textarea:focus {
    border-color: #000000;
    background: #f9f9f9 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.woocommerce #reviews #commentform input::placeholder,
.woocommerce .comment-form input::placeholder,
.woocommerce #reviews #commentform textarea::placeholder,
.woocommerce .comment-form textarea::placeholder {
    color: #888;
    font-weight: 300;
}
.woocommerce #reviews #commentform input:focus-visible,
.woocommerce #reviews #commentform textarea:focus-visible,
.woocommerce .comment-form input:focus-visible,
.woocommerce .comment-form textarea:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Stars */
.woocommerce .comment-form-rating,
.woocommerce #reviews #commentform .comment-form-rating {
    margin-bottom: 28px;
}
.woocommerce .comment-form-rating label,
.woocommerce #reviews #commentform .comment-form-rating label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #000 !important;
    margin-bottom: 8px;
}
.woocommerce .stars,
.woocommerce #reviews #commentform .stars {
    display: inline-block;
    position: relative;
    font-size: 0;
    letter-spacing: 4px;
    direction: rtl;
}
.woocommerce .stars input[type="radio"],
.woocommerce #reviews #commentform .stars input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}
.woocommerce .stars label,
.woocommerce #reviews #commentform .stars label {
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    direction: ltr;
    font-family: 'star' !important;
    transition: transform 0.15s ease;
    color: #000 !important;
}
.woocommerce .stars label::before,
.woocommerce #reviews #commentform .stars label::before {
    content: "★";
    font-family: 'star' !important;
    font-size: 28px;
    color: #000 !important;
    transition: none !important;
    background: transparent !important;
}
.woocommerce .stars label:hover::before,
.woocommerce .stars label:hover ~ label::before,
.woocommerce #reviews #commentform .stars label:hover::before,
.woocommerce #reviews #commentform .stars label:hover ~ label::before,
.woocommerce .stars input[type="radio"]:checked ~ label::before,
.woocommerce #reviews #commentform .stars input[type="radio"]:checked ~ label::before,
.woocommerce .stars:hover label::before,
.woocommerce .stars:hover label ~ label::before,
.woocommerce #reviews #commentform .stars:hover label::before,
.woocommerce #reviews #commentform .stars:hover label ~ label::before,
.woocommerce .stars label:hover,
.woocommerce .stars label:hover::before,
.woocommerce .stars label:hover ~ label,
.woocommerce .stars label:hover ~ label::before,
.woocommerce .stars input[type="radio"]:checked ~ label,
.woocommerce .stars input[type="radio"]:checked ~ label::before,
.woocommerce #reviews #commentform .stars label:hover,
.woocommerce #reviews #commentform .stars label:hover::before,
.woocommerce #reviews #commentform .stars label:hover ~ label,
.woocommerce #reviews #commentform .stars label:hover ~ label::before,
.woocommerce #reviews #commentform .stars input[type="radio"]:checked ~ label,
.woocommerce #reviews #commentform .stars input[type="radio"]:checked ~ label::before {
    color: #000 !important;
    text-shadow: none !important;
    background: transparent !important;
}
.woocommerce .stars label:active,
.woocommerce #reviews #commentform .stars label:active {
    transform: scale(0.9);
}

/* Submit */
.woocommerce #reviews #commentform input#submit,
.woocommerce .comment-form input#submit {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    padding: 14px 42px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    display: inline-block;
}
.woocommerce #reviews #commentform input#submit:hover,
.woocommerce .comment-form input#submit:hover {
    background: #f0f0f0 !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.woocommerce #reviews #commentform input#submit:active,
.woocommerce .comment-form input#submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.review-readmore {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}
.review-readmore:hover {
    text-decoration: underline;
}

/* Responsive review form */
@media (max-width: 768px) {
    .woocommerce #reviews #commentform input[type="text"],
    .woocommerce #reviews #commentform input[type="email"],
    .woocommerce .comment-form input[type="text"],
    .woocommerce .comment-form input[type="email"],
    .woocommerce #reviews #commentform textarea#comment,
    .woocommerce .comment-form textarea#comment {
        padding: 12px 14px;
        font-size: 14px;
    }
    .woocommerce .stars label::before,
    .woocommerce #reviews #commentform .stars label::before {
        font-size: 24px;
    }
    .woocommerce #reviews #commentform input#submit,
    .woocommerce .comment-form input#submit {
        padding: 12px 30px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    .woocommerce .comment-form-cookies-consent label,
    .woocommerce #reviews #commentform .comment-form-cookies-consent label {
        font-size: 13px !important;
    }
}
@media (max-width: 480px) {
    .woocommerce .stars label::before,
    .woocommerce #reviews #commentform .stars label::before {
        font-size: 20px;
    }
}

/* ==================================================
   6. SINGLE PRODUCT – DISCOUNT BADGE & TIMER
   ================================================== */
.custom-product-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    direction: ltr;
    pointer-events: none;
}
.custom-product-timer .timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 2px 4px;
}
.custom-product-timer .timer-digits {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.2;
}
.custom-product-timer .timer-label {
    font-size: 7px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
}
.custom-product-timer .timer-colon {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    padding-bottom: 6px;
}

.custom-discount-badge {
    position: absolute;
    top: 65px;
    right: 15px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 44px;
    line-height: 1.2;
    direction: ltr;
    transition: all 0.3s ease;
}
.custom-discount-badge.no-timer {
    top: 15px;
}
.custom-discount-badge .percent {
    font-size: 16px;
    font-weight: 700;
}
.custom-discount-badge .label {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.zoomImg,
.zoomWindow,
.zoomLens {
    z-index: 9 !important;
}

@media (max-width: 768px) {
    .custom-product-timer {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
    }
    .custom-product-timer .timer-digits {
        font-size: 12px;
    }
    .custom-product-timer .timer-colon {
        font-size: 12px;
        padding-bottom: 4px;
    }
    .custom-discount-badge {
        top: 55px;
        right: 10px;
        padding: 4px 8px;
        min-width: 36px;
    }
    .custom-discount-badge.no-timer {
        top: 10px;
    }
    .custom-discount-badge .percent {
        font-size: 14px;
    }
    .custom-discount-badge .label {
        font-size: 8px;
    }
}
@media (max-width: 480px) {
    .custom-product-timer {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        gap: 2px;
    }
    .custom-product-timer .timer-digits {
        font-size: 10px;
    }
    .custom-product-timer .timer-colon {
        font-size: 10px;
        padding-bottom: 4px;
    }
    .custom-product-timer .timer-label {
        font-size: 5px;
    }
    .custom-discount-badge {
        top: 48px;
        right: 8px;
        padding: 3px 8px;
        min-width: 32px;
    }
    .custom-discount-badge.no-timer {
        top: 8px;
    }
    .custom-discount-badge .percent {
        font-size: 12px;
    }
    .custom-discount-badge .label {
        font-size: 7px;
    }
}

/* ==================================================
   7. PRODUCT CARD (Unified – used in all widgets)
   ================================================== */
.custom-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.custom-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
    width: 100%;
    border-radius: 12px;
}
.product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 12px;
}
.custom-product-card:hover .product-image img {
    transform: scale(1.06);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    direction: ltr;
    min-width: 40px;
    line-height: 1.2;
    transition: transform 0.2s;
}
.discount-badge:hover {
    transform: scale(1.05);
}
.discount-percent {
    font-size: 15px;
    font-weight: 700;
}
.discount-label {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.product-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.stock-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: rtl;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    background: #373636;
}
.stock-status-badge.in-stock {
    background-color: #2ecc71;
}
.stock-status-badge.out-of-stock {
    background-color: #e74c3c;
}
.stock-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.product-attributes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.attr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 28px;
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    margin: 15px 0 0 0 !important;
    padding: 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}
.product-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
    display: block;
}
.product-title a:hover {
    text-decoration: none !important;
    color: #000;
}

.product-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
    direction: ltr;
    flex-wrap: wrap;
}
.product-timer .timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 4px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-width: 28px;
    border: 1px solid #f0f0f0;
}
.product-timer .timer-digits {
    font-size: 12px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.4;
}
.product-timer .timer-label {
    font-size: 7px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
}
.product-timer .timer-colon {
    font-size: 12px;
    font-weight: 700;
    color: #d0d0d0;
    padding-bottom: 10px;
}

.product-price-wrapper {
    margin: 20px 0 0 0 !important;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    background-image: linear-gradient(135deg, #07894c, #085325) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px !important;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.price-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.old-price {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through !important;
    display: block;
    line-height: 1.4;
}

.current-price,
.current-price ins,
.current-price del,
.current-price span,
.current-price .woocommerce-Price-amount,
.price-box .current-price *,
.price-box .woocommerce-Price-amount,
.woocommerce-Price-amount {
    text-decoration: none !important;
}
.current-price,
.current-price ins {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    display: block;
    line-height: 1.4;
    text-decoration: none !important;
    background: none !important;
    padding: 0 !important;
}
.current-price del {
    display: none !important;
}

.product-buttons {
    margin-top: 10px;
    width: 100%;
}
.product-buttons .button {
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.product-buttons .button:hover {
    background: #2e7d32;
    color: #fff;
}

/* Reset WooCommerce product containers for card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.related.products ul.products li.product,
.woocommerce .products .product,
.woocommerce .products {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ==================================================
   8. PRODUCT SLIDER WIDGETS (Latest, Featured, etc.)
   ================================================== */
.products-slider-wrapper {
    direction: ltr;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px 0 40px 0;
    min-height: 250px;
}
.products-slider-wrapper * {
    font-family: 'Estedad', 'IRANSans', Tahoma, sans-serif !important;
}

.slider-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}
.loader-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
.slider-loader span {
    font-size: 14px;
    color: #555;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.slider-content {
    display: none;
}
.slider-content.active {
    display: block;
}

.products-swiper {
    width: 100%;
    overflow: hidden;
}
.products-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.products-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Swiper Navigation for product sliders */
.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}
.products-swiper .swiper-button-next:hover,
.products-swiper .swiper-button-prev:hover {
    background: #000;
}
.products-swiper .swiper-button-next::after,
.products-swiper .swiper-button-prev::after {
    font-size: 18px;
    color: #000;
    font-weight: bold;
}
.products-swiper .swiper-button-next:hover::after,
.products-swiper .swiper-button-prev:hover::after {
    color: #fff;
}

/* Category Filter (only for Latest Products) */
.category-filter-bar {
    width: 100%;
    margin-bottom: 20px;
}
.cat-filters {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    direction: rtl;
    justify-content: flex-start;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.cat-filter-item {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}
.cat-filter-item:hover {
    background: #e9ecef;
    color: #333;
    border-color: #adb5bd;
}
.cat-filter-item.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================================================
   9. PRODUCT GRIDS (Archive, Related, Blog)
   ================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}
@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog posts grid */
.elementor-blog-posts-wrapper .custom-products-grid {
    display: grid;
    grid-gap: 25px;
    margin: 20px 0;
}
.elementor-blog-posts-wrapper .custom-products-grid.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}
.elementor-blog-posts-wrapper .custom-products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.elementor-blog-posts-wrapper .custom-products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.elementor-blog-posts-wrapper .custom-products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}
.elementor-blog-posts-wrapper .custom-products-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}
.elementor-blog-posts-wrapper .custom-products-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 480px) {
    .elementor-blog-posts-wrapper .custom-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Blog post card inside the wrapper (extends .custom-product-card) */
.elementor-blog-posts-wrapper .custom-product-card {
    position: relative;
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.elementor-blog-posts-wrapper .custom-product-card:hover {
    transform: translateY(-5px);
}

.elementor-blog-posts-wrapper .product-image {
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
}
.elementor-blog-posts-wrapper .product-image.aspect-16-9 {
    aspect-ratio: 16/9;
}
.elementor-blog-posts-wrapper .product-image.aspect-4-3 {
    aspect-ratio: 4/3;
}
.elementor-blog-posts-wrapper .product-image.aspect-1-1 {
    aspect-ratio: 1/1;
}
.elementor-blog-posts-wrapper .product-image.aspect-3-2 {
    aspect-ratio: 3/2;
}
.elementor-blog-posts-wrapper .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.elementor-blog-posts-wrapper .custom-product-card:hover .product-image img {
    transform: scale(1.05);
}

.elementor-blog-posts-wrapper .blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.elementor-blog-posts-wrapper .blog-post-date {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 8px;
}
.elementor-blog-posts-wrapper .product-title {
    font-size: 18px;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.elementor-blog-posts-wrapper .product-title a {
    text-decoration: none;
    color: #000;
}
.elementor-blog-posts-wrapper .product-title a:hover {
    color: #333;
}
.elementor-blog-posts-wrapper .blog-post-excerpt {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}
.elementor-blog-posts-wrapper .product-buttons {
    margin-top: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.elementor-blog-posts-wrapper .blog-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.elementor-blog-posts-wrapper .blog-post-read-more:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}
.elementor-blog-posts-wrapper .blog-post-read-more .btn-icon {
    display: inline-flex;
    transition: transform 0.2s;
}
.elementor-blog-posts-wrapper .blog-post-read-more:hover .btn-icon {
    transform: translateX(4px);
}

/* ==================================================
   10. PRODUCT DESCRIPTION TOGGLE (Read More)
   ================================================== */
.wc-toggle-wrap {
    margin: 15px 0;
}
.wc-toggle-wrap .wc-excerpt {
    font-size: 15px;
    line-height: 1.8;
}
.wc-toggle-wrap .wc-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    font-size: 15px;
    line-height: 1.8;
}
.wc-toggle-wrap .wc-full-content.active {
    max-height: 3000px;
    opacity: 1;
    margin-top: 10px;
}
.wc-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    direction: ltr;
}
.wc-btn-wrapper .line {
    flex: 1;
    height: 1px;
    background-color: #000;
    opacity: 0.4;
}
.wc-toggle-btn {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 32px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Estedad", "IRANSans", "Tahoma", sans-serif;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}
.wc-toggle-btn:hover {
    background: #222 !important;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.rtl .wc-btn-wrapper {
    direction: rtl;
}

/* ==================================================
   11. STORY WIDGET
   ================================================== */
.story-circles-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 0 0;
    margin: 0;
    direction: ltr;
    background: #fff;
    font-size: 0;
}
.story-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    font-size: initial;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    font-size: initial;
}
.story-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
.story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: solid;
    border-radius: 50%;
    margin: 0 auto;
}
.story-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #f5f5f5;
}
.story-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-placeholder-circle {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}
.story-title {
    margin-top: 8px;
    font-size: 14px;
    color: #222;
    text-align: center;
}

/* Story viewer overlay */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.story-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-viewer-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.story-progress-bar-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    width: 88%;
    max-width: 420px;
    z-index: 25;
}
.progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}
.progress-segment-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

.story-viewer-media {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-viewer-media img,
.story-viewer-media video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.story-touch-left,
.story-touch-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40%;
    z-index: 10;
    cursor: pointer;
}
.story-touch-left {
    left: 0;
}
.story-touch-right {
    right: 0;
}

.story-nav-prev,
.story-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
}
.story-nav-prev:hover,
.story-nav-next:hover {
    color: #fff;
}
.story-nav-prev {
    left: 20px;
}
.story-nav-next {
    right: 20px;
}

@media (max-width: 600px) {
    .story-nav-prev,
    .story-nav-next {
        width: 34px;
        height: 34px;
    }
    .story-nav-prev {
        left: 10px;
    }
    .story-nav-next {
        right: 10px;
    }
}

/* ==================================================
   12. REVIEWS SLIDER
   ================================================== */
.wc-review-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}
.wc-review-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}
.wc-review-info {
    width: 100%;
    text-align: right;
    direction: rtl;
}
.wc-review-author {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 18px;
}
.wc-review-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}
.wc-review-stars {
    margin-bottom: 12px;
    font-size: 14px;
    text-align: right;
}
.wc-review-stars i {
    margin-left: 2px;
}
.wc-review-title {
    font-weight: 600;
    font-size: 16px;
    margin: 5px 0;
}
.wc-review-content {
    color: #555;
    line-height: 1.5;
    margin-top: 5px;
    direction: rtl;
    text-align: right;
}
.wc-review-product {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}
.wc-review-product a {
    text-decoration: none;
    color: #777;
    transition: color 0.2s;
}
.wc-review-product a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Swiper navigation shared */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    top: 50%;
    transform: translateY(-50%);
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #1e1e1e;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #333;
}
.swiper-pagination {
    bottom: 0 !important;
}

/* ==================================================
   13. BRANDS SLIDER
   ================================================== */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}
.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.brand-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.brand-image img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), filter 0.3s;
}
.brands-slider .swiper-button-next,
.brands-slider .swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    top: 50%;
    transform: translateY(-50%);
}
.brands-slider .swiper-button-next:after,
.brands-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #1e1e1e;
}
.brands-slider .swiper-button-next:hover,
.brands-slider .swiper-button-prev:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}
@media (max-width: 768px) {
    .brands-slider .swiper-button-next,
    .brands-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .brands-slider .swiper-button-next:after,
    .brands-slider .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* ==================================================
   14. POPUP WIDGET
   ================================================== */
.custom-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}
.custom-popup-wrapper.show {
    visibility: visible;
    opacity: 1;
}
.custom-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: var(--overlay-color, rgba(0, 0, 0, 0.7));
}
.custom-popup-content {
    position: relative;
    background: #fff;
    padding: 30px;
    text-align: center;
    z-index: 10;
    box-sizing: border-box;
    animation: customPopupFadeIn 0.3s ease-out;
}
@keyframes customPopupFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.custom-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.custom-popup-image {
    margin-bottom: 20px;
}
.custom-popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: inherit;
}
.custom-popup-title {
    margin: 0 0 15px;
}
.custom-popup-message {
    margin-bottom: 25px;
}
.custom-popup-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}
.custom-popup-button:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* ==================================================
   15. MISCELLANEOUS & HELPERS
   ================================================== */
.css-rank-el {
    color: white;
}

.swiper {
    width: 100%;
    overflow: hidden;
    padding: 0px !important;
    margin-bottom: -40px;
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .attr-pill {
        height: 24px;
        min-width: 24px;
        font-size: 10px;
    }
    .price-box {
        padding: 6px 12px;
    }
    .discount-badge {
        padding: 3px 8px;
        min-width: 34px;
        top: 8px;
        right: 8px;
    }
    .discount-percent {
        font-size: 13px;
    }
    .discount-label {
        font-size: 8px;
    }
    .timer-digits {
        font-size: 11px;
    }
    .timer-item {
        padding: 3px 5px;
        min-width: 24px;
    }
    .timer-colon {
        font-size: 11px;
        padding-bottom: 8px;
    }
}