/* ==========================================================================
   EC-CUBE Plugin CubeWishlist - Stylesheet
   100% Theme Agnostic - Zero Font Awesome / Theme Dependency
   ========================================================================== */

/* Base SVG Icon System */
.plg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
}

.plg-icon-spin {
    animation: plgSpin 0.8s linear infinite;
}

@keyframes plgSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Dual-SVG Heart Icon (Outline + Fill controlled by .active) */
.plg-heart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.plg-heart-icon .plg-heart-fill {
    display: none;
    color: #e53e3e;
    fill: #e53e3e;
}

.plg-heart-icon .plg-heart-outline {
    display: inline-block;
    color: inherit;
}

.plg-wishlist-card-btn.active .plg-heart-icon .plg-heart-fill,
.plg-wishlist-btn-detail.active .plg-heart-icon .plg-heart-fill,
.active .plg-heart-icon .plg-heart-fill,
.active>.plg-heart-icon .plg-heart-fill,
.plg-heart-icon.active .plg-heart-fill {
    display: inline-block;
    animation: plgHeartBeat 0.35s ease;
}

.plg-wishlist-card-btn.active .plg-heart-icon .plg-heart-outline,
.plg-wishlist-btn-detail.active .plg-heart-icon .plg-heart-outline,
.active .plg-heart-icon .plg-heart-outline,
.active>.plg-heart-icon .plg-heart-outline,
.plg-heart-icon.active .plg-heart-outline {
    display: none;
}

