/*
 * Page — Wishlist
 * Styles for the wishlist page template (page-wishlist.php).
 */

/* ── Page TOP ─────────────────────────────────────────────────────────────── */
.page-top {
    background: #e6e7e9;
    height: 216px;
}

.page-top__container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 75px;
}

.page-top__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-top__crumb {
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 1.4;
    color: #62666f;
    text-decoration: none;
    transition: color var(--transition);
}

.page-top__crumb:hover {
    color: var(--color-dark);
}

.page-top__crumb--current {
    font-weight: var(--fw-regular);
    color: var(--color-dark);
}

.page-top__crumb-sep {
    font-size: 14px;
    color: #62666f;
    user-select: none;
}

/* Title — centred in whatever space the breadcrumbs leave */
.page-top__title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    text-align: center;
}

/* ── Wishlist section ──────────────────────────────────────────────────────── */
.wishlist {
    padding: 60px 0 100px;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.wishlist__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Product card — wishlist-specific overrides (base styles in main.css) ─── */
.wishlist__grid .product-card {
    flex: 0 0 calc(25% - 7.5px);
}

/* Image — inset padding so product doesn't touch edges */
.wishlist__grid .product-card__img-wrap {
    padding: 6.69%;
}

.wishlist__grid .product-card__img {
    object-fit: contain;
}

/* Body — horizontal padding lives here, not on title/footer */
.wishlist__grid .product-card__body {
    padding: 0 12px 16px;
    flex: 1;
}

.wishlist__grid .product-card__title { padding: 0; }
.wishlist__grid .product-card__footer { padding: 0; }

/* ── Empty state ───────────────────────────────────────────────────────────── */
.wishlist__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 100px 0;
    text-align: center;
}

.wishlist__empty-msg {
    font-size: 18px;
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    margin: 0;
}

.wishlist__empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.56px;
    text-transform: uppercase;
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity var(--transition);
}

.wishlist__empty-cta:hover {
    opacity: 0.6;
}

/* ── Responsive — Tablet (768–1199px) ─────────────────────────────────────── */
@media (max-width: 1199px) {
    .page-top { height: 180px; }
    .page-top__container { padding-top: 16px; padding-bottom: 56px; gap: 20px; }
    .page-top__title { font-size: 36px; letter-spacing: 1.8px; }

    .wishlist { padding: 40px 0 80px; }
    .wishlist__grid .product-card { flex: 0 0 calc(33.333% - 6.667px); }
}

/* ── Responsive — Mobile (≤ 767px) ───────────────────────────────────────── */
@media (max-width: 767px) {
    .page-top { height: 130px; }
    .page-top__container { padding-top: 14px; padding-bottom: 40px; gap: 16px; }

    .page-top__title { font-size: 24px; letter-spacing: 1.2px; }

    .page-top__crumb,
    .page-top__crumb-sep { font-size: 12px; }

    .wishlist { padding: 24px 0 60px; }
    .wishlist__grid .product-card { flex: 0 0 calc(50% - 5px); }

    .wishlist__empty { padding: 60px 0; }
    .wishlist__empty-msg { font-size: 15px; }
}
