﻿/* ================= HEADER / TOPBAR ================= */
.topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* ensure full width */
    background-color: #0e0e0e;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    z-index: 1000;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    width: 100%; /* make inner flex container full width */
    max-width: 100%; /* prevent wrapping inside centered container */
    margin: 0; /* remove centering margin if inherited */
    box-sizing: border-box; /* ensure padding doesn't reduce width */
}

.brand {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.03em;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .icon-btn:hover {
        background: rgba(255,255,255,0.08);
    }

/* hamburger icon */
.icon-lines,
.icon-lines::before,
.icon-lines::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    position: relative;
}

    .icon-lines::before {
        position: absolute;
        top: -6px;
        left: 0;
    }

    .icon-lines::after {
        position: absolute;
        top: 6px;
        left: 0;
    }

/* cart icon */
.icon-bag {
    width: 18px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 3px 3px 4px 4px;
    position: relative;
}

    .icon-bag::before {
        content: "";
        position: absolute;
        left: 50%;
        top: -5px;
        transform: translateX(-50%);
        width: 10px;
        height: 6px;
        border: 2px solid #fff;
        border-bottom: 0;
        border-radius: 3px 3px 0 0;
    }

.cart-btn {
    position: relative;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #1173d4;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    padding: 2px 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= MOBILE NAV MENU ================= */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: rgba(16, 25, 34, 0.96);
    color: #fff;
    text-align: center;
    transition: height 0.3s ease;
    z-index: 1100;
}

    .mobile-nav.open {
        height: 100vh;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 80px 0 0;
        margin: 0;
    }

    .mobile-nav li {
        margin: 16px 0;
    }

    .mobile-nav a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
    }

        .mobile-nav a:hover {
            text-decoration: underline;
        }

/* ================= MINI CART DRAWER ================= */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1200;
}

    .mini-cart-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -360px; /* hidden offscreen by default */
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    z-index: 1300;
    transition: right 0.25s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    .mini-cart-drawer.active {
        right: 0;
    }

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.mini-cart-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.03em;
}

.mini-cart-close-btn {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

    .mini-cart-close-btn:hover {
        background: rgba(0,0,0,0.06);
    }

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mini-cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
}

.mini-cart-thumb {
    width: 64px;
    height: 80px;
    background: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mini-cart-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

.mini-cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-cart-name {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 4px;
}

.mini-cart-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #444;
}

.mini-cart-qty {
    color: #555;
}

.mini-cart-price {
    font-weight: 600;
    color: #111;
}

.mini-cart-empty {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 40px 0;
}

.mini-cart-footer {
    border-top: 1px solid #eee;
    padding: 16px;
    background: #fafafa;
}

.mini-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 12px;
}

.mini-cart-viewbag-btn,
.mini-cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px;
    margin-bottom: 8px;
}

.mini-cart-viewbag-btn {
    background: #fff;
    border: 1px solid #111;
    color: #111;
}

    .mini-cart-viewbag-btn:hover {
        background: #111;
        color: #fff;
    }

.mini-cart-checkout-btn {
    background: #111;
    border: 1px solid #111;
    color: #fff;
}

    .mini-cart-checkout-btn:hover {
        background: #333;
        border-color: #333;
    }

/* ================= BREADCRUMB SECTION ================= */
.breadcrumb-section {
    background-color: #0e0e0e; /* matches topbar/footer */
    color: #fff;
    padding: 40px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Breadcrumb list */
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

/* Breadcrumb items */
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .breadcrumb-item a:hover {
        color: #fff;
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

/* Separator */
.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
    font-size: 13px;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 28px 12px;
        text-align: center;
    }

    .breadcrumb-container {
        justify-content: center;
    }

    .breadcrumb-list {
        justify-content: center;
        font-size: 13px;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }
}