/**
 * SWP Shop Pro - Frontend Styles
 * @package swp-shop
 * @version 2.0.0
 *
 * NOTE: Wishlist, Compare, QV buttons inherit .swp-readmore-arrow base styles
 * from swp-global.css (40x40, white bg, main-color icon, shadow).
 * This file only adds the colour-state overrides.
 */

/* ============================================================
   WISHLIST BUTTON — state overrides only
   ============================================================ */
.swp-wishlist-btn.swp-in-wishlist,
.swp-wishlist-btn.swp-in-wishlist:hover {
    background: var(--swp-main-color);
    color: #fff;
    border-color: var(--swp-main-color);
}
.swp-wishlist-btn i { transition: all .2s; }

/* ============================================================
   COMPARE BUTTON — default + active (override .swp-readmore-arrow hover)
   ============================================================ */
.swp-readmore-arrow.swp-compare-btn {
    color: var(--swp-main-color);
}
.swp-readmore-arrow.swp-compare-btn:hover {
    background: var(--swp-main-color) !important;
    color: #fff !important;
}
.swp-readmore-arrow.swp-compare-btn.swp-in-compare,
.swp-readmore-arrow.swp-compare-btn.swp-in-compare:hover {
    background: var(--swp-main-color) !important;
    color: #fff !important;
}

/* ============================================================
   QUICK VIEW BUTTON — inherits swp-readmore-arrow fully
   No extra style needed. swp-readmore-arrow handles it.
   ============================================================ */

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.swp-qv-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swp-qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    cursor: pointer;
}
.swp-qv-wrap {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 880px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px;
    z-index: 1;
    animation: swpQvIn .22s ease;
}
@keyframes swpQvIn {
    from { opacity:0; transform:scale(.95); }
    to   { opacity:1; transform:scale(1); }
}
.swp-qv-close-btn {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; color: #334155;
    transition: background .2s;
    z-index: 10;
}
.swp-qv-close-btn:hover { background: #e53e3e; color: #fff; }
.swp-qv-loader { text-align: center; padding: 40px; font-size: 26px; color: var(--swp-main-color); }

.swp-qv-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 640px) {
    .swp-qv-product { grid-template-columns: 1fr; }
    .swp-qv-wrap { padding: 18px; }
}

.swp-qv-main-img { width: 100%; height: auto; display: block; border-radius: 6px; }
.swp-qv-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.swp-qv-thumb {
    width: 58px; height: 58px; object-fit: cover;
    border-radius: 4px; cursor: pointer;
    border: 2px solid transparent; transition: border-color .2s;
}
.swp-qv-thumb:hover, .swp-qv-thumb-active { border-color: var(--swp-main-color); }

