/*
 * Zii Store — Modernize storefront theme
 * Premium shop shell on top of assetsext/css/styles.css + modernize-theme.css
 */

/* ------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------ */
:root {
    --shop-radius: 12px;
    --shop-radius-sm: 8px;
    --shop-header-h: 4.5rem;
    --shop-shadow: 0 2px 12px rgba(42, 53, 71, 0.06);
    --shop-shadow-hover: 0 12px 28px rgba(42, 53, 71, 0.12);
    --shop-surface: #ffffff;
    --shop-muted: #5a6a85;
    --shop-border: #eaeef4;
    --shop-page-bg: #f7f9fc;
    --shop-space-xs: 0.5rem;
    --shop-space-sm: 1rem;
    --shop-space-md: 1.5rem;
    --shop-space-lg: 2rem;
    --shop-space-xl: 3rem;
    --shop-card-pad: 1.25rem;
    --shop-gap: 1.5rem;
}

/* ------------------------------------------------------------------
 * Shell
 * ------------------------------------------------------------------ */
html,
body {
    min-height: 100%;
}

body {
    background-color: var(--shop-page-bg) !important;
    color: var(--bs-body-color, #2a3547);
}

.shop-layout #main-wrapper,
.shop-layout .page-wrapper,
[data-layout=horizontal] .shop-layout .page-wrapper,
[data-layout=vertical] .shop-layout .page-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.shop-layout .page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    background: transparent;
}

.shop-layout .shop-body {
    flex: 1 0 auto;
    min-height: 450px;
}

/* Unified page spacing */
.shop-page {
    padding-top: var(--shop-space-md);
    padding-bottom: var(--shop-space-xl);
}

.shop-page--auth {
    padding-top: var(--shop-space-lg);
    padding-bottom: var(--shop-space-xl);
}

.shop-page .row.g-4,
.shop-page .row.g-3.g-lg-4 {
    --bs-gutter-x: var(--shop-gap);
    --bs-gutter-y: var(--shop-gap);
}

.shop-stack {
    margin-bottom: var(--shop-space-sm) !important;
}

.shop-stack-md {
    margin-bottom: var(--shop-space-md) !important;
}

.shop-error-panel {
    padding-top: var(--shop-space-md);
    padding-bottom: var(--shop-space-md);
}

