/* ==========================================================================
   Sanmarg Prakashan - Wishlist Page Modern Stylesheet (White Transparent Canvas)
   ========================================================================== */

:root {
    --wish-crimson: #b42231;
    --wish-crimson-hover: #961b28;
    --wish-crimson-soft: rgba(180, 34, 49, 0.08);
    --wish-ink: #1c1514;
    --wish-ink-light: #2d2422;
    --wish-muted: #6e6462;
    --wish-border: #ede4db;
    --wish-border-soft: #f4ede6;
    --wish-bg-card: #ffffff;
    --wish-bg-warm: #fcfaf7;
}

/* ==========================================================================
   1. Main Wishlist Section (White Transparent Canvas)
   ========================================================================== */
.sanmarg-wishlist-section {
    padding: calc(40 * 100vw / 1705) 0 calc(80 * 100vw / 1705);
    background: #ffffff;
    color: var(--wish-ink);
    min-height: 55vh;
}

/* Main Wishlist Card */
.sanmarg-wishlist-card {
    background: var(--wish-bg-card);
    border: 1px solid var(--wish-border);
    border-radius: calc(16 * 100vw / 1705);
    box-shadow: 0 4px 20px rgba(28, 21, 20, 0.03);
    overflow: hidden;
    margin-bottom: calc(24 * 100vw / 1705);
}

.wishlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(18 * 100vw / 1705) calc(24 * 100vw / 1705);
    background: var(--wish-bg-warm);
    border-bottom: 1px solid var(--wish-border);
}

.wishlist-card-title {
    font-size: var(--fs-16);
    font-weight: 700;
    color: var(--wish-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: calc(8 * 100vw / 1705);
}

.wishlist-card-title iconify-icon {
    font-size: var(--fs-20);
    color: var(--wish-crimson);
}

.wishlist-card-count {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--wish-crimson);
    background: var(--wish-crimson-soft);
    padding: calc(4 * 100vw / 1705) calc(12 * 100vw / 1705);
    border-radius: 999px;
}

/* Table */
.sanmarg-wishlist-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

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

.sanmarg-wishlist-table thead th {
    background: #ffffff;
    font-size: var(--fs-12);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--wish-muted);
    padding: calc(14 * 100vw / 1705) calc(20 * 100vw / 1705);
    border-bottom: 1px solid var(--wish-border-soft);
    white-space: nowrap;
}

.sanmarg-wishlist-table tbody tr {
    transition: background 0.2s ease;
}

.sanmarg-wishlist-table tbody tr:hover {
    background: #fdfcfb;
}

.sanmarg-wishlist-table tbody td {
    padding: calc(18 * 100vw / 1705) calc(20 * 100vw / 1705);
    vertical-align: middle;
    border-bottom: 1px solid var(--wish-border-soft);
}

.sanmarg-wishlist-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column Specifics */
.wishlist-col-thumb {
    width: calc(90 * 100vw / 1705);
    min-width: calc(90 * 100vw / 1705);
}

.wishlist-item-thumb {
    width: calc(76 * 100vw / 1705);
    height: calc(100 * 100vw / 1705);
    border-radius: calc(8 * 100vw / 1705);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--wish-border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wishlist-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.wishlist-item-thumb:hover {
    transform: translateY(calc(-2 * 100vw / 1705));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.wishlist-col-product {
    min-width: calc(240 * 100vw / 1705);
}

.wishlist-item-title {
    font-size: var(--fs-15);
    font-weight: 700;
    color: var(--wish-ink);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: calc(4 * 100vw / 1705);
    transition: color 0.2s ease;
}

.wishlist-item-title:hover {
    color: var(--wish-crimson);
}

.wishlist-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(4 * 100vw / 1705);
    font-size: var(--fs-12);
    font-weight: 600;
    color: #4a5568;
    background: #edf2f7;
    padding: calc(3 * 100vw / 1705) calc(10 * 100vw / 1705);
    border-radius: calc(6 * 100vw / 1705);
}

.wishlist-col-price {
    white-space: nowrap;
}

.wishlist-price-val {
    font-size: var(--fs-16);
    font-weight: 700;
    color: var(--wish-crimson);
}

/* Action View Button */
.btn-wishlist-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--wish-crimson);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(180, 34, 49, 0.2);
}

.btn-wishlist-view:hover {
    background: var(--wish-crimson-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 34, 49, 0.35);
    color: #ffffff;
}

.btn-wishlist-view iconify-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.btn-wishlist-view:hover iconify-icon {
    transform: translateX(3px);
}

/* Remove Button */
.wishlist-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--wish-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.wishlist-remove-btn:hover {
    background: #fdf2f3;
    color: var(--wish-crimson);
    border-color: rgba(180, 34, 49, 0.2);
    transform: scale(1.08);
}

/* Bottom Actions */
.sanmarg-wishlist-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-wishlist-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--wish-ink);
    border: 1px solid var(--wish-border);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-wishlist-continue:hover {
    background: var(--wish-bg-warm);
    border-color: var(--wish-crimson);
    color: var(--wish-crimson);
}

/* ==========================================================================
   3. Clean Empty Wishlist State with Vector Illustration
   ========================================================================== */
.sanmarg-wishlist-empty-clean {
    text-align: center;
    padding: 30px 20px 80px;
    max-width: 860px;
    margin: 0 auto;
    background: transparent;
}

.empty-illustration-wrap {
    max-width: 340px;
    width: 100%;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-illustration-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(180, 34, 49, 0.08));
    transition: transform 0.35s ease;
}

.empty-illustration-wrap:hover .empty-illustration-img {
    transform: translateY(-4px);
}

