/* 商城风格样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 顶部导航栏 */
.shop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5E7C 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.shop-header .back-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-header .title {
    font-size: 18px;
    font-weight: 500;
}

.shop-header .search-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 首页容器 */
.home-container {
    background: linear-gradient(180deg, #FFE5E5 0%, #FFF0F0 40%, #FFFFFF 100%);
    padding: 15px;
    padding-bottom: 5px;
    margin-bottom: 0;
}

/* 首页搜索栏 */
.home-search-bar {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-search-bar .header-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #FF6B6B;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.search-form {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.search-form .icon-search {
    font-size: 16px;
    color: #bbb;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-input-text {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.search-input-text::placeholder {
    color: #aaa;
}

.search-clear {
    font-size: 16px;
    color: #999;
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.3s;
}

.search-clear:hover {
    color: #666;
}

/* 首页分类标签 */
.home-category-tabs {
    margin-bottom: 15px;
}

.category-scroll {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-bottom: 5px;
}

.category-tag {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 5px;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.category-tag.active {
    color: #FF4757;
    font-weight: 600;
}

.category-tag.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #FF4757;
    border-radius: 2px;
}

/* 首页Banner轮播 */
.home-banner-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 10px;
    scroll-snap-type: x mandatory;
    padding: 0 0 5px 0;
}

.home-banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-item {
    flex-shrink: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
}

.banner-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* 顶部搜索栏 */
.shop-header-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5E7C 100%);
    padding: 8px 15px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #FF6B6B;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box {
    flex: 1;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 17px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 1);
}

.search-box .icon {
    color: #999;
    font-size: 16px;
    flex-shrink: 0;
}

.search-placeholder {
    color: #999;
    font-size: 14px;
    flex: 1;
}

/* 分类标签栏 */
.category-tabs {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs .tabs-wrapper {
    display: inline-flex;
    padding: 0 5px;
}

.category-tabs .tab-item {
    flex-shrink: 0;
    padding: 12px 20px;
    color: #666;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-tabs .tab-item.active {
    color: #FF6B6B;
    font-weight: 500;
    position: relative;
}

.category-tabs .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #FF6B6B;
    border-radius: 2px;
}

/* 内容区域 */
.shop-content {
    margin-top: 95px;
    margin-bottom: 60px;
    padding: 10px;
    min-height: calc(100vh - 155px);
    overflow-y: visible;
}

/* 首页内容区域特殊样式 */
.home-page .shop-content {
    margin-top: 0;
    padding-top: 0;
}

.home-page {
    background: #f8f8f8;
}

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 商品卡片 */
.goods-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    position: relative;
}

.goods-card .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.goods-card .image {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.goods-card .info {
    padding: 10px;
}

.goods-card .name {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 39px;
}

.goods-card .bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goods-card .price {
    color: #FF6B6B;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.goods-card .price small {
    font-size: 12px;
    font-weight: normal;
}

.goods-card .cart-btn {
    width: 100%;
    height: 32px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
}

.goods-card .cart-btn i {
    margin-right: 4px;
    font-size: 14px;
}

.goods-card .cart-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* 底部导航 */
.shop-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.shop-navbar .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    transition: all 0.3s;
    padding: 5px 0;
}

.shop-navbar .nav-item.active {
    color: #FF6B6B;
}

.shop-navbar .nav-item .icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.shop-navbar .nav-item .label {
    font-size: 11px;
}

/* 悬浮按钮 */
.float-buttons {
    position: fixed;
    right: 15px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.float-btn:active {
    transform: scale(0.95);
}

.float-btn .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.float-btn .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    background: #fff;
    color: #FF6B6B;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 5px;
    border: 2px solid #FF6B6B;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Banner */
.banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.banner img {
    width: 100%;
    display: block;
}

/* 广播通知栏 */
.notice-bar {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 40px;
}

.notice-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B6B;
    font-size: 16px;
    line-height: 1;
}

