/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: 0 0% 99%;
    --foreground: 0 0% 12%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 12%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 12%;

    --primary: 8 80% 54%;
    --primary-foreground: 0 0% 100%;

    --secondary: 20 14% 96%;
    --secondary-foreground: 0 0% 20%;

    --muted: 20 10% 96%;
    --muted-foreground: 0 0% 45%;

    --accent: 20 80% 96%;
    --accent-foreground: 8 80% 40%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;

    --border: 20 10% 92%;
    --input: 20 10% 90%;
    --ring: 8 80% 54%;

    --radius: 0.75rem;

    --hero-gradient: linear-gradient(135deg, hsl(8 80% 54%) 0%, hsl(20 90% 58%) 100%);
    --card-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.04), 0 1px 2px -1px hsl(0 0% 0% / 0.04);
    --card-shadow-hover: 0 10px 25px -5px hsl(0 0% 0% / 0.08), 0 8px 10px -6px hsl(0 0% 0% / 0.04);
    --elevation-1: 0 1px 2px hsl(0 0% 0% / 0.05);
    --elevation-2: 0 4px 12px hsl(0 0% 0% / 0.08);
    --elevation-3: 0 8px 30px hsl(0 0% 0% / 0.12);

    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.items-end {
    align-items: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

@media (min-width: 640px) {
    .sm\:inline {
        display: inline;
    }

    .sm\:hidden {
        display: none;
    }

    .sm\:flex {
        display: flex;
    }

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:block {
        display: block;
    }

    .md\:inline-flex {
        display: inline-flex;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .md\:gap-6 {
        gap: 1.5rem;
    }

    .md\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .lg\:gap-12 {
        gap: 3rem;
    }

    .lg\:gap-14 {
        gap: 3.5rem;
    }

    .lg\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

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

.text-left {
    text-align: left;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.space-y-2\.5> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.625rem * var(--tw-space-y-reverse));
}

.space-y-3> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.text-white {
    color: #fff;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.leading-tight {
    line-height: 1.25;
}

.leading-none {
    line-height: 1;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.uppercase {
    text-transform: uppercase;
}

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

.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}

.text-primary-foreground\/50 {
    color: hsl(var(--primary-foreground) / 0.5);
}

.text-primary-foreground\/70 {
    color: hsl(var(--primary-foreground) / 0.7);
}

.text-primary-foreground\/40 {
    color: hsl(var(--primary-foreground) / 0.4);
}

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

.text-foreground {
    color: hsl(var(--foreground));
}

.text-accent-foreground {
    color: hsl(var(--accent-foreground));
}

.placeholder\:text-muted-foreground::placeholder {
    color: hsl(var(--muted-foreground));
}

.bg-gradient-brand {
    background-image: var(--hero-gradient);
}

.bg-background {
    background-color: hsl(var(--background));
}

.bg-card {
    background-color: hsl(var(--card));
}

.bg-secondary {
    background-color: hsl(var(--secondary));
}

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

.bg-primary\/20 {
    background-color: hsl(var(--primary) / 0.2);
}

.bg-foreground {
    background-color: hsl(var(--foreground));
}

.bg-primary-foreground\/10 {
    background-color: hsl(var(--primary-foreground) / 0.1);
}

.bg-foreground\/20 {
    background-color: hsl(var(--foreground) / 0.2);
}

.text-gradient {
    background-image: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-7 {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-3\.5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.w-3\.5 {
    width: 0.875rem;
}

.h-3\.5 {
    height: 0.875rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.h-7 {
    height: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-9 {
    width: 2.25rem;
}

.h-9 {
    height: 2.25rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-11 {
    width: 2.75rem;
}

.h-11 {
    height: 2.75rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.shrink-0 {
    flex-shrink: 0;
}

.ml-auto {
    margin-left: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.inline-block {
    display: inline-block;
}

.w-auto {
    width: auto;
}

.object-cover {
    object-fit: cover;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-tall {
    aspect-ratio: 3 / 4;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.top-3 {
    top: 0.75rem;
}

.left-3 {
    left: 0.75rem;
}

.-top-0\.5 {
    top: -0.125rem;
}

.-right-0\.5 {
    right: -0.125rem;
}

.top-1\/2 {
    top: 50%;
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.z-10 {
    z-index: 10;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

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

.shadow-elevation-1 {
    box-shadow: var(--elevation-1);
}

.shadow-elevation-2 {
    box-shadow: var(--elevation-2);
}

.shadow-elevation-3 {
    box-shadow: var(--elevation-3);
}

.border-b {
    border-bottom: 1px solid hsl(var(--border));
}

.border-t {
    border-top: 1px solid hsl(var(--border));
}

.border-x {
    border-left: 1px solid hsl(var(--border));
    border-right: 1px solid hsl(var(--border));
}

.border {
    border: 1px solid hsl(var(--border));
}

.border-2 {
    border-width: 2px;
}

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

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

.border-primary-foreground\/10 {
    border-color: hsl(var(--primary-foreground) / 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.transition-all {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.transition-opacity {
    transition: opacity 0.15s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-secondary:hover {
    background-color: hsl(var(--secondary));
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.hover\:text-foreground:hover {
    color: hsl(var(--foreground));
}

.hover\:text-primary-foreground:hover {
    color: hsl(var(--primary-foreground));
}

.hover\:bg-accent:hover {
    background-color: hsl(var(--accent));
}

.hover\:shadow-elevation-2:hover {
    box-shadow: var(--elevation-2);
}

.active\:scale-\[0\.98\]:active {
    transform: scale(0.98);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:text-primary {
    color: hsl(var(--primary));
}

.group:hover .group-hover\:bg-gradient-brand {
    background-image: var(--hero-gradient);
}

.group:hover .group-hover\:text-primary-foreground {
    color: hsl(var(--primary-foreground));
}

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

.hover\:translate-y-1:hover,
.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.line-through {
    text-decoration: line-through;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Specific Component Styles */

/* Navigation Link Logic */
.nav-link {
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--secondary));
}

.nav-link.active {
    color: hsl(var(--primary));
    background-color: hsl(var(--accent));
}

/* Header Search Input */
.search-input {
    width: 100%;
    height: 2.75rem;
    padding-left: 1rem;
    padding-right: 3rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--secondary) / 0.5);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
    background-color: hsl(var(--background));
}

/* Search Suggestions */
#suggestions-container {
    overflow-y: auto;
    max-height: 350px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Custom Scrollbar for Suggestions */
#suggestions-container::-webkit-scrollbar {
    width: 6px;
}

#suggestions-container::-webkit-scrollbar-track {
    background: hsl(var(--secondary) / 0.5);
    border-radius: 0 0 0.75rem 0;
}

#suggestions-container::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.3);
    border-radius: 3px;
}

#suggestions-container::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.5);
}

#suggestions-container ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: hsl(var(--secondary));
    padding-left: 1.25rem;
    color: hsl(var(--primary));
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.focus\:border-primary:focus {
    border-color: hsl(var(--primary));
}

/* Search Suggestions */
.suggestions-box {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    box-shadow: var(--elevation-3);
    max-height: 250px;
    overflow-y: auto;
    margin-top: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted-foreground) / 0.3) transparent;
}

.suggestions-box::-webkit-scrollbar {
    width: 6px;
}

.suggestions-box::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-box::-webkit-scrollbar-thumb {
    background-color: hsl(var(--muted-foreground) / 0.3);
    border-radius: 3px;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: background-color 0.15s ease;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: hsl(var(--secondary));
}

/* Mobile Menu */
.mobile-menu-overlay {
    background-color: hsla(0, 0%, 12%, 0.2);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 18rem;
    background-color: hsl(var(--card));
    box-shadow: var(--elevation-3);
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    height: 100vh;
    overflow-y: auto;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    background-image: var(--hero-gradient);
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--elevation-2);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: var(--elevation-3);
    transform: scale(1.02);
    opacity: 0.95;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    background-color: hsla(0, 0%, 100%, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: hsla(0, 0%, 100%, 0.2);
}

/* Gradients and Header */
.header-solid {
    background-color: hsl(var(--card));
}

.hero-overlay {
    background: linear-gradient(to right, hsl(var(--foreground) / 0.9), hsl(var(--foreground) / 0.7), hsl(var(--foreground) / 0.3));
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.animate-fade-up {
    animation: fadeUp 0.6s forwards;
    opacity: 0;
    /* Ensures hidden before animation */
}

/* Fix for broken styles reported */
.w-px {
    width: 1px;
}

.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.bg-border {
    background-color: hsl(var(--border));
}

/* Newsletter */
.newsletter-form-container {
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .newsletter-form-container {
        flex-direction: row;
    }
}

/* Hero Slider Styles */
.slider-slide.active {
    opacity: 1 !important;
    z-index: 1 !important;
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background: white !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.slider-dot:hover {
    transform: scale(1.3) !important;
}

.slider-dot.active {
    background: white !important;
}

@media (max-width: 768px) {
    .slider-nav {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .slider-nav i {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    .slider-dots {
        bottom: 1rem !important;
        gap: 0.5rem !important;
    }

    .slider-dot {
        width: 10px !important;
        height: 10px !important;
    }
}

/* ==============================================
   FOOTER (MODERN DESIGN)
   ============================================== */
footer.modern-footer {
    position: relative;
    background: linear-gradient(180deg, #1a1a1f, #0d0d0f);
    color: #fff;
    padding: 4rem 1rem;
    overflow: hidden;
}

footer.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hero-gradient);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
}

footer h4 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--hero-gradient);
    border-radius: 9999px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    display: inline-block;
    padding: 0.25rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: hsl(var(--primary));
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    width: 36px;
    height: 36px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, .1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: brightness(.8);
}

.social-icons img:hover {
    background: var(--hero-gradient);
    transform: translateY(-4px);
    filter: brightness(1);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-icons img {
    width: 40px;
    height: auto;
    padding: 0.25rem;
    background: rgba(255, 255, 255, .1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.1);
}

footer p {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons,
    .payment-icons {
        justify-content: center;
    }
}

/* --- New Footer (Old Site Style) --- */
.old-site-footer {
    background-color: #222222;
    color: #ffffff;
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-family: inherit;
    margin-top: 4rem;
}

.old-site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.old-site-footer .footer-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: #ff4500;
    /* Red/Orange from the image */
}

.old-site-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff4500;
}

.old-site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.old-site-footer .footer-links li {
    margin-bottom: 1rem;
}

.old-site-footer .footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.old-site-footer .footer-links a:hover {
    color: #ffffff;
}

.old-site-footer .footer-social-icons {
    display: flex;
    gap: 0.75rem;
}

.old-site-footer .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #444444;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.2s;
    text-decoration: none;
}

.old-site-footer .social-icon:hover {
    background-color: #ff4500;
    transform: translateY(-2px);
}

.old-site-footer .social-icon i {
    width: 18px;
    height: 18px;
}

.old-site-footer .footer-payment-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.old-site-footer .payment-icon {
    height: 32px;
    width: auto;
    object-fit: contain;
    /* Remove brightness filter if using actual colored icons */
}

.old-site-footer .footer-text {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.old-site-footer .footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.old-site-footer .footer-copyright {
    font-size: 0.875rem;
    color: #888888;
    text-align: center;
}

@media (max-width: 768px) {
    .old-site-footer {
        text-align: center;
        padding-top: 3rem;
    }

    .old-site-footer .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .old-site-footer .footer-social-icons,
    .old-site-footer .footer-payment-icons {
        justify-content: center;
    }

    .old-site-footer .grid {
        gap: 3rem;
    }
}

/* ==============================================
   RESPONSIVE OVERRIDES (Mobile First)
   ============================================== */

/* --- Container Slider: Responsive Height --- */
@media (max-width: 767px) {
    section:has(.container-slider) {
        display: none;
    }
}

.container-slider {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--elevation-3);
    height: 220px;
    /* Mobile default */
}

@media (min-width: 480px) {
    .container-slider {
        height: 280px;
    }
}

@media (min-width: 640px) {
    .container-slider {
        height: 350px;
        border-radius: 1.25rem;
    }
}

@media (min-width: 768px) {
    .container-slider {
        height: 420px;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-slider {
        height: 500px;
    }
}

/* --- Header: Responsive Logo --- */
.header-logo {
    height: 55px;
    width: auto;
}

@media (min-width: 640px) {
    .header-logo {
        height: 65px;
    }
}

@media (min-width: 768px) {
    .header-logo {
        height: 80px;
    }
}

/* --- Header Main Row: Responsive layout --- */
/* Mobile: logo + conviteCad centered side by side */
@media (max-width: 767px) {
    .header-main {
        justify-content: center;
    }
}

/* Desktop: reorder conviteCad/userLog AFTER the search (flex order) */
@media (min-width: 768px) {

    .header-main #conviteCad,
    .header-main #userLog {
        order: 2;
    }

    .header-main .header-cart {
        order: 3;
    }
}

/* --- Nav bar: horizontal scroll on medium screens --- */
@media (min-width: 768px) and (max-width: 1279px) {
    .nav-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .nav-scroll .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* --- Section padding: smaller on mobile --- */
.py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* --- Section title: responsive font --- */
@media (max-width: 639px) {
    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* --- Slider section: reduce padding on mobile --- */
.py-10 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .py-10 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* --- Product cards: better spacing on mobile --- */
@media (max-width: 639px) {
    .grid.grid-cols-2 .p-4 {
        padding: 0.75rem;
    }

    .grid.grid-cols-2 .text-lg {
        font-size: 1rem;
    }

    .grid.grid-cols-2 .h-10.w-10 {
        height: 2rem;
        width: 2rem;
    }

    .grid.grid-cols-2 .h-10.w-10 .h-4 {
        height: 0.75rem;
        width: 0.75rem;
    }
}

/* --- Promo banner: text wrap on small screens --- */
@media (max-width: 479px) {
    .bg-gradient-brand .text-sm {
        font-size: 0.7rem;
    }
}

/* --- Newsletter form: fully stacked on mobile --- */
@media (max-width: 639px) {
    #newsletterForm {
        flex-direction: column;
    }

    #newsletterForm .flex-1 {
        width: 100%;
    }
}

/* --- Footer: responsive padding --- */
@media (max-width: 767px) {
    .old-site-footer .footer-social-icons {
        justify-content: center;
    }

    .old-site-footer .footer-payment-icons {
        justify-content: center;
    }

    .old-site-footer .container {
        padding: 0 1rem;
    }
}

/* --- Slider nav arrows: responsive position --- */
@media (max-width: 767px) {
    .slider-nav {
        width: 2rem !important;
        height: 2rem !important;
    }

    .slider-nav-prev {
        left: 0.5rem !important;
    }

    .slider-nav-next {
        right: 0.5rem !important;
    }
}

/* --- Ensure images never overflow --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    padding: 0;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 95px;
    /* Above WhatsApp (30px + 50px + 15px gap) */
    right: 30px;
    background-color: #FFF;
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    color: hsl(var(--foreground));
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: hsl(var(--secondary));
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: hsl(var(--primary));
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        /* Above WhatsApp (20px + 45px + 15px gap) */
        right: 20px;
    }
}