/* ===== 重置和基礎樣式 - 移動端優先 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #fff5f5;
    color: #333;
    line-height: 1.6;
    padding-top: 130px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffb6c1' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 導航欄樣式 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(255, 133, 162, 0.98) 0%, rgba(255, 166, 193, 0.98) 50%, rgba(255, 133, 162, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(255, 102, 163, 0.3);
}

/* 顶部主栏 */
.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    min-height: 60px;
    background: linear-gradient(90deg, rgba(255, 133, 162, 0.98) 0%, rgba(255, 166, 193, 0.98) 100%);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 6px rgba(179, 0, 89, 0.4);
    font-family: 'Fredoka One', cursive;
    white-space: nowrap;
}

.logo-icon {
    font-size: 24px;
    margin-right: 8px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(179, 0, 89, 0.5);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* 品牌导航栏 - 固定在顶部 */
.brands-navigation {
    width: 100%;
    background: rgba(255, 133, 162, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    position: sticky;
    top: 60px;
    z-index: 999;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.brands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.brand-item {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(179, 0, 89, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: inline-block;
}

.brand-item:hover, .brand-item.active {
    background: rgba(255, 255, 255, 0.85);
    color: #ff3385;
    transform: translateY(-1px);
}

/* 移动端品牌菜单激活状态 */
@media (max-width: 767px) {
    .brands-navigation {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        padding: 15px;
        background: rgba(255, 133, 162, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 998;
    }
    
    .brands-navigation.active {
        display: block;
    }
    
    .brands-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .brand-item {
        padding: 8px 5px;
        font-size: 12px;
        text-align: center;
    }
}

/* ===== 商品詳情區域 - 移動端優化 ===== */
.product-detail {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3);
    padding: 15px;
}

.product-images {
    width: 100%;
    padding: 15px;
    background: #fff9fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.image-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
}

.main-image {
    width: 100%;
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    border: 2px solid #ffe4e9;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.image-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-zoom-hint {
    opacity: 1;
}

.thumbnails-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnails {
    display: flex;
    overflow-x: auto;
    width: calc(100% - 60px);
    margin: 0 auto;
    justify-content: flex-start;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    min-width: 50px;
    height: 50px;
    object-fit: cover;
    margin: 0 5px;
    cursor: pointer;
    border: 2px solid #ffe4e9;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #ff69b4;
    opacity: 1;
    transform: scale(1.1);
}

.thumb-btn {
    background: #ff9ecb;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.thumb-btn:hover {
    background: #ff69b4;
}

.product-info {
    width: 100%;
    padding: 15px;
    background: white;
}

/* 返回按钮 */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff69b4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
    border-radius: 15px;
    border: 1px solid #ffb6c1;
}

.back-to-home:hover {
    color: #ff1493;
    transform: translateX(-3px);
    background: linear-gradient(135deg, #ffe4ec 0%, #ffd1e0 100%);
}

.product-title {
    font-size: 1.3rem;
    color: #ff1493;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.3rem;
    color: #ff1493;
    font-weight: bold;
}

.product-sales {
    color: #ff6699;
    font-size: 0.8rem;
    background: rgba(255, 204, 230, 0.3);
    padding: 4px 8px;
    border-radius: 10px;
}

.variants {
    margin-bottom: 15px;
}

.variant-title {
    font-size: 0.95rem;
    color: #d9007d;
    margin-bottom: 8px;
    font-weight: 600;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-option {
    padding: 6px 10px;
    border: 2px solid #ffe4e9;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    min-width: 70px;
    text-align: center;
}

.variant-option.active {
    background: #ff9ecb;
    color: white;
    border-color: #ff69b4;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.quantity-title {
    font-weight: 600;
    color: #d9007d;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #ffe4e9;
    border-radius: 20px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #ff9ecb;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #ff69b4;
}

.qty-input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 2px solid #ffe4e9;
    border-right: 2px solid #ffe4e9;
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.add-to-cart, .checkout-btn {
    width: 100%;
    padding: 12px;
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
    border: none;
}

.add-to-cart {
    background: linear-gradient(135deg, #ff9ecb 0%, #ff69b4 100%);
    color: white;
}

.checkout-btn {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: white;
}

.add-to-cart:hover, .checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4);
}

/* ===== 彈窗樣式 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal h3 {
    color: #ff1493;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    min-width: 100px;
}

.continue-btn {
    background: linear-gradient(135deg, #ff9ecb 0%, #ff69b4 100%);
    color: white;
}

.checkout-now-btn {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ===== 描述和諮詢按鈕區域 - 移動端優化 ===== */
.action-buttons-section {
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.2);
    overflow: hidden;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffeef4 100%);
    border-bottom: 3px dashed #ffe4e9;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.25);
}

.description-btn {
    background: linear-gradient(135deg, #ff9ecb 0%, #ff69b4 100%);
    color: white;
}

.description-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.35);
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

.consultation-btn {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: white;
}

.consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 179, 71, 0.35);
    background: linear-gradient(135deg, #ffcc33 0%, #ffaa00 100%);
}

.online-service-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
}

.online-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.35);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 105, 180, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.action-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.content-display {
    padding: 15px;
    background: white;
    min-height: 120px;
}

