/* =============================
   YITH - Product Add-ons & Extra Options
   ============================= */
body.postid-30655 form.cart .button + .button {
    margin: 0 10px;
}
.addon-header {
    display: none !important;
}
/* ĐỔI STYLE IMAGE PHỤ KIỆN ===== */
.yith-wapo-addon:not(.yith-wapo-addon-type-label) .yith-wapo-option .image img {
    max-width: 40%;
    max-height: 200px;
}
/* STYLE BẢNG TỔNG TIỀN YITH – SELLAZ ===== */
#wapo-total-price-table {
    border-radius: 10px;
    margin: 0px 0 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
#wapo-total-price-table table {
  margin-bottom: 0px;
  line-height: 23px;
}
#wapo-total-price-table table th {
    text-align: left;
    font-weight: 500;
    font-size: 16px;
    color: #1A1A1A;
    padding: 6px 0;
}

#wapo-total-price-table table td {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    padding: 6px;
}

#wapo-total-price-table .wapo-total-order td {
    font-size: 16px;
}

#wapo-total-price-table .wapo-total-order th {
    font-weight: 700;
}
/* Nếu có border ở td/th thì xóa luôn */
#wapo-total-price-table table.all th,
#wapo-total-price-table table.all td {
    border: none !important;
}

/* Ẩn YITH Add-ons CHỈ trong sticky add to cart của Woodmart */
.wd-sticky-btn-shown #yith-wapo-container {
    display: none !important;
}

/* ============================================================
    CSS NÚT SHARE LINK 
============================================================ */
.variant-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
    border: 1px solid #e0e0e0;
}

.variant-share:hover {
    background: #e9f7ef;
    color: #1a9f49;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26,159,73,0.15);
}

.variant-share:active {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Tooltip mặc định (ẩn) */
.variant-share .share-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

/* Hiển thị tooltip khi copied */
.variant-share.copied .share-tooltip {
    opacity: 1;
    visibility: visible;
}

.variant-share i {
    font-size: 14px;
    transition: color 0.25s ease;
}

.variant-share .share-text {
    transition: color 0.25s ease;
}

/* ============================================================
    TOGGLE XEM THÊM... - PRODUCT PAGES
============================================================ */
.semantic-expand {
    max-width: 100%;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.semantic-content {
    max-height: 110px; /* Hiển thị khoảng 3 dòng */
    overflow: hidden;
    transition: max-height .3s ease;
    position: relative;
}

/* Hiệu ứng fade cuối đoạn */
.semantic-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    transition: opacity .3s ease;
}

/* Khi mở rộng – bỏ mờ */
.semantic-expand.active .semantic-content {
    max-height: 2000px; /* đủ lớn */
}

.semantic-expand.active .semantic-content::after {
    opacity: 0;
}

.semantic-toggle {
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 24px;
    background: #f3f4f6;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

/* Hover hiệu ứng Material UI */
.semantic-toggle:hover {
    background: #e4e7eb;
    transform: translateY(-1px);
}

/* Active – giống nút bấm */
.semantic-expand.active .semantic-toggle {
    background: #1a9f49;
    color: #fff;
}

