/* 調整整個商品區域距離頂部的距離 */
.container {
    margin-top: 0px; /* 或你想要的距離 */
}

/* 或者更具體地針對這個區域 */
.container.py-5 {
    padding-top: 100px !important; /* 覆蓋原有的 py-5 */
}

/*商店標題文字*/
h1.h2 {
    font-size: 45px !important; /* 修改字體大小 */
    color: #000000;  /* 修改文字顏色 */
    font-weight: 400;
}

/* 或者只調整類別標題 */
.col-lg-3 h1.h2 {
    margin-top: 60px; /* 調整 Categories 標題距離頂部 */
}

/* 調整商品區域頂部間距 */
.col-lg-9 {
    padding-top: 60px;
}

/* 特色產品區塊調整 */
section.bg-light {
    padding-top: 0px;
    padding-bottom: 60px;
}

/* 區塊標題 */
.section-title {
    color: rgb(216, 48, 140);
    margin-top: 40px;
    margin-bottom: 80px;
    font-weight: 500 !important;
}

/* 卡片圖片包裹層 */
.card-img-top-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* 可調整 */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.card-img-top-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 1;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    border-radius: 8px 8px 0 0;
}

/* 卡片固定大小與排版 */
.card.h-100 {
    height: 100%;
    min-height: 500px; /* 卡片總高度可依需求調整 */
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-body {
    flex-grow: 1;            /* 取消撐滿空間 */
    height: 100px;           /* 固定高度，依需求調整 */
    padding: 20px;
}

.card-body a.h2 {
    display: block;
    margin-top: 15px;
    margin-bottom: 10px;
}

.card-body p.card-text {
    margin-bottom: 20px;
}

/* 每張卡片左右留白，控制間距 */
.carousel-item .col-md-4 {
    padding-left: 10px;
    padding-right: 10px;
}

.card-img-top-wrapper {
    overflow: hidden; /* 重要！防止放大時圖片超出邊界 */
}

.card:hover .card-img-top {
    transform: scale(1.05);
    transition: transform 0.3s ease; /* 添加平滑過渡效果 */
}