/* Premium Glassmorphism Theme - Refined */

:root {
    --primary-indigo: #4f46e5;
    --secondary-indigo: #9333ea;
    --primary-gradient: linear-gradient(135deg, var(--primary-indigo) 0%, var(--secondary-indigo) 100%);
    --bg-gradient: radial-gradient(circle at top right, #f8fafc 0%, #e2e8f0 100%);

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --glass-blur: 15px;

    --text-main: #0f172a;
    --text-muted: #475569;
    --border-radius-lg: 2rem;
    --border-radius-md: 1.25rem;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

/* Base Glass Component */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Utilities */
.bg-primary-indigo {
    background-color: var(--primary-indigo) !important;
}

.text-primary-indigo {
    color: var(--primary-indigo) !important;
}

.text-main {
    color: var(--text-main) !important;
}

.glass-panel-primary {
    background: var(--primary-gradient) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3) !important;
}

/* Animations and Spacing */
.mt-n100 {
    margin-top: -100px;
}

.pt-150 {
    padding-top: 150px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    letter-spacing: -0.5px;
}

/* Merchant Hero */
.merchant-hero {
    position: relative;
    padding: 5rem 2rem 4rem;
    text-align: center;
    background: white;
    overflow: hidden;
    margin-bottom: 4rem;
    border: none;
}

.merchant-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: var(--primary-gradient);
    z-index: 0;
    opacity: 0.9;
}

.merchant-avatar-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.merchant-avatar {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-indigo);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 6px solid white;
    transition: transform 0.3s ease;
}

.merchant-avatar:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Product Cards */
.card-product {
    border: none;
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.card-product:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.card-product-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-product-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-product:hover .card-product-img-wrapper img {
    transform: scale(1.1);
}

.badge-price-float {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Detailed Buttons */
.btn-premium {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

.btn-premium:active {
    transform: translateY(-1px);
}

.btn-social {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
}

.btn-social:hover {
    background: white;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-social.whatsapp {
    color: #25D366;
}

.btn-social.facebook {
    color: #1877F2;
}

.btn-social.instagram {
    color: #E4405F;
}

/* Sticky WhatsApp FAB */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Pagination Custom */
.pagination {
    gap: 8px;
}

.page-link {
    border: none;
    border-radius: 10px !important;
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.6rem 1rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
}

/* Animations for entries */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards ease-out;
    animation-delay: var(--delay, 0ms);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}