body {
    font-family: 'Noto Sans TC', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
    margin-top: 0;
    padding-top: 0;
}

/* Hero Carousel (全版主視覺輪播) */
.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 6s ease;
    /* 緩慢縮放效果 */
}

.carousel-item.active .hero-bg {
    transform: scale(1.05);
}

/* 漸層遮罩以確保文字清晰 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    margin-top: 15vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.carousel-item.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.05em;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* 輪播指示器樣式微調 */
.carousel-indicators [data-bs-target] {
    width: 40px;
    height: 3px;
    margin-left: 8px;
    margin-right: 8px;
    background-color: #fff;
    opacity: 0.5;
    border: none;
}

.carousel-indicators .active {
    opacity: 1;
}

/* 輪播控制按鈕樣式微調 */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    /* 預設隱藏，懸停時顯示 */
    transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 0.7;
}

.hero-carousel:hover .carousel-control-prev:hover,
.hero-carousel:hover .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 工具類 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 區塊標題 */
.section-title {
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #1f2937;
    /* gray-800 */
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: 0;
}

/* 公司介紹區塊 */
.about-text {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-link {
    text-decoration: none;
    color: #1f2937;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 2px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.about-link:hover {
    opacity: 0.7;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .about-img {
        height: 350px;
    }
}

/* 輪播區塊 */
.carousel-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .carousel-container {
        padding: 0 3rem;
    }
}

.products-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

.product-card,
.category-card {
    flex: 0 0 280px;
    cursor: pointer;
    scroll-snap-align: start;
}

@media (min-width: 768px) {

    .product-card,
    .category-card {
        flex: 0 0 320px;
    }
}

/* =========================================
   圖片容器與按鈕樣式修正 (與 Search 頁面統一)
   ========================================= */

/* 圖片容器 */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 280px;
    border-radius: 12px; /* 增加圓角 */
}

@media (min-width: 768px) {
    .product-img-wrapper {
        height: 320px;
    }
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* 僅在游標懸停於圖片容器時觸發放大 */
.product-img-wrapper:hover .product-img {
    transform: scale(1.05);
}

/* 心願清單愛心按鈕 (右上角) */
.wishlist-btn-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* 預設隱藏 */
    transform: translateY(-10px);
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.wishlist-btn-overlay:hover {
    background-color: #8B5A2B; /* 主題棕色 */
    color: #fff !important;
}

.wishlist-btn-overlay i {
    font-size: 1.2rem;
    line-height: 1;
}

/* 加入購物車按鈕 (下方置中) */
.cart-btn {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    opacity: 0; /* 預設隱藏 */
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    z-index: 10;
    background-color: transparent; /* 覆蓋原本設定 */
    box-shadow: none; /* 覆蓋原本設定 */
    padding: 0;
    display: block;
}

/* 按鈕本體樣式 (仿照 search.css) */
.cart-btn button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px; /* 膠囊狀圓角 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-btn button:hover {
    background-color: #8B5A2B;
    color: #fff;
    transform: scale(1.05);
}

/* 滑鼠懸停時顯示按鈕 */
.product-img-wrapper:hover .wishlist-btn-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-img-wrapper:hover .cart-btn {
    opacity: 1;
    transform: translateY(0);
}


/* 產品資訊文字 */
.brand-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    /* gray-500 */
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

.product-price {
    font-size: 0.875rem;
    color: #4b5563;
    /* gray-600 */
    margin-top: 0.25rem;
}

.color-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
}

/* 類別卡片細節 */
.category-name {
    font-size: 1rem;
    font-weight: 400;
    color: #1f2937;
    margin-top: 1rem;
}

/* 導覽按鈕 */
.nav-btn {
    position: absolute;
    /* 圖片高度的大約中心點 (320px / 2 = 160px) */
    top: 160px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    /* 手機版隱藏 */
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    color: #4b5563;
}

@media (min-width: 768px) {
    .nav-btn {
        display: flex;
    }
}

.carousel-container:hover .nav-btn {
    opacity: 1;
}

.nav-btn-left {
    left: 10px;
}

.nav-btn-right {
    right: 10px;
}

/* 進度條 */
.carousel-progress-track {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin-top: 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.carousel-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #1f2937;
    /* Gray-800 */
    width: 0%;
    transition: width 0.1s linear;
}

/* 推薦商品區塊 */
.featured-section-container {
    min-height: 600px;
}

.featured-bg-right {
    background-color: #f3f0eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    padding-top: 30rem;
    position: relative;
}

@media (min-width: 992px) {
    .featured-bg-right {
        padding: 5rem;
    }
}

.wishlist-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

.wishlist-btn:hover {
    color: #ef4444;
}

.featured-img-main {
    padding-top: 10px;
    max-width: 90%;
    max-height: px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04));
}

.featured-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

@media (min-width: 992px) {
    .featured-title {
        font-size: 1.75rem;
    }
}

.featured-price {
    font-size: 1.125rem;
    font-weight: 300;
    color: #4b5563;
}

.pulse-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.pulse-inner {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.95);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 骨架屏 UI */
.skeleton {
    background: #f0f0f0;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    border-radius: 4px;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.skeleton-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .skeleton-card {
        flex: 0 0 320px;
    }
}

.skeleton-img {
    width: 100%;
    height: 280px;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .skeleton-img {
        height: 320px;
    }
}

.skeleton-line {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-line-sm {
    height: 0.75rem;
    width: 40%;
    margin-bottom: 0.5rem;
}

.skeleton-line-md {
    height: 1rem;
    width: 70%;
    margin-bottom: 0.5rem;
}

.featured-skeleton-container {
    min-height: 600px;
    background-color: #f8f9fa;
}