.shopping-app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4f4f4;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
}

/* 内部弹窗样式 */
.shopping-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.shopping-modal {
    background: #fff;
    width: 85%;
    max-width: 320px;
    border-radius: 8px;
    padding: 20px;
    border: 1.5px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.shopping-modal-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.shopping-modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 14px;
}

.shopping-modal-buttons {
    display: flex;
    gap: 10px;
}

.shopping-modal-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.shopping-modal-btn.primary {
    background: #000;
    color: #fff;
}

/* 首页子导航 */
.shopping-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.shopping-sub-tab {
    color: #999;
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
}

.shopping-sub-tab.active {
    color: #000;
    font-weight: bold;
}

.shopping-sub-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #000;
}

/* 外卖分类导航 */
.takeout-categories {
    display: flex;
    justify-content: space-around;
    padding: 10px 5px;
    background: #fff;
    border-bottom: 1px solid #eee;
    gap: 4px;
}

.takeout-category-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 2px;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
}

.takeout-category-item:hover {
    background: #eee;
}

.takeout-category-item.active {
    background: #000;
    color: #fff;
}

.takeout-category-name {
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
}

.shopping-header {
    padding: 45px 15px 10px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #000;
}

.shopping-back-btn {
    font-size: 24px;
    cursor: pointer;
}

.shopping-search-bar {
    flex: 1;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 6px 15px;
    color: #000;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shopping-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.shopping-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 购物车商品列表及确认订单页滚动条隐藏 */
.cart-product-list::-webkit-scrollbar,
.order-confirm-content::-webkit-scrollbar {
    display: none;
}
.cart-product-list,
.order-confirm-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 轮播图模拟 */
.shopping-banner {
    width: 100%;
    height: 150px;
    background: #ddd;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* 轮播图描述文字居中显示 */
.banner-desc-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d8d8d8;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 分类栏 */
.shopping-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 15px 5px;
    background: white;
    margin-bottom: 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* 商品列表 - 瀑布流模拟 */
.shopping-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 商品描述文字居中显示样式 */
.product-desc-display {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    background: #e0e0e0;
}

.product-desc-display span {
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 4px 6px;
    line-height: 1.3;
    max-height: 40%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    pointer-events: none;
}

.product-info {
    padding: 8px;
}

.product-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-symbol {
    font-size: 12px;
    color: #000;
}

.price-value {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.product-sales {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

/* 底部栏 */
.shopping-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.shopping-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: #666;
}

.shopping-tab.active {
    color: #000;
    font-weight: bold;
}

.shopping-tab-icon {
    font-size: 20px;
}