.notice-icon i {
    display: block;
    line-height: 1;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    color: #666;
    font-size: 13px;
    line-height: 20px;
    height: 20px;
}

.notice-content marquee {
    display: block;
    line-height: 20px;
    height: 20px;
}

/* 分类图标网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
}

.category-item .icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE5E5, #FFF0F0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.category-item .icon-wrap img {
    width: 30px;
    height: 30px;
}

.category-item .text {
    font-size: 13px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state .text {
    font-size: 14px;
}

/* 分类页面标题栏 */
.category-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5E7C 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.category-header .title {
    font-size: 18px;
    font-weight: 500;
}

/* 分类页面布局 */
.category-page {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 55px;
    display: flex;
    overflow: hidden;
}

/* 左侧分类菜单 */
.category-sidebar {
    width: 100px;
    background: #f8f8f8;
    overflow-y: auto;
    flex-shrink: 0;
}

.category-sidebar .category-item {
    display: block;
    padding: 18px 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: all 0.3s;
}

.category-sidebar .category-item.active {
    background: #fff;
    color: #FF6B6B;
    font-weight: 500;
}

.category-sidebar .category-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #FF6B6B;
    border-radius: 0 2px 2px 0;
}

/* 右侧商品列表区域 */
.category-content {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}

/* 竖向商品列表样式 */
.goods-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goods-item-horizontal {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
}

.goods-item-horizontal .goods-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.goods-item-horizontal .goods-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    z-index: 10;
}

.goods-item-horizontal .goods-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.goods-item-horizontal .goods-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.goods-item-horizontal .goods-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goods-item-horizontal .goods-price {
    color: #FF6B6B;
    font-size: 18px;
    font-weight: 600;
}

.goods-item-horizontal .goods-price small {
    font-size: 12px;
    font-weight: normal;
}

.goods-item-horizontal .add-cart-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.goods-item-horizontal .add-cart-btn:active {
    transform: scale(0.9);
}

/* 购物车角标 */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #fff;
    color: #FF6B6B;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 购物车页面 */
.cart-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.cart-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cart-action {
    color: #FF6B6B;
    font-size: 14px;
    cursor: pointer;
}

.cart-content {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 125px;
    overflow-y: auto;
    background: #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

/* 空购物车 */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.empty-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

/* 购物车列表 */
.cart-list {
    padding: 10px;
}

.cart-select-all {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cart-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.cart-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cart-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.cart-checkbox input:checked ~ .checkmark {
    background: #FF6B6B;
    border-color: #FF6B6B;
}

.cart-checkbox input:checked ~ .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.cart-checkbox .label-text {
    margin-left: 10px;
    font-size: 15px;
    color: #333;
}

/* 购物车商品项 */
.cart-item {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.cart-item-price {
    color: #FF6B6B;
    font-size: 16px;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls .quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.cart-item-controls .quantity-btn:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.cart-item-controls .quantity-value {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* 底部结算栏 */
.cart-footer {
    position: fixed;
    bottom: 55px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 999;
}

.cart-footer-left {
    flex-shrink: 0;
}

.cart-footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.cart-total {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.total-label {
    font-size: 14px;
    color: #666;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: #FF6B6B;
}

.cart-checkout-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    color: #fff;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.cart-checkout-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 快速购买弹窗 */
.quick-buy-layer {
    border-radius: 12px 12px 0 0 !important;
}

.quick-buy-modal {
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.modal-image {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 0 auto 15px;
}

.modal-info {
    text-align: center;
    margin-bottom: 20px;
}

.modal-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.modal-price {
    font-size: 24px;
    font-weight: 600;
    color: #FF6B6B;
}

.modal-form {
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: #FF6B6B;
    outline: none;
}

.modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.quantity-label {
    font-size: 15px;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.quantity-btn:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.modal-btn-secondary:active {
    transform: scale(0.98);
    background: #e8e8e8;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF5E7C);
    color: #fff;
}

.modal-btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

