
/* ============================================
   🌈 Kidoria.ir - Complete Unified Theme
   شامل: ظاهر کلی + کارت محصولات + صفحه محصول + سبد خرید
   ============================================ */

:root {
    --blue: #5da9e9;
    --pink: #ff9ebb;
    --yellow: #ffd54f;
    --green: #8cd17d;
    --dark: #333;
    --bg: #fffdfb;
}

/* ---------------------
   🔹 بدنه سایت
---------------------- */
body {
    background: radial-gradient(circle at 10% 10%, #fff9fa 0%, transparent 70%), radial-gradient(circle at 90% 90%, #f9fcff 0%, transparent 70%);
    background-color: var(--bg);
    font-family: "Vazirmatn", sans-serif;
    color: var(--dark);
    transition: all 0.3s ease;
}

/* ---------------------
   🔹 هدر و منو
---------------------- */
header, .site-header {
    background: #fff !important;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    z-index: 99;
}

    header nav  {
        color: var(--blue) !important;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        header nav a:hover {
            color: var(--pink) !important;
        }

    /* آیکون‌ها */
    header svg, .cart-icon, .search-icon {
        fill: var(--blue);
        width: 18px;
        height: 18px;
        transition: fill 0.3s;
    }

        header svg:hover {
            fill: var(--pink);
        }

    /* دکمه ورود */
    header .btn-login {
        background: var(--green);
        color: #fff !important;
        border-radius: 8px;
        padding: 6px 14px;
        font-weight: 600;
        transition: all 0.3s;
    }

        header .btn-login:hover {
            background: var(--pink);
        }



    .slider button, .hero button {
        background: var(--green);
        color: #fff;
        border-radius: 40px;
        padding: 8px 22px;
        font-weight: bold;
        transition: 0.3s;
    }

        .slider button:hover {
            background: var(--pink);
        }

/* ---------------------
   🎁 کارت‌های محصول
---------------------- */
.swiper-slide.group {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(93,169,233,0.12);
    transition: all 0.3s ease;
    position: relative;
    min-height: 370px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .swiper-slide.group:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(255,158,187,0.25);
    }

    .swiper-slide.group img {
        width: 100%;
        height: 160px;
        object-fit: contain;
        border-radius: 12px;
        transition: transform 0.4s ease;
    }

    .swiper-slide.group:hover img {
        transform: scale(1.05);
    }

    .swiper-slide.group a.font-DanaMedium {
        display: block;
        text-align: center;
        font-size: 0.95rem;
        font-weight: 600;
        color: #444;
        line-height: 1.4;
        height: 2.8em;
        overflow: hidden;
    }

        .swiper-slide.group a.font-DanaMedium:hover {
            color: var(--pink);
        }

.text-green-600 {
    color: var(--green) !important;
    font-weight: bold;
}

del {
    color: #ff9e9e !important;
}

/* دکمه‌ها */
.add_to_cart, .add_to_favorite {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    padding: 8px;
    transition: 0.3s;
}

    .add_to_cart:hover {
        background: var(--pink);
        color: #fff;
        transform: scale(1.15);
    }

    .add_to_favorite:hover {
        color: var(--blue);
        transform: scale(1.15);
    }

.text-yellow-400 {
    color: var(--yellow) !important;
    filter: drop-shadow(0 0 2px rgba(255,213,79,0.4));
}

/* ---------------------
   🖍️ عنوان بخش‌ها
---------------------- */
.section-title, h2, h3 {
    color: var(--blue);
    font-weight: bold;
    text-align: center;

}

    .section-title::after {
        content: "";
        width: 70px;
        height: 4px;
        background: var(--yellow);
        display: block;
        margin: 8px auto;
        border-radius: 4px;
    }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

    .cart-table thead {
        background: linear-gradient(90deg, #5da9e9, #ff9ebb);
        color: #fff;
    }

    .cart-table th {
        padding: 12px;
        font-weight: bold;
        text-align: center;
    }

    .cart-table td {
        padding: 14px;
        text-align: center;
        border-bottom: 1px solid #f1f1f1;
        color: #333;
    }

    .cart-table img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.btn-remove {
    background: #ff9ebb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-remove:hover {
        background: #ff6f91;
    }

.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    text-align: center;
    margin-top: 20px;
}

    .cart-summary h3 {
        color: #5da9e9;
        font-weight: 700;
        margin-bottom: 10px;
    }

.total-price {
    color: #00b389;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 10px 0;
}

.btn-checkout {
    background: linear-gradient(45deg, #ffd54f, #5da9e9);
    color: #333;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .btn-checkout:hover {
        background: linear-gradient(45deg, #5da9e9, #ffd54f);
        color: #fff;
        transform: scale(1.05);
    }

.cart-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1rem;
}

    .cart-empty svg {
        width: 60px;
        height: 60px;
        fill: #ff9ebb;
        opacity: 0.6;
        margin-bottom: 10px;
    }

/* ---------------------------
   🛍️ صفحه جزئیات محصول
--------------------------- */
.product-page {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

    .product-page img {
        width: 100%;
        border-radius: 16px;
        box-shadow: 0 4px 10px rgba(93,169,233,0.15);
        transition: 0.3s;
    }

        .product-page img:hover {
            transform: scale(1.03);
        }

.product-title {
    color: #5da9e9;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-price {
    color: #00b389;
    font-weight: 800;
    font-size: 1.1rem;
}

.product-old-price {
    color: #ff8b94;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 8px;
}

.product-description {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-top: 15px;
}

.btn-add-cart {
    background: linear-gradient(45deg, #ff9ebb, #5da9e9);
    color: #fff;
    border-radius: 40px;
    padding: 12px 25px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .btn-add-cart svg {
        fill: #fff;
        width: 18px;
        height: 18px;
    }

    .btn-add-cart:hover {
        background: linear-gradient(45deg, #5da9e9, #ff9ebb);
        transform: scale(1.05);
    }

/* ==============================
   🧩 اصلاح دکمه ورود و چک‌باکس‌ها
   ============================== */

/* 🔹 دکمه ورود / ثبت نام */
header .btn-login {
    background: #00b16a !important; /* سبز واضح‌تر */
    color: #fff !important;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    header .btn-login:hover {
        background: #ff9ebb !important; /* هاور صورتی برند */
        color: #fff !important;
        transform: translateY(-1px);
    }

/* 🔹 فیلترها و چک‌باکس‌ها */
.filter-box, .filter-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 10px;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #5da9e9;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    background-color: #fff;
}

    input[type="checkbox"]:checked {
        background-color: #5da9e9;
        border-color: #5da9e9;
    }

        input[type="checkbox"]:checked::after {
            content: "✔";
            position: absolute;
            top: -2px;
            left: 2px;
            color: #fff;
            font-size: 12px;
            font-weight: bold;
        }

/* متن کنار فیلتر */
.filter-section label, .filter-box label {
    margin-right: 6px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

    .filter-section label:hover {
        color: #5da9e9;
    }


.text-green-500 {
    color: var(--blue) !important;
}

.color35b2b2 {
    color: #c95c7d !important;
}
.bordercolor35b2b2 {
    border-color: #c95c7d !important;
}

.bg-green-500 {
    background-color: #ea91ac !important;
}

.cursor-pointer transition-colors gap-x-2 flex items-center justify-center {
    color: var(--blue) !important;
}



/* =======================================================
   🍭 دسته‌بندی‌ها - نسخه دایره‌ای و فانتزی برای Kidoria.ir
   ======================================================= */

/* کارت اصلی */
.container .child a {
    background: linear-gradient(135deg, #ffffff, #fff9fb);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    box-shadow: 0 6px 20px rgba(93, 169, 233, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    /* انیمیشن هنگام هاور */
    .container .child a:hover {
        transform: translateY(-10px) rotate(-3deg);
        box-shadow: 0 12px 25px rgba(255, 158, 187, 0.25);
    }

    /* دایره رنگی نرم پشت هر کارت */
    .container .child a::before {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 213, 79, 0.25), rgba(255, 158, 187, 0.15), transparent 80%);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        border-radius: 50%;
        transition: transform 0.4s ease;
        z-index: 0;
    }

    .container .child a:hover::before {
        transform: translate(-50%, -50%) scale(1);
    }

    /* تصویر دایره‌ای */
    .container .child a img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 5px solid #fff;
        box-shadow: 0 3px 10px rgba(93, 169, 233, 0.2);
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .container .child a:hover img {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(255, 158, 187, 0.35);
    }

    /* متن نام دسته */
    .container .child a p {
        margin-top: 10px;
        color: #444;
        font-weight: 600;
        font-size: 1rem;
        z-index: 2;
        transition: color 0.3s ease;
    }

    .container .child a:hover p {
        color: #5da9e9;
    }

/* عنوان بخش */
.container h2 {
    color: #5da9e9;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

    .container h2::after {
        content: "";
        display: block;
        width: 60%;
        height: 4px;
        background: linear-gradient(90deg, #ffd54f, #ff9ebb);
        border-radius: 6px;
        margin: 6px auto 0;
    }


.sweet-alert .confirm {
    background: linear-gradient(135deg, #00c853, #64dd17) !important; /* سبز آدامسی */
    color: #fff !important;
    border-radius: 12px !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3) !important;
    transition: all 0.3s ease !important;
}

.sweet-alert .cancel {
    background: linear-gradient(135deg, #ff4081, #ff80ab) !important; /* صورتی برند */
    color: #fff !important;
    border-radius: 12px !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.3) !important;
    transition: all 0.3s ease !important;
}



/* ==========================
   🔹 دایره تخفیف واکنش‌گرا
   ========================== */
.product-card {
    position: relative;
}

    /* ظاهر دایره تخفیف */
    .product-card .discount-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: linear-gradient(135deg, #00c853, #64dd17);
        color: #fff;
        font-weight: 700;
        font-size: 0.75rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 3px 10px rgba(0, 200, 83, 0.3);
        z-index: 30;
        transition: transform 0.3s ease;
    }

    /* افکت هنگام هاور */
    .product-card:hover .discount-badge {
        transform: scale(1.1) rotate(-5deg);
    }

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .product-card .discount-badge {
        top: 8px;
        right: 8px !important;
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}
/* ===================================================
   🔸 برچسب بسته‌بندی (مثل "یک بسته ۶ تایی")
   =================================================== */

.product-card .package-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4081, #ff80ab); /* صورتی برند کیدوریا */
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(255, 64, 129, 0.25);
    z-index: 25;
    transition: transform 0.3s ease;
}

/* انیمیشن هنگام هاور کارت */
.product-card:hover .package-badge {
    transform: scale(1.05);
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .product-card .package-badge {
        top: 6px;
        left: 6px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}


input:checked + .slider {
    background: linear-gradient(135deg, #5da9e9, #ff9ebb); /* رنگ برند */
    border: 2px solid #5da9e9;
}

    /* حرکت دایره */
    input:checked + .slider:before {
        transform: translateX(24px);
    }