.content-card {
    background: #fff9fb;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #ffe4e9;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.1);
}

.content-card h3 {
    color: #ff1493;
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px dashed #ffe4e9;
    font-weight: 700;
}

.content-body {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* 固定咨询内容区域 */
.fixed-consultation {
    padding: 15px;
    background: white;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.contact-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00c300 0%, #008f00 100%);
}

.contact-info {
    flex: 1;
    min-width: 120px;
}

.contact-info strong {
    color: #ff1493;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
}

.contact-info p {
    color: #666;
    margin: 3px 0;
    font-size: 0.85rem;
}

.contact-item img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    border: 2px solid #07c160;
    padding: 3px;
    flex-shrink: 0;
}

/* 特殊內容樣式 */
.special-offer {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #ff69b4;
}

.offer-badge {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 6px;
}

.price-calculation {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 3px solid #ffb347;
}

.price-calculation p {
    margin: 3px 0;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

.product-note {
    background: #fffaf0;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #ffcc33;
    margin-top: 10px;
}

.product-note p {
    color: #d97706;
    font-weight: 600;
    margin: 0;
    font-size: 0.85rem;
}

/* 圖片放大模態框 */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.image-zoom-modal.active {
    display: flex;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoomed-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.zoom-close-btn {
    position: absolute;
    top: -35px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.zoom-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ===== 桌面端適配 ===== */
@media (min-width: 768px) {
    body {
        padding-top: 140px;
    }
    
    .nav-main {
        min-height: 70px;
        padding: 0 20px;
    }
    
    .brands-navigation {
        top: 70px;
        padding: 10px 20px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .logo-icon {
        font-size: 32px;
        margin-right: 10px;
    }
    
    .brand-item {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    /* 商品详情 - 桌面端布局 */
    .product-detail {
        flex-direction: row;
        margin: 30px 0;
        padding: 20px;
    }
    
    .product-images {
        flex: 2;
        min-width: 300px;
        padding: 20px;
        margin-bottom: 0;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail {
        min-width: 70px;
        height: 70px;
    }
    
    .product-info {
        flex: 1;
        min-width: 300px;
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .variant-option {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
    
    .cart-actions {
        flex-direction: row;
        gap: 12px;
    }
    
    .add-to-cart, .checkout-btn {
        flex: 1;
        padding: 14px;
        font-size: 1.1rem;
    }
    
    /* 操作按钮区域 - 桌面端 */
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 20px;
    }
    
    .action-btn {
        min-width: 160px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .content-display {
        padding: 25px;
        min-height: 150px;
    }
    
    .contact-item {
        flex-wrap: nowrap;
    }
    
    .contact-item img {
        width: 80px;
        height: 80px;
    }
    
    .zoom-close-btn {
        top: -40px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 150px;
    }
    
    .brands-navigation {
        top: 80px;
    }
    
    .main-image {
        height: 400px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-price {
        font-size: 1.8rem;
    }
}

/* 小屏幕手机优化 - 更加紧凑 */
@media (max-width: 767px) {
    body {
        padding-top: 120px;
    }
    
    .product-detail {
        padding: 12px;
        margin: 15px 0;
    }
    
    .product-images {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .main-image {
        height: 220px;
    }
    
    .thumbnail {
        min-width: 45px;
        height: 45px;
        margin: 0 4px;
    }
    
    .thumb-btn {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .product-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .product-sales {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .variant-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .variant-option {
        padding: 5px 8px;
        font-size: 0.8rem;
        min-width: 65px;
    }
    
    .quantity-selector {
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .quantity-title {
        font-size: 0.85rem;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .qty-input {
        width: 40px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .add-to-cart, .checkout-btn {
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 20px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 30px;
    }
    
    .action-btn i {
        font-size: 0.9rem;
    }
    
    .content-display {
        padding: 12px;
        min-height: 100px;
    }
    
    .content-card {
        padding: 12px;
    }
    
    .content-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .content-body {
        font-size: 0.85rem;
    }
    
    .contact-item {
        padding: 10px;
        gap: 10px;
    }
    
    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .contact-info strong {
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 0.8rem;
    }
    
    .contact-item img {
        width: 60px;
        height: 60px;
    }
    
    .image-zoom-hint {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .zoom-close-btn {
        top: -30px;
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    body {
        padding-top: 110px;
    }
    
    .main-image {
        height: 200px;
    }
    
    .thumbnail {
        min-width: 40px;
        height: 40px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .variant-option {
        padding: 4px 6px;
        font-size: 0.75rem;
        min-width: 55px;
    }
    
    .brand-item {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .action-buttons {
        padding: 12px;
        gap: 6px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* 浮動購物車按鈕 */
.floating-cart-btn {
    position: fixed;
    right: 15px;
    bottom: 80px;
    z-index: 1000;
    background: linear-gradient(135deg, #ff3385 0%, #e60073 100%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 51, 133, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 51, 133, 0.6);
}

.floating-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    position: relative;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #ff3385;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 移動端適配 */
@media (max-width: 768px) {
    .floating-cart-btn {
        right: 15px;
        bottom: 70px;
        width: 50px;
        height: 50px;
    }
    
    .floating-cart-link {
        font-size: 1.2rem;
    }
    
    .floating-cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}