/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Main Brand Colors (Yellow Dominant) */
    --primary: #FFD700;
    --primary-light: #FFF9C4;
    --primary-dark: #FFC107;
    --primary-darker: #FFA000;
    /* Neutrals (Backgrounds & Text) */
    --bg-light: #FFFFFF;
    --bg-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --text-dark: #333333;
    --text-muted: #777777;
    /* Accents & Actions (Buttons, Links) */
    --accent-blue: #4285F4;
    --accent-red: #EA4335;
    --accent-green: #34A853;
    /* Special UI (Borders, Highlights) */
    --border-light: #E0E0E0;
    --border-dark: #444444;
    --highlight: #FFFDE7;
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    /* Navbar height */
    --navbar-height: 70px;
    --navbar-compact-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-top: var(--navbar-height);
}


/* Navbar Styles */

.navbar {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    height: var(--navbar-height);
    transition: height 0.3s ease;
}


/* Compact Navbar on Scroll */

.navbar.compact {
    box-shadow: var(--shadow-sm);
}

.navbar.compact .navbar-container {
    height: var(--navbar-compact-height);
}

.navbar.compact .logo a {
    font-size: 1.5rem;
}

.navbar.compact .search-container,
.navbar.compact .datetime-picker,
.navbar.compact .nav-icons {
    display: none;
}

.navbar.compact .mobile-search {
    display: flex;
    flex: 1;
    margin: 0 1rem;
}


/* Logo Styles */

.logo {
    flex: 1;
    min-width: 150px;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-darker);
    display: flex;
    align-items: center;
    transition: font-size 0.3s ease;
}

.pantera {
    position: relative;
    display: inline-block;
}

.pantera::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.pantera:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Search Bar Styles */

.search-container {
    flex: 2;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.mobile-search {
    display: none;
    width: 100%;
    position: relative;
}

.search-bar {
    display: flex;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: var(--accent-green);
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn i {
    color: var(--text-dark);
    font-size: 1rem;
}


/* Date & Time Picker Styles */

.datetime-picker {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    min-width: 280px;
    justify-content: center;
}

.date-input,
.time-input {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.date-input input,
.time-input select {
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-width: 120px;
}

.time-input select {
    padding-right: 2.5rem;
}

.date-input input:focus,
.time-input select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.calendar-icon,
.clock-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.9rem;
}

.time-input::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.7rem;
}


/* Icons Styles */

.nav-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    min-width: 120px;
}

.icon-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.icon-container:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.icon-container i {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-red);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}


/* Mega Menu Styles */

.mega-menu {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.menu-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition-medium);
}

.menu-item:hover .menu-link {
    color: var(--primary-darker);
}

.menu-item:hover .menu-link::after {
    width: 100%;
}

.menu-item:hover .menu-link i {
    transform: rotate(180deg);
}


/* Submenu Styles */

.submenu {
    position: absolute;
    left: 0;
    top: 100%;
    width: auto;
    background-color: var(--bg-light);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-medium);
    z-index: 999;
}

.menu-item:hover .submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.submenu-column {
    flex: 1;
    padding: 0 1rem;
}

.submenu-header {
    color: var(--primary-darker);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    font-size: 1.1rem;
}

.submenu-column a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.submenu-column a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.submenu-column a:hover {
    color: var(--primary-darker);
    transform: translateX(5px);
}

.submenu-column a:hover::before {
    width: 15px;
}

.blue {
    color: var(--accent-blue);
    font-size: 18px;
}


/* Search Results */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item i {
    margin-right: 10px;
    color: #0066cc;
    width: 20px;
    text-align: center;
}

.search-result-type {
    float: right;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
}

.no-results {
    color: #666;
    font-style: italic;
}


/* Mobile Menu Toggle Button */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    z-index: 1001;
}


/* Auth Popup Styles */

.auth-popup {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    display: none;
}

.auth-popup.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50%) translateX(100%);
    }
    to {
        transform: translateY(-50%) translateX(0);
    }
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-header h3 {
    margin: 0;
    color: #333;
}

.close-auth {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background-color: #FFD700;
    border: none;
    border-radius: 5px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #FFC107;
}

.auth-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.remember-me input {
    width: auto;
    margin-right: 10px;
}


/* Hero Slider Styles */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slider-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 20s linear;
    transform: scale(1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.overlay-content {
    max-width: 800px;
    padding: 2rem;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
    z-index: 1000;
}

.slide.active~.slider-overlay .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.slider-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
    color: #fff;
}

.slider-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.slider-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.slider-btn {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.slider-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}


/* Categories Section */

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-header {
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-dark);
}

.category-items {
    padding: 1.5rem;
}

