/* assets/css/style.css */

:root {
    --primary-color: #6a1b9a;
    /* Deep Purple */
    --secondary-color: #4a148c;
    --accent-color: #ffca28;
    /* Amber */
    --bg-light: #f8f9fa;
    --text-dark: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-section {
    background: linear-gradient(135deg, #2c0e44 0%, #0d0418 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 2rem;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1505693416388-b034631ac0f3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.card-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(106, 27, 154, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hover-light:hover {
    color: #fff !important;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== DISCOUNT STYLING ===== */

/* Discount Badge - Product Card */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

/* Larger Discount Badge for Product Detail Page */
.discount-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(238, 90, 36, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    letter-spacing: 1px;
}

/* Pulse Animation for Badges */
@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
    }
}

/* Card Product Position for Badge */
.card-product {
    position: relative;
}

/* Original Price with Strikethrough */
.original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.original-price-large {
    color: #666;
    text-decoration: line-through;
    font-size: 1.3rem;
    font-weight: 500;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Discounted Price - Highlighted */
.discounted-price {
    color: #10b981;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.discounted-price-large {
    color: #10b981;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Price Savings Text */
.price-savings {
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
}

.price-savings-large {
    color: #059669;
    font-size: 1rem;
    font-weight: 600;
}

/* Price Container */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Smooth Transitions */
.card-product .price-container * {
    transition: all 0.3s ease;
}

/* Hover Effects for Product Cards with Discounts */
.card-product:hover .discounted-price {
    color: #059669;
    transform: scale(1.05);
}

.card-product:hover .discount-badge {
    transform: rotate(-5deg) scale(1.1);
}

/* RTL Support */
[dir="rtl"] .discount-badge {
    left: auto;
    right: 10px;
}

[dir="rtl"] .hero-section::before {
    right: auto;
    left: 0;
    transform: scaleX(-1);
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ps-4 {
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
}