/* Custom CSS for WooCustom Toolkit plugin */

/* Features Boxes (from product-features-boxes) */
.custom-feature-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-box {
    background-color: oklch(0.967 0.003 264.542);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: right;
    font-weight: 500;
    flex: 1 1 30%;
    color: oklch(0.37 0.013 285.805);
    font-size: 14px;
}
@media (max-width: 768px) {
	.feature-box {
    flex: 1 1 48%;
}
}
/* Product Gallery Customizations (from product-gallery-custom) */
/* Custom product gallery navigation */
ul.flex-direction-nav {
    position: absolute;
    top: 35%;
    width: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateY(-50%);
}

li.flex-nav-prev {
    position: absolute;
    left: -20px;
}

li.flex-nav-next {
    position: absolute;
    right: 10px;
    margin-top: -20px;
}

a.flex-next, a.flex-prev {
    visibility: hidden;
}

a.flex-next::after, a.flex-prev::before {
    visibility: visible;
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--e-global-color-primary);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
}

/* جایگزینی فلش با SVG */
a.flex-next::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

a.flex-prev::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

a.flex-next:hover::after, a.flex-prev:hover::before {
    background-color: var(--e-global-color-accent);
    transform: scale(1.1);
}

/* Custom thumbnails for Elementor WooCommerce product images */
.elementor-widget-woocommerce-product-images .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding-bottom: 10px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.elementor-widget-woocommerce-product-images .flex-control-thumbs::-webkit-scrollbar {
    height: 6px;
}

.elementor-widget-woocommerce-product-images .flex-control-thumbs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.elementor-widget-woocommerce-product-images .flex-control-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* Custom NotyF styles (for notifications) */
.notyf__toast {
    max-width: 400px !important;
    border-radius: 15px !important;
}

.notyf__wrapper {
    padding: 15px !important;
}

.notyf__message {
    font-family: inherit;
}

/* Product Countdown Styles */
.woocustom-product-countdown {
    text-align: center;
    margin: 10px 0;
}

.countdown-timer {
    font-size: 16px;
    font-weight: bold;
    color: #ef394e; /* قرمز برای جذابیت */
    font-family: monospace; /* برای خوانایی اعداد */
}

/* Cart Savings Styles */
.woocustom-savings-amount span,
.woocustom-cart-savings td:before,
.woocustom-checkout-savings th,
.woocustom-checkout-savings td,
.woocustom-order-savings td {
    color: #28a745 !important;
    font-weight: bold;
}

/* Wishlist Styles */
:is(.woocustom-wishlist-icon, .woocustom-wishlist-remove) {
    cursor: pointer;
}

.woocustom-wishlist-remove {
    display: none;
}

/* Styles in wishlist page */
.wishlist-container .woocustom-wishlist-remove {
    display: flex;
}

.wishlist-container .woocustom-wishlist-icon {
    display: none;
}

.e-loop-nothing-found-message__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Styles in single product page */
.woocustom-wishlist-icon {
    cursor: pointer;
}

/* NotyF Custom Styles */
.woocustom-notyf {
    max-width: initial !important;
    font-family: inherit;
    border-radius: 7px;
}

.woocustom-notyf .notyf__wrapper {
    padding: 15px !important;
    gap: 5px;
}

.woocustom-notyf .notyf__icon {
    margin: 0;
}