/* Global Font */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 70px;
    font-weight: 400;
    color: #111;
}

.nav-item a {
    color:black !important;
    font-size: 16px !important;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.cursor-pointer{
    cursor: pointer;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 40px;
  aspect-ratio: 1;
  position: relative;
}
.loader:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  --c:#0000, #000000 1deg 120deg,#0000 121deg;
  background:
    conic-gradient(from 0deg,  var(--c)) top right,
    conic-gradient(from 120deg,var(--c)) bottom,
    conic-gradient(from 240deg,var(--c)) top left;
  background-size: 40px 40px;
  background-repeat: no-repeat;
  animation: l25 2s infinite cubic-bezier(0.3,1,0,1);
}
@keyframes l25 {
   33%  {inset:-8px;transform: rotate(0deg)}
   66%  {inset:-8px;transform: rotate(180deg)}
   100% {inset:0   ;transform: rotate(180deg)}
}

.navbar {
    height: 80px;
}

/* Brand Logo */
.navbar-brand {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Navbar Links */
.navbar a {
    font-size: 14px;
    font-weight: 500;
}

/* Drawer Width */
.offcanvas {
    width: 330px;
}

/* Menu Items */
.list-group-item {
    border: none;
    padding: 12px 0;
    color: black;
}

.list-group-item a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
}

.list-group-item a:hover {
    color: #555;
    padding-left: 5px;
}

/* Submenu */
.collapse a {
    font-size: 14px;
    font-weight: 400;
}

/* Smooth fade for other elements */
.nav-left,
.nav-center,
.nav-right {
    transition: opacity 0.3s ease;
}

.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Desktop nav spacing */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0 15px;
}

/* Default (mobile) — full width */
.nav-search {
    position: absolute;
    left: 0;
    right: 0;
    display: none;
    align-items: center;
    background: white;
    padding: 10px 15px;
    z-index: 1050;
}
/* Default (mobile) — full width */
.nav-search-home {
    position: relative;
    top:80px;
    left: 10%;
    right: 10%;
    align-items: center;
    background: white;
    padding: 10px 15px;
    z-index: 1050;
}

.nav-search.active {
    display: flex;
}

/* Desktop spacing */
@media (min-width: 992px) {
    .nav-search {
        left: 15%;
        right: 15%;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
    .nav-search-home {
        left: 15%;
        right: 15%;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
    .navbar .container-fluid {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
    .cart-count-bubble,
    .notification-count-bubble {
        top: -3px !important;
        right: -3px !important;
    }
}

/* Search wrapper */
.search-wrapper {
    position: relative;
    flex: 1;
}

/* Input styling */
.search-input {
    height: 46px;
    padding-right: 45px;
    border-radius: 6px;
}

/* Search button inside input */
.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 18px;
    color: #555;
}

/* Remove button focus outline */
.search-btn:focus {
    outline: none;
    box-shadow: none;
}

.icon-btn {
    background: none;
    border: none;
    padding: 5px;
    font-size: 18px;
    cursor: pointer;
    color:black;
}

.icon-btn:focus,
.icon-btn:active {
    outline: none;
    box-shadow: none;
    color:black;
}

.navbar .container-fluid {
    padding-left: 3px;
    padding-right: 3px;
}

.offcanvas-body {
    height: 100%;
}

/* Panels */
.menu-panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
}

/* Active panel */
.menu-panel.active {
    left: 0;
}

/* Buttons */
.menu-link,
.back-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-size: 16px;
}

/* Cart / Notification Bubble */
.cart-count-bubble,
.notification-count-bubble {
    position: absolute;
    background-color: #000; /* change to your theme color */
    color: #fff;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    top: -6px;
    right: -8px;
}

.bg-dark-blue {
    background-color: black !important; /* dark black-blue */
    color: white !important; /* optional for contrast */
}

/* Hide if count is zero */
.cart-count-bubble:empty,
.notification-count-bubble:empty {
    display: none;
}

.section-title-cascadiamono {
    font-family: 'Cascadia Mono', monospace;
    font-weight: 600;
}

.section-title-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* NOTIFICATION MOBILE WINDOW */

.dropdown-toggle::after {
    display: none !important;
}

.notification-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

/* 📱 Mobile Fix */
@media (max-width: 576px) {
    .notification-dropdown {
        position: fixed !important;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 70vh;
    }
}

.notification-dropdown {
    z-index: 1055; /* higher than navbar */
}

.notification-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #dc3545; /* Bootstrap danger red */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
}

.notification-close-btn:hover {
    background-color: #bb2d3b;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.brand-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.brand_logo_slide {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.brand_logo_slide img {
    height: 55px;
    width: auto;
    display: block;
}

/* Hide logo on very small screens */
@media (max-width: 412px) {
    .navbar-brand {
        display: none !important;
    }
    .header-logo {
        display: none;
    }
}


.auth-wrapper {
    width: 100%;
    max-width: 430px;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 65px;
    max-width: 820px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    margin:80px;
}

.logo {
    width: 225px;
    height: 125px;
    object-fit: contain;
    margin-bottom: 15px;
}

.brand {
    color: #124e5c;
    font-weight: 700;
}

.subtitle {
    color: #777;
    font-size: 14px;
}

.form-control {
    height: 50px;
    border-radius: 10px;
}

.btn-main {
    height: 50px;
    border-radius: 10px;
    background: #124e5c;
    border: none;
    color: white;
    font-weight: 600;
}

.btn-main:hover {
    background: #0d3d49;
    color: white;
}

.otp-input {
    width: 48px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 10px;
}

.otp-input:focus {
    border-color: #124e5c;
    box-shadow: 0 0 0 0.15rem rgba(18, 78, 92, 0.15);
    outline: none;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.action-link {
    color: #124e5c;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
}

.message {
    display: none;
    border-radius: 8px;
    font-size: 14px;
}

.loading-spinner {
    display: none;
}

@media (max-width: 400px) {

    .auth-card {
        padding: 25px 18px;
    }

    .otp-input {
        width: 42px;
        height: 50px;
    }

}