/* Unique Modern Two-Row Header Design System */
:root {
    --primary: #012456;
    --primary-gradient: linear-gradient(135deg, #012456 0%, #123268 100%);
    --secondary: #FF661F;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-premium: 0 4px 20px -2px rgba(1, 36, 86, 0.15);
    --radius-lg: 14px;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--background);
}

/* Header: single gradient flowing orange -> navy across both rows */
.unique-header-gradient {
    background: linear-gradient(180deg, #FF7A38 0%, #FF661F 22%, #012456 78%, #001433 100%);
}

/* Header Row 1: Core Actions */
.unique-header-top {
    background: transparent;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.unique-header-top .unique-action-icon {
    color: #ffffff;
}

.unique-header-top .unique-action-icon:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.unique-header-top span.text-truncate {
    color: #ffffff !important;
}

.unique-header-logo-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
}

.unique-search-container {
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 2px 2px 2px 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.unique-search-container:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(1, 36, 86, 0.12);
}

.unique-search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
}

/* Header Row 2: Floating Navbar */
.unique-navbar {
    background: transparent;
    padding: 10px 0;
    margin-top: -1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-premium);
}

.unique-nav-item {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.2s;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.12);
}

.unique-nav-item:hover {
    color: #ffffff;
    background: var(--secondary);
}

.unique-navbar .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.unique-cat-btn {
    background: var(--secondary);
    color: white !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Action Icons */
.unique-action-icon {
    position: relative;
    color: var(--text-main);
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s;
}

.unique-action-icon:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.unique-badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

/* Unique WhatsApp Floating Icon */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-label {
    background: white;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-fab:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-fab:hover {
    transform: scale(1.05);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .whatsapp-label {
        display: none;
    }

    /* Hide label on mobile to save space */
}

/* Modern Component Styles */
.premium-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
}

.unique-btn-primary {
    background: var(--primary-gradient);
    color: white !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.unique-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Category Modern Item */
.modern-cat-item {
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border-radius: 20px;
    background: white !important;
    border: 1px solid #f1f5f9;
    text-decoration: none !important;
    display: block;
}

.modern-cat-item:hover {
    background: var(--primary-gradient) !important;
    transform: translateY(-5px);
    border-color: transparent;
}

.modern-cat-item:hover .cat-name {
    color: white !important;
}

.modern-cat-item:hover img {
    transform: scale(1.1);
}

.cat-img-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s;
}

/* Product Card Improvements */
.product-card-premium {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-premium:hover {
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-discount {
    background: var(--secondary);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Specifics */
@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }

    .cat-img-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* Trust Strip Modernization */
.rounded-xl {
    border-radius: 20px !important;
}

.border-end-md {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    .border-end-md {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 15px;
    }
}

.fs-24 {
    font-size: 24px;
}

.bg-primary-light {
    background: rgba(99, 102, 241, 0.1);
}

.bg-success-light {
    background: rgba(34, 197, 94, 0.1);
}

.bg-warning-light {
    background: rgba(234, 179, 8, 0.1);
}

.bg-danger-light {
    background: rgba(239, 68, 68, 0.1);
}

/* COD Badge */
.badge-cod {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid rgba(5, 150, 105, 0.2);
    font-size: 9px !important;
    letter-spacing: 0.5px;
}

/* Delivery Estimator Styling */
.border-aliceblue {
    border-color: #f1f5f9 !important;
}

.delivery-estimation-success {
    color: #059669;
    background: #ecfdf5;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.delivery-estimation-fail {
    color: #dc2626;
    background: #fef2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

/* Trust Badges in Product Details */
.trust-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.trust-badge i {
    color: var(--primary);
}

.trust-badge:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}