/* =========================
   GLOBAL RESET + BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🔥 smoother but optimized */
*,
*::before,
*::after {
    transition: all 0.2s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6fb;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   CONTAINER
========================= */

.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* =========================
   HEADER (GLASS + STICKY)
========================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* SCROLL EFFECT */
.main-header.scrolled {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

/* =========================
   HEADER INNER
========================= */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

/* =========================
   LOGO
========================= */

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ff5722;
    letter-spacing: 0.3px;
}

.logo:hover {
    transform: scale(1.05);
}

/* =========================
   NAVIGATION
========================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* LINKS */

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    font-size: 14px;
}

/* UNDERLINE EFFECT */

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ff5722;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff5722;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ACTIVE LINK */

.nav-links a.active {
    color: #ff5722;
}

.nav-links a.active::after {
    width: 100%;
}

/* =========================
   CART BADGE
========================= */

#cartCount {
    background: #ff3d00;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

/* =========================
   LOGIN BUTTON
========================= */

.btn-login {
    border: 1px solid #ff5722;
    padding: 6px 16px;
    border-radius: 25px;
    color: #ff5722;
    background: transparent;
    font-weight: 500;
}

.btn-login:hover {
    background: #ff5722;
    color: #fff;
    transform: scale(1.05);
}

/* =========================
   FOOTER (PRO VERSION)
========================= */

.main-footer {
    background: #111;
    color: #fff;
    margin-top: 60px;
    padding-top: 40px;
}

/* GRID */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

/* COLUMN */

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
    color: #ff5722;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #ff5722;
}

/* BOTTOM */

.footer-bottom {
    border-top: 1px solid #333;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* SOCIAL */

.social-icons a {
    margin: 0 8px;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
}

.social-icons a:hover {
    color: #ff5722;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}
/* =========================
   SECTION SPACING
========================= */

section {
    padding: 60px 0;
}

/* =========================
   SCROLL ANIMATION
========================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   LOADER
========================= */

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff5722;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


/* LOGIN FULL SCREEN CENTER */

.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff6a00, #ff3d00);
}

/* CARD */

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 35px;
    border-radius: 20px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);

    color: #fff;
    text-align: center;
}

/* TITLE */

.login-title {
    font-size: 26px;
    font-weight: bold;
}

.login-sub {
    margin-bottom: 20px;
    font-size: 14px;
}

/* INPUT */

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 12px;
}

.input-field {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border-radius: 10px;
    border: none;
    outline: none;
}


/* =========================
   SIDEBAR PRO MAX UI
========================= */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #fff;
    padding: 20px 15px;
    overflow-y: auto;
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
}

/* LOGO */
.sidebar h4 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
    color: #ff5722;
    font-weight: 700;
}

/* MENU RESET */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* SECTION TITLE */
.sidebar-title {
    font-size: 11px;
    color: #94a3b8;
    margin: 20px 10px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LIST ITEM */
.sidebar-menu li {
    margin-bottom: 6px;
}

/* LINKS */
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
}

/* ICON */
.sidebar-menu li a i {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* HOVER EFFECT */
.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(6px);
}

/* ACTIVE LINK */
.sidebar-menu li a.active {
    background: linear-gradient(90deg, #ff5722, #ff784e);
    color: #fff;
    font-weight: 500;
}

/* ACTIVE LEFT BAR */
.sidebar-menu li a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    height: 70%;
    width: 4px;
    background: #ff5722;
    border-radius: 5px;
}

/* HOVER GLOW */
.sidebar-menu li a:hover {
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

/* SCROLLBAR */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

/* PASSWORD ICON */

.toggle-password {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
}

/* BUTTON */

.btn-login-full {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: none;

    background: #000;
    color: #fff;

    font-weight: 600;
    cursor: pointer;
}

.btn-login-full:hover {
    transform: scale(1.05);
}

/* =========================
   PAGE BANNER
========================= */
.page-banner {
    background: linear-gradient(135deg, #ff6a00, #ff3c00);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 0 0 30px 30px;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

/* =========================
   PAGE CONTENT
========================= */
.page-content {
    padding: 50px 20px;
    background: #f8f9fa;
}

.page-content .container {
    max-width: 1000px;
    margin: auto;
}

/* =========================
   CONTENT BOX
========================= */
.content-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* =========================
   CONTENT ELEMENTS
========================= */
.content-box h2,
.content-box h3 {
    margin-top: 20px;
    color: #222;
    font-weight: 600;
}

.content-box p {
    margin-bottom: 15px;
}

.content-box img {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

.content-box ul {
    padding-left: 20px;
}

.content-box ul li {
    margin-bottom: 8px;
}

/* =========================
   LINKS
========================= */
.content-box a {
    color: #ff4d00;
    text-decoration: none;
    font-weight: 500;
}

.content-box a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 26px;
    }

    .content-box {
        padding: 20px;
    }
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #ff4d00;
    text-decoration: none;
}

/* LINKS */

.extra-links {
    margin-top: 10px;
}

.extra-links a {
    color: #fff;
    text-decoration: none;
}

.error-text {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .nav-links {
        gap: 16px;
    }
}

/* TABLET */

@media (max-width: 768px) {

    .header-inner {
        flex-direction: row;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 65px;
        right: 10px;
        background: #fff;
        flex-direction: column;
        width: 220px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
        border-radius: 12px;
        animation: fadeUp 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 6px 0;
    }
}

/* CART LIST */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* CARD */
.cart-card {
    display: flex;
    align-items: center;
    gap: 15px;

    background: #fff;
    padding: 15px;
    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.cart-card:hover {
    transform: translateY(-3px);
}

/* IMAGE */
.cart-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

/* INFO */
.cart-info {
    flex: 1;
}

.cart-info h5 {
    margin: 0;
    font-size: 16px;
}

.cart-info p {
    margin: 5px 0;
    color: #777;
}

/* QTY */
.qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-box button {
    width: 28px;
    height: 28px;
    border: none;
    background: #ff3c00;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* RIGHT */
.cart-right {
    text-align: right;
}

.cart-right h6 {
    margin-bottom: 8px;
}

/* REMOVE */
.removeBtn {
    border: none;
    background: #eee;
    color: #ff3c00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

/* EMPTY */
.empty-cart {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #999;
}

/* SUMMARY */
.card {
    border-radius: 15px;
}

/* CHECKOUT BUTTON */
.btn-warning {
    background: linear-gradient(45deg, #ff3c00, #ff8c42);
    border: none;
}

.btn-warning:hover {
    transform: scale(1.03);
}

.pulse {
    transform: scale(1.1);
}

/* MOBILE */

@media (max-width: 480px) {

    .logo {
        font-size: 18px;
    }

    .btn-login {
        padding: 5px 12px;
        font-size: 13px;
    }
}