/* Logo Customization */
.logo img {
    max-height: 50px;
    /* Adjust the logo size here */
    height: auto;
    /* Ensure the aspect ratio is preserved */
    width: auto;
    /* Maintain proper proportions */
}

/* Parent Container Alignment Fix */
.logo {
    display: flex;
    align-items: center;
    /* Vertically align the logo */
    justify-content: center;
    /* Center horizontally inside its column */
    height: 100%;
    /* Ensure the container takes up the available space for alignment */
}

/* Navigation Menu Links */
.nav-link {
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0073e6;
    /* Change to your primary accent color */
}

/* Search Bar Customization */
.search-bar input {
    border-radius: 20px;
    padding: 8px 15px;
}

.search-bar button {
    border-radius: 20px;
    padding: 8px 15px;
}

/* User Options Buttons */
.user-options .btn-login {
    border: 2px solid #0073e6;
    color: #0073e6;
    background-color: transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #0073e6;
    color: white;
}

.btn-signup {
    background-color: #0073e6;
    color: white;
    border-radius: 20px;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-signup:hover {
    background-color: #005bb5;
    color: white;
}

/* Adjust Badge Styling */
.badge {
    font-size: 0.75rem;
    min-width: 1.2rem;
    padding: 0.2rem;
}

.cart-badge {
    font-size: 0.6rem;
    width: 1rem !important;
    height: 1rem !important;
    min-width: unset !important;
    padding: 0 !important;
    line-height: 1rem;
    text-align: center;
    border-radius: 50% !important;
}

/* Profile Icon Styling */
.bi-person-circle {
    font-size: 1.5rem;
    /* Set base size */
    color: #0073e6;
    /* Default color */
    transition: color 0.3s ease-in-out;
    /* Smooth transition for hover effect */
}

.bi-person-circle:hover {
    color: #0056b3;
    /* Color change on hover */
}

/* Adjust spacing of profile icon and logout button */
.profile-icon {
    margin-right: 1rem;
    /* Add spacing between profile icon and logout button */
}

/* Categories Bar */
.categories-bar {
    border-bottom: 1px solid #e3e3e3;
    /* Light bottom border for separation */
    padding: 0.75rem 0;
    /* Increased padding above and below the bar */
    box-shadow: var(--shadow-sm);
    /* Add subtle shadow for depth */
}

/* Category Links */
.category-link {
    color: #0073e6;
    /* Blue link color */
    font-size: 0.95rem;
    /* Slightly smaller font size */
    text-transform: capitalize;
    /* Capitalize text */
    font-weight: 500;
    /* Slightly bold text */
    text-decoration: none;
    /* Remove underline */
    padding: 0.5rem 0.75rem;
    /* Adjusted padding to links */
    transition: color 0.3s, background-color 0.3s;
    /* Smooth hover effect */
    display: inline-block;
    /* Ensure proper padding application */
}

/* Hover Effect */
.category-link:hover {
    color: #ffffff;
    /* White text on hover */
    background-color: #0073e6;
    /* Blue background on hover */
    border-radius: 5px;
    /* Add rounded corners on hover */
}


/* new styles */

:root {
    --color-background: hsl(0, 0%, 99%);
    --color-foreground: hsl(220, 15%, 10%);
    --color-card: hsl(0, 0%, 100%);
    --color-primary: hsl(211, 100%, 50%);
    --color-primary-dark: hsl(211, 100%, 38%);
    --color-primary-light: hsl(217, 91%, 60%);
    --color-accent: hsl(142, 71%, 45%);
    --color-accent-light: hsl(158, 64%, 52%);
    --color-muted: hsl(210, 40%, 96%);
    --color-muted-foreground: hsl(215, 15%, 45%);
    --color-border: hsl(214, 32%, 91%);
    --color-surface: rgba(255, 255, 255, 0.88);
    --color-surface-border: rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 1px 2px 0 hsla(0, 0%, 0%, 0.05);
    --shadow-md: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1), 0 2px 4px -2px hsla(0, 0%, 0%, 0.1);
    --shadow-lg: 0 10px 15px -3px hsla(0, 0%, 0%, 0.1), 0 4px 6px -4px hsla(0, 0%, 0%, 0.1);
    --shadow-xl: 0 20px 25px -5px hsla(0, 0%, 0%, 0.1), 0 8px 10px -6px hsla(0, 0%, 0%, 0.1);

    --radius: 0.75rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.color-primary {
    color: var(--color-primary);
}

.color-primary-light {
    color: var(--color-primary-light);
}

.color-accent {
    color: var(--color-accent);
}

.color-accent-light {
    color: var(--color-accent-light);
}

.color-muted {
    color: var(--color-muted);
}

.color-muted-foreground {
    color: var(--color-muted-foreground);
}

.color-border {
    color: var(--color-border);
}

/* Background colors */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-primary-light {
    background-color: var(--color-primary-light) !important;
}

.bg-accent {
    background-color: var(--color-accent) !important;
}

/* Text colors */
.text-primary {
    color: var(--color-primary) !important;
}

/* Border colors */
.border-primary {
    border-color: var(--color-primary) !important;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    /* Use the same gentle vertical gradient as the landing hero so the whole site matches */
    background: linear-gradient(180deg, var(--color-background), var(--color-muted) 50%, var(--color-background));
    color: var(--color-foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Buttons */
.btn-theme {
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-accent-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-accent-gradient:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-theme {
    border: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-foreground);
    font-weight: 600;
}

.btn-outline-theme:hover {
    border-color: var(--color-primary);
    background-color: hsla(211, 100%, 50%, 0.05);
    color: var(--color-foreground);
    transform: scale(1.05);
}

.btn-primary-theme {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary-theme:hover {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 2rem 1rem 3rem;
    background: linear-gradient(180deg, var(--color-background), var(--color-muted) 50%, var(--color-background));
}

/* Surface and card styles: make cards sit over the landing gradient */
.bg-surface {
    background-color: var(--color-surface) !important;
}

.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    box-shadow: var(--shadow-sm);
}

.card .card-header,
.card-header.bg-light,
.card-footer.bg-light {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--color-surface-border);
}

/* Make bg-light slightly translucent so site feels cohesive */
.bg-light {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: hsla(211, 100%, 50%, 0.1);
    border: 1px solid hsla(211, 100%, 50%, 0.2);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Search Box */
.search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-glow {
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
    border-radius: 1.5rem;
    filter: blur(2rem);
    opacity: 0.2;
    z-index: 0;
}

.search-card {
    position: relative;
    background-color: var(--color-card);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    z-index: 1;
}

.search-wrapper {
    background-color: hsla(210, 40%, 96%, 0.5);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.25rem;
    /*display: flex;*/
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid hsla(214, 32%, 91%, 0.5);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--color-foreground);
}

.search-input::placeholder {
    color: var(--color-muted-foreground);
}

.btn-search {
    background-color: hsla(211, 100%, 50%, 0.1);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-search:hover {
    background-color: hsla(211, 100%, 50%, 0.15);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--color-muted-foreground);
    font-size: 1.5rem;
    transition: all 0.2s;
}

.social-icon:hover {
    color: var(--color-foreground);
    transform: scale(1.1);
}

/* Features Section */
.features-section {
    padding: 3rem 1rem;
    background: linear-gradient(180deg, var(--color-background), var(--color-muted) 50%, var(--color-background));
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-icon-wrapper {
    padding: 0.75rem;
    border-radius: 1rem;
    background-color: hsla(211, 100%, 50%, 0.1);
    border: 1px solid hsla(211, 100%, 50%, 0.2);
}

.section-icon-wrapper.secondary {
    background-color: hsla(217, 91%, 60%, 0.1);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
}

.section-icon {
    font-size: 2rem;
}

.icon-primary {
    color: var(--color-primary);
}

.icon-secondary {
    color: var(--color-primary-light);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0;
}

.section-subtitle {
    color: var(--color-muted-foreground);
    font-size: 1.125rem;
    margin-left: 4.5rem;
    margin-bottom: 2.5rem;
}

/* Feature Cards */
.card-theme {
    position: relative;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
}

.card-theme::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(211, 100%, 50%, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.card-theme:hover::before {
    opacity: 1;
}

.card-theme:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.feature-icon-wrapper {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: var(--radius);
    background-color: hsla(211, 100%, 50%, 0.1);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s;
}

.card-theme:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background-color: hsla(211, 100%, 50%, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-foreground);
}

.card-text {
    color: var(--color-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer-theme {
    background-color: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 3rem 1rem;
    text-align: center;
}

.footer-text {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 7rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-subtitle {
        margin-left: 0;
    }
}

.no-arrows::-webkit-inner-spin-button,
.no-arrows::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-arrows {
    -moz-appearance: textfield;
    /* Firefox */
}