/* Storefront: header, mega menu, theme-aware surfaces (Bootstrap 5.3 color modes) */
.shop-header {
    z-index: 1030;
}

/* Sticky footer: body is flex column min-vh-100; shell grows; footer mt-auto in partial */
.shop-shell {
    min-height: 0;
}

.shop-rail {
    width: 15.5rem;
    flex-shrink: 0;
    align-self: stretch;
}

.shop-rail-link {
    color: var(--bs-body-color);
}

.shop-rail-link:hover,
.shop-rail-link:focus {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
}

.shop-main-column {
    min-height: 0;
}

[data-bs-theme="light"] .shop-navbar {
    background: linear-gradient(118deg, #0a58ca 0%, #0d6efd 42%, #4d94ff 100%);
}

[data-bs-theme="dark"] .shop-navbar {
    background: linear-gradient(118deg, #031633 0%, #052c65 38%, #0d6efd 100%);
}

.shop-topbar {
    background: #f8f9fa;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    color: #212529;
}

[data-bs-theme="dark"] .shop-topbar {
    background: #1c1c1c;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--bs-body-color);
}

.shop-shell--no-rail .shop-main-column {
    max-width: 100%;
}

.product-gallery-thumbs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Checkout wizard */
.checkout-steps-scroll {
    scrollbar-width: thin;
}

.checkout-summary-sidebar .card-header,
.checkout-flow + .row .card-header {
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .checkout-summary-sidebar.sticky-lg-top {
        position: sticky;
        top: 4.5rem;
        z-index: 1020;
    }
}

.shop-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.shop-navbar .navbar-nav .nav-link:hover,
.shop-navbar .navbar-nav .nav-link:focus {
    color: #fff;
}

@media (min-width: 992px) {
    .dropdown-mega.position-static {
        position: static !important;
    }

    .dropdown-mega .dropdown-menu.shop-mega {
        left: 0;
        right: 0;
        width: auto;
        max-width: 100%;
        margin-top: 0 !important;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

.shop-mega-link:hover {
    background-color: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .shop-mega {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="light"] .shop-mega {
    background-color: var(--bs-body-bg);
}

.shop-footer .letter-spacing-1 {
    letter-spacing: 0.04em;
}

.thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thread-msg .thread-body {
    margin-top: 0.35rem;
}
