/* ===== 加價購商品區塊 ===== */

.addon-section {
    padding: 28px 24px 20px;
    margin: 24px 0;
    position: relative;
}

.addon-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-bottom: 30px;
}

/* 單張商品卡 - 左右排列 */
.addon-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
}

.addon-cover {
    flex-shrink: 0;
    width: 120px;
    display: block;
    text-decoration: none;
}

.addon-cover:hover img {
    opacity: 0.85;
}

.addon-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.2s;
    border: solid 1px #e3e3e3;
}

.addon-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.addon-name {
    font-size: 1.07rem;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.addon-name:hover {
    color: #c00;
    text-decoration: underline;
}

.addon-author {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 價格＋按鈕包裹層，推至底部 */
.addon-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
}

.addon-price-now {
    font-size: 1rem;
    font-weight: bold;
    color: #c00;
}

.addon-price-ori {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
}

.addon-btn {
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    padding: 8px 14px;
    width: fit-content;
    margin-top: 0;
    padding: 10px 15px !important;
}

.addon-btn:hover {
    background: #a00;
    color: #fff;
}

.addon-btn.addon-btn-added {
    background: #ccc;
    color: #333;
    cursor: default;
}

/* Owl nav 箭頭 - 灰底方角 */
.addon-carousel .owl-nav button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #e0e0e0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 36px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.addon-carousel .owl-nav button.owl-prev {
    left: -44px;
}

.addon-carousel .owl-nav button.owl-next {
    right: -44px;
}

.addon-carousel .owl-nav button span,
.addon-carousel .owl-nav button i {
    font-size: 1rem;
    color: #555;
    line-height: 1;
}

.addon-carousel .owl-nav button:hover {
    background: #c8c8c8 !important;
}

.addon-carousel .owl-nav button:hover span,
.addon-carousel .owl-nav button:hover i {
    color: #111;
}

/* Owl dots */
.addon-carousel {
    padding-bottom: 8px;
    position: relative;
}

.addon-carousel .owl-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
}

.addon-carousel .owl-dot {
    display: inline-flex !important;
}

.addon-carousel .owl-dot span {
    display: block !important;
    background: #ccc !important;
    width: 32px !important;
    height: 4px !important;
    border-radius: 2px !important;
    margin: 0 !important;
    transition: background 0.2s !important;
}

.addon-carousel .owl-dot.active span {
    background: #c00 !important;
}

/* ===== RWD - 手機版 ===== */
@media (max-width: 575px) {
    .addon-section {
        padding-left: 52px;
        padding-right: 52px;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .addon-carousel .owl-nav button.owl-prev {
        left: -48px;
    }

    .addon-carousel .owl-nav button.owl-next {
        right: -48px;
    }

    .addon-cover {
        width: 110px;
    }

    .addon-btn {
        padding: 10px 12px !important;
    }
}