/*
 * ═══════════════════════════════════════════════════════
 *  DWIJA Diamond — Wishlist Page
 *  Rose Gold Luxury Theme
 *  (aligned with home / cart / checkout / shop / blog / contact)
 * ═══════════════════════════════════════════════════════
 */

:root {
    --wl-rosegold: #B76E79;
    --wl-rosegold-light: #D4A0A7;
    --wl-rosegold-bright: #C9858E;
    --wl-rosegold-deep: #8E5158;
    --wl-rosegold-pale: #E8C4C9;
    --wl-cream: #FFF8F4;
    --wl-pearl: #FFFAF7;
    --wl-ivory: #FDF5EF;
    --wl-rose-mist: #F9EDEA;
    --wl-champagne: #F5E0DA;
    --wl-charcoal: #2D2424;
    --wl-ink: #3A2E2E;
    --wl-text: #4A3C3C;
    --wl-muted: #8A7A7A;
    --wl-text-muted: #A09090;
    --wl-white: #FFFFFF;
    --wl-line: #EBD8D0;
    --wl-line-light: #F2E6E0;
    --wl-radius: 16px;
    --wl-radius-sm: 12px;
    --wl-radius-pill: 999px;
    --wl-shadow-sm: 0 2px 12px rgba(45, 36, 36, 0.04);
    --wl-shadow: 0 8px 30px rgba(45, 36, 36, 0.07);
    --wl-shadow-glow: 0 8px 40px rgba(183, 110, 121, 0.10);
    --wl-shadow-hover: 0 16px 44px rgba(183, 110, 121, 0.16);
    --wl-success: #1E8449;
    --wl-danger: #C0392B;
}

/* ── Hero ── */
.wishlist-hero.breadcrumb-area {
    min-height: 420px !important;
    background: var(--wl-rosegold) !important;
    overflow: hidden;
}

.wishlist-hero__bg {
    background-image: url("../images/breadcrumb/1.jpg");
    background-position: center 42%;
}

.wishlist-hero .shop-hero__overlay {
    background:
        linear-gradient(90deg, rgba(142, 81, 88, 0.9) 0%, rgba(142, 81, 88, 0.58) 48%, rgba(142, 81, 88, 0.16) 100%),
        linear-gradient(0deg, rgba(183, 110, 121, 0.24), rgba(183, 110, 121, 0));
}

.wishlist-hero .shop-hero__inner {
    max-width: 780px;
    padding-top: 92px;
    padding-bottom: 82px;
    text-align: left;
    align-items: flex-start;
}

.wishlist-hero .shop-hero__accent {
    background: linear-gradient(90deg, var(--wl-rosegold), rgba(232, 196, 201, 0));
}

.wishlist-hero .shop-hero__tag {
    color: var(--wl-rosegold-pale);
    letter-spacing: 0.18em;
}