.swp-qv-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.swp-qv-title a { color: inherit; text-decoration: none; }
.swp-qv-title a:hover { color: var(--swp-main-color); }
.swp-qv-rating { margin-bottom: 8px; }
.swp-qv-price { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.swp-qv-price ins { color: #e53e3e; text-decoration: none; }
.swp-qv-price del { color: #94a3b8; font-size: 15px; }
.swp-qv-desc {
    font-size: 14px; color: #475569; line-height: 1.7;
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.swp-qv-stock { font-size: 13px; margin-bottom: 5px; }
.swp-in-stock  { color: #16a34a; }
.swp-out-stock { color: #e53e3e; }
.swp-qv-sku, .swp-qv-cats { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.swp-qv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; align-items: center; }
.swp-qv-detail-link {
    display: inline-flex; align-items: center;
    padding: 8px 16px; border-radius: 4px;
    border: 2px solid #1e293b; background: transparent;
    color: #1e293b; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all .2s;
}
.swp-qv-detail-link:hover { background: #1e293b; color: #fff; }
.swp-qv-extra { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
body.swp-qv-open { overflow: hidden; }

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.swp-countdown-wrap {
    margin: 10px 0;
    padding: 8px 10px;
    background: #fff8f5;
    border-radius: 5px;
    border-left: 3px solid var(--swp-main-color);
}
.swp-countdown-label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--swp-main-color); text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 5px;
}
.swp-countdown { display: flex; align-items: center; gap: 4px; }
.swp-cd-unit {
    display: flex; flex-direction: column; align-items: center;
    min-width: 36px; background: #fff;
    border: 1px solid rgba(249, 77, 28, 0.4); border-radius: 4px; padding: 3px 5px;
    box-sizing: border-box;
}
.swp-cd-unit span:first-child { font-size: 17px; font-weight: 700; color: var(--swp-main-color); line-height: 1; }
.swp-cd-text { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; margin-top: 1px; }
.swp-cd-sep { font-size: 16px; font-weight: 700; color: var(--swp-main-color); margin-bottom: 8px; }

/* ============================================================
   COMPARE FLOATING BAR
   ============================================================ */
.swp-compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1e293b; color: #fff;
    z-index: 99998; box-shadow: 0 -3px 16px rgba(0,0,0,.22);
    animation: swpBarUp .3s ease;
}
@keyframes swpBarUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.swp-compare-bar-inner {
    max-width: 1200px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.swp-compare-bar-label { font-size: 13px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.swp-compare-bar-items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.swp-compare-bar-item {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.08); border-radius: 5px; padding: 5px 9px; font-size: 12px;
}
.swp-compare-bar-item img { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
.swp-compare-remove {
    background: none; border: none; color: #f87171;
    cursor: pointer; padding: 0; font-size: 12px; margin-left: 4px;
    transition: color .15s;
}
.swp-compare-remove:hover { color: #fff; }
.swp-compare-bar-actions { display: flex; gap: 8px; align-items: center; }
.swp-btn-compare-view {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 4px; background: var(--swp-main-color); color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: background .2s;
}
.swp-btn-compare-view:hover { background: #ef4819; color: #fff; }
.swp-btn-compare-clear {
    background: transparent; border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.7); border-radius: 4px;
    padding: 8px 14px; font-size: 12px; cursor: pointer; transition: all .2s;
}
.swp-btn-compare-clear:hover { border-color: #f87171; color: #f87171; }

/* ============================================================
   COMPARE PAGE — styled table
   ============================================================ */
.swp-compare-page { padding: 30px 0 60px; }
.swp-compare-page > h2 {
    font-size: 26px; font-weight: 700; margin: 0 0 24px;
    color: #1e293b; padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}
.swp-compare-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 12px rgba(0,0,0,.07);
}
.swp-compare-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px; background: #fff;
    min-width: 600px;
}
/* Header */
.swp-compare-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
.swp-compare-table thead th {
    padding: 18px 20px; font-weight: 700;
    color: #1e293b; font-size: 14px;
    border-right: 1px solid #e2e8f0; text-align: left;
}
.swp-compare-table thead th:first-child { width: 150px; min-width: 120px; }
.swp-compare-table thead th:last-child { border-right: none; }

/* Body rows */
.swp-compare-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.swp-compare-table tbody tr:hover { background: #fafbfc; }
.swp-compare-table tbody tr:last-child { border-bottom: none; }

.swp-compare-table tbody th {
    background: #f8fafc; font-weight: 600;
    color: #475569; padding: 14px 16px;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap; font-size: 13px;
}
.swp-compare-table tbody td {
    padding: 14px 18px; color: #334155;
    border-right: 1px solid #f1f5f9; vertical-align: middle;
}
.swp-compare-table tbody td:last-child,
.swp-compare-table thead th:last-child { border-right: none; }

/* Product image */
.swp-compare-img {
    width: 120px; height: 120px; object-fit: cover;
    display: block; margin: 0 auto;
    border-radius: 6px; border: 1px solid #f1f5f9;
}

/* Price */
.swp-compare-table .price ins { color: #e53e3e; text-decoration: none; font-weight: 700; font-size: 16px; }
.swp-compare-table .price del { color: #94a3b8; font-size: 12px; }

/* Links in table cells (e.g. categories) — match brand primary */
.swp-compare-table tbody td a:not(.button):not(.add_to_cart_button) {
    color: var(--swp-main-color);
}
.swp-compare-table tbody td a:not(.button):not(.add_to_cart_button):hover {
    color: #ef4819;
}
.swp-compare-table tbody td .button,
.swp-compare-table tbody td a.button,
.swp-compare-table tbody td .add_to_cart_button {
    background: var(--swp-main-color) !important;
    color: #fff !important;
}
.swp-compare-table tbody td .button:hover,
.swp-compare-table tbody td a.button:hover,
.swp-compare-table tbody td .add_to_cart_button:hover {
    background: #ef4819 !important;
    color: #fff !important;
}

/* Remove btn in header */
.swp-compare-remove-small {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; font-size: 11px; background: #fee2e2;
    border: none; color: #e53e3e; border-radius: 3px;
    padding: 4px 9px; cursor: pointer; transition: all .15s; font-weight: 600;
}
.swp-compare-remove-small:hover { background: #e53e3e; color: #fff; }

.swp-no-compare { text-align: center; padding: 60px; color: #64748b; font-size: 16px; }

/* ============================================================
   FLASH SALE WIDGET
   ============================================================ */
.swp-flash-sale-wrap { margin-bottom: 30px; }
.swp-flash-section-title { font-size: 24px; font-weight: 700; margin: 0 0 20px; color: #1e293b; }

.swp-flash-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    margin-bottom: 24px; border: 1px solid #f1f5f9;
    transition: box-shadow .25s, transform .25s;
}
.swp-flash-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.swp-flash-card-img { position: relative; overflow: hidden; }
.swp-flash-card-img img {
    width: 100%; height: 210px; object-fit: cover;
    display: block; transition: transform .35s ease;
}
.swp-flash-card:hover .swp-flash-card-img img { transform: scale(1.05); }
.swp-flash-card-overlays {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 4px;
    opacity: 0; transform: translateX(8px); transition: all .22s ease;
}
.swp-flash-card:hover .swp-flash-card-overlays { opacity: 1; transform: translateX(0); }
.swp-flash-card-body { padding: 14px; }
.swp-flash-title { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.swp-flash-title a { color: #1e293b; text-decoration: none; }
.swp-flash-title a:hover { color: var(--swp-main-color); }
.swp-flash-rating { margin-bottom: 5px; }
.swp-flash-price  { margin-bottom: 8px; }
.swp-flash-card-footer { margin-top: 10px; }

/* Add to cart — solid button (global .swp-readmore-arrow is white 40×40; text links need contrast) */
.swp-flash-card-footer .swp-readmore-arrow.swp-readmore-arrow-btn,
.swp-deals-card-footer .swp-readmore-arrow.swp-readmore-arrow-btn,
.swp-flash-card-footer a.button.swp-readmore-arrow.swp-readmore-arrow-btn,
.swp-deals-card-footer a.button.swp-readmore-arrow.swp-readmore-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: auto;
    line-height: 1.35;
    padding: 10px 18px;
    width: auto;
    max-width: 100%;
    background: var(--swp-main-color) !important;
    color: #fff !important;
    border: 1px solid rgba(249, 77, 28, 0.45) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}
.swp-flash-card-footer .swp-readmore-arrow.swp-readmore-arrow-btn:hover,
.swp-deals-card-footer .swp-readmore-arrow.swp-readmore-arrow-btn:hover,
.swp-flash-card-footer a.button.swp-readmore-arrow.swp-readmore-arrow-btn:hover,
.swp-deals-card-footer a.button.swp-readmore-arrow.swp-readmore-arrow-btn:hover {
    background: #ef4819 !important;
    color: #fff !important;
    border-color: #ef4819 !important;
}

/* Overlay icon buttons — visible on any product image */
.swp-flash-card-overlays .swp-readmore-arrow,
.swp-flash-card-overlays .swp-compare-btn,
.swp-flash-card-overlays .swp-wishlist-btn,
.swp-flash-card-overlays .swp-qv-btn,
.swp-deals-card-overlays .swp-readmore-arrow,
.swp-deals-card-overlays .swp-compare-btn,
.swp-deals-card-overlays .swp-wishlist-btn,
.swp-deals-card-overlays .swp-qv-btn {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(249, 77, 28, 0.38);
}

/* ============================================================
   PRODUCT DEALS WIDGET
   ============================================================ */
.swp-deals-wrap { margin-bottom: 30px; width: 100%; max-width: 100%; }
/* Grid is also .swp-row — AJAX must not wrap items in .swp-container (max-width) */
.swp-deals-wrap .swp-deals-grid.swp-row {
    width: 100%;
    max-width: 100%;
}
.swp-deals-section-title { font-size: 24px; font-weight: 700; margin: 0 0 18px; color: #1e293b; }
.swp-deals-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; justify-content: space-between; }
.swp-deals-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.swp-deals-filter-btn {
    padding: 6px 14px; border-radius: 20px; border: 2px solid #e2e8f0;
    background: #fff; color: #475569; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 4px;
}
.swp-deals-filter-btn:hover,
.swp-deals-filter-btn.active { background: var(--swp-main-color); border-color: var(--swp-main-color); color: #fff; }
.swp-deals-sort { padding: 6px 12px; border-radius: 4px; border: 1px solid #e2e8f0; font-size: 13px; color: #334155; background: #fff; cursor: pointer; }
.swp-deals-grid.swp-loading { position: relative; pointer-events: none; min-height: 160px; }
.swp-deals-grid.swp-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.7); border-radius: 6px; z-index: 4; }
.swp-deals-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 24px; color: var(--swp-main-color); z-index: 5; }

.swp-deals-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    margin-bottom: 24px; border: 1px solid #f1f5f9;
    transition: box-shadow .25s, transform .25s;
}
.swp-deals-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.swp-deals-card-img { position: relative; overflow: hidden; }
.swp-deals-card-img img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .35s ease; }
.swp-deals-card:hover .swp-deals-card-img img { transform: scale(1.05); }
.swp-deals-card-overlays { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateX(8px); transition: all .22s; }
.swp-deals-card:hover .swp-deals-card-overlays { opacity: 1; transform: translateX(0); }
.swp-deals-card-body { padding: 14px; }
.swp-deals-title { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.swp-deals-title a { color: #1e293b; text-decoration: none; }
.swp-deals-title a:hover { color: var(--swp-main-color); }
.swp-deals-rating { margin-bottom: 5px; }
.swp-deals-card-footer { margin-top: 10px; }
.swp-load-more-wrap { text-align: center; padding: 22px 0 0; }
.swp-load-more-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 28px; border-radius: 5px; background: var(--swp-main-color); color: #fff;
    font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .22s;
}
.swp-load-more-btn:hover { background: #ef4819; transform: translateY(-2px); }
.swp-load-more-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================================================
   CATEGORY SHOWCASE WIDGET
   ============================================================ */
.swp-cat-showcase { margin-bottom: 30px; }
.swp-cat-section-title { font-size: 24px; font-weight: 700; margin: 0 0 20px; color: #1e293b; }
.swp-cat-card {
    display: block; border-radius: 8px; overflow: hidden;
    text-decoration: none; color: inherit; background: #fff;
    border: 1px solid #f1f5f9; margin-bottom: 20px;
    transition: box-shadow .22s, transform .22s;
}
.swp-cat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); text-decoration: none; color: inherit; }
.swp-cat-img { overflow: hidden; aspect-ratio: 1/1; }
.swp-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .32s; }
.swp-cat-card:hover .swp-cat-img img { transform: scale(1.06); }
.swp-cat-info { padding: 12px 14px; }
.swp-cat-name { font-size: 15px; font-weight: 600; margin: 0 0 3px; color: #1e293b; transition: color .2s; }
.swp-cat-card:hover .swp-cat-name { color: var(--swp-main-color); }
.swp-cat-count { font-size: 12px; color: #94a3b8; display: block; }
.swp-cat-desc { font-size: 12px; color: #64748b; margin: 5px 0 0; line-height: 1.5; }
.swp-cat-style-2 .swp-cat-card { background-size: cover; background-position: center; min-height: 190px; position: relative; display: flex; align-items: flex-end; border: none; }
.swp-cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,.08)); }
.swp-cat-style-2 .swp-cat-info { position: relative; z-index: 1; }
.swp-cat-style-2 .swp-cat-name { color: #fff; }
.swp-cat-style-2 .swp-cat-count { color: rgba(255,255,255,.7); }
.swp-cat-hscroll { overflow-x: auto; padding-bottom: 8px; }
.swp-cat-hscroll::-webkit-scrollbar { height: 4px; }
.swp-cat-hscroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.swp-cat-hscroll-track { display: flex; gap: 12px; width: max-content; }
.swp-cat-hscroll-item { width: 130px; flex-shrink: 0; }
.swp-cat-hscroll-item .swp-cat-card { text-align: center; margin-bottom: 0; }
.swp-cat-hscroll-item .swp-cat-img { aspect-ratio: 1/1; border-radius: 50%; width: 90px; height: 90px; border: 3px solid #e2e8f0; margin: 12px auto 8px; }
.swp-cat-hscroll-item .swp-cat-info { padding: 0 6px 10px; }

/* ============================================================
   BRAND CAROUSEL WIDGET
   ============================================================ */
.swp-brand-carousel-wrap { margin-bottom: 30px; }
.swp-brand-section-title { font-size: 24px; font-weight: 700; margin: 0 0 20px; color: #1e293b; }
.swp-brand-item { padding: 6px; }
.swp-brand-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 14px; border: 1px solid #e2e8f0; border-radius: 7px;
    background: #fff; text-decoration: none; min-height: 75px;
    transition: all .22s;
}
.swp-brand-logo:hover { border-color: var(--swp-main-color); box-shadow: 0 4px 14px rgba(249, 77, 28, 0.15); }
.swp-brand-logo img { max-width: 100%; height: auto; display: block; transition: all .3s; }
.swp-brand-grayscale img { filter: grayscale(100%); }
.swp-brand-grayscale:hover img { filter: grayscale(0%); }
.swp-brand-text { font-size: 14px; font-weight: 600; color: #64748b; }

/* ============================================================
   TOAST NOTIFICATION — bottom-right, with optional link
   ============================================================ */
#swp-shop-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 999997;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    display: none;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    line-height: 1.4;
    animation: swpToastIn .25s ease;
}
@keyframes swpToastIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
#swp-shop-toast.swp-toast-success { border-left: 3px solid #22c55e; }
#swp-shop-toast.swp-toast-error   { border-left: 3px solid #e53e3e; }
#swp-shop-toast.swp-toast-info    { border-left: 3px solid var(--swp-main-color); }

#swp-shop-toast .swp-toast-msg { flex: 1; }

#swp-shop-toast .swp-toast-link {
    display: inline-block;
    margin-left: 6px;
    color: #86efac;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s;
}
#swp-shop-toast .swp-toast-link:hover { color: #fff; }

/* ============================================================
   WISHLIST PAGE — [swp_shop_wishlist] shortcode
   ============================================================ */
.swp-wishlist-page { padding: 20px 0 40px; }
.swp-wishlist-page-title { font-size: 26px; font-weight: 700; margin: 0 0 24px; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 14px; }
.swp-wishlist-empty { text-align: center; padding: 60px 20px; color: #64748b; }
.swp-wishlist-empty i { font-size: 56px; color: #e2e8f0; display: block; margin-bottom: 16px; }
.swp-wishlist-empty p { font-size: 16px; margin-bottom: 20px; }
.swp-wishlist-shop-btn {
    display: inline-block; padding: 10px 24px; background: var(--swp-main-color);
    color: #fff; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background .2s;
}
.swp-wishlist-shop-btn:hover { background: #ef4819; color: #fff; }
.swp-wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.swp-wishlist-item {
    background: #fff; border-radius: 8px; border: 1px solid #f1f5f9;
    overflow: hidden; transition: box-shadow .22s, transform .22s;
}
.swp-wishlist-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.swp-wishlist-item-img { position: relative; overflow: hidden; aspect-ratio: 1/1; }
.swp-wishlist-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.swp-wishlist-item:hover .swp-wishlist-item-img img { transform: scale(1.05); }
.swp-wishlist-remove {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: none; color: #e53e3e;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: all .2s; opacity: 0;
}
.swp-wishlist-item:hover .swp-wishlist-remove { opacity: 1; }
.swp-wishlist-remove:hover { background: #e53e3e; color: #fff; transform: scale(1.1); }
.swp-wishlist-item-info { padding: 14px; }
.swp-wishlist-item-info h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.swp-wishlist-item-info h3 a { color: #1e293b; text-decoration: none; }
.swp-wishlist-item-info h3 a:hover { color: var(--swp-main-color); }
.swp-wishlist-item-price { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.swp-wishlist-item-price ins { color: #e53e3e; text-decoration: none; }
.swp-wishlist-item-price del { color: #94a3b8; font-size: 12px; }
.swp-wishlist-item-rating { margin-bottom: 10px; }
.swp-wishlist-item-actions .button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; background: var(--swp-main-color, #1e293b); color: #fff;
    border-radius: 4px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .2s;
    border: none; cursor: pointer; width: 100%;
}
.swp-wishlist-item-actions .button:hover { background: #ef4819; color: #fff; }

/* ============================================================
   ADMIN — widget toggle switches + PRO badge
   ============================================================ */
.swp-admin-wrap { max-width: 760px; }
.swp-admin-wrap h1 { display: flex; align-items: center; gap: 8px; }
.swp-toggle-switch {
    position: relative; display: inline-block;
    width: 44px; height: 22px; vertical-align: middle; margin-right: 8px;
}
.swp-toggle-switch input { opacity: 0; width: 0; height: 0; }
.swp-toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #cbd5e1; border-radius: 22px; transition: .25s;
}
.swp-toggle-slider:before {
    content: ''; position: absolute;
    width: 16px; height: 16px; background: #fff;
    border-radius: 50%; bottom: 3px; left: 3px; transition: .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.swp-toggle-switch input:checked + .swp-toggle-slider { background: #22c55e; }
.swp-toggle-switch input:checked + .swp-toggle-slider:before { transform: translateX(22px); }
.swp-toggle-label { font-size: 13px; color: #64748b; vertical-align: middle; }
.swp-badge-pro {
    display: inline-block; background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; font-size: 9px; font-weight: 700;
    padding: 2px 5px; border-radius: 3px; letter-spacing: .5px;
    vertical-align: middle; margin-left: 5px; text-transform: uppercase;
}