.shop-layout .topbar.fixed-top,
.shop-layout .shop-topbar {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* ------------------------------------------------------------------
 * Typography helpers (legacy class names kept for pages)
 * ------------------------------------------------------------------ */
.fs-lg {
    font-size: 1.125rem !important;
}

.fs-base {
    font-size: 1rem !important;
}

.fs-md {
    font-size: 0.9375rem !important;
}

.fs-sm {
    font-size: 0.875rem !important;
}

.fs-ms {
    font-size: 0.8125rem !important;
}

.fs-xs {
    font-size: 0.75rem !important;
}

.mt-n1 {
    margin-top: -0.25rem !important;
}

.me-n1 {
    margin-right: -0.25rem !important;
}

.ms-n21 {
    margin-left: -0.25rem !important;
}

.text-accent {
    color: var(--bs-primary) !important;
}

/* ------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
    border-radius: var(--shop-radius-sm);
    font-weight: 500;
}

.btn-primary {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.28);
}

    .btn-primary:hover {
        box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.35);
    }

.btn-outline-accent,
.btn-outline-primary {
    border-radius: var(--shop-radius-sm);
}

.btn-outline-accent {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: rgba(var(--bs-primary-rgb), 0.35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    color: var(--bs-btn-color);
    border: 1px solid var(--bs-btn-border-color);
    background: transparent;
}

    .btn-outline-accent:hover {
        color: #fff;
        background: var(--bs-primary);
        border-color: var(--bs-primary);
    }

.btn-shadow {
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.25);
}

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--shop-surface);
    border-bottom: 1px solid var(--shop-border);
    box-shadow: var(--shop-shadow);
}

    .shop-header .shop-utility {
        background: linear-gradient(90deg, #1e293b 0%, #2a3547 100%);
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.8125rem;
        padding: 0.4rem 0;
    }

        .shop-header .shop-utility .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

    .shop-header .topbar-link,
    .shop-header .topbar-text {
        color: rgba(255, 255, 255, 0.72);
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

        .shop-header .topbar-link:hover {
            color: #fff;
        }

        .shop-header .topbar-link > i,
        .shop-header .topbar-text > i {
            color: var(--bs-primary);
            font-size: 1rem;
        }

    .shop-header .shop-navbar {
        padding: 0.85rem 0;
    }

    .shop-header .navbar-brand img {
        height: 40px;
        width: auto;
        border-radius: var(--shop-radius-sm);
        object-fit: contain;
    }

    .shop-header .shop-search {
        flex: 1;
        /*max-width: 640px;*/
        display: flex;
        align-items: stretch;
        background: var(--shop-page-bg);
        border: 1px solid var(--shop-border);
        border-radius: 999px;
        overflow: hidden;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .shop-header .shop-search:focus-within {
            border-color: rgba(var(--bs-primary-rgb), 0.45);
            box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
            background: #fff;
        }

        .shop-header .shop-search .form-control,
        .shop-header .shop-search .form-select {
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 0 !important;
        }

        .shop-header .shop-search .form-control {
            padding-left: 1.1rem;
        }

        .shop-header .shop-search .form-select {
            max-width: 9.5rem;
            width: auto;
            border-left: 1px solid var(--shop-border) !important;
            color: var(--shop-muted);
            font-size: 0.875rem;
        }

    .shop-header .search-btn {
        border: 0;
        background: var(--bs-primary);
        color: #fff;
        min-width: 3rem;
        padding: 0 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

        .shop-header .search-btn:hover {
            background: #E04414;
        }

.shop-add-cart {
    width: 100%;
}

.shop-add-cart-btn {
    border: 0;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 650;
    min-height: 2.6rem;
    border-radius: var(--shop-radius-sm);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .shop-add-cart-btn:hover:not(:disabled) {
        background: #E04414;
        color: #fff;
    }

    .shop-add-cart-btn:disabled {
        opacity: 1;
    }

    .shop-add-cart-btn.is-loading {
        background: var(--bs-primary);
        opacity: 0.85;
    }

    .shop-add-cart-btn.is-success {
        background: #2e7d32 !important;
        color: #fff;
        box-shadow: 0 0.4rem 1rem rgba(46, 125, 50, 0.25);
    }

    .shop-add-cart-btn.is-error {
        background: #c62828;
    }

.shop-add-cart-error {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #c62828;
    display: flex;
    align-items: flex-start;
    line-height: 1.35;
}

@keyframes shop-cart-bump {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.18);
    }

    65% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }
}

.navbar-tool.is-cart-bump .navbar-tool-icon-box,
.topbar-link.is-cart-bump {
    animation: shop-cart-bump 0.65s ease;
}

.navbar-tool.is-cart-bump .navbar-tool-label {
    animation: shop-cart-bump 0.65s ease;
}

.shop-header .shop-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-header .nav-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-body-color);
    text-decoration: none;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

    .shop-header .nav-icon-btn:hover {
        background: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
    }

    .shop-header .nav-icon-btn .ti {
        font-size: 1.35rem;
    }

    .shop-header .nav-icon-btn .badge-count {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 1.1rem;
        height: 1.1rem;
        padding: 0 0.25rem;
        border-radius: 999px;
        background: var(--bs-primary);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 600;
        line-height: 1.1rem;
        text-align: center;
    }

.shop-header .nav-action-label {
    display: none;
    flex-direction: column;
    line-height: 1.15;
    margin-left: 0.15rem;
    text-decoration: none !important;
    color: var(--bs-body-color);
    font-size: 0.8125rem;
}

    .shop-header .nav-action-label small {
        color: var(--shop-muted);
        font-size: 0.7rem;
    }

@media (min-width: 992px) {
    .shop-header .nav-action-label {
        display: flex;
    }
}