.category-item {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

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

.category-item:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.category-item i {
    margin-right: 0.8rem;
    color: var(--primary-dark);
    font-size: 0.9rem;
}


/* Parallax Sections */

.parallax-1,
.parallax-2,
.parallax-3 {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 20px;
    height: 500px;
}

.parallax-inner {
    padding: 3% 0;
}

.parallax-inner h1 {
    color: var(--accent-blue);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.parallax-inner h2 {
    font-size: 32px;
    color: var(--accent-blue);
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    margin: auto;
}

.parax {
    padding: 5%;
}

.parax h2 {
    color: var(--accent-green);
    padding-bottom: 20px;
    margin-top: 20px;
}

.parallax-inner p {
    font-size: 18px;
    color: #555;
    padding-right: 50px;
    padding-left: 50px;
    text-align: justify;
    line-height: 30px;
    margin: 0 50px 40px;
}

.parax p {
    color: #ffffff;
    text-align: center;
    font-size: 18px;
}

.parax h6 {
    color: var(--bg-dark);
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}


/* Cards Section */

.containner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 30px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.top-pick {
    position: absolute;
    background-color: var(--primary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    border-radius: 5px;
    z-index: 1;
}

.favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 1.2rem;
    z-index: 1;
}

.card-content {
    padding: 1rem;
}

.title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #003366;
}

.details {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.stars {
    color: #f9a825;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.price {
    font-weight: bold;
    font-size: 0.9rem;
    color: #222;
}

.price span {
    color: #555;
    font-weight: normal;
}


/* Footer Styles */

footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.footer-logo a:hover {
    color: var(--primary-light);
}

.footer-about p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.newsletter-btn:hover {
    background-color: var(--primary-dark);
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-payments {
    display: flex;
    gap: 0.8rem;
}

.payment-icon {
    width: 40px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23FFD700"><circle cx="25" cy="25" r="5"/><circle cx="75" cy="25" r="5"/><circle cx="25" cy="75" r="5"/><circle cx="75" cy="75" r="5"/></svg>');
    background-size: 100px;
    z-index: 1;
}

.back-to-top {
    position: absolute;
    right: 2rem;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}


/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Adjustments */

@media (max-width: 1200px) {
    .navbar-container {
        flex-wrap: wrap;
        height: auto;
    }
    .search-container {
        order: 3;
        flex: 80%;
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    /* Mobile Menu Styles */
    .mega-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 80%;
        /* Adjust width as needed */
        height: calc(100vh - var(--navbar-height));
        background: var(--bg-light);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 1rem;
    }
    .mega-menu.active {
        left: 0;
    }
    .menu-list {
        flex-direction: column;
        padding: 0;
    }
    .menu-item {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    .menu-link {
        padding: 1rem 0;
        justify-content: space-between;
    }
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        opacity: 1;
        transform: none;
        width: 100%;
    }
    .submenu.active {
        display: block;
    }
    .submenu-column {
        padding: 0;
        margin-bottom: 1rem;
    }
    .submenu-header {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: var(--primary-dark);
    }
    .submenu-column a {
        padding: 0.5rem 0;
        display: block;
        color: var(--text-dark);
    }
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-dark);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    /* Hero Slider Adjustments */
    .slider-title {
        font-size: 2.5rem;
    }
    .slider-subtitle {
        font-size: 1.3rem;
    }
    .overlay-content {
        padding: 1rem;
    }
    /* Footer Adjustments */
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar-container {
        padding: 0.5rem;
    }
    .datetime-picker {
        display: none;
    }
    .pantera {
        padding-bottom: 0;
    }
    /* Hero Slider Adjustments */
    .slider-title {
        font-size: 2rem;
    }
    .slider-subtitle {
        font-size: 1.1rem;
    }
    .slider-btn {
        padding: 0.8rem 1.8rem;
    }
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
    /* Footer Adjustments */
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-newsletter {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-payments,
    .footer-legal {
        justify-content: center;
    }
    /* Parallax Sections */
    .parallax-inner h1 {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    .parallax-inner p {
        font-size: 1rem;
        padding: 0 1rem;
        margin: 0 1rem 2rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    /* Navbar compact mode */
    .navbar.compact .mobile-search {
        margin: 0 0.5rem;
    }
    /* Hero Slider Adjustments */
    .slider-title {
        font-size: 1.8rem;
    }
    .slider-subtitle {
        font-size: 1rem;
    }
    .slider-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    /* Auth Popup */
    .auth-popup {
        width: 90%;
        right: 5%;
    }
    /* Cards Section */
    .containner {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}


/* No Scroll Class */

.no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}


/* Mobile Menu Scrollable Styles */

@media (max-width: 992px) {
    .mega-menu {
        overflow-y: auto;
        height: calc(100vh - var(--navbar-height));
        padding-bottom: 20px;
    }
    .menu-list {
        max-height: none;
        overflow: visible;
    }
    .menu-item {
        padding: 0;
    }
    .menu-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .submenu {
        position: relative;
        width: 100%;
        box-shadow: none;
        padding: 0;
        color: var(--bg-dark);
        background-color: rgba(0, 0, 0, 0.05);
    }
    .submenu-column {
        padding: 10px 20px;
    }
    .submenu-column a {
        padding: 10px 0;
        display: block;
    }
    /* Smooth scrolling for mobile menu */
    .mega-menu {
        -webkit-overflow-scrolling: touch;
    }
}


/* Desktop Search Layout Adjustments */

@media (min-width: 993px) {
    .navbar-container {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "logo search datetime icons";
        align-items: center;
        gap: 15px;
    }
    .logo {
        grid-area: logo;
    }
    .search-container {
        grid-area: search;
        margin: 0;
    }
    .datetime-picker {
        grid-area: datetime;
        margin: 0;
        justify-content: flex-end;
    }
    .nav-icons {
        grid-area: icons;
    }
    /* Ensure search doesn't push other elements */
    .search-bar {
        max-width: 100%;
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.no-scroll {
    overflow: hidden;
}

.navbar .navbar-container .logo a img {
    width: 100px;
    height: 100px;
}