:root {
  --color-primary: #24628b; /* blue */
  --color-primary-dark: #163C54; /* darker blue */
  --color-background: #FFFFFF;
  --color-text: #111111;
  --color-text-secondary: #555555;
  --color-lighter-grey: #F2F2F2;
  --color-darker-grey: #D1D1D1;
  --color-darkest-grey: #B0B0B0;

  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-shadow-hover: rgba(0, 0, 0, 0.1);
  --color-shadow-strong: rgba(0, 0, 0, 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-speed: 0.3s;
  --font-family: 'Roboto', Arial, sans-serif;
  --diff-font-family: 'Orbitron', Arial, sans-serif;

  --gradient-start: #e1ecf3;
  --gradient-middle: #99bcd3;
  --gradient-end: #1E4F6F;
  --section-background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
  --section-background-flipped: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-middle) 50%, var(--gradient-start) 100%);
  --hero-gradient: linear-gradient(135deg, #e1ecf3 0%, #99bcd3 50%, var(--color-primary) 100%);
}
@font-face {
    font-family: 'Orbitron';
    src: url('../static/orbitron-medium.otf') format('opentype');
    font-weight: 500;
  }

/* Dark theme variables */
[data-theme="dark"] {
  --color-background: #000000;
  --color-text: #EEEEEE;
  --color-text-secondary: #BBBBBB;
  --color-lighter-grey: #1A1A1A;
  --color-darker-grey: #2A2A2A;

  --color-shadow: rgba(255, 255, 255, 0.05);
  --color-shadow-hover: rgba(255, 255, 255, 0.1);
  --color-shadow-strong: rgba(255, 255, 255, 0.08);

  --gradient-start: #111111;
  --gradient-middle: #2C2F3F;
  --gradient-end: #1E4F6F;

  --section-background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
}


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.theme-toggle-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-background-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid var(--color-border);
}

.theme-toggle-fixed:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.theme-toggle-fixed .sun-icon,
.theme-toggle-fixed .moon-icon {
    position: absolute;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-toggle-fixed .sun-icon {
    opacity: 0;
    transform: translateY(10px);
}

[data-theme="light"] .theme-toggle-fixed .moon-icon {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .theme-toggle-fixed .sun-icon {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .theme-toggle-fixed .moon-icon {
    opacity: 0;
    transform: translateY(10px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--color-shadow);
    transition: all 0.5s ease;
    opacity: 1;
}

.navbar.pill-nav {
    background-color: var(--color-darker-grey);
    width: 80%;
    max-width: 900px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    padding: 10px 20px;
    top: 15px;
    opacity: 0.98;
    box-shadow: 0 5px 20px var(--color-shadow-strong);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    margin-right: 10px;
    border-radius: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

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

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.cart-notification.show {
    transform: translateX(0);
}

.notification-content p {
    margin: 0 0 10px;
    font-weight: 600;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.view-cart-btn, .continue-btn {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.view-cart-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    flex: 1;
}

.continue-btn {
    background: none;
    border: 1px solid var(--color-text-secondary);
    color: var(--color-text);
    flex: 1;
}

#cart-count {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

#cart-count.has-items {
    opacity: 1;
}

.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Toast notification system - Add this to your CSS */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    width: 300px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slide-in 0.3s ease-out forwards;
    cursor: pointer;
}

.toast.error {
    background-color: #ffebee;
    color: #e53935;
    border-left: 4px solid #e53935;
}

.toast.success {
    background-color: #e8f5e9;
    color: #43a047;
    border-left: 4px solid #43a047;
}

.toast.info {
    background-color: #e3f2fd;
    color: #1e88e5;
    border-left: 4px solid #1e88e5;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        width: 100%;
        max-width: none;
        padding: 12px 15px;
    }
    
    .toast-message {
        font-size: 0.85rem;
    }
}

/* Gradient divider - common style for all dividers */
.gradient-divider {
    position: relative;
    height: 3px;
    width: 100%;
    background: linear-gradient(white , black , white);
}

/* Hero and Sub-Hero sections - merged common styles */
.hero, .sub-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--section-background);
    color: var(--color-text);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero {
    height: 100vh;
}

.sub-hero {
    height: 40vh;
}

/* Background styles for hero sections */
.hero-background, .sub-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
}

