/* =========================================================
   DARK THRONE — WISHLIST
   ========================================================= */

:root {
    --orange: #ff5a00;
    --orange-dark: #d94800;

    --black: #050505;
    --black-soft: #0d0d0d;
    --dark: #111111;
    --dark-2: #171717;

    --white: #ffffff;
    --white-soft: #f5f5f5;

    --gray: #999999;
    --gray-light: #cfcfcf;

    --border: rgba(255, 255, 255, 0.10);

    --danger: #ff3b30;

    --transition: 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.wishlist-header {
    width: 100%;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.header-inner {
    width: min(1400px, 92%);
    min-height: 76px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    white-space: nowrap;
}

.brand:hover {
    color: var(--orange);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.wishlist-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.wishlist-nav a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--gray-light);

    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
}

.wishlist-nav a:hover,
.wishlist-nav a.active {
    color: var(--orange);
}

.wishlist-count,
.cart-count {
    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);
    color: var(--black);

    border-radius: 50px;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--dark);
    color: var(--white);

    font-size: 18px;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 2000;

    background: var(--black);

    padding: 90px 30px 30px;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu a {
    padding: 18px 10px;

    border-bottom: 1px solid var(--border);

    color: var(--white);

    font-size: 20px;
    font-weight: 800;
}

.mobile-menu a.active,
.mobile-menu a:hover {
    color: var(--orange);
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--dark);
    color: var(--white);

    font-size: 20px;
}


/* =========================================================
   HERO
   ========================================================= */

.wishlist-hero {
    min-height: 300px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(255, 90, 0, 0.08),
            transparent 70%
        );
}

.hero-content {
    width: min(1400px, 92%);
    margin: auto;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--orange);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
}

.hero-content h1 {
    margin-bottom: 12px;

    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -2px;
}

.hero-content p {
    max-width: 600px;

    color: var(--gray);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   WISHLIST SECTION
   ========================================================= */

.wishlist-section {
    width: min(1400px, 92%);
    margin: auto;

    padding: 70px 0 100px;
}

.wishlist-topbar {
    margin-bottom: 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wishlist-topbar h2 {
    font-size: 28px;
    font-weight: 900;
}

#wishlistSubtitle {
    margin-top: 6px;

    color: var(--gray);

    font-size: 14px;
}


/* =========================================================
   CLEAR BUTTON
   ========================================================= */

.clear-wishlist-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 12px 17px;

    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: 8px;

    background: transparent;
    color: #ff6259;

    font-size: 13px;
    font-weight: 800;

    transition: var(--transition);
}

.clear-wishlist-button:hover {
    background: rgba(255, 59, 48, 0.10);
    border-color: var(--danger);
}

.clear-wishlist-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================================================
   LOADING
   ========================================================= */

.wishlist-loading {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    color: var(--gray);
}

.loading-spinner {
    width: 42px;
    height: 42px;

    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--orange);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.wishlist-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.wishlist-card {
    position: relative;

    overflow: hidden;

    background: var(--dark);

    border: 1px solid var(--border);
    border-radius: 14px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.wishlist-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 90, 0, 0.35);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.wishlist-image-wrapper {
    position: relative;

    aspect-ratio: 1 / 1.15;

    overflow: hidden;

    background: var(--dark-2);
}

.wishlist-product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.wishlist-card:hover .wishlist-product-image {
    transform: scale(1.04);
}


/* =========================================================
   IMAGE EMPTY
   ========================================================= */

.wishlist-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gray);

    font-size: 13px;
    text-align: center;
}


/* =========================================================
   REMOVE BUTTON
   ========================================================= */

.remove-wishlist {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.70);

    color: var(--white);

    font-size: 16px;

    backdrop-filter: blur(8px);

    transition: var(--transition);
}