.shop-header .navbar-mega-nav {
    margin: 0 !important;
}

    .shop-header .navbar-mega-nav .nav-link {
        color: var(--bs-body-color);
        font-weight: 600;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        border-radius: var(--shop-radius-sm);
        white-space: nowrap;
    }

        .shop-header .navbar-mega-nav .nav-link:hover {
            color: var(--bs-primary);
            background: rgba(var(--bs-primary-rgb), 0.08);
        }

/* Category mega dropdown */
.shop-category-dropdown {
    position: relative;
}

.shop-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.12), rgba(var(--bs-primary-rgb), 0.06));
    color: var(--bs-primary);
    font-weight: 650;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .shop-category-trigger.dropdown-toggle::after {
        display: none;
    }

    .shop-category-trigger:hover,
    .shop-category-dropdown.show .shop-category-trigger {
        background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.18), rgba(var(--bs-primary-rgb), 0.1));
        border-color: rgba(var(--bs-primary-rgb), 0.3);
        color: var(--bs-primary);
        box-shadow: 0 0.35rem 0.85rem rgba(var(--bs-primary-rgb), 0.12);
    }

.shop-category-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.95rem;
}

.shop-category-trigger-chevron {
    font-size: 0.95rem;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.shop-category-dropdown.show .shop-category-trigger-chevron {
    transform: rotate(180deg);
}

.shop-category-menu {
    min-width: min(36rem, calc(100vw - 2rem));
    margin-top: 0.55rem !important;
    border-radius: var(--shop-radius) !important;
    box-shadow: var(--shop-shadow) !important;
    border: 1px solid var(--shop-border) !important;
    background: var(--shop-surface) !important;
    overflow: hidden;
}

.shop-category-menu-body {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    min-height: 16rem;
    max-height: min(28rem, 70vh);
}

.shop-category-parents {
    padding: 0.85rem 0.65rem;
    border-right: 1px solid var(--shop-border);
    background: rgba(var(--bs-primary-rgb), 0.03);
    overflow-y: auto;
}

.shop-category-menu-caption {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    padding: 0 0.55rem 0.55rem;
}

.shop-category-parent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
    text-align: start;
    text-decoration: none;
    border-radius: 0.65rem;
    padding: 0.55rem 0.55rem;
    margin-bottom: 0.15rem;
    transition: background 0.12s ease, color 0.12s ease;
}

    .shop-category-parent-item:hover,
    .shop-category-parent-item.active {
        background: var(--shop-surface);
        color: var(--bs-primary);
        box-shadow: 0 0.15rem 0.45rem rgba(0, 0, 0, 0.04);
    }

.shop-category-parent-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

    .shop-category-parent-main > .ti {
        flex-shrink: 0;
        font-size: 1rem;
        opacity: 0.85;
    }

.shop-category-parent-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
}

.shop-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-size: 0.68rem;
    font-weight: 700;
}

.shop-category-parent-arrow {
    flex-shrink: 0;
    opacity: 0.45;
    font-size: 0.95rem;
}

.shop-category-parent-item.active .shop-category-parent-arrow,
.shop-category-parent-item:hover .shop-category-parent-arrow {
    opacity: 0.9;
    color: var(--bs-primary);
}

.shop-category-children {
    padding: 1rem 1.1rem;
    overflow-y: auto;
    background: var(--shop-surface);
}

.shop-category-children-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--shop-border);
}

.shop-category-children-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.shop-category-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--bs-primary);
    text-decoration: none;
    white-space: nowrap;
}

    .shop-category-view-all:hover {
        text-decoration: underline;
    }

.shop-category-children-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.75rem;
}

.shop-category-child-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.45rem 0.35rem;
    border-radius: 0.5rem;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.875rem;
}

    .shop-category-child-link:hover {
        background: rgba(var(--bs-primary-rgb), 0.06);
        color: var(--bs-primary);
    }

    .shop-category-child-link > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-category-child-link > .ti {
        opacity: 0.45;
        flex-shrink: 0;
    }

.shop-category-menu-empty,
.shop-category-children-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 12rem;
    padding: 1.5rem;
}

    .shop-category-children-empty > .ti {
        font-size: 1.75rem;
        color: var(--bs-primary);
        opacity: 0.75;
    }

