/* =============================================
   QAREN - Product Comparison Platform
   Design System & Global Styles
   Brand: Navy #1B2A4A | Orange #E8751A
   ============================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Custom Properties === */
:root {
    /* Brand Colors */
    --navy: #1B2A4A;
    --navy-dark: #111D35;
    --navy-light: #2A3F6A;
    --navy-50: rgba(27, 42, 74, 0.5);
    --orange: #E8751A;
    --orange-dark: #C9611A;
    --orange-light: #F4943E;
    --orange-glow: rgba(232, 117, 26, 0.3);

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8F9FC;
    --gray-100: #EEF0F5;
    --gray-200: #D5D9E2;
    --gray-300: #B0B7C3;
    --gray-400: #8A94A6;
    --gray-500: #6C757D;
    --gray-600: #4E5D78;
    --gray-700: #323B4B;
    --gray-800: #1C2533;
    --dark: #0D1321;

    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Borders & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(232, 117, 26, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Base Reset & Global === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    color: var(--gray-700);
    background-color: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--orange);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--orange-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === NAVBAR === */
.qaren-navbar {
    background: var(--navy);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all var(--transition-base);
}

.qaren-navbar.scrolled {
    background: rgba(27, 42, 74, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.qaren-navbar .navbar-brand {
    padding: 0.5rem 0;
}

.qaren-navbar .navbar-brand img {
    height: 45px;
    transition: transform var(--transition-base);
    filter: invert(1) brightness(25);
}

.qaren-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

.qaren-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: var(--fs-sm);
    padding: 1rem 1.1rem !important;
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.3px;
}

.qaren-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--orange);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.qaren-navbar .nav-link:hover,
.qaren-navbar .nav-link.active {
    color: var(--white) !important;
}

.qaren-navbar .nav-link:hover::after,
.qaren-navbar .nav-link.active::after {
    width: 60%;
}

.navbar-search {
    position: relative;
    max-width: 420px;
    flex-grow: 1;
}

.navbar-search .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem 0.6rem 2.8rem;
    font-size: var(--fs-sm);
    transition: all var(--transition-base);
}

.navbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-search .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
    color: var(--white);
}

.navbar-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-sm);
    z-index: 10;
}

.nav-icon-btn {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.2rem;
    position: relative;
    padding: 0.5rem 0.7rem !important;
    transition: color var(--transition-fast);
}

.nav-icon-btn:hover {
    color: var(--orange) !important;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--orange);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navy);
}

/* Search Autocomplete */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    display: none;
    z-index: 1100;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--gray-700);
    text-decoration: none;
}

.suggestion-item:hover {
    background: var(--gray-50);
    color: var(--navy);
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.suggestion-item .suggestion-name {
    font-weight: 500;
    font-size: var(--fs-sm);
}

.suggestion-item .suggestion-price {
    font-size: var(--fs-xs);
    color: var(--orange);
    font-weight: 600;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 117, 26, 0.15);
    color: var(--orange-light);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(232, 117, 26, 0.25);
}

.hero-title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    max-width: 560px;
    display: flex;
    gap: 0.5rem;
}

.hero-search-box .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.8rem 1.2rem;
    font-size: var(--fs-base);
}

.hero-search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search-box .form-control:focus {
    box-shadow: none;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--white);
    display: block;
}

.hero-stat .stat-label {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 4s ease-in-out infinite;
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
}

.hero-floating-card:nth-child(1) {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.hero-floating-card:nth-child(2) {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

.hero-floating-card:nth-child(3) {
    top: 50%;
    left: -5%;
    animation-delay: 3s;
}

.hero-floating-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-floating-card .card-icon.orange {
    background: rgba(232, 117, 26, 0.25);
    color: var(--orange-light);
}

.hero-floating-card .card-icon.green {
    background: rgba(16, 185, 129, 0.25);
    color: var(--success);
}

.hero-floating-card .card-icon.blue {
    background: rgba(59, 130, 246, 0.25);
    color: var(--info);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* === BUTTONS === */
.btn-qaren {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-qaren::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-qaren:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 117, 26, 0.35);
    color: var(--white);
}

.btn-qaren:hover::before {
    left: 100%;
}

.btn-qaren-lg {
    padding: 0.9rem 2.5rem;
    font-size: var(--fs-base);
}

.btn-qaren-outline {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-qaren-outline:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 117, 26, 0.35);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-navy:hover {
    background: var(--navy-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* === CARDS === */
.qaren-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.qaren-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card .card-img-wrapper {
    position: relative;
    padding: 1.5rem;
    background: var(--gray-50);
    text-align: center;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .card-img-wrapper img {
    max-height: 180px;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.product-card .card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 5;
}

.product-card .badge-best {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
}

.product-card .badge-discount {
    background: var(--danger);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
}

.product-card .card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
    z-index: 5;
}

.product-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.card-action-btn:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1);
}

.card-action-btn.active {
    background: var(--orange);
    color: var(--white);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .product-brand {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.product-card .product-name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.product-card .product-name a:hover {
    color: var(--orange);
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.product-card .product-rating .stars {
    color: var(--warning);
    font-size: var(--fs-xs);
}

.product-card .product-rating .rating-count {
    font-size: var(--fs-xs);
    color: var(--gray-400);
}

.product-card .price-section {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-card .current-price {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--navy);
}

.product-card .old-price {
    font-size: var(--fs-sm);
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card .offers-count {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-card .offers-count i {
    color: var(--orange);
}

/* === CATEGORY CARDS === */
.category-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    border-color: var(--orange);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card .cat-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 117, 26, 0.1), rgba(232, 117, 26, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--orange);
    transition: all var(--transition-base);
}

.category-card:hover .cat-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
}

.category-card .cat-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    font-size: var(--fs-sm);
}

.category-card .cat-count {
    font-size: var(--fs-xs);
    color: var(--gray-400);
}

/* === SECTION STYLES === */
.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: var(--fs-base);
    color: var(--gray-500);
    max-width: 600px;
}

/* === HOW IT WORKS === */
.how-it-works {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 25px rgba(232, 117, 26, 0.35);
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: var(--fs-lg);
}

.step-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* === PLATFORM BADGE === */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.platform-badge img {
    height: 16px;
}

/* === COMPARISON TABLE === */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    border: none;
    text-align: left;
}

.comparison-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    font-size: var(--fs-sm);
}

