/* ==========================================================================
   Product Card - Male Fashion Final Version (Talla Store)
   ========================================================================== */

/* 1. حاوية المنتج الأساسية */
.product__item {
    width: 100%;
    font-family: var(--talla-font-family);
    text-align: center;
    position: relative;
    margin-bottom: 35px;
}

/* 2. منطقة الصورة والـ Hover */
.product__item__pic {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
}

.product__item__pic .product-img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product__item:hover .product-img {
    transform: scale(1.05);
}

/* 3. العلامات (New / Sale) */
.product__item__pic .label {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 15px;
    text-transform: uppercase;
    pointer-events: none;
}

.new-label { background: #ffffff; color: #111111; }
.sale-label { background: #111111; color: #ffffff; }
.product__hover {
    position: absolute;
    top: 20px;
    right: -60px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.4s ease-in-out;
    z-index: 10;
}

.product__item:hover .product__hover {
    right: 15px; /* تظهر عند الهوفر */
}
.product__hover li a, 
.product__hover .wishlist-btn-wrapper,
.product__hover .tinvwl_add_to_wishlist_button {
    background: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #111111 !important;
    transition: all 0.3s;
    text-decoration: none !important;
    border-radius: 0 !important; 
    cursor: pointer;
}
.product__hover li a:hover, 
.product__hover .tinvwl_add_to_wishlist_button:hover {
    background: #111111 !important;
    color: #ffffff !important;
}
.product__hover .tinvwl_add_to_wishlist_button::before {
    font-family: "bootstrap-icons" !important;
    content: "\F417" !important; 
    font-size: 18px !important;
    color: inherit !important;
    display: block !important;
}
.product__hover .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before,
.product__hover .tinvwl_add_to_wishlist_button.added::before {
    content: "\F415" !important; /* قلب ممتلئ */
    color: #dc3545 !important; /* اللون الأحمر */
}

.tinvwl_add_to_wishlist-text { display: none !important; } 
.product__item__text {
    padding-top: 25px;
    text-align: right;
    position: relative;
    min-height: 115px;
}
.product__item__text h6 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    transition: all 0.3s ease;
    opacity: 1;
}

.product__item__text h6 a {
    color: #111111;
    text-decoration: none;
    font-size: 15px;

}
.product__item__text .add-cart {
    position: absolute;
    left: 0;
    right: 0;
    top: 25px; /* نفس إحداثيات h6 */
    font-size: 15px;
    font-weight: 700;
    color: var(--talla-color-primary); /* اللون الأحمر المميز */
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 3;
}

.product__item:hover .product__item__text h6 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
}

.product__item:hover .product__item__text .add-cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product__item__text h5 {
    font-size: 18px;
    font-weight: 700;
    color: #0d0d0d;
    margin: 5px 0;
}

.product__item__text h5 del {
    color: #b7b7b7;
    font-size: 14px;
    margin-right: 8px;
}

/* 9. دوائر الألوان (Swatches) */
.product__color__select {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.product__item:hover .product__color__select {
    opacity: 1;
    visibility: visible;
}

.product__color__select label span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 10. تنسيق المصغرات (Thumbnails) في المودال */
.gallery-side-thumbs .gallery-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: 0.3s;
    margin-bottom: 8px;
}

.gallery-side-thumbs .gallery-img:hover {
    border-color: #111;
}

/* 11. حالة AJAX loading */
.talla-ajax-cart.loading {
    opacity: 0.5;
    pointer-events: none;
}
.product__hover .wishlist-btn-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. مسك الزرار نفسه اللي بيطلع من الإضافة */
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button {
    background: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative !important;
    border: none !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

/* 3. وضع أيقونة القلب (Bootstrap Icons) بقوة */
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button::before {
    font-family: "bootstrap-icons" !important;
    content: "\F417" !important; /* كود القلب المفرغ */
    font-size: 18px !important;
    color: #111111 !important; /* لون أسود */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 4. عند الهوفر على الزرار */
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button:hover {
    background: #111111 !important;
}
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button:hover::before {
    color: #ffffff !important;
}

/* 5. الحالة لما المنتج يكون مضاف فعلاً (القلب الأحمر) */
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before,
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button.added::before {
    content: "\F415" !important; /* قلب ممتلئ */
    color: #e53637 !important; /* اللون الأحمر */
}

/* 6. إخفاء أي نصوص تانية بتطلعها الإضافة */
.product__hover .wishlist-btn-wrapper .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
.product__hover .wishlist-btn-wrapper .tinvwl-tooltip {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   2. الجزء الثابت (الذي لم يتغير بناءً على طلبك)
   ========================================================================== */

.gallery-img { cursor: pointer; height: 100px; object-fit: cover; width: 100px; }
.main-img { border-radius: var(--talla-radius-md); height: 500px; object-fit: cover; width: 100%; }
.modal { z-index: 99999 !important; }
.modal-backdrop { z-index: 9999 !important; }

.btn-whatsapp { bottom: 90px; position: fixed; right: 30px; z-index: 1000; }
.btn-whatsapp a {
    background: #25d366;
    border-radius: 51%;
    color: #fff;
    display: inline-block;
    font-size: 28px;
    padding: 14px 16px;
    transition: 0.3s;
}
.btn-whatsapp a:hover { background: #1ebe5d; transform: scale(1.1); }

.btn-back-to-top { bottom: 30px; display: none; position: fixed; right: 30px; z-index: 999; }
.symbol-btn-back-to-top {
    background: #000;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    padding: 12px 15px;
    transition: 0.3s;
}
.symbol-btn-back-to-top:hover { transform: scale(1.1); }
/*---------------------
  Footer Section - Male Fashion Style
-----------------------*/
.footer {
    background: #111111;
    padding-top: 70px;
    padding-bottom: 30px;
    direction: rtl; 
    text-align: right;
}

.footer__about p {
    color: #b7b7b7;
    margin-bottom: 30px;
    line-height: 24px;
    font-size: 15px;
}

.footer__widget h6 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer__widget ul li {
    list-style: none;
    margin-bottom: 12px;
}

.footer__widget ul li a {
    color: #b7b7b7;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.footer__widget ul li a:hover {
    color: #ffffff;
}

/* Newsletter Input Style (Underline Only) */
.footer__newslatter p {
    color: #b7b7b7;
    margin-bottom: 25px;
}

.footer__newslatter form {
    position: relative;
    border-bottom: 2px solid #ffffff; /* الخط الأبيض السفلي */
    padding-bottom: 5px;
}

.footer__newslatter form input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    padding-right: 10px;
}

.footer__newslatter form input::placeholder {
    color: #b7b7b7;
}

.footer__newslatter form button {
    position: absolute;
    left: 0; /* الأيقونة في اليسار */
    top: -5px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

/* Social Icons Styling */
.footer__social a {
    color: #b7b7b7;
    font-size: 20px;
    transition: 0.3s;
}

.footer__social a:hover {
    color: var(--talla-color-primary); 
}

.footer__copyright__text {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
}

.footer__copyright__text p {
    color: #b7b7b7;
    font-size: 14px;
    margin: 0;
}