.remove-wishlist:hover {
    background: var(--danger);
    border-color: var(--danger);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.wishlist-card-content {
    padding: 20px;
}

.wishlist-category {
    margin-bottom: 8px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wishlist-product-name {
    min-height: 44px;

    color: var(--white);

    font-size: 17px;
    line-height: 1.3;
    font-weight: 850;
}

.wishlist-price {
    margin-top: 10px;

    color: var(--white);

    font-size: 18px;
    font-weight: 900;
}


/* =========================================================
   CARD ACTIONS
   ========================================================= */

.wishlist-actions {
    margin-top: 18px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 9px;
}

.wishlist-action {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 850;

    transition: var(--transition);
}

.view-product {
    border: 1px solid var(--border);

    background: transparent;
    color: var(--white);
}

.view-product:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.add-to-cart {
    border: 1px solid var(--orange);

    background: var(--orange);
    color: var(--black);
}

.add-to-cart:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-wishlist {
    min-height: 430px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.005)
        );
}

.empty-icon {
    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border: 1px solid rgba(255, 90, 0, 0.25);
    border-radius: 50%;

    background: rgba(255, 90, 0, 0.08);

    color: var(--orange);

    font-size: 30px;
}

.empty-wishlist h2 {
    margin-bottom: 10px;

    font-size: 28px;
    font-weight: 900;
}

.empty-wishlist p {
    max-width: 500px;

    margin-bottom: 25px;

    color: var(--gray);

    line-height: 1.7;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 22px;

    border-radius: 8px;

    background: var(--orange);
    color: var(--black);

    font-size: 13px;
    font-weight: 900;

    transition: var(--transition);
}

.shop-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}


/* =========================================================
   ERROR
   ========================================================= */

.wishlist-error {
    min-height: 350px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.wishlist-error > i {
    margin-bottom: 20px;

    color: #ff6259;

    font-size: 35px;
}

.wishlist-error h2 {
    margin-bottom: 10px;

    font-size: 25px;
}

.wishlist-error p {
    margin-bottom: 20px;

    color: var(--gray);
}

.wishlist-error button {
    padding: 12px 20px;

    border: 0;
    border-radius: 7px;

    background: var(--orange);
    color: var(--black);

    font-weight: 900;
}


/* =========================================================
   TOAST
   ========================================================= */

.wishlist-toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 3000;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 18px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #151515;
    color: var(--white);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45);

    transform:
        translate(-50%, 100px);

    opacity: 0;

    pointer-events: none;

    transition: 0.3s ease;
}

.wishlist-toast.show {
    transform:
        translate(-50%, 0);

    opacity: 1;
}

.wishlist-toast i {
    color: var(--orange);
}


/* =========================================================
   FOOTER
   ========================================================= */

.wishlist-footer {
    border-top: 1px solid var(--border);

    background: #030303;
}

.footer-inner {
    width: min(1400px, 92%);
    margin: auto;

    padding: 55px 0;

    text-align: center;
}

.footer-brand {
    margin-bottom: 12px;

    font-size: 20px;
    font-weight: 950;
    letter-spacing: 2px;
}

.footer-inner p {
    margin-bottom: 22px;

    color: var(--gray);

    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    margin-bottom: 25px;
}

.footer-links a {
    color: var(--gray-light);

    font-size: 13px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-copy {
    color: #666;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .wishlist-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .wishlist-nav {
        display: none;
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wishlist-hero {
        min-height: 250px;
    }

    .wishlist-section {
        padding-top: 45px;
    }

    .wishlist-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 560px) {

    .header-inner {
        min-height: 65px;
    }

    .brand {
        font-size: 18px;
    }

    .wishlist-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .clear-wishlist-button {
        width: 100%;
        justify-content: center;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-actions {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        letter-spacing: -1px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}


@media (max-width: 380px) {

    .wishlist-actions {
        grid-template-columns: 1fr;
    }

}
/* Wishlist Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 45px 0 25px;
    font-size: 15px;
    font-weight: 600;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #111;
    text-decoration: none;
    background: #fff;
}

.breadcrumb a:hover {
    color: #ff6a00;
    border-color: #ff6a00;
}

.breadcrumb span {
    color: #777;
}

.breadcrumb span:last-child {
    color: #ff6a00;
}
/* =========================================================
   MOBILE INPUT ZOOM FIX
   Prevent iPhone Safari from zooming when fields are tapped
   ========================================================= */

input,
select,
textarea,
button {
    font-size: 16px;
}

input,
select,
textarea {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}