/* GiftB360x — Wishlist Page */

.gb-wl-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 100px;
    background: #fff;
    min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.gb-wl-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.gb-wl-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #111 !important;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: background .15s;
}
.gb-wl-back:hover { background: #f3f4f6; }
.gb-wl-back svg { display: block; }

.gb-wl-title-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.gb-wl-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    letter-spacing: -.2px;
}
.gb-wl-count {
    font-size: 12px;
    color: #888;
}

/* ── Empty state ─────────────────────────────────────────── */
.gb-wl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 24px;
    text-align: center;
}
.gb-wl-empty p {
    font-size: 15px;
    color: #9ca3af;
    margin: 0;
}
.gb-wl-shop-btn {
    margin-top: 8px;
    display: inline-block;
    padding: 11px 28px;
    background: var(--gb-primary, #e63329);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    border-radius: 4px;
}

/* ── Grid ────────────────────────────────────────────────── */
.gb-wl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e5e7eb;
}

/* ── Card ────────────────────────────────────────────────── */
.gb-wl-card {
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.gb-wl-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #555;
    transition: background .15s, color .15s;
}
.gb-wl-remove:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.gb-wl-remove svg { display: block; }

.gb-wl-card-img-wrap {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}
.gb-wl-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
@media (hover: hover) {
    .gb-wl-card:hover .gb-wl-card-img-wrap img { transform: scale(1.04); }
}

.gb-wl-card-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gb-wl-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #111 !important;
    text-decoration: none !important;
    letter-spacing: .3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gb-wl-card-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}
.gb-wl-price {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.gb-wl-orig {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}
.gb-wl-off {
    font-size: 11px;
    font-weight: 600;
    color: var(--gb-primary, #e63329);
}

.gb-wl-atc {
    margin-top: auto;
    background: none;
    border: none;
    padding: 8px 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    color: var(--gb-primary, #e63329) !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none !important;
    display: block;
    border-top: 1px solid #f0f0f0;
    transition: opacity .15s;
}
.gb-wl-atc:hover { opacity: .75; }
.gb-wl-atc:disabled { opacity: .5; cursor: default; }

/* ── Bottom sheet overlay ────────────────────────────────── */
.gb-wl-bs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.gb-wl-bs-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Bottom sheet panel ──────────────────────────────────── */
.gb-wl-bs {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,1,.23,1);
}
.gb-wl-bs-overlay.is-open .gb-wl-bs {
    transform: translateY(0);
}

.gb-wl-bs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.gb-wl-bs-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}
.gb-wl-bs-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #555;
    display: flex;
    align-items: center;
}
.gb-wl-bs-close svg { display: block; }

.gb-wl-bs-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 0;
    -webkit-overflow-scrolling: touch;
}

/* ── Preset group ────────────────────────────────────────── */
.gb-wl-bs-group {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #f0f0f0;
    transition: border-color .2s;
}
.gb-wl-bs-group.gb-wl-bs-missing {
    border-color: #e63329;
    animation: gbWlShake .3s;
}
@keyframes gbWlShake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

.gb-wl-bs-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.gb-wl-bs-sel {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

.gb-wl-bs-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Swatches ────────────────────────────────────────────── */
.gb-wl-swatch {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: #fff;
    transition: border-color .15s, transform .1s;
}
.gb-wl-swatch.is-active {
    border-color: var(--gb-primary, #e63329);
}
.gb-wl-swatch--btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
.gb-wl-swatch--btn.is-active {
    color: var(--gb-primary, #e63329);
    background: #fff5f5;
}
.gb-wl-swatch--color {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border-width: 2px;
}
.gb-wl-swatch--color.is-active {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gb-primary, #e63329);
    border-color: transparent;
}
.gb-wl-swatch--img {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 6px;
}
.gb-wl-swatch--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Select / input inside sheet ─────────────────────────── */
.gb-wl-bs-select,
.gb-wl-bs-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.gb-wl-bs-select:focus,
.gb-wl-bs-input:focus { border-color: var(--gb-primary, #e63329); }
textarea.gb-wl-bs-input { min-height: 80px; resize: vertical; }

/* ── Footer / Done button ────────────────────────────────── */
.gb-wl-bs-footer {
    padding: 14px 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.gb-wl-bs-done {
    width: 100%;
    padding: 14px;
    background: var(--gb-primary, #e63329);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: opacity .15s;
}
.gb-wl-bs-done:disabled { opacity: .6; cursor: default; }
.gb-wl-bs-done:not(:disabled):hover { opacity: .9; }
