* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #fff;
    display: flex;
    flex-direction: column;
}

a {
  text-decoration: none;
}

/* content grows and pushes footer down */
.page-content {
  flex: 1;
  display: block;
}

/* ================= HEADER ================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  transition: 0.4s;
}

.main-header.hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logotxt {
  font-size: 30px;
  font-family: cursive;
  font-weight: bold;
  background: linear-gradient(45deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.logoimg {
    height: 50px;
}

/* CENTER NAV */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

    .nav-links a {
        position: relative;
        color: white;
        text-decoration: none;
        transition: color .3s ease;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: #38bdf8;
            transform: translateX(-50%);
            transition: width .3s ease;
        }

        /* Hover */
        .nav-links a:hover {
            color: #38bdf8;
        }

            .nav-links a:hover::after {
                width: 100%;
            }

        /* Active page */
        .nav-links a.active {
            color: #38bdf8;
            font-weight: 600;
        }

            .nav-links a.active::after {
                width: 100%;
            }

/* RIGHT ICONS */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* CART */
.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 18px;
  transition: all .2s ease;
}

.cart-icon:hover{
  transform: scale(1.3);
}

.cart-icon:active{
  transform: scale(0.8);
}

.cart-dot {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  display: none;
}

.signup-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    color: #cbd5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
}

.signup-btn:hover {
  transform: scale(1.1);
}
.signup-btn:active {
  transform: scale(0.9);
}

.login-btn {
  background: linear-gradient(45deg, #38bdf8, #22c55e);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
}

.login-btn:hover {
  transform: scale(1.1);
}
.login-btn:active {
  transform: scale(0.9);
}

/* USER MENU WRAPPER */
.user-menu {
  position: relative;
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.fa-user{
  transition: all .2s ease;
}

.fa-user:hover{
  transform: scale(1.3);
}

.fa-user:active{
  transform: scale(0.8);
}

/* DROPDOWN */
.user-dropdown {
  position: absolute;
  top: 120%; /* space below icon */
  left: 50%; /* center horizontally */
  transform: translateX(-50%) translateY(10px);

  background: #1e293b;
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px;
  min-width: 160px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  opacity: 0;
  pointer-events: none;

  transition: all 0.25s ease;
  z-index: 1000;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);

  width: 10px;
  height: 10px;
  background: #1e293b;
}

.user-name {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    color: #cbd5f5;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

/* SHOW */
.user-menu.active .user-dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all .2s ease;
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* MOBILE MENU BASE (IMPORTANT FIX) */
  .mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;

    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 25px 0;

    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;

    transition: all 0.35s ease;
    z-index: 1000;
  }

  /* SHOW MENU */
  .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu a {
    color: white;
  }
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);
}

/* ================= AUTH DESKTOP ================= */
.auth-buttons,
.auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .auth-buttons a,
    .auth-user a {
        text-decoration: none;
    }