.wishlist-hero .shop-hero__title {
    color: #ffffff;
    font-size: clamp(36px, 4.8vw, 66px);
    letter-spacing: 0;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.wishlist-hero .shop-hero__crumbs ol {
    justify-content: flex-start;
}

.wishlist-hero .shop-hero__crumbs li a:hover {
    color: var(--wl-rosegold-pale) !important;
}

/* ── Shell ── */
.wishlist-shell {
    padding: 82px 0 96px;
    background: linear-gradient(180deg, var(--wl-pearl) 0%, var(--wl-cream) 50%, var(--wl-pearl) 100%);
}

/* ═══════════════════════════════════════════════════════
   WISHLIST TABLE (styled as a premium card)
   ═══════════════════════════════════════════════════════ */

.wishlist-card {
    overflow: hidden;
    border: 1px solid var(--wl-line);
    border-radius: var(--wl-radius);
    background: var(--wl-white);
    box-shadow: var(--wl-shadow), var(--wl-shadow-glow);
}

.wishlist-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.wishlist-table thead {
    background: var(--wl-rose-mist);
}

.wishlist-table thead th {
    padding: 20px 22px;
    border: 0;
    border-bottom: 1px solid var(--wl-line);
    color: var(--wl-rosegold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
}

.wishlist-table tbody td {
    padding: 22px;
    border: 0;
    border-bottom: 1px solid var(--wl-line-light);
    background: transparent;
    color: var(--wl-text);
    vertical-align: middle;
}

.wishlist-table-body tr {
    transition: background-color 0.3s ease;
}

.wishlist-table-body tr:hover {
    background-color: var(--wl-rose-mist);
}

.wishlist-table-body tr:last-child td {
    border-bottom: 0;
}

/* ── Remove ── */
.wishlist-table .hiraola-product_remove {
    width: 70px;
    text-align: center;
}

.wishlist-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--wl-line);
    border-radius: 50%;
    background: var(--wl-white);
    color: var(--wl-text-muted);
    font-size: 15px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-remove-btn:hover {
    border-color: var(--wl-rosegold-deep);
    background: rgba(142, 81, 88, 0.08);
    color: var(--wl-rosegold-deep);
    transform: rotate(90deg);
}

/* ── Thumbnail ── */
.wishlist-table .hiraola-product-thumbnail {
    width: 130px;
}

.wishlist-thumb {
    position: relative;
    display: block;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid var(--wl-line);
    border-radius: var(--wl-radius-sm);
    background: linear-gradient(145deg, #FEF5F2, var(--wl-cream));
}

.wishlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wishlist-table-body tr:hover .wishlist-thumb img {
    transform: scale(1.08);
}

.wishlist-sale_badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: var(--wl-radius-pill);
    background: var(--wl-rosegold);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 10px rgba(183, 110, 121, 0.3);
}

/* ── Product name ── */
.wishlist-product_name {
    display: inline-block;
    max-width: 320px;
    color: var(--wl-charcoal);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.wishlist-product_name:hover {
    color: var(--wl-rosegold);
}

/* ── Price ── */
.wishlist-table .hiraola-product-price .amount {
    color: var(--wl-rosegold-deep);
    font-size: 17px;
    font-weight: 700;
}

.wishlist-table .hiraola-product-price .old-price {
    display: inline-block;
    margin-left: 8px;
    color: var(--wl-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: line-through;
}

/* ── Stock status ── */
.wishlist-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--wl-radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.wishlist-stock.in-stock {
    border: 1px solid rgba(30, 132, 73, 0.24);
    background: rgba(30, 132, 73, 0.08);
    color: var(--wl-success);
}

.wishlist-stock.out-stock {
    border: 1px solid rgba(192, 57, 43, 0.22);
    background: rgba(192, 57, 43, 0.07);
    color: var(--wl-danger);
}

/* ── Action buttons ── */
.wishlist-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wishlist-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid var(--wl-rosegold);
    border-radius: var(--wl-radius-pill);
    background: var(--wl-rosegold);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(183, 110, 121, 0.22);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wishlist-btn-cart:hover {
    border-color: var(--wl-rosegold-deep);
    background: var(--wl-rosegold-deep);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(183, 110, 121, 0.3);
}

.wishlist-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--wl-line);
    border-radius: var(--wl-radius-pill);
    background: var(--wl-white);
    color: var(--wl-rosegold-deep) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wishlist-btn-view:hover {
    border-color: var(--wl-rosegold);
    background: var(--wl-rose-mist);
    color: var(--wl-rosegold-deep) !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */

.wishlist-empty-state {
    padding: 96px 24px;
    text-align: center;
}

.wishlist-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin-bottom: 34px;
    border: 1px solid var(--wl-rosegold-pale);
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF5F2 0%, var(--wl-champagne) 100%);
    color: var(--wl-rosegold);
    font-size: 66px;
    box-shadow: var(--wl-shadow-glow);
}

.wishlist-empty-title {
    margin-bottom: 16px;
    color: var(--wl-charcoal);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.wishlist-empty-text {
    max-width: 540px;
    margin: 0 auto 40px;
    color: var(--wl-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
}

.wishlist-shop-btn {
    display: inline-block;
    padding: 16px 46px;
    border: 1px solid var(--wl-rosegold);
    border-radius: var(--wl-radius-pill);
    background: var(--wl-rosegold);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(183, 110, 121, 0.24);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wishlist-shop-btn:hover {
    background: var(--wl-rosegold-deep);
    border-color: var(--wl-rosegold-deep);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(183, 110, 121, 0.3);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .wishlist-hero .shop-hero__inner {
        padding-top: 72px;
    }

    .wishlist-product_name {
        max-width: 220px;
    }
}

@media (max-width: 991px) {
    .wishlist-hero.breadcrumb-area {
        min-height: 340px !important;
    }

    .wishlist-shell {
        padding: 62px 0 72px;
    }

    .wishlist-table thead th,
    .wishlist-table tbody td {
        padding: 18px 16px;
    }

    .wishlist-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wishlist-btn-cart,
    .wishlist-btn-view {
        justify-content: center;
    }
}

/* ── Tablet / mobile: stack each row into a card ── */
@media (max-width: 767px) {
    .wishlist-hero.breadcrumb-area {
        min-height: 300px !important;
    }

    .wishlist-hero .shop-hero__inner {
        padding: 54px 0 48px;
    }

    .wishlist-hero .shop-hero__title {
        font-size: 30px;
    }

    .wishlist-shell {
        padding: 48px 0 58px;
    }

    .wishlist-card {
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .wishlist-table,
    .wishlist-table tbody,
    .wishlist-table-body tr,
    .wishlist-table td {
        display: block;
        width: 100%;
    }

    .wishlist-table thead {
        display: none;
    }

    .wishlist-table-body tr {
        margin-bottom: 20px;
        padding: 20px;
        border: 1px solid var(--wl-line);
        border-radius: var(--wl-radius);
        background: var(--wl-white);
        box-shadow: var(--wl-shadow), var(--wl-shadow-glow);
    }

    .wishlist-table-body tr:hover {
        background: var(--wl-white);
    }

    .wishlist-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
        border-bottom: 1px solid var(--wl-line-light);
        text-align: right;
    }

    .wishlist-table tbody td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .wishlist-table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--wl-text-light, var(--wl-muted));
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: left;
    }

    .wishlist-table .hiraola-product_remove,
    .wishlist-table .hiraola-product-thumbnail {
        width: auto;
    }

    .wishlist-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .wishlist-product_name {
        max-width: none;
        text-align: right;
    }

    .wishlist-empty-state {
        padding: 60px 16px;
    }

    .wishlist-empty-icon {
        width: 116px;
        height: 116px;
        font-size: 50px;
        margin-bottom: 26px;
    }
}

@media (max-width: 575px) {
    .wishlist-hero.breadcrumb-area {
        min-height: 260px !important;
    }

    .wishlist-hero .shop-hero__title {
        font-size: 25px;
    }

    .wishlist-table-body tr {
        padding: 16px;
    }

    .wishlist-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wishlist-btn-cart,
    .wishlist-btn-view {
        justify-content: center;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   BASE-THEME OVERRIDES  (beat style.css `.table-content table …`)
   Higher specificity via `.wishlist-shell` ancestor + td scoping.
   ═══════════════════════════════════════════════════════ */

/* Kill the legacy grid borders / centering / grey chrome on the table */
.wishlist-shell .table-content table.wishlist-table {
    border: 0;
    text-align: left;
    background: transparent;
}

.wishlist-shell .table-content table.wishlist-table th,
.wishlist-shell .table-content table.wishlist-table td {
    border-right: 0;
    text-align: left;
    text-transform: none;
    font-size: inherit;
}

.wishlist-shell .table-content table.wishlist-table thead th {
    border-bottom: 1px solid var(--wl-line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Remove/stock/price legacy colours & sizes */
.wishlist-shell .table-content table td.hiraola-product_remove {
    font-size: inherit;
    text-align: center;
}

.wishlist-shell .table-content table td.hiraola-product_remove > a:hover i {
    color: var(--wl-rosegold-deep);
}

.wishlist-shell .table-content table td.hiraola-product-price {
    font-size: inherit;
    font-weight: 400;
}

.wishlist-shell .table-content table td.hiraola-product-stock-status span.in-stock {
    color: var(--wl-success);
    font-size: 12px;
    text-transform: none;
}

.wishlist-shell .table-content table td.hiraola-product-stock-status span.out-stock {
    color: var(--wl-danger);
    font-size: 12px;
    text-transform: none;
}

/* ── Action buttons — fixed sizing, no clipping, consistent rose-gold hover ── */
.wishlist-shell .table-content table td.hiraola-cart_btn a.wishlist-btn-cart,
.wishlist-shell .table-content table td.hiraola-cart_btn a.wishlist-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    height: auto;
    line-height: normal;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wishlist-shell .table-content table td.hiraola-cart_btn a.wishlist-btn-cart {
    background: var(--wl-rosegold);
    color: #ffffff;
}

.wishlist-shell .table-content table td.hiraola-cart_btn a.wishlist-btn-cart:hover {
    background: var(--wl-rosegold-deep);
    color: #ffffff !important;
}

.wishlist-shell .table-content table td.hiraola-cart_btn a.wishlist-btn-view {
    background: var(--wl-white);
    color: var(--wl-rosegold-deep);
}

.wishlist-shell .table-content table td.hiraola-cart_btn a.wishlist-btn-view:hover {
    background: var(--wl-rose-mist);
    color: var(--wl-rosegold-deep) !important;
}

/* Restore mobile stacking (base sets td:nth-child(3){width:180px}) */
@media (max-width: 767px) {
    .wishlist-shell .table-content table.wishlist-table td,
    .wishlist-shell .table-content table.wishlist-table td:nth-child(3) {
        display: flex;
        width: 100%;
        padding: 10px 0;
    }

    .wishlist-shell .table-content table.wishlist-table td:last-child {
        padding-bottom: 0;
    }
}
