/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e86c8d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #4a9d7c;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: #e86c8d;
}

#cart-count {
    background-color: #e86c8d;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主横幅样式 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #e86c8d;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d05a7b;
}

/* 分类样式 */
.categories {
    padding: 80px 0;
}

.categories h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-item h3 {
    text-align: center;
    padding: 15px;
    background-color: white;
}

/* 花束列表样式 */
.featured-flowers {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.featured-flowers h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.flower-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.flower-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.flower-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.flower-info {
    padding: 20px;
}

.flower-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.flower-price {
    color: #e86c8d;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: #4a9d7c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #3a8c6c;
}

/* 商品列表页样式 */
.products-page {
    padding: 50px 0;
}

.products-page h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #e86c8d;
    color: white;
    border-color: #e86c8d;
}

/* 购物车页面样式 */
.cart-page {
    padding: 50px 0;
}

.cart-page h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px 100px 80px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
}

.cart-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e86c8d;
    font-weight: bold;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

.quantity {
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    color: #ff4d4d;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #cc0000;
}

.cart-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

.btn-secondary {
    background-color: #6c757d;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

.empty-cart i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}