.comparison-table tbody tr {
    transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background: rgba(232, 117, 26, 0.03);
}

.comparison-table .best-value-row {
    background: rgba(232, 117, 26, 0.05) !important;
    border-left: 3px solid var(--orange);
}

.best-value-badge {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* === PRICE CHART === */
.price-chart-container {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* === TRUST INDICATORS === */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.trust-badge.official {
    color: var(--info);
}

.trust-badge.verified {
    color: var(--success);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.seller-rating .stars {
    color: var(--warning);
    font-size: var(--fs-xs);
}

/* === STATS SECTION === */
.stats-section {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stat-box {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-box .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 117, 26, 0.1), rgba(232, 117, 26, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--orange);
}

.stat-box .stat-value {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.stat-box .stat-text {
    font-size: var(--fs-sm);
    color: var(--gray-500);
}

/* === FOOTER === */
.qaren-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.qaren-footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: var(--fs-base);
    margin-bottom: 1.25rem;
}

.qaren-footer a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 0.2rem 0;
}

.qaren-footer a:hover {
    color: var(--orange);
    transform: translateX(3px);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-3px) translateX(0);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* === BREADCRUMB === */
.qaren-breadcrumb {
    background: var(--navy);
    padding: 1rem 0;
}

.qaren-breadcrumb .breadcrumb {
    margin: 0;
    background: none;
}

.qaren-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
}

.qaren-breadcrumb .breadcrumb-item.active {
    color: var(--orange);
    font-size: var(--fs-sm);
}

.qaren-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* === FILTERS SIDEBAR === */
.filter-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.filter-card h6 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-card .form-check {
    margin-bottom: 0.5rem;
}

.filter-card .form-check-label {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    cursor: pointer;
}

.filter-card .form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    background: var(--orange);
}

/* === TOAST NOTIFICATION === */
.qaren-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--navy);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform var(--transition-spring);
    font-size: var(--fs-sm);
    max-width: 350px;
}

.qaren-toast.show {
    transform: translateX(0);
}

.qaren-toast .toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qaren-toast .toast-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.qaren-toast .toast-icon.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--white);
    font-weight: 800;
    font-size: var(--fs-3xl);
    position: relative;
    z-index: 2;
}

.page-header p {
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

/* === AUTH PAGES === */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 460px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-logo img {
    height: 50px;
}

.auth-card h2 {
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: var(--fs-sm);
    margin-bottom: 2rem;
}

.auth-card .form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--fs-sm);
    margin-bottom: 0.4rem;
}

.auth-card .form-control {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.auth-card .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

/* === PRODUCT DETAIL PAGE === */
.product-gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-100);
}

.product-gallery img {
    max-height: 400px;
    object-fit: contain;
}

.product-info h1 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
}

.product-info .product-brand-tag {
    font-size: var(--fs-sm);
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-specs-table td {
    padding: 0.6rem 1rem;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--gray-100);
}

.product-specs-table td:first-child {
    font-weight: 600;
    color: var(--navy);
    width: 40%;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--gray-200);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-400);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* === PAGINATION === */
.qaren-pagination .page-link {
    border: 1px solid var(--gray-200);
    color: var(--navy);
    font-weight: 500;
    font-size: var(--fs-sm);
    padding: 0.5rem 0.85rem;
    margin: 0 0.15rem;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast);
}

.qaren-pagination .page-link:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.qaren-pagination .page-item.active .page-link {
    background: var(--orange);
    border-color: var(--orange);
}

/* === LOADING SPINNER === */
.qaren-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === ANIMATIONS === */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: var(--fs-4xl);
    }

    .hero-section {
        padding: 4rem 0;
        min-height: auto;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section-title {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-subtitle {
        font-size: var(--fs-base);
    }

    .hero-search-box {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat {
        flex: 0 0 45%;
    }

    .section {
        padding: 3rem 0;
    }

    .navbar-search {
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .product-card .card-img-wrapper {
        height: 180px;
    }

    .qaren-footer {
        padding-top: 3rem;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: var(--fs-2xl);
    }

    .hero-section {
        padding: 3rem 0 4rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* === USER DASHBOARD === */
.dashboard-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-stat .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.alert-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.alert-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-sm);
}

.alert-card.triggered {
    border-left: 3px solid var(--success);
    background: rgba(16, 185, 129, 0.03);
}

/* === COMPARE PAGE === */
.compare-product-col {
    border-right: 1px solid var(--gray-100);
}

.compare-product-col:last-child {
    border-right: none;
}

.compare-header {
    text-align: center;
    padding: 1.5rem;
}

.compare-header img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.compare-row {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
}

.compare-cell {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: var(--fs-sm);
    text-align: center;
    border-right: 1px solid var(--gray-100);
}

.compare-cell:last-child {
    border-right: none;
}

.compare-label {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--navy);
}

/* Flash Messages */
.flash-message {
    animation: slideDown 0.3s ease;
}