/* Floating watch images around hero section */
.floating-image {
    position: absolute;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.floating-image:nth-child(1) {
    top: 15%;
    left: 20%;
    width: 180px;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.floating-image:nth-child(2) {
    top: 30%;
    right: 25%;
    width: 300px;
    animation-delay: 1.5s;
    transform: rotate(10deg);
}

.floating-image:nth-child(3) {
    bottom: 25%;
    left: 20%;
    width: 300px;
    animation-delay: 3s;
    transform: rotate(-20deg);
}

.floating-image:nth-child(4) {
    bottom: 15%;
    right: 24%;
    width: 260px;
    animation-delay: 2s;
    transform: rotate(20deg);
}

/* Float animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(var(--rotation));
    }
    50% {
        transform: translateY(-20px) rotate(calc(var(--rotation) + 5deg));
    }
    100% {
        transform: translateY(0px) rotate(var(--rotation));
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(to right, var(--color-primary), var(--color-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 0 auto; /* Center the search bar */
    display: flex; /* Use flexbox for consistent layout */
    align-items: center;
}

.search-bar input {
    width: 100%;
    flex: 1; /* Allow input to grow and fill available space */
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background-color: white;
    color: black;
    transition: all 0.3s ease;
    min-width: 300px; /* Set a minimum width */
}

.search-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: calc(100% - 10px);
    padding: 0 25px;
    border: none;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--color-primary-dark);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 130px;
}

.logo {
    flex: 0 0 auto;
}

.nav-links {
    flex: 0 0 auto;
}

/* Search container styled like the image */
.search-container {
    flex: 1;
    max-width: 350px;
    margin: 0 15px 0 auto; /* Push to right with auto margin */
}

.navbar-search-form {
    position: relative;
    width: 100%;
    height: 36px;
}

.navbar-search-form input {
    width: 100%;
    height: 100%;
    padding: 0 40px 0 15px;
    border: 1px solid var(--color-text);
    border-radius: 18px;
    background-color: white;
    color: #333;
    font-size: 14px;
    outline: none;
}

.navbar-search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #777;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile styles */
@media (max-width: 768px) {
    .search-container {
        flex: 1 0 100%;
        margin: 5px 10px 0 auto;
        max-width: 60%;
    }
    
    .navbar .container {
        padding: 0 10px;
        flex-wrap: nowrap;
    }
}

#goTopBtn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--color-primary, #24628b);
        color: white;
        border: none;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        pointer-events: none; /* Disable interactions when hidden */
    }
    
    #goTopBtn.visible {
        opacity: 0.8;
        transform: translateY(0);
        pointer-events: auto; /* Enable interactions when visible */
    }
    
    #goTopBtn:hover {
        opacity: 1;
        background-color: var(--color-primary-dark, #163C54);
    }
    
    @media (max-width: 768px) {
        #goTopBtn {
            width: 35px;
            height: 35px;
            bottom: 15px;
            right: 15px;
            font-size: 16px;
        }
    }


/* Popular Brands */
.popular-brands {
    padding-top: 40px;
    background: var(--color-lighter-grey);
    clear: both;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    clear: both;
    gap: 0;
}

.brand-card {
    position: relative;
    height: auto;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--color-shadow);
}

.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.brand-name {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--color-darker-grey);
    color: var(--color-text);
    padding: 40px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-background), var(--color-primary), var(--color-background));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 20px;
}

.footer-logo {
    width: 25%;
    min-width: 250px;
    padding-right: 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 10px;
    border-radius: 100%;
}

.footer-logo p {
    color: var(--color-text-secondary);
    max-width: 300px;
}

.footer-nav {
    display: flex;
    width: 70%;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text);
    position: relative;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

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

.footer-column ul li a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-lighter-grey);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 0 20px;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tagline {
        font-size: 2.8rem;
    }
    
    .navbar.pill-nav {
        width: 90%;
    }
    
    .floating-image {
        width: 120px;
    }

    .section-title.right {
        float: none;
        margin-left: 20px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        padding: 120px 0 60px;
    }

    .hero-content {
        flex-direction: column;
    }

    .tagline {
        font-size: 3.8rem;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar.pill-nav {
        width: 95%;
        border-radius: 30px;
    }
    
    .floating-image {
        display: none;
    }
    
    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .tagline {
        font-size: 2rem;
    }

    .sneaker-card {
        min-width: 220px;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar.pill-nav {
        padding: 8px 15px;
    }
}