@media (max-width: 575.98px) {
    .shop-category-menu-body {
        grid-template-columns: 1fr;
        max-height: min(70vh, 32rem);
    }

    .shop-category-parents {
        border-right: 0;
        border-bottom: 1px solid var(--shop-border);
        max-height: 11rem;
    }

    .shop-category-children-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy navbar-tool bridge */
.navbar-tool {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar-tool-icon-box {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-page-bg) !important;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

    .navbar-tool-icon-box:hover {
        background: rgba(var(--bs-primary-rgb), 0.1) !important;
        color: var(--bs-primary);
    }

    .navbar-tool-icon-box.dropdown-toggle::after {
        display: none;
    }

.navbar-tool-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.navbar-tool-label,
.navbar-tool .navbar-tool-label {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1rem;
}

.navbar-tool-text {
    display: none;
    text-decoration: none !important;
    color: var(--bs-body-color);
    font-size: 0.8125rem;
    white-space: nowrap;
}

    .navbar-tool-text > small {
        display: block;
        color: var(--shop-muted);
        font-size: 0.7rem;
    }

@media (min-width: 992px) {
    .navbar-tool-text {
        display: block;
    }
}

/* ------------------------------------------------------------------
 * Page title
 * ------------------------------------------------------------------ */
.shop-page-title {
    background: linear-gradient(135deg, #fff5f2 0%, #ffffff 45%, #f7f9fc 100%);
    border-bottom: 1px solid var(--shop-border);
    padding: var(--shop-space-md) 0;
    margin-bottom: 0;
}

    .shop-page-title .h3 {
        color: var(--bs-body-color);
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .shop-page-title .breadcrumb {
        --bs-breadcrumb-divider-color: var(--shop-muted);
        margin-bottom: 0;
    }

    .shop-page-title .breadcrumb-item {
        color: var(--shop-muted);
        font-size: 0.875rem;
    }

        .shop-page-title .breadcrumb-item a {
            color: var(--shop-muted);
            text-decoration: none;
        }

            .shop-page-title .breadcrumb-item a:hover {
                color: var(--bs-primary);
            }

        .shop-page-title .breadcrumb-item.active {
            color: var(--bs-primary);
            font-weight: 600;
        }

.shop-toolbar-link {
    color: var(--shop-muted) !important;
    text-decoration: none;
}

    .shop-toolbar-link:hover {
        color: var(--bs-primary) !important;
    }

/* ------------------------------------------------------------------
 * Sections / home
 * ------------------------------------------------------------------ */
.shop-section {
    padding: var(--shop-space-md) 0 var(--shop-space-lg);
}

.shop-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--shop-space-sm);
    margin-bottom: var(--shop-space-md);
    padding-bottom: var(--shop-space-sm);
    border-bottom: 1px solid var(--shop-border);
}

    .shop-section-head h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        position: relative;
    }

        .shop-section-head h2::after {
            content: "";
            display: block;
            width: 2.25rem;
            height: 3px;
            margin-top: 0.5rem;
            border-radius: 999px;
            background: var(--bs-primary);
        }

.shop-banner {
    padding: var(--shop-space-md) 0 var(--shop-space-xs);
}

    .shop-banner .banner-frame {
        border-radius: calc(var(--shop-radius) + 4px);
        overflow: hidden;
        box-shadow: var(--shop-shadow);
        background: #fff;
    }

    .shop-banner .mud-carousel {
        border-radius: inherit;
    }

.shop-widget-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 1.25rem;
    height: 100%;
    box-shadow: var(--shop-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .shop-widget-card:hover {
        box-shadow: var(--shop-shadow-hover);
    }

    .shop-widget-card .widget-title {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--bs-body-color);
    }

    .shop-widget-card .widget-product-title {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

        .shop-widget-card .widget-product-title a {
            color: inherit;
            text-decoration: none;
        }

            .shop-widget-card .widget-product-title a:hover {
                color: var(--bs-primary);
            }

    .shop-widget-card .widget-more {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        margin-top: 0.75rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--bs-primary);
        text-decoration: none;
    }

/* ------------------------------------------------------------------
 * Product card
 * ------------------------------------------------------------------ */
.product-card {
    position: relative;
    border: 1px solid var(--shop-border) !important;
    border-radius: var(--shop-radius) !important;
    background: var(--shop-surface);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shop-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding-bottom: 0 !important;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shop-shadow-hover);
        border-color: rgba(var(--bs-primary-rgb), 0.25) !important;
        z-index: 2;
    }

    .product-card .product-card-actions,
    .product-card > .btn-wishlist {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 5;
    }

    .product-card .card-img-top,
    .product-card .product-ratio {
        background: linear-gradient(180deg, #fafbfc 0%, #f3f6f9 100%) !important;
        border-bottom: 1px solid var(--shop-border);
    }

    .product-card .card-body {
        position: relative;
        background: #fff;
        z-index: 2;
        padding: 1rem 1.1rem 1.15rem !important;
    }

    .product-card .card-body-hidden {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 1.1rem 1.15rem !important;
        background: #fff;
    }

.product-title {
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.35;
    margin: 0.15rem 0 0.5rem;
    min-height: 2.5em;
}

    .product-title > a {
        color: inherit;
        text-decoration: none;
    }

        .product-title > a:hover {
            color: var(--bs-primary);
        }

.product-meta {
    color: var(--shop-muted);
    text-decoration: none;
    font-size: 0.75rem;
}

    .product-meta:hover {
        color: var(--bs-primary);
    }

.btn-wishlist {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--shop-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-wishlist > i {
        font-size: 1.1rem;
        line-height: 1;
    }

    .btn-wishlist:hover,
    .btn-wishlist .selected-icon {
        color: var(--bs-primary);
    }

    .btn-wishlist .selected-icon {
        filter: drop-shadow(0 0 0.35px var(--bs-primary));
        font-weight: 700;
    }

/* ------------------------------------------------------------------
 * Account sidebar / cards
 * ------------------------------------------------------------------ */
.nav-link-style {
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

    .nav-link-style > i {
        margin-top: -0.125rem;
        vertical-align: middle;
    }

    .nav-link-style:hover {
        color: var(--bs-primary);
        background: rgba(var(--bs-primary-rgb), 0.06);
    }

    .active > .nav-link-style,
    .nav-link-style.active {
        color: var(--bs-primary);
        background: rgba(var(--bs-primary-rgb), 0.08);
        font-weight: 600;
    }

.shop-account-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
}

    .shop-account-card .account-head {
        padding: 1.5rem;
        background: linear-gradient(135deg, #fff5f2, #ffffff);
        border-bottom: 1px solid var(--shop-border);
    }

    .shop-account-card .account-section-label {
        padding: 0.75rem 1.25rem;
        background: var(--shop-page-bg);
        color: var(--shop-muted);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin: 0;
    }

.shop-auth-card {
    border: 1px solid var(--shop-border) !important;
    border-radius: var(--shop-radius) !important;
    box-shadow: var(--shop-shadow-hover) !important;
    overflow: hidden;
}

    .shop-auth-card .card-body {
        padding: var(--shop-space-lg) !important;
    }

    .shop-auth-card .auth-icon-input {
        position: relative;
    }

        .shop-auth-card .auth-icon-input > i,
        .shop-auth-card .auth-icon-input > .ti {
            position: absolute;
            left: 0.9rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--shop-muted);
            z-index: 2;
        }

        .shop-auth-card .auth-icon-input .form-control {
            padding-left: 2.5rem;
            border-radius: var(--shop-radius-sm);
            min-height: 2.75rem;
        }

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.shop-footer {
    margin-top: auto;
    background: linear-gradient(180deg, #1e293b 0%, #151c2c 100%);
    color: rgba(255, 255, 255, 0.65);
    padding: 2.75rem 0 2rem;
    border-top: 3px solid var(--bs-primary);
}

    .shop-footer a {
        color: rgba(255, 255, 255, 0.78);
        text-decoration: none;
    }

        .shop-footer a:hover {
            color: #fff;
        }

    .shop-footer .footer-brand {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        margin-bottom: 1rem;
    }

        .shop-footer .footer-brand img {
            width: 48px;
            height: 48px;
            border-radius: var(--shop-radius-sm);
            object-fit: cover;
        }

    .shop-footer .footer-copy {
        font-size: 0.8125rem;
        opacity: 0.7;
        white-space: pre-wrap;
    }

/* ------------------------------------------------------------------
 * Content surfaces
 * ------------------------------------------------------------------ */
.shop-content-card,
.bg-light.shadow-lg.rounded-3 {
    background: var(--shop-surface) !important;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius) !important;
    box-shadow: var(--shop-shadow) !important;
}

.breadcrumb-item a {
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--bs-primary);
    }

/* ------------------------------------------------------------------
 * Search filter sidebar
 * ------------------------------------------------------------------ */
.shop-filter-sidebar {
    position: relative;
    visibility: visible !important;
    transform: none !important;
    height: auto !important;
    max-width: none;
}

.shop-brand-list {
    max-height: 11rem;
    overflow-y: auto;
}

.shop-brand-item {
    margin: 0;
    line-height: 1.2;
}

    .shop-brand-item .mud-input-control,
    .shop-brand-check.mud-input-control,
    .shop-filter-sidebar .shop-brand-item .mud-checkbox {
        margin: 0 !important;
    }

.shop-filter-sidebar .shop-brand-item .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.shop-filter-sidebar .shop-brand-item .mud-input-control-input-container {
    margin: 0 !important;
}

.shop-filter-sidebar .shop-brand-item .mud-button-root.mud-checkbox {
    padding: 0.15rem 0.35rem 0.15rem 0 !important;
}

.shop-filter-sidebar .shop-brand-item .mud-typography {
    line-height: 1.25;
}

.shop-category-children > li {
    margin: 0;
}

.shop-category-children .shop-filter-link {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.65rem 0.45rem 1.75rem;
    margin-bottom: 0.15rem;
}

.shop-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shop-category-group {
    border-bottom: 1px solid var(--shop-border);
}

    .shop-category-group:last-child {
        border-bottom: 0;
    }

.shop-filter-sidebar .shop-category-parent.accordion-button {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-body-color);
    padding: 0.7rem 0;
    gap: 0.5rem;
}

    .shop-filter-sidebar .shop-category-parent.accordion-button:not(.collapsed) {
        color: var(--bs-primary);
        box-shadow: none;
    }

    .shop-filter-sidebar .shop-category-parent.accordion-button::after {
        margin-left: auto;
        flex-shrink: 0;
    }

