/* Yuto.Shop — Category split-pane (left nav + right products) */
.shop-h5.shop-page-category {
    background: #fff;
}

.shop-h5.shop-page-category .shop-h5-body {
    padding-bottom: calc(var(--shop-tabbar-h, 56px) + var(--shop-safe-bottom, 0px));
    overflow: hidden;
}

.shop-cat-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: calc(100vh - var(--shop-tabbar-h, 56px) - var(--shop-safe-bottom, 0px));
    height: calc(100dvh - var(--shop-tabbar-h, 56px) - var(--shop-safe-bottom, 0px));
    background: #fff;
}

/* Search bar */
.shop-cat-search {
    flex-shrink: 0;
    padding: 10px var(--shop-page-pad-x);
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.shop-cat-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #f5f5f5;
    border-radius: 999px;
    text-decoration: none;
    color: #999;
    font-size: 14px;
}

.shop-cat-search-inner .ti {
    font-size: 17px;
    color: #bbb;
    flex-shrink: 0;
}

.shop-cat-search-inner span {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Split layout */
.shop-cat-split {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* Left sidebar */
.shop-cat-sidebar {
    flex: 0 0 92px;
    width: 92px;
    background: #f7f7f7;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid #efefef;
}

.shop-cat-nav {
    display: flex;
    flex-direction: column;
}

.shop-cat-nav-item {
    display: block;
    width: 100%;
    padding: 14px 8px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: #666;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.shop-cat-nav-item.is-active {
    background: #fff;
    color: var(--shop-text);
    font-weight: 600;
    border-left-color: var(--shop-brand);
}

.shop-cat-nav-item:not(.is-active):active {
    background: #efefef;
}

.shop-cat-nav-item--child {
    font-size: 12px;
    padding: 10px 6px 10px 4px;
    color: #888;
}

.shop-cat-nav-item--child.is-active {
    color: var(--shop-text);
}

/* Right product list */
.shop-cat-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    padding: 8px 10px 16px;
}

.shop-cat-main.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.shop-cat-product-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Product row */
.shop-cat-product {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 12px 44px 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.shop-cat-product:last-child {
    border-bottom: 0;
}

.shop-cat-product-main {
    flex: 1;
    display: flex;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.shop-cat-product-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.shop-cat-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-cat-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.shop-cat-product-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-cat-product-meta {
    margin: 0 0 8px;
    font-size: 11px;
    color: #999;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shop-cat-product-prices {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.shop-cat-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--shop-brand);
    line-height: 1;
}

.shop-cat-product-price small {
    font-size: 12px;
    font-weight: 600;
    margin-right: 1px;
}

.shop-cat-product-old {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
}

/* Add button */
.shop-cat-add-btn {
    position: absolute;
    right: 0;
    bottom: 14px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--shop-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.35);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease;
}

.shop-cat-add-btn:active {
    transform: scale(0.92);
}

.shop-cat-add-btn.is-disabled {
    background: #ddd;
    box-shadow: none;
    pointer-events: none;
}

.shop-cat-add-btn.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty */
.shop-cat-empty {
    text-align: center;
    padding: 48px 16px;
    color: #999;
}

.shop-cat-empty .ti {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

.shop-cat-empty p {
    margin: 0;
    font-size: 14px;
}