.wishlist-clean-title {
    font-size: clamp(24px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--wish-ink);
    margin: 0 0 12px;
    letter-spacing: -0.4px;
}

.wishlist-clean-desc {
    font-size: 15px;
    color: var(--wish-muted);
    max-width: 460px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.empty-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-empty-wishlist-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 12px;
    background: var(--wish-crimson);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(180, 34, 49, 0.25);
    transition: all 0.2s ease;
}

.btn-empty-wishlist-primary:hover {
    background: var(--wish-crimson-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 34, 49, 0.35);
}

.btn-empty-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--wish-ink);
    border: 1px solid var(--wish-border);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-empty-secondary:hover {
    background: var(--wish-bg-warm);
    border-color: var(--wish-crimson);
    color: var(--wish-crimson);
}

/* Feature Trust Strip in Empty State - Redesigned 3-Card Grid */
.empty-wishlist-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid rgba(207, 191, 183, 0.45);
}

.empty-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(207, 191, 183, 0.5);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.empty-trust-item:hover {
    border-color: rgba(180, 34, 49, 0.35);
    background: #fffdfc;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(180, 34, 49, 0.08);
}

.empty-trust-item .trust-icon-box,
.empty-trust-item iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(180, 34, 49, 0.08);
    color: var(--wish-crimson);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.empty-trust-item:hover .trust-icon-box,
.empty-trust-item:hover iconify-icon {
    background: var(--wish-crimson);
    color: #ffffff;
    transform: scale(1.06);
}

.empty-trust-item span,
.empty-trust-item .trust-text {
    font-size: 13px;
    font-weight: 600;
    color: #3f3532;
    line-height: 1.35;
    letter-spacing: 0.1px;
}

/* Responsive */
@media (max-width: 991px) {
    .empty-wishlist-trust-strip {
        gap: 12px;
    }

    .empty-trust-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .empty-trust-item span,
    .empty-trust-item .trust-text {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .sanmarg-wishlist-section {
        padding: 20px 0 36px;
    }

    .sanmarg-wishlist-card {
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .wishlist-card-header {
        padding: 14px 16px;
    }

    .wishlist-card-title {
        font-size: 15px;
    }

    .sanmarg-wishlist-table-wrapper {
        overflow-x: visible;
        width: 100%;
    }

    .sanmarg-wishlist-table {
        width: 100%;
        display: block;
    }

    .sanmarg-wishlist-table tbody {
        display: block;
        width: 100%;
    }

    .sanmarg-wishlist-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 76px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 8px;
        padding: 14px 12px;
        border-bottom: 1px solid var(--wish-border);
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }

    .sanmarg-wishlist-table tbody tr input[type="hidden"] {
        display: none !important;
    }

    .sanmarg-wishlist-table tbody td {
        display: block;
        padding: 0;
        border: none;
    }

    /* Column 1: Thumbnail */
    .wishlist-col-thumb {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        padding-right: 0 !important;
        margin: 0 !important;
        float: none !important;
        align-self: start;
    }

    .wishlist-item-thumb {
        width: 76px;
        height: 100px;
        border-radius: 8px;
    }

    /* Column 2, Row 1: Product Info (Title & Category) */
    .wishlist-col-product {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        align-self: start;
        padding-right: 6px;
    }

    .wishlist-item-title {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .wishlist-cat-badge {
        display: inline-flex;
        margin-top: 2px;
        margin-bottom: 0;
        font-size: 10.5px;
    }

    /* Column 3, Row 1: Remove Button (Top Right) */
    .wishlist-col-remove {
        grid-column: 3;
        grid-row: 1;
        position: static !important;
        align-self: start;
        justify-self: end;
        margin: 0;
        padding: 0;
    }

    .wishlist-remove-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #fbf5f5;
        color: var(--wish-crimson);
        border: 1px solid rgba(180, 34, 49, 0.15);
        font-size: 17px;
        box-shadow: 0 2px 6px rgba(180, 34, 49, 0.08);
    }

    /* Column 2, Row 2: Price (Left Side) */
    .wishlist-col-price {
        grid-column: 2;
        grid-row: 2;
        position: static !important;
        align-self: center;
        justify-self: start;
        margin: 0;
        padding: 0;
        text-align: left;
        white-space: nowrap;
    }

    .wishlist-price-val {
        font-size: 16px;
        font-weight: 750;
        color: var(--wish-crimson);
        display: inline-block;
    }

    /* Column 3, Row 2: View Book CTA (Bottom Right) */
    .wishlist-col-action {
        grid-column: 3;
        grid-row: 2;
        position: static !important;
        align-self: center;
        justify-self: end;
        margin: 0;
        padding: 0;
    }

    .btn-wishlist-view {
        width: auto;
        height: 32px;
        font-size: 12px;
        padding: 0 12px;
        border-radius: 8px;
        justify-content: center;
        margin-top: 0;
    }

    .sanmarg-wishlist-bar {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
        width: 100%;
        margin-bottom: 18px;
    }

    .btn-wishlist-continue,
    .btn-wishlist-clear {
        width: 100%;
        justify-content: center;
        height: 44px;
        padding: 0 16px;
        font-size: 13.5px;
        border-radius: 10px;
    }

    .empty-actions-row {
        flex-direction: column;
        width: 100%;
    }

    .btn-empty-wishlist-primary,
    .btn-empty-secondary {
        width: 100%;
        justify-content: center;
    }

    .empty-wishlist-trust-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 28px;
        margin-top: 32px;
    }

    .empty-trust-item {
        padding: 14px 18px;
        justify-content: flex-start;
    }
}