.shop-category-parent-label {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}

    .shop-category-parent-label > .ti {
        color: var(--bs-primary);
        font-size: 1.05rem;
    }

.shop-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.shop-category-leaf {
    border-bottom: 1px dashed var(--shop-border);
}

    .shop-category-leaf:last-child {
        border-bottom: 0;
    }

.shop-category-leaf-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem 0;
    color: var(--shop-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--shop-radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

    .shop-category-leaf-link > .ti {
        color: var(--shop-muted);
        font-size: 1rem;
    }

    .shop-category-leaf-link:hover,
    .shop-category-leaf-link.active {
        color: var(--bs-primary);
    }

        .shop-category-leaf-link:hover > .ti,
        .shop-category-leaf-link.active > .ti {
            color: var(--bs-primary);
        }

.shop-filter-sidebar .accordion-button {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bs-body-color);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

    .shop-filter-sidebar .accordion-button:not(.collapsed) {
        color: var(--bs-primary);
        box-shadow: none;
    }

    .shop-filter-sidebar .accordion-button::after {
        margin-left: auto;
    }

.shop-filter-link {
    color: var(--shop-muted);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--shop-radius-sm);
}

    .shop-filter-link:hover,
    .shop-filter-link.active {
        color: var(--bs-primary);
        background: rgba(var(--bs-primary-rgb), 0.06);
    }

