@charset "utf-8";
/* CSS Document */

.product_Model{
    
}
.product_Modely {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* --- 主要內容容器 --- */
#main-content-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- 由 Excel 頁籤生成的每一個大區塊 --- */
.content-section {
    /* background-color: #ffffff; */
    border-radius: 16px;
    padding: 30px 40px;
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
    margin-bottom: 16px; /* 區塊之間的間距 */
}

/* --- 大標題 --- */
.carousel-title {
    font-size: 46px;
    font-weight: 900;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px 0;
}

/* --- 副標題 --- */
.carousel-subtitle {
    font-size: 26px;
    font-weight: 900;
    color: #e85a10;
    text-align: center;
}

/* --- 輪播主容器 (深藍色背景) --- */
.product-carousel-container {
    width: 100%;
    padding: 40px;
    margin-top: 16px;
    background-color: #ffe7c8;
    border-radius: 16px;
    position: relative;
    box-sizing: border-box;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* 當輪播容器有 is-centered class 時，將卡片軌道設為置中 */
.product-carousel-container.is-centered .carousel-track {
    justify-content: center;
}
/* 同時，將滑鼠游標改回預設，因為此狀態下不可拖曳 */
.product-carousel-container.is-centered .carousel-wrapper {
    cursor: default;
}

/* --- 可點擊的商品卡片連結 --- */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
    box-sizing: border-box;
    padding: 0 10px;
}

/* --- 商品卡片本體樣式 --- */
.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    aspect-ratio: 700 / 440;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-name {
    font-size: 24px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0 0 4px 0;
}

.product-tagline {
    font-size: 18px;
    color: #e85a10;
    margin: 0 0 16px 0;
    flex-grow: 1;
    font-weight: 400;
}

.product-price {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    line-height: 1;
    align-self: flex-end;
    margin-top: auto;
    display: flex; /* 讓數字和後綴文字可以對齊 */
    align-items: baseline; /* 基準線對齊 */
}

.price-number {
    font-size: 30px;
    font-weight: bold;
    color: #d90429;
    margin: 0 4px 0 0; /* 調整右邊間距 */
}

.price-suffix {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* --- 輪播按鈕 --- */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-button:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-button.prev { left: -22px; }
.carousel-button.next { right: -22px; }

/* --- Banner 圖片樣式 --- */
.banner-link {
    display: block;
    margin-top: 30px; /* 與上方輪播的間距 */
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/
    /*transition: box-shadow 0.3s ease;*/
}

/*.banner-link:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}*/

.banner-image {
    width: 100%;
    display: block;
    vertical-align: middle; /* 移除圖片底部多餘的空白 */
}


/* --- 響應式設計 (RWD) --- */
@media (max-width: 900px) {
    .product-card-link {
        flex-basis: calc(100% / 2); 
        max-width: calc(100% / 2);
    }

    .banner-link:hover {
        box-shadow: none;
    }
    .carousel-button:hover {
        transform: none;
    }
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    body { padding: 0; }
    .content-section {
        border-radius: 0;
        padding: 40px 15px 0px;
        margin-bottom: 0px;
    }
    .carousel-title { 
        font-size: 28px;
        margin-bottom: 4px;
    }
    .carousel-subtitle { 
        font-size: 18px;
        margin: 0px;
    }
    .product-carousel-container {
        padding: 20px 8px;
    }
    .product-card-link {
        flex-basis: calc(100% / 2); /* 將寬度設為 50%，若一則為100% */
        max-width: calc(100% / 2); /* 將寬度設為 50%，若一則為100% */
        padding: 0 6px;
    }
    .carousel-button.prev { left: 15px; }
    .carousel-button.next { right: 15px; }
    .banner-link { margin-top: 20px; }
    .product-info {
        padding: 8px;
    }
    .product-name {
        font-size: 16px;
    }
    .product-tagline {
        font-size: 14px;
    }
    .price-number {
        font-size: 20px;
    }
    .price-suffix {
        font-size: 14px;
    }
    .carousel-button.prev, .carousel-button.next{
        display: none !important;
    }
}