/* ==========================================================================
   Pocket Pantry — WPC Smart Wishlist Custom Design
   Matches the site's orange/cream palette, Poppins + Inter fonts.
   ========================================================================== */

/* ── 1. Page wrapper (wishlist page / shortcode) ─────────────────────────── */
.woosw-list-wrapper,
.woosw-page {
    padding: 40px 0 60px;
}

/* ── 2. Wishlist switcher / header row ───────────────────────────────────── */
.woosw-list .woosw-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border-skin, #fce3cb);
    box-shadow: 0 4px 24px rgba(255, 87, 51, 0.06);
}

.woosw-list .woosw-switcher .woosw-name {
    font-family: var(--global-heading-font, 'Poppins', sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woosw-list .woosw-switcher .woosw-name::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--orange, #ff5733);
    border-radius: 3px;
}

/* Wishlist select dropdown */
.woosw-list .woosw-switcher select {
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #444;
    padding: 8px 36px 8px 14px;
    border: 1.5px solid var(--border-skin, #fce3cb);
    border-radius: 10px;
    background: var(--bgcreame, #fef9f3);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff5733' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.woosw-list .woosw-switcher select:focus {
    border-color: var(--orange, #ff5733);
    box-shadow: 0 0 0 3px rgba(255,87,51,.12);
}

/* ── 3. Wishlist table ───────────────────────────────────────────────────── */
.woosw-list table.woosw-items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border-skin, #fce3cb);
    box-shadow: 0 4px 24px rgba(255, 87, 51, 0.06);
    background: #fff;
}

/* Table head (if plugin renders <thead>) */
.woosw-list table.woosw-items thead tr th {
    background: var(--orange, #ff5733);
    color: #fff;
    font-family: var(--global-heading-font, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
}

/* Table body rows */
.woosw-list table.woosw-items tr td {
    vertical-align: middle;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-cream, #f0e6d9);
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 14px;
    color: #444;
    background: #fff;
    transition: background 0.2s;
}

.woosw-list table.woosw-items tr:last-child td {
    border-bottom: none;
}

/* Alternate row */
.woosw-list table.woosw-items tr:nth-child(2n) td {
    background: var(--bgcreame, #fef9f3);
}

/* Hover row highlight */
.woosw-list table.woosw-items tr:hover td {
    background: #fff4f1;
}

/* ── 4. Product image cell ───────────────────────────────────────────────── */
.woosw-list table.woosw-items .woosw-item .woosw-item--image {
    width: 90px;
}

.woosw-list table.woosw-items .woosw-item .woosw-item--image img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border-skin, #fce3cb);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin: 0;
    padding: 0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.woosw-list table.woosw-items .woosw-item .woosw-item--image img:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(255,87,51,.18);
}

/* ── 5. Product name ─────────────────────────────────────────────────────── */
.woosw-list table.woosw-items .woosw-item .woosw-item--name a {
    font-family: var(--global-heading-font, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.woosw-list table.woosw-items .woosw-item .woosw-item--name a:hover {
    color: var(--orange, #ff5733);
}

/* ── 6. Price ────────────────────────────────────────────────────────────── */
.woosw-list table.woosw-items .woosw-item--price .woocommerce-Price-amount,
.woosw-list table.woosw-items .woosw-item--price {
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--orange, #ff5733);
}

.woosw-list table.woosw-items .woosw-item--price del,
.woosw-list table.woosw-items .woosw-item--price del .woocommerce-Price-amount {
    color: #aaa;
    font-weight: 400;
    font-size: 13px;
}

/* ── 7. Stock status ─────────────────────────────────────────────────────── */
.woosw-list table.woosw-items .woosw-item--stock .in-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #22a45d;
    background: #e6f9f0;
    padding: 4px 10px;
    border-radius: 20px;
}

.woosw-list table.woosw-items .woosw-item--stock .out-of-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #e53935;
    background: #ffebee;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── 8. Add to cart button inside wishlist table ─────────────────────────── */
.woosw-list table.woosw-items .woosw-item--atc a.button,
.woosw-list table.woosw-items .woosw-item--atc button.button,
.woosw-list table.woosw-items .woosw-item--atc .add_to_cart_button,
.woosw-list table.woosw-items .woosw-item--atc .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--global-heading-font, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 30px;
    background: var(--orange, #ff5733);
    color: #fff !important;
    border: 2px solid var(--orange, #ff5733);
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255,87,51,0.20);
}

.woosw-list table.woosw-items .woosw-item--atc a.button:hover,
.woosw-list table.woosw-items .woosw-item--atc button.button:hover,
.woosw-list table.woosw-items .woosw-item--atc .add_to_cart_button:hover {
    background: #fff;
    color: var(--orange, #ff5733) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,87,51,0.25);
}

.woosw-list table.woosw-items .woosw-item--atc p,
.woosw-list table.woosw-items .woosw-item--atc .add_to_cart_inline {
    border: none;
    padding: 0;
    margin: 0;
}

/* ── 9. Remove from wishlist button ──────────────────────────────────────── */
.woosw-list table.woosw-items .woosw-item .woosw-item--remove span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff0ee;
    border: 1.5px solid var(--border-skin, #fce3cb);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.woosw-list table.woosw-items .woosw-item .woosw-item--remove span:hover {
    background: var(--orange, #ff5733);
    border-color: var(--orange, #ff5733);
    transform: scale(1.15);
}

.woosw-list table.woosw-items .woosw-item .woosw-item--remove span::before {
    color: var(--orange, #ff5733);
    font-size: 14px;
    transition: color 0.2s;
}

.woosw-list table.woosw-items .woosw-item .woosw-item--remove span:hover::before {
    color: #fff;
}

/* ── 10. Actions bar (below table: share & clear) ────────────────────────── */
.woosw-list .woosw-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--border-skin, #fce3cb);
    box-shadow: 0 2px 12px rgba(255,87,51,.05);
}

/* Share label */
.woosw-list .woosw-share .woosw-share-label {
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 8px;
}

/* Share social icons */
.woosw-list .woosw-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bgcreame, #fef9f3);
    border: 1.5px solid var(--border-skin, #fce3cb);
    color: var(--orange, #ff5733);
    text-decoration: none;
    margin-right: 6px;
    font-size: 16px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.woosw-list .woosw-share a:hover {
    background: var(--orange, #ff5733);
    color: #fff;
    border-color: var(--orange, #ff5733);
    transform: translateY(-2px);
}

/* Copy URL row */
.woosw-list .woosw-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.woosw-list .woosw-copy .woosw-copy-url {
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 13px;
    padding: 8px 14px;
    border: 1.5px solid var(--border-skin, #fce3cb);
    border-radius: 8px;
    background: var(--bgcreame, #fef9f3);
    color: #555;
    outline: none;
    max-width: 240px;
    transition: border-color 0.2s;
}

.woosw-list .woosw-copy .woosw-copy-url:focus {
    border-color: var(--orange, #ff5733);
}

/* Clear wishlist / generic action button */
.woosw-list .woosw-actions button,
.woosw-list .woosw-actions a.button,
.woosw-list .woosw-empty-btn {
    font-family: var(--global-heading-font, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 30px;
    background: transparent;
    color: var(--orange, #ff5733);
    border: 2px solid var(--orange, #ff5733);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.woosw-list .woosw-actions button:hover,
.woosw-list .woosw-actions a.button:hover,
.woosw-list .woosw-empty-btn:hover {
    background: var(--orange, #ff5733);
    color: #fff;
}

/* ── 11. Empty wishlist notice ───────────────────────────────────────────── */
.woosw-list .woosw-items-empty,
.woosw-no-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1.5px dashed var(--border-skin, #fce3cb);
    color: #aaa;
}

.woosw-list .woosw-items-empty::before {
    content: '♡';
    display: block;
    font-size: 56px;
    line-height: 1;
    margin-bottom: 18px;
    color: var(--border-skin, #fce3cb);
}

.woosw-list .woosw-items-empty p {
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 16px;
    color: #999;
    margin: 0 0 20px;
}

/* ── 12. Popup / slide-in panel ─────────────────────────────────────────── */

/* Overlay backdrop */
.woosw-popup {
    background: rgba(26, 26, 26, 0.65) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Panel container */
.woosw-popup .woosw-popup-inner .woosw-popup-content {
    background: var(--bgcreame, #fef9f3) !important;
    border-radius: 18px 0 0 18px;
    box-shadow: -8px 0 40px rgba(255,87,51,.12);
    max-width: 420px !important;
}

/* Panel header bar */
.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top {
    background: var(--orange, #ff5733) !important;
    color: #fff !important;
    font-family: var(--global-heading-font, 'Poppins', sans-serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border-radius: 18px 0 0 0;
    padding: 0 64px 0 22px !important;
}

.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top .woosw-manage,
.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top .woosw-empty {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: underline;
    font-weight: 400 !important;
}

/* Close button */
.woosw-popup .woosw-popup-content-top .woosw-popup-close {
    color: rgba(255,255,255,0.85) !important;
    transition: color 0.2s, background 0.2s;
}

.woosw-popup .woosw-popup-content-top .woosw-popup-close:hover {
    color: #fff !important;
}

/* Panel body */
.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-mid {
    background: #fff !important;
}

/* Popup items */
.woosw-popup .woosw-items .woosw-item .woosw-item-inner {
    border-top: 1px dashed var(--border-cream, #f0e6d9) !important;
    padding: 12px 0;
}

.woosw-popup .woosw-items .woosw-item .woosw-item--image img {
    border-radius: 8px;
    border: 1.5px solid var(--border-skin, #fce3cb);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.woosw-popup .woosw-items .woosw-item .woosw-item--name a {
    font-family: var(--global-heading-font, 'Poppins', sans-serif);
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
}

.woosw-popup .woosw-items .woosw-item .woosw-item--name a:hover {
    color: var(--orange, #ff5733);
}

.woosw-popup .woosw-items .woosw-item .woosw-item--price .woocommerce-Price-amount {
    color: var(--orange, #ff5733);
    font-weight: 700;
}

/* Popup ATC button */
.woosw-popup .woosw-items .woosw-item .woosw-item--atc a.button,
.woosw-popup .woosw-items .woosw-item .woosw-item--atc button {
    background: var(--orange, #ff5733) !important;
    color: #fff !important;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.woosw-popup .woosw-items .woosw-item .woosw-item--atc a.button:hover {
    background: #e04322 !important;
    transform: translateY(-1px);
}

/* Popup footer bar */
.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot {
    background: var(--bgcreame, #fef9f3) !important;
    border-top: 1.5px solid var(--border-skin, #fce3cb);
    border-radius: 0 0 0 18px;
    padding: 16px 22px !important;
}

.woosw-popup .woosw-popup-content-bot .woosw-popup-content-bot-inner a,
.woosw-popup .woosw-popup-content-bot .woosw-popup-content-bot-inner span {
    color: #1a1a1a !important;
    border-bottom: 1px solid var(--border-cream, #f0e6d9) !important;
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.woosw-popup .woosw-popup-content-bot .woosw-popup-content-bot-inner a:hover {
    color: var(--orange, #ff5733) !important;
}

/* Notice inside popup */
.woosw-popup .woosw-popup-content-bot .woosw-notice {
    background: var(--orange, #ff5733) !important;
    font-weight: 600;
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 13px;
}

/* ── 13. Heart / wishlist button on product cards ────────────────────────── */
.woosw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid var(--border-skin, #fce3cb);
    border-radius: 30px;
    padding: 6px 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.woosw-btn:hover,
.woosw-btn.woosw-added {
    background: var(--orange, #ff5733);
    color: #fff !important;
    border-color: var(--orange, #ff5733);
    box-shadow: 0 4px 14px rgba(255,87,51,.28);
    transform: translateY(-1px);
}

.woosw-btn.woosw-added::before {
    color: #fff;
}

/* ── 14. Wishlist link / count badge (nav / header) ──────────────────────── */
.woosw-link .woosw-link-inner:after,
.woosw-menu-item .woosw-menu-item-inner:after {
    background: var(--orange, #ff5733) !important;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    top: -8px;
    right: -8px;
    box-shadow: 0 2px 6px rgba(255,87,51,.35);
}

/* ── 15. Toast notification (notiny) ─────────────────────────────────────── */
.notiny-theme-woosw {
    background: #fff !important;
    border: 1.5px solid var(--border-skin, #fce3cb) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
    padding: 14px 16px !important;
    min-height: 56px;
}

.notiny-theme-woosw .notiny-img img {
    border-radius: 8px;
    border: 1.5px solid var(--border-skin, #fce3cb);
}

.notiny-theme-woosw .notiny-text {
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.5;
}

/* ── 16. "View wishlist" inline link ─────────────────────────────────────── */
.woosw-view-wishlist {
    color: var(--orange, #ff5733) !important;
    font-family: var(--global-body-font-family, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.woosw-view-wishlist:hover {
    color: #e04322 !important;
}

/* ── 17. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .woosw-list .woosw-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .woosw-popup .woosw-popup-inner .woosw-popup-content {
        max-width: 100% !important;
        border-radius: 18px 18px 0 0;
    }

    .woosw-list table.woosw-items .woosw-item .woosw-item--image img {
        width: 56px;
        height: 56px;
    }

    .woosw-list .woosw-switcher {
        flex-direction: column;
        align-items: flex-start;
    }
}