.shop-page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--bs-body-color);
    background: var(--shop-page-bg);
    text-decoration: none;
    cursor: pointer;
}

    .shop-page-nav:hover {
        color: var(--bs-primary);
        background: rgba(var(--bs-primary-rgb), 0.1);
    }

.pagination .page-link {
    border-radius: var(--shop-radius-sm);
    margin: 0 0.15rem;
    border-color: var(--shop-border);
    color: var(--bs-body-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-primary-bg-subtle);
}

/* ------------------------------------------------------------------
 * Cart page
 * ------------------------------------------------------------------ */
.shop-cart-steps {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.shop-cart-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--shop-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

    .shop-cart-step.active {
        color: var(--bs-primary);
        font-weight: 700;
    }

    .shop-cart-step.done {
        color: var(--bs-body-color);
    }

.shop-cart-step-num {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-page-bg);
    border: 1px solid var(--shop-border);
    font-size: 0.75rem;
    font-weight: 700;
}

.shop-cart-step.active .shop-cart-step-num {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.shop-cart-step.done .shop-cart-step-num {
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-color: transparent;
    color: var(--bs-primary);
}

.shop-cart-step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.35), var(--shop-border));
    border-radius: 999px;
}

.shop-cart-toolbar {
    padding: 0.85rem 1.1rem;
}

