/* 繞著地球買 - 首頁專用樣式 */

/* 輪播區域 */
.hero-carousel {
    margin-top: 0;
}

.carousel-item {
    height: 1000px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 輪播佔位圖片樣式 */
.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;
    font-size: 24px;
    text-align: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* FAQ 常見問題區塊 */
.faq-section {
    background-color: #fff7ea;
    min-height: 400px;
}

.faq-title {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 自訂手風琴樣式 */
.accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #fff7ea;
    border: none;
    border-bottom: 1px solid #d4cbb8;
    margin-bottom: 0;
}

.accordion-item:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion-item:last-of-type {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-button {
    background-color: transparent;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 20px 25px;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--text-dark);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    background-image: none;
    content: '+';
    font-size: 24px;
    font-weight: 300;
    width: auto;
    height: auto;
    background-size: auto;
}

.accordion-button:not(.collapsed)::after {
    content: '−';
    transform: none;
}

.accordion-body {
    background-color: #faf8f3;
    padding: 20px 25px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.accordion-button:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 本週新品區塊 */
.new-arrivals {
    background-color: #fff7ea;
}

/* 熱銷精選區塊 */
.hot-items {
    background-color: #ffffff;
}

/* 橫幅圖片區塊 */
.banner-image {
    width: 100%;
    overflow: hidden;
}

.banner-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 最新消息/部落格區塊 */
.blog-section {
    background-color: #fff7ea;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 比例 */
    overflow: hidden;
    background-color: #f8f9fa;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-link {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--text-dark);
    display: inline-block;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* 產品卡片 */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 133%;
    /* 4:3 比例 */
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 產品標籤 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(90, 90, 90, 0.85);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 2;
    font-weight: 500;
}

.product-badge.badge-special {
    background-color: rgba(122, 193, 66, 0.9);
}

.product-badge.badge-info {
    background-color: rgba(255, 183, 77, 0.9);
    color: #333;
}

/* 產品資訊 */
.product-info {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 45px;
    font-weight: 500;
    flex-grow: 1;
}

/* 產品價格 */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.price-sale {
    color: #e74c8c;
    font-size: 18px;
    font-weight: 700;
}

.price-original {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

/* 查看更多按鈕 */
.btn-view-more {
    display: inline-block;
    background-color: #6b7178;
    color: white;
    padding: 14px 60px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: #5a5f65;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 響應式設計 - 輪播 */
@media (max-width: 991px) {
    .carousel-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }

    .carousel-placeholder {
        font-size: 18px;
        padding: 20px;
    }
}

/* 響應式設計 - FAQ */
@media (max-width: 768px) {
    .faq-title {
        font-size: 20px;
    }

    .accordion-button {
        font-size: 15px;
        padding: 18px 20px;
    }

    .accordion-body {
        padding: 18px 20px;
        font-size: 14px;
    }
}

/* 響應式設計 - 部落格卡片 */
@media (max-width: 991px) {
    .blog-title {
        font-size: 15px;
    }

    .blog-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .blog-content {
        padding: 15px;
    }

    .blog-title {
        font-size: 14px;
    }

    .blog-excerpt {
        font-size: 13px;
    }
}

/* 響應式設計 - 產品卡片 */
@media (max-width: 991px) {
    .section-title {
        font-size: 28px;
    }

    .product-title {
        font-size: 14px;
        min-height: 42px;
    }

    .price-sale {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 24px;
    }

    .product-info {
        padding: 15px 12px;
    }

    .product-title {
        font-size: 13px;
        min-height: 40px;
    }

    .price-sale {
        font-size: 15px;
    }

    .price-original {
        font-size: 13px;
    }

    .btn-view-more {
        padding: 12px 40px;
        font-size: 15px;
    }
}
