/*
Theme Name: WoodMart Child
Template: woodmart
Version: 1.0.0
*/

/* ===== Hero Slider ===== */

.custom-hero-wrapper {
    width: 100%;
    direction: rtl;
    margin-bottom: 30px;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.hero-swiper {
    width: 100%;
    overflow: visible;
}

.hero-swiper .swiper-wrapper {
    align-items: center;
}

.hero-swiper .swiper-slide {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    transform: scale(0.95);
    width: 75.4% !important;
    aspect-ratio: 906 / 348;
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* دات‌های ناوبری */
.hero-swiper .swiper-pagination {
    bottom: 12px;
    text-align: center;
}

.hero-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* فلش‌ها */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.hero-swiper .swiper-button-next {
    right: 12px;
    left: auto;
}

.hero-swiper .swiper-button-prev {
    left: 12px;
    right: auto;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(0,0,0,0.4);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 12px;
    font-weight: 700;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .hero-swiper .swiper-slide {
        width: 82% !important;
    }
}

@media (max-width: 768px) {
    .hero-swiper .swiper-slide {
        width: 90% !important;
        aspect-ratio: 2 / 1;
    }
}

/* ===== Listing Page - Khanoumi Style ===== */

.products-bordered-grid .wd-product {
    border-top: none !important;
    border-left: none !important;
    border-right: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

/* حذف border-right از اولین آیتم هر ردیف (راست‌ترین در RTL) */
.products-bordered-grid .wd-product:nth-child(4n+1) {
    border-right: none !important;
}

/* حذف border-bottom از آیتم های ردیف آخر */
.products-bordered-grid .wd-product:nth-last-child(-n+4) {
    border-bottom: none !important;
}

.products-bordered-grid.elements-grid {
    border-inline-start: none !important;
}


/* ===================================================
   ویژگی‌های محصول متغیر (مثل مدل، رنگ، سایز)
   - دکمه‌ها رو wrap می‌کنه تا از کادر نزنن بیرون
   - دکمه پاک کردن رو مخفی می‌کنه (دبل کلیک پاک می‌کنه)
   =================================================== */
.variable-items-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.variable-items-wrapper .variable-item {
    margin: 0 !important;
}

/* مخفی کردن دکمه پاک کردن - کلاس Woodmart */
.wd-reset-var {
    display: none !important;
}