.shop-cart-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    font-size: 1.75rem;
}

.shop-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

    .shop-cart-item.no-check {
        grid-template-columns: 96px 1fr;
    }

.shop-cart-item-check {
    padding-top: 0.35rem;
}

.shop-cart-item-thumb {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    background: var(--shop-page-bg);
    border: 1px solid var(--shop-border);
    flex-shrink: 0;
}

    .shop-cart-item-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.shop-cart-item-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.shop-cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

    .shop-cart-item-title a {
        color: inherit;
        text-decoration: none;
    }

        .shop-cart-item-title a:hover {
            color: var(--bs-primary);
        }

.shop-cart-item-meta {
    color: var(--shop-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.15rem;
}

.shop-cart-item-price {
    margin-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.shop-cart-item-actions {
    min-width: 8.5rem;
}

.shop-cart-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .shop-cart-qty .form-control {
        max-width: 5rem;
    }

.shop-cart-unit {
    color: var(--shop-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.shop-cart-summary {
    position: sticky;
    top: 6.5rem;
    padding: 0;
    overflow: hidden;
}

.shop-cart-summary-head {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #fff5f2, #ffffff);
    border-bottom: 1px solid var(--shop-border);
}

.shop-cart-summary-body {
    padding: 1rem 1.25rem 1.25rem;
}

.shop-cart-summary-list {
    margin: 0;
    padding: 0;
}

    .shop-cart-summary-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.55rem 0;
        color: var(--shop-muted);
        font-size: 0.9rem;
        border-bottom: 1px dashed var(--shop-border);
    }

        .shop-cart-summary-list li strong {
            color: var(--bs-body-color);
            font-weight: 600;
        }

.shop-cart-summary-total {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.shop-cart-summary-amount {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.shop-cart-notes {
    resize: vertical;
    min-height: 7rem;
}

@media (max-width: 575.98px) {
    .shop-cart-item {
        grid-template-columns: auto 72px 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
    }

        .shop-cart-item.no-check {
            grid-template-columns: 72px 1fr;
        }

    .shop-cart-item-thumb {
        width: 72px;
        height: 72px;
    }

    .shop-cart-item-body {
        flex-direction: column;
    }

    .shop-cart-item-actions {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .shop-cart-summary {
        position: static;
    }
}

/* Orders / Wishlist / Order lines */
.shop-order-list.shop-content-card {
    gap: 0;
    overflow: hidden;
}

.shop-order-list .shop-order-row {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--shop-border);
}

    .shop-order-list .shop-order-row:last-child {
        border-bottom: none;
    }

    .shop-order-list .shop-order-row:hover {
        background: rgba(var(--bs-primary-rgb), 0.03);
    }

.shop-order-list .shop-order-line.shop-order-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.shop-wish-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .shop-wish-list.shop-content-card {
        gap: 0;
        overflow: hidden;
    }

    .shop-wish-list .shop-wish-item {
        display: grid;
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem 1.15rem;
        align-items: start;
        border-bottom: 1px solid var(--shop-border);
    }

        .shop-wish-list .shop-wish-item:last-child {
            border-bottom: none;
        }

        .shop-wish-list .shop-wish-item:hover {
            background: rgba(var(--bs-primary-rgb), 0.03);
        }

.shop-order-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto minmax(5rem, auto) auto;
    gap: 0.75rem 1rem;
    align-items: center;
}

.shop-order-code {
    font-weight: 700;
    color: var(--bs-body-color);
    text-decoration: none;
}

    .shop-order-code:hover {
        color: var(--bs-primary);
    }

.shop-order-amount {
    font-weight: 700;
    font-size: 1.05rem;
    text-align: end;
}

.shop-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.shop-wish-thumb {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(var(--bs-primary-rgb), 0.04);
    border: 1px solid var(--shop-border);
    flex-shrink: 0;
}

    .shop-wish-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.shop-wish-body,
.shop-order-line-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    min-width: 0;
}

.shop-wish-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

    .shop-wish-title a {
        color: inherit;
        text-decoration: none;
    }

        .shop-wish-title a:hover {
            color: var(--bs-primary);
        }

.shop-wish-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-wish-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.shop-order-line-meta,
.shop-order-line-amount {
    text-align: end;
    min-width: 7rem;
}

.shop-auth-steps {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

    .shop-auth-steps li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        color: var(--bs-secondary-color);
    }

        .shop-auth-steps li span {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.75rem;
            font-weight: 700;
            background: rgba(var(--bs-primary-rgb), 0.12);
            color: var(--bs-primary);
        }

.shop-profile-section-title {
    font-weight: 650;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--shop-border);
}

.shop-product-detail .shop-product-info h1 {
    line-height: 1.3;
}

.shop-product-meta-table {
    width: 100%;
}

    .shop-product-meta-table td:first-child {
        width: 7.5rem;
        color: var(--bs-secondary-color);
        vertical-align: top;
        padding: 0.55rem 0.75rem 0.55rem 0;
    }

    .shop-product-meta-table td {
        padding: 0.55rem 0;
        vertical-align: middle;
    }

.shop-product-info-panel {
    border-top: 1px solid var(--shop-border);
    padding-top: 1.25rem;
}

.shop-product-carousel {
    border-radius: 0.85rem;
    background: rgba(var(--bs-primary-rgb), 0.03);
}

@media (max-width: 991.98px) {
    .shop-order-card-main {
        grid-template-columns: 1fr auto;
    }

    .shop-order-amount,
    .shop-order-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        text-align: start;
    }
}

@media (max-width: 575.98px) {
    .shop-wish-list .shop-wish-item,
    .shop-order-list .shop-order-line {
        grid-template-columns: 4.25rem minmax(0, 1fr);
    }

    .shop-wish-thumb {
        width: 4.25rem;
        height: 4.25rem;
    }

    .shop-wish-actions,
    .shop-order-line-meta,
    .shop-order-line-amount {
        width: 100%;
        align-items: flex-start;
        text-align: start;
    }
}

/* MudBlazor coexistence */
.mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 8px !important;
    padding-left: 8px !important;
}

/* Brand filter checkboxes: suppress global Mud spacing */
.shop-filter-sidebar .shop-brand-item .mud-input-control {
    margin: 0 !important;
    padding: 0 !important;
}

    .shop-filter-sidebar .shop-brand-item .mud-input-control > .mud-input-control-input-container {
        margin: 0 !important;
    }

.shop-filter-sidebar .shop-brand-item .mud-checkbox {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .hide-sm {
        display: none !important;
    }

    .shop-header .shop-search .form-select {
        display: none;
    }
}

@media (min-width: 768.98px) {
    .show-sm {
        display: block !important;
    }
}

.break-all-safe {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.container.shop-page, .container.shop {
    width: 100%;
    max-width: 100%;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

@media (max-width: 991.98px) {
    .container.shop-page, .container.shop {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .container.shop-page, .container.shop {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 1400px) {
    .container.shop-page, .container.shop {
        max-width: 1380px;
    }
}
