html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    /*margin-bottom: 60px;*/
    animation: pageFadeIn 0.35s ease-in-out;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Page fade animation */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover animation */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10) !important;
    }

/* Button hover animation */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn:hover {
        transform: translateY(-2px);
    }

/* Skeleton Loader */
#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    padding: 90px 8%;
}

.skeleton-navbar,
.skeleton-line,
.skeleton-card,
.skeleton-button {
    background: linear-gradient(90deg, #eeeeee 25%, #f7f7f7 50%, #eeeeee 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.2s infinite;
    border-radius: 12px;
}

.skeleton-navbar {
    height: 48px;
    margin-bottom: 50px;
}

.skeleton-line {
    height: 24px;
    margin-bottom: 16px;
}

    .skeleton-line.large {
        height: 52px;
        width: 60%;
    }

    .skeleton-line.medium {
        width: 45%;
    }

    .skeleton-line.small {
        width: 30%;
    }

.skeleton-card {
    height: 160px;
}

.skeleton-button {
    width: 160px;
    height: 48px;
    margin-top: 25px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Hero animation helpers */
.animate-up {
    animation: animateUp 0.7s ease both;
}

.animate-delay-1 {
    animation-delay: 0.15s;
}

.animate-delay-2 {
    animation-delay: 0.30s;
}

.animate-delay-3 {
    animation-delay: 0.45s;
}

@keyframes animateUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Better mobile spacing */
@media (max-width: 767px) {
    #pageLoader {
        padding: 70px 24px;
    }

    .skeleton-line.large {
        width: 90%;
    }

    .skeleton-line.medium {
        width: 70%;
    }

    .skeleton-line.small {
        width: 55%;
    }
}

/* =========================
   MODERN NAVBAR
========================= */

.custom-navbar {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .custom-navbar.scrolled {
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 10px 0;
    }

/* Logo */

.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg,#16a34a,#2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

/* Nav links */

.nav-animated {
    position: relative;
    font-weight: 600;
    color: #111827 !important;
    padding: 8px 14px !important;
    transition: all 0.25s ease;
}

    .nav-animated:hover {
        color: #2563eb !important;
    }

    .nav-animated::after {
        content: "";
        position: absolute;
        left: 12px;
        bottom: 4px;
        width: 0;
        height: 2px;
        background: #2563eb;
        transition: width 0.3s ease;
        border-radius: 20px;
    }

    .nav-animated:hover::after {
        width: calc(100% - 24px);
    }

/* Cart Button */

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    transition: all 0.25s ease;
}

    .cart-btn:hover {
        color: #2563eb;
        transform: translateY(-1px);
    }

.cart-icon {
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #ef4444;
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(239,68,68,0.35);
}

/* Login button */

.btn-dark {
    background: #111827;
    border: none;
    transition: all 0.25s ease;
}

    .btn-dark:hover {
        background: #2563eb;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(37,99,235,0.25);
    }

/* Mobile */

@media (max-width: 991px) {

    .navbar-collapse {
        background: white;
        margin-top: 16px;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .navbar-nav {
        margin-bottom: 20px;
    }
}

.user-menu {
    color: #111827 !important;
    font-weight: 600;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.dropdown-menu {
    min-width: 240px;
}

.dropdown-item {
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background: #f3f4f6;
        transform: translateX(4px);
    }