/* =========== 商品卡樣式 =========== */
.product-card-block {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap:15px;
}
@media (max-width: 744px) {
    .product-card-block {
	    grid-template-columns: 1fr 1fr;
	}
}
.product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    width:100%;
}
.product-pic {
    background: #FFFFFF;
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}
.product-pic img{
	position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.article-card {
    width: 100%;
    min-width: 264px;
}
.article-card,
.article-pic {
    overflow: hidden;
}
.article-pic{
  aspect-ratio: 3 / 2;
  }
.product-pic img,
.article-card img {
    transform: scale(100%, 100%);
    transition: all 0.3s ease-out;
}
.product-pic:hover img,
.article-pic:hover img {
    transform: scale(105%, 105%);
}
/* 日期/品牌/分店等小字樣式 */
.s-text-list ul {
    display: flex;
    gap: 8px;
    list-style: none;
    justify-content: flex-start;
}
.s-text-list ul li {
    font-size: 12px;
    width: fit-content;
    color: rgba(34, 34, 34, 0.6);
}
.s-text-list ul li:first-child {
    padding-right: 8px;
    border-right: 1px solid #d9d9d9;
}
.s-text-list ul li:last-child {
    border-right: 0;
}
.product-card .product-card-content .mix-price,
.product-card .product-card-contents2 .mix-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.product-card .product-card-content .original-price,
.product-card .product-card-contents2 .original-price {
    color: rgba(34, 34, 34, 1);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 300;
}
.product-card-content .card-brand,
.product-card-contents2 .card-brand {
    font-size: 12px;
    color: rgba(34, 34, 34, 0.6);
}
.product-card-content .card-price,
.product-card-contents2 .card-price {
    color: rgba(229, 0, 18, 1);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}
.product-card .product-card-content,
.product-card .product-card-contents2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-card-content .product-title,
.product-card-contents2 .product-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

/* 加入購物車/快速瀏覽樣式 */
.hover-btn {
    height: 20px;
}
.btn-box {
    display: none;
}
.product-card .btn-box { /* AL 07.28 移除:hover 因要 加入購物車、快速預覽 恆在 */
    display: block;
}
.btn-box ul {
    display: flex;
    justify-content: center; /* 置中排列整體內容 */
    gap: 12px;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 24px;
}
.btn-box ul li {
    color: rgba(34, 34, 34, 1);
    cursor: pointer;
    line-height: 1;
    width: 50%;               /* 每個 li 各佔一半 */
    text-align: center;       /* 文字水平置中 */
}
.btn-box ul li:first-child {
    /*border-right: 1px solid rgba(34, 34, 34, 0.6);*/
    padding-right: 12px;
}

/* 商品卡左上角優惠標籤 */
.tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}
.tag-bg01 {
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    background-color: #b81c2b;
    color: rgba(255, 255, 255, 1);
    border: 1px solid #b81c2b;
    border-radius: 4px;
    padding: 3px 8px;
}
.tag-bg02 {
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    background-color: rgba(229, 0, 18, 1);
    color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(229, 0, 18, 1);
    border-radius: 4px;
    padding: 3px 8px;
}
.tag-border01 {
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    background-color: rgba(255, 255, 255, 1);
    color: #b81c2b;
    border: 1px solid #b81c2b;
    border-radius: 4px;
    padding: 3px 8px;
}

/* 商品卡圖上已售完遮罩 */
.tag-sold-out {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 34, 34, 0.3);
    color: rgba(255, 255, 255, 1);
    font-size: 40px;
    font-weight: 900;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.tag-sold-out span {
    transform: rotate(-45deg);
    opacity: 0.6;
}
/* 商品卡 櫃位資訊 */
.counter-info {
    font-weight: 500;
    font-size: 16px;
    color: #141414;
    text-decoration: underline;
}
.product-card .original-price {
    color: rgba(34, 34, 34, 1);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 300;
}
.product-card-contents2 {
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    margin-top: -18px;
    margin-left: 20px;
    position: relative;
    z-index: 1;
    width: auto;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media(max-width:743px){
.product-card-contents2 {
	margin-top: -10px;
}
}
@media (min-width: 744px) {
    .article-card-content {
        margin-left: 40px;
    }
}

/* =========== 文章卡樣式 =========== */
.article-card {
    cursor: pointer;
    position: relative;
}
.article-card-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    margin-top: -18px;
    margin-left: 40px;
    position: relative;
    z-index: 1;
    width: auto;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media(max-width:743px){
.article-card-content {
	margin-top: -10px;
}
}
.product-card .new-card-title,
.article-card .new-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 148%;
    margin-left: 0;
}
.product-block .new-card-title::before,
.article-card-content .new-card-title::before {
    display: none;
}
.product-card .new-card-des {
    font-size: 16px;
    font-weight: 300;
    color: rgba(34, 34, 34, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}
.article-card-content .new-card-des {
    display: none;
}
@media (min-width: 744px) {
    .article-card-content .new-card-des {
        display: block;
        font-size: 16px;
        font-weight: 300;
        color: rgba(34, 34, 34, 0.6);
    }
}

/*以下是為了排版之後可刪除*/
.block4-gap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px 24px;
}
.block1-gap ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
}