@media (max-width: 900px) {
    .auth-buttons,
    .auth-user {
        display: none;
    }
}

    /* keep same styles you already have */
    .login-btn,
    .signup-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    /* ================= MOBILE AUTH ================= */
    .mobile-auth {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 80%;
    }

        .mobile-auth .login-btn,
        .mobile-auth .signup-btn {
            width: 100%;
            text-align: center;
        }

    /* ================= FOOTER ================= */
    .main-footer {
        background: linear-gradient(to top, #193047, #0b0f1a);
        padding: 50px 150px 20px;
    }

    /* TABLET */
    @media (max-width: 900px) {
        .main-footer {
            padding: 50px 40px 20px;
        }
    }

    /* MOBILE */
    @media (max-width: 500px) {
        .main-footer {
            padding: 40px 20px 20px;
        }
    }

    /* container */
    .footer-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    @media (max-width: 900px) {
        .footer-container {
            grid-template-columns: repeat(2, 1fr);
        }

        .footer-column.brand {
            grid-column: span 2;
        }
    }

    @media (max-width: 500px) {
        .footer-container {
            grid-template-columns: repeat(2, 1fr);
        }

        .footer-column.brand {
            grid-column: span 2;
            text-align: center;
        }

        .footer-column {
            text-align: left;
        }

            /* center brand content */
            .footer-column.brand .socials {
                justify-content: center;
            }
    }

    @media (max-width: 500px) {
        .footer-column {
            padding: 5px;
        }

            .footer-column h4 {
                font-size: 14px;
            }

            .footer-column a {
                font-size: 13px;
            }
    }

    /* brand */
    .footer-logo {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 10px;
        background: linear-gradient(45deg, #38bdf8, #22c55e);
        -webkit-background-clip: text;
        color: transparent;
    }

    .footer-column p {
        color: #94a3b8;
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* links */
    .footer-column h4 {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .footer-column a {
        display: block;
        text-decoration: none;
        color: #94a3b8;
        margin: 6px 0;
        font-size: 14px;
        transition: 0.2s;
    }

        .footer-column a:hover {
            color: #38bdf8;
            transform: translateX(3px);
        }

    /* socials */
    .socials {
        display: flex;
        gap: 10px;
    }

        .socials a {
            background: #38bdf870;
            padding: 8px 10px;
            border-radius: 8px;
            text-decoration: none;
            color: #cbd5f5;
            transition: 0.2s;
        }

            .socials a:hover {
                background: #1e293b;
            }

    @media (max-width: 500px) {

        .footer-column {
            align-items: center;
        }

            .footer-column a {
                margin: 8px 0;
            }

        .socials {
            justify-content: center;
        }

        .footer-logo {
            text-align: center;
        }

        .footer-column p {
            text-align: center;
        }
    }

    @media (max-width: 900px) {
        .footer-column.brand {
            grid-column: span 2;
        }
    }

    /* better spacing on mobile */
    @media (max-width: 500px) {
        .footer-column h4 {
            margin-top: 15px;
        }
    }

    /* smoother hover */
    .footer-column a {
        transition: all 0.25s ease;
    }

    /* bottom */
    .footer-bottom {
        margin-top: 40px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        font-size: 13px;
        color: #64748b;
    }

    /* =================================================================
============================Auth Modal===========================
================================================================= */
    /* ================= MODAL ================= */
    .auth-modal {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .auth-modal.active {
            display: flex;
        }

    /* BOX */
    .auth-box {
        width: 380px;
        padding: 30px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* CLOSE */
    .auth-close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 22px;
        cursor: pointer;
    }

    /* TABS */
    .auth-tabs {
        display: flex;
        margin-bottom: 20px;
    }

    .tab {
        flex: 1;
        padding: 10px;
        background: transparent;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        display: flex;
        justify-content: center;
    }

        .tab.active {
            color: #38bdf8;
            border-color: #38bdf8;
        }

    /* FORM */
    .auth-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .auth-form.active {
            display: flex;
        }

        .auth-form h2 {
            margin-bottom: 10px;
        }

        /* INPUTS */
        .auth-form input {
            padding: 12px;
            border-radius: 8px;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            color: white;
            width: 100%;
            margin-top: 15px;
        }

            .auth-form input:focus {
                outline: #38bdf8 3px solid;
            }

    /* PASSWORD */
    .password-field {
        position: relative;
    }

        .password-field i {
            position: absolute;
            right: 12px;
            top: 66%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #94a3b8;
        }

    /* BUTTON */
    .btn-primary {
        background: linear-gradient(45deg, #38bdf8, #22c55e);
        border: none;
        padding: 12px;
        border-radius: 10px;
        cursor: pointer;
        font-weight: bold;
    }

    /* SWITCH TEXT */
    .switch-text {
        font-size: 14px;
        text-align: center;
    }

        .switch-text a {
            color: #38bdf8;
            cursor: pointer;
        }

    /* MOBILE */
    @media (max-width: 500px) {
        .auth-box {
            width: 90%;
        }
    }

    .btn-loader {
        width: 20px;
        height: 20px;
        border: 3px solid #ffffff80;
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        display: none;
        position: relative;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    button:disabled {
        pointer-events: none;
        opacity: 0.5;
    }

    #btnLogin {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    #btnRegister {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .validation-content {
        max-height: 0;
        opacity: 0;
        transform: translateY(-5px);
        overflow: hidden;
        color: #ec2e4d;
        font-size: 13px;
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    }

        .validation-content.show {
            max-height: 120px; /* enough for multi-line text */
            opacity: 1;
            transform: translateY(0);
        }

    .swal2-container {
        z-index: 999999 !important;
    }

    #registerForm {
        display: flex;
        flex-direction: column;
    }

    #loginForm {
        display: flex;
        flex-direction: column;
    }

/* ================= LANGUAGE DROPDOWN ================= */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

    .lang-toggle:hover {
        transform: scale(1.05);
        border-color: #38bdf8;
    }

/* DROPDOWN MENU */
.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 10px;
    padding: 8px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    width: 210px;
}

/* SHOW */
.lang-dropdown.active .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ITEMS */
.lang-menu div {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .lang-menu div:hover {
        background: rgba(56, 189, 248, 0.2);
    }

.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}


#progressBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 999;
}

    #progressBtn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* arrow */

.progress-arrow {
    position: absolute;
    height: 70px;
}

/* progress ring */

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3;
}

.progress-ring-circle {
    fill: none;
    stroke: #346c85;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 163;
    stroke-dashoffset: 163;
    transition: stroke-dashoffset 0.15s linear;
}

/* hover */

#progressBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

#progressBtn:active {
    transform: scale(0.9);
}

/* mobile */

@media (max-width: 768px) {
    #progressBtn {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }
}

/* Entire scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 12px;
}

/* Scrollbar track (transparent) */
::-webkit-scrollbar-track {
    background: transparent; /* completely see-through */
}

/* Scrollbar thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #193047, #24668a);
    border: 3px solid transparent; /* keeps padding effect */
}

    /* Scrollbar thumb on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #0a1957, #1c3267);
    }

/* Floating Cart */
.floating-cart {
    position: fixed;
    right: -52px; /* only a small part is visible */
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    border-radius: 18px 0 0 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg,#ff7a18,#ff9f1c);
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: right .35s ease, transform .35s ease, opacity .35s ease;
    z-index: 9999;
}

    .floating-cart:hover {
        right: 0;
    }

    .floating-cart.show {
        right: 0;
    }

    .floating-cart i {
        pointer-events: none;
    }

.floating-cart-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #ff2d2d;
    border: 2px solid #fff;
    border-radius: 50%;
    display: none;
}

    .floating-cart-dot.show {
        display: block;
    }