/* Best Offers Section */
.offers-section {
    background: #ffffff;
}

.offers-container {
    max-width: 1400px;
    margin: 0 auto;
}

.offers-title {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 32px 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 13px;
}

.product-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.discount-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fb2c36;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

[dir="rtl"] .discount-badges {
    left: auto;
    right: 16px;
}

.discount-badges.hot {
    background: #dc2626;
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

[dir="rtl"] .wishlist-btn {
    right: auto;
    left: 16px;
}

.wishlist-btn i {
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.3s;
}

.wishlist-btn:hover i {
    color: #dc2626;
}

.wishlist-btn:hover i::before {
    content: "\f415";
}

.wishlist-btn.active i {
    color: #dc2626;
}
.wishlist-btn i::before {
    font-family: "bootstrap-icons";
}

.wishlist-btn:not(.active) i::before {
    content: "\f417";
}

.wishlist-btn:not(.active):hover i::before {
    content: "\f415";
}

.wishlist-btn.active i::before {
    content: "\f415";
}
.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    text-align: left;
}

[dir="rtl"] .product-info {
    text-align: right;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    text-transform: capitalize;
}

.product-brand {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 8px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.product-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.product-rating .rating-count {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
}

[dir="rtl"] .product-rating .rating-count {
    margin-left: 0;
    margin-right: 4px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #fb2c36;
}

.add-to-cart-btn {
    display: flex;
    width: 120px;
    height: 39px;
    padding: 7.802px;
    justify-content: center;
    align-items: center;
    gap: 3.901px;
    flex-shrink: 0;
    background: white;
    border-radius: 17.554px;
    border: 0.958px solid #0a0a0a;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ff6a00, #f59e0b);
    color: white;
}

.add-to-cart-btn i {
    font-size: 16px;
}
.add-to-cart-btn span {
    color: #0a0a0a;

    font-family: "SF Pro";
    font-size: 17.554px;
    font-style: normal;
    font-weight: 510;
    line-height: normal;
}
#toast-container {
    position: fixed;
    bottom: 20px; /* ✅ من تحت بدل top */
    right: 20px;
    z-index: 9999;
}

.toast-message {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideInBottom 0.3s ease-out; /* ✅ انيميشن جديد */
}

@keyframes slideInBottom {
    from {
        transform: translateX(100%); /* ✅ من اليمين */
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ✅ دعم للـ error toast */
.toast-error {
    background: #dc3545;
}

/* ✅ دعم للـ warning toast */
.toast-warning {
    background: #ffc107;
    color: #000;
}

/* ✅ دعم للـ info toast */
.toast-info {
    background: #17a2b8;
}
/* ✅ Hover effect للألوان */
.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-circle.active {
    border-color: #fb2c36;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #fb2c36;
}

/* ✅ Smooth image transition */
.product-main-image {
    transition: opacity 0.3s ease;
}
