﻿/* ============================================================
   SHIVANAA OVERRIDES - CLEAN VERSION
   Applied AFTER kingdom.rtl.css
   ============================================================ */

/* --- RTL / Persian Font --- */
body, * {
    font-family: "IRANYekanX", "Vazirmatn", Tahoma, sans-serif !important;
}

/* --- Direction --- */
body {
    direction: rtl !important;
    text-align: right !important;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

/* Item box */
.product-grid .item-box,
.item-grid .item-box {
    overflow: visible !important;
}

/* Product card */
.product-item {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 380px !important;
    overflow: visible !important;
    text-align: center !important;
    position: relative !important;
    transition: box-shadow 0.3s ease !important;
}
.product-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

/* Picture */
.product-item .picture {
    width: 100% !important;
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}
.product-item .picture img {
    max-width: 100% !important;
    max-height: 170px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Swiper inside picture */
.product-item .picture .swiper {
    width: 100% !important;
    height: 100% !important;
}
.product-item .picture .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.product-item .picture .swiper-slide img {
    max-width: 100% !important;
    max-height: 170px !important;
    object-fit: contain !important;
}

/* Details */
.product-item .details {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    overflow: visible !important;
}

/* Title */
.product-item .product-title {
    overflow: visible !important;
    height: auto !important;
    margin: 6px 0 !important;
}
.product-item .product-title a {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #333 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    min-height: 38px !important;
}

/* Description - hide on listing */
.product-item .description {
    display: none !important;
}

/* Add-info */
.product-item .add-info {
    display: flex !important;
    flex-direction: column !important;
    margin-top: auto !important;
    overflow: visible !important;
}

/* Prices */
.product-item .prices {
    margin: 6px 0 !important;
    text-align: center !important;
}
.product-item .actual-price {
    color: #d92662 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
.product-item .old-price {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 12px !important;
}

/* ============================================================
   ADD TO CART BUTTON - ALWAYS VISIBLE
   ============================================================ */
.product-item .buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 8px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: static !important;
    flex-direction: row !important;
}

.product-item .product-box-add-to-cart-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #caa06d, #b8894e) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background 0.3s ease !important;
    order: -1 !important;
    height: auto !important;
}
.product-item .product-box-add-to-cart-button:hover {
    background: linear-gradient(135deg, #b8894e, #a07840) !important;
}

/* Compare & Wishlist - icon buttons */
.product-item .add-to-compare-list-button,
.product-item .add-to-wishlist-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide wishlist modals in card */
.product-item [id^="moveToWishlistModal"],
.product-item [id^="addWishlistModal"] {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 768px) {
    .item-box {
        width: 50% !important;
        padding: 5px !important;
    }
    .product-item {
        padding: 10px !important;
        min-height: 340px !important;
    }
    .product-item .picture {
        height: 140px !important;
    }
    .product-item .picture img {
        max-height: 130px !important;
    }
    .product-item .product-title a {
        font-size: 12px !important;
        min-height: 34px !important;
    }
    .product-item .actual-price {
        font-size: 13px !important;
    }
    .product-item .product-box-add-to-cart-button {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }
}

@media screen and (max-width: 480px) {
    .item-box {
        width: 50% !important;
        padding: 4px !important;
    }
    .product-item {
        padding: 8px !important;
        min-height: 300px !important;
    }
    .product-item .picture {
        height: 120px !important;
    }
    .product-item .picture img {
        max-height: 110px !important;
    }
    .product-item .product-title a {
        font-size: 11px !important;
    }
}