/* 1. Header Wishlist Nav Item */
.plg-wishlist-header-item {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.plg-wishlist-header-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.plg-wishlist-header-link:hover {
    color: #e53e3e;
}

.plg-wishlist-header-icon-wrap {
    position: relative;
    font-size: 20px;
    color: #e53e3e;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plg-wishlist-header-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.plg-wishlist-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e53e3e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(229, 62, 62, 0.4);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plg-wishlist-badge.plg-badge-pulse {
    transform: scale(1.35);
}

/* 2. Product Detail Heart Button & Default Favorite Suppression */
/* Cleanly suppress EC-CUBE Default Favorite Elements across all themes */
form[action*="product_add_favorite"],
#favorite,
button#favorite,
.ec-favoriteBtn,
.ec-blockBtn--cancel#favorite,
.ec-productRole__btn:has(#favorite),
.ec-navlistRole__navlist li:has(a[href*="/mypage/favorite"]),
.ec-navlistRole__navlist li:has(a[href*="favorite"]),
.ec-headerNav__item:has(a[href*="favorite"]),
.ec-headerNav__item:has(a[href*="/mypage/favorite"]),
.ec-headerNav a[href*="favorite"],
.ec-headerNav a[href*="/mypage/favorite"],
[class*="headerNav"] a[href*="favorite"] {
    display: none;
}

/* Ensure detail button is strictly hidden on catalog shelf / cards */
.ec-shelfGrid .plg-wishlist-detail-action,
.ec-shelfGrid__item .plg-wishlist-detail-action,
.product-card .plg-wishlist-detail-action,
.c-catalog__item .plg-wishlist-detail-action,
[class*="shelf"] .plg-wishlist-detail-action,
[class*="catalog"] .plg-wishlist-detail-action {
    display: none;
}

/* Ensure card heart buttons are strictly hidden on Cart, Checkout, and Mypage History tables */
table .plg-wishlist-card-btn,
form[action*="/cart"] .plg-wishlist-card-btn,
form[action*="/shopping"] .plg-wishlist-card-btn,
.ec-cartRole .plg-wishlist-card-btn,
.ec-cartTable .plg-wishlist-card-btn,
.ec-cartRow .plg-wishlist-card-btn,
.ec-orderRole .plg-wishlist-card-btn,
.ec-shoppingRole .plg-wishlist-card-btn,
.ec-historyRole .plg-wishlist-card-btn,
[class*="cartRole"] .plg-wishlist-card-btn,
[class*="cartTable"] .plg-wishlist-card-btn,
[class*="cartRow"] .plg-wishlist-card-btn,
[class*="shoppingRole"] .plg-wishlist-card-btn,
[class*="historyRole"] .plg-wishlist-card-btn,
.plg-wishlist-container .plg-wishlist-card-btn,
.plg-wishlist-page .plg-wishlist-card-btn {
    display: none;
}

.plg-wishlist-detail-action {
    margin-top: 12px;
    margin-bottom: 18px;
    width: 100%;
}

.plg-wishlist-btn-detail {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.plg-wishlist-btn-detail svg {
    width: 19px;
    height: 19px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.plg-wishlist-btn-detail .plg-heart-outline {
    color: #64748b;
}

/* Inactive Hover */
.plg-wishlist-btn-detail:hover {
    border-color: #f43f5e;
    color: #e11d48;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.14);
    transform: translateY(-1px);
}

.plg-wishlist-btn-detail:hover .plg-heart-outline {
    color: #e11d48;
}

.plg-wishlist-btn-detail:hover .plg-heart-icon {
    transform: scale(1.18);
}

/* Inactive Press */
.plg-wishlist-btn-detail:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Active State (お気に入り登録済み) */
.plg-wishlist-btn-detail.active {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fb7185;
    color: #be123c;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.16);
}

.plg-wishlist-btn-detail.active:hover {
    border-color: #e11d48;
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
    color: #9f1239;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22);
    transform: translateY(-1px);
}

.plg-wishlist-btn-detail.active:active {
    transform: translateY(0) scale(0.985);
}

.plg-wishlist-btn-detail.active .plg-heart-fill {
    color: #e11d48;
    fill: #e11d48;
    filter: drop-shadow(0 1px 2px rgba(225, 29, 72, 0.35));
}

/* 3. Product List Card Heart Icon (Floating) */
.ec-shelfGrid__item {
    position: relative;
}

.plg-wishlist-card-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: #64748b;
    font-size: 16px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.plg-wishlist-card-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plg-wishlist-card-btn:hover {
    transform: scale(1.12);
    background: #ffffff;
    border-color: #fca5a5;
    color: #e11d48;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.24);
}

.plg-wishlist-card-btn.active {
    background: #ffffff;
    border-color: #fecdd3;
    color: #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}

@keyframes plgHeartBeat {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* 4. MyPage & Guest Wishlist Page Container (100% Theme Agnostic) */
.plg-wishlist-page {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.plg-wishlist-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 20px 48px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color: #1e293b;
    line-height: 1.5;
}

.plg-wishlist-page *,
.plg-wishlist-page *::before,
.plg-wishlist-page *::after,
.plg-wishlist-container *,
.plg-wishlist-container *::before,
.plg-wishlist-container *::after,
.plg-modal-dialog *,
.plg-modal-dialog *::before,
.plg-modal-dialog *::after {
    box-sizing: border-box;
}

/* Standalone Page Header */
.plg-wishlist-page-header {
    margin: 16px 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.plg-wishlist-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

/* Form resets for item action forms */
.plg-item-delete-form,
.plg-item-cart-form,
.plg-cart-all-form {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: inline-block;
}

.plg-item-cart-form {
    width: 100%;
    display: block;
}

.plg-item-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.plg-guest-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.plg-guest-notice-icon {
    font-size: 24px;
    color: #0284c7;
}

.plg-guest-notice-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0369a1;
}

.plg-guest-notice-content p {
    margin: 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.plg-notice-link {
    color: #0284c7;
    text-decoration: underline;
}

.plg-wishlist-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.plg-wishlist-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    color: #1e293b;
}

.plg-wishlist-count-label {
    font-size: 15px;
    color: #64748b;
    margin-left: 8px;
}

.plg-wishlist-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plg-cart-all-form {
    margin: 0;
    display: inline-block;
}

.plg-btn-cart-all {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.plg-btn-cart-all:hover {
    background: #059669;
}

.plg-btn-cart-all:active {
    transform: scale(0.98);
}

.plg-share-modal-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.plg-share-modal-btn:hover {
    background: #2563eb;
}

/* 5. Wishlist Grid Cards */
.plg-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.plg-wishlist-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plg-wishlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.plg-wishlist-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.plg-wishlist-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plg-card-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s;
}

.plg-card-delete-btn:hover {
    background: #e53e3e;
}

.plg-wishlist-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plg-wishlist-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.plg-wishlist-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.plg-wishlist-card-title a:hover {
    color: #3b82f6;
}

.plg-wishlist-card-variant {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
}

.plg-wishlist-card-price {
    margin-top: auto;
    margin-bottom: 12px;
}

.plg-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #e53e3e;
}

.plg-stock-out {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.plg-price-drop-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.plg-price-drop-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    animation: plgPulse 2.5s infinite ease-in-out;
}

.plg-price-old {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

@keyframes plgPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

/* Item Note / Memo */
.plg-item-note-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 12px;
}

.plg-item-note-display {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.plg-item-note-label {
    font-weight: 700;
    color: #d97706;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.plg-item-note-text {
    flex: 1;
    word-break: break-all;
    line-height: 1.4;
}

.plg-note-edit-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    font-size: 12px;
    transition: color 0.2s ease;
}

.plg-note-edit-btn:hover {
    color: #2563eb;
}

.plg-note-toggle-add-btn {
    background: none;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.plg-note-toggle-add-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #94a3b8;
}

.plg-item-note-edit {
    margin-top: 6px;
}

.plg-note-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    color: #1e293b;
    resize: vertical;
    min-height: 50px;
    box-sizing: border-box;
    font-family: inherit;
}

.plg-note-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.plg-note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 5px;
}

.plg-note-save-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.plg-note-save-btn:hover {
    background: #2563eb;
}

.plg-note-cancel-btn {
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.plg-note-cancel-btn:hover {
    background: #cbd5e1;
}

.plg-shared-item-note {
    margin-top: 8px;
    padding: 6px 10px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 6px;
    font-size: 12px;
    color: #713f12;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
}

.plg-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #e53e3e;
    border: 1px solid #e53e3e;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.plg-btn-cart:hover:not(:disabled) {
    background: #c53030;
    border-color: #c53030;
    color: #ffffff;
}

.plg-btn-cart:disabled,
.plg-btn-cart.disabled {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.plg-stockout-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.plg-btn-restock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.plg-btn-restock:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.plg-btn-restock.active {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.plg-btn-restock.active:hover {
    background: #d1fae5;
}

/* 6. Empty State */
.plg-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    margin: 20px 0;
}

.plg-empty-icon {
    margin-bottom: 20px;
}

.plg-empty-icon svg {
    width: 56px;
    height: 56px;
    color: #cbd5e1;
}

.plg-wishlist-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.plg-wishlist-empty p {
    color: #64748b;
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 25px;
}

.plg-empty-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #e53e3e;
    border: 1px solid #e53e3e;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 250px;
    box-sizing: border-box;
}

.plg-empty-shop-btn:hover {
    background: #c53030;
    border-color: #c53030;
    color: #ffffff;
}

/* 7. Share Modal & Social Styling */
.plg-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.plg-modal-backdrop.active {
    display: flex;
}

.plg-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: plgModalFadeIn 0.25s ease;
}

@keyframes plgModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.plg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.plg-modal-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.plg-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plg-modal-close * {
    pointer-events: none;
}

.plg-modal-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.plg-modal-body {
    padding: 24px;
}

.plg-share-status-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
}

/* Switch Toggle */
.plg-switch-wrap {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.plg-switch-wrap input {
    opacity: 0;
    width: 0;
    height: 0;
}

.plg-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.plg-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plg-switch-wrap input:checked+.plg-switch-slider {
    background-color: #3b82f6;
}

.plg-switch-wrap input:checked+.plg-switch-slider:before {
    transform: translateX(22px);
}

.plg-input-copy-group {
    display: flex;
    margin-top: 8px;
}

.plg-share-input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    background: #f8fafc;
    color: #475569;
}

.plg-copy-btn {
    padding: 10px 18px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.plg-copy-btn:hover {
    background: #2563eb;
}

.plg-copy-feedback {
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.plg-social-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.plg-social-btn {
    flex: 1;
    min-width: 100px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.plg-social-btn:hover {
    opacity: 0.9;
}

.plg-btn-fb {
    background: #1877f2;
}

.plg-btn-line {
    background: #06c755;
}

.plg-btn-line:hover {
    background: #05b04c;
}

.plg-btn-twitter {
    background: #000000;
}

.plg-btn-native {
    background: #64748b;
    border: none;
    cursor: pointer;
}

.plg-qr-code-img {
    border: 4px solid #f1f5f9;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

/* 8. Shared View Page Hero */
.plg-shared-hero {
    text-align: center;
    padding: 35px 20px 25px;
    background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 100%);
    border-radius: 16px;
    margin-bottom: 25px;
}

.plg-shared-hero-badge {
    display: inline-block;
    background: #f43f5e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plg-shared-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}

.plg-shared-hero-meta {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.plg-shared-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.plg-shared-toolbar-left {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

/* 9. Floating Toast Notification */
.plg-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 500;
    animation: plgToastSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.3s ease;
}

.plg-toast-icon {
    font-size: 18px;
    color: #f43f5e;
}

@keyframes plgToastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .plg-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .plg-wishlist-card-body {
        padding: 10px;
    }

    .plg-wishlist-card-title {
        font-size: 12px;
        height: 34px;
    }

    .plg-price-current {
        font-size: 13px;
    }

    .plg-btn-cart {
        padding: 6px;
        font-size: 11px;
    }

    .plg-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        justify-content: center;
    }
}

/* 10. Theme-Agnostic Support & Floating Wishlist Widget */
.plg-product-card-relative {
    position: relative;
}

.plg-wishlist-page button,
.plg-wishlist-container button,
.plg-modal-dialog button,
.plg-wishlist-card-btn,
.plg-wishlist-btn-detail {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.plg-mypage-nav-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plg-mypage-nav-item.active a,
.plg-mypage-nav-item.is-active a {
    font-weight: 700;
}

.plg-floating-wishlist {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
}

.plg-floating-wishlist-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #ffffff;
    color: #e53e3e;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #fed7d7;
    font-size: 22px;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plg-floating-wishlist-link:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
    color: #c53030;
    background: #fff5f5;
}

.plg-floating-wishlist-link .plg-wishlist-badge {
    top: -4px;
    right: -4px;
}

/* 11. Utility Classes (Zero Inline CSS) */
.plg-d-none {
    display: none;
}

.plg-d-block {
    display: block;
}

.plg-d-flex {
    display: flex;
}

.plg-mt-1 {
    margin-top: 5px;
}

.plg-mt-2 {
    margin-top: 10px;
}

.plg-mt-3 {
    margin-top: 20px;
}

.plg-mt-4 {
    margin-top: 30px;
}

.plg-mb-0 {
    margin-bottom: 0;
}

.plg-mb-1 {
    margin-bottom: 5px;
}

.plg-mb-2 {
    margin-bottom: 10px;
}

.plg-mb-3 {
    margin-bottom: 16px;
}

.plg-m-0 {
    margin: 0;
}

.plg-w-100 {
    width: 100%;
}

.plg-font-12 {
    font-size: 12px;
}

.plg-font-13 {
    font-size: 13px;
}

.plg-font-14 {
    font-size: 14px;
}

.plg-font-600 {
    font-weight: 600;
}

.plg-text-center {
    text-align: center;
}

.plg-text-muted-dark {
    color: #666666;
}

.plg-icon-locked {
    color: #cbd5e1;
}

.plg-icon-heart-nav {
    margin-right: 6px;
    color: #e53e3e;
}

.plg-form-helper {
    margin-top: -10px;
    margin-left: 25%;
}

.plg-col-w80 {
    width: 80px;
}

.plg-col-w100 {
    width: 100px;
}

.plg-col-w120 {
    width: 120px;
}

.plg-col-w150 {
    width: 150px;
}

.plg-col-w180 {
    width: 180px;
}

.plg-modal-backdrop.active {
    display: flex;
}

.plg-text-danger {
    color: #ef4444;
}

.plg-text-primary {
    color: #2563eb;
}

.plg-text-warning {
    color: #f59e0b;
}

.plg-text-success {
    color: #10b981;
}

.plg-text-muted {
    color: #64748b;
}
