/* =========================================
   WISHLIST PAGE — MATCH PRODUCT CARDS
========================================= */

.wishlist-page {
    background: #f7f7f7;
    min-height: 600px;
}

.wishlist-section {
    padding: 45px 0 60px;
}

.wishlist-heading {
    margin-bottom: 28px;
    text-align: right;
    direction: rtl;
}

.wishlist-heading h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    color: #111;
}

.wishlist-heading p {
    margin: 0;
    font-size: 13px;
    color: #777;
}


/* =========================================
   PRODUCTS GRID — SAME RHYTHM AS PRODUCTS
========================================= */

.wishlist-products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    direction: rtl;
    align-items: stretch;
}


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

.wishlist-product-card {
    min-width: 0;
    width: 100%;

    position: relative;

    padding: 10px;

    background: #fff;

    border: 1px solid #e7e7e7;
    border-radius: 9px;

    overflow: hidden;

    direction: rtl;
    text-align: right;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

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

    box-shadow:
        0 8px 20px rgba(0,0,0,.07);
}

.wishlist-product-card[hidden] {
    display: none !important;
}


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

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

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

    overflow: hidden;

    background: #fafafa;

    border-radius: 7px;
}

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

    display: block;

    object-fit: contain;
}


/* =========================================
   PRODUCT TITLE
========================================= */

.wishlist-product-title {
    min-height: 38px;

    margin: 10px 0 4px;

    color: #111;

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

    line-height: 1.5;
}

.wishlist-product-title a {
    color: #111;
}

.wishlist-product-title a:hover {
    color: var(--brando-orange);
}


/* =========================================
   PRODUCT PRICE
========================================= */

.wishlist-product-price {
    min-height: 25px;

    margin-bottom: 9px;

    color: #111;

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

.wishlist-product-price del {
    margin-left: 5px;

    color: #999;

    font-size: 11px;
}

.wishlist-product-price ins {
    color: var(--brando-orange);

    text-decoration: none;
}


/* =========================================
   PRODUCT CART AREA
   Uses the same active card-cart component
   used on the main product cards.
========================================= */

.wishlist-product-actions {
    width: 100%;
    display: grid;
    gap: 8px;
    margin-top: 0;
}

/* The plugin's quantity + add-to-cart row */
.wishlist-product-actions .brando-card-cart {
    width: 100%;
    margin-top: 0;
    direction: rtl;
}

.wishlist-product-actions .brando-card-cart-row {
    width: 100%;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
}


/* Quantity control */

.wishlist-product-actions .brando-card-quantity {
    min-width: 0;
    height: 38px;

    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;

    overflow: hidden;

    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.wishlist-product-actions .brando-qty-btn {
    width: 30px;
    height: 100%;

    padding: 0;
    border: 0;

    background: #f7f7f7;
    color: #111;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition: .2s ease;
}

.wishlist-product-actions .brando-qty-btn:hover {
    background: var(--brando-orange, #ff6900);
    color: #fff;
}

.wishlist-product-actions .brando-qty-input {
    width: 100%;
    height: 100%;
    min-width: 0;

    padding: 0 2px;
    border: 0;
    outline: 0;

    background: #fff;
    color: #111;

    text-align: center;

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

    appearance: textfield;
    -moz-appearance: textfield;
}

.wishlist-product-actions .brando-qty-input::-webkit-outer-spin-button,
.wishlist-product-actions .brando-qty-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}


/* Add to cart */

.wishlist-product-actions .brando-card-add-button,
.wishlist-product-actions .button {
    width: 100%;

    min-height: 38px;

    margin: 0 !important;
    padding: 9px 10px !important;

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

    border: 0 !important;
    border-radius: 6px !important;

    background: #050505 !important;
    color: #fff !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    line-height: 1.2;
    text-align: center;

    cursor: pointer;

    transition: .2s ease;
}

.wishlist-product-actions .brando-card-add-button:hover,
.wishlist-product-actions .button:hover {
    background: var(--brando-orange) !important;
    color: #fff !important;
}


/* Current cart status */

.wishlist-product-actions .brando-card-cart-status {
    min-height: 19px;

    margin-top: 7px;

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

    gap: 5px;

    color: #555;

    font-size: 10px;
    line-height: 1.3;
}

.wishlist-product-actions .brando-card-cart-status[hidden] {
    display: none;
}

.wishlist-product-actions .brando-cart-check {
    color: var(--brando-orange, #ff6900);
    font-size: 12px;
    font-weight: 800;
}

.wishlist-product-actions .brando-cart-current {
    color: #111;
    font-weight: 800;
}


/* =========================================
   REMOVE FROM WISHLIST
========================================= */

.wishlist-remove-button {
    width: 100%;
    min-height: 38px;

    margin: 0;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fff;
    color: #555;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.wishlist-remove-button:hover {
    border-color: var(--brando-orange);
    color: var(--brando-orange);
    background: #fff;
}


/* =========================================
   FALLBACK — IF CARD-CART PLUGIN IS NOT YET
   ACTIVE ON THE WISHLIST PAGE
========================================= */

.wishlist-product-actions > .button {
    width: 100%;
    min-height: 38px;

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

    margin: 0 !important;
    padding: 9px 12px !important;

    background: #050505 !important;
    color: #fff !important;

    border: 0 !important;
    border-radius: 6px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
}


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

.wishlist-page .wishlist-empty {
    padding: 90px 20px;
    text-align: center;
}

.wishlist-page .wishlist-empty[hidden] {
    display: none !important;
}

.wishlist-page .wishlist-empty > span {
    display: block;
    margin-bottom: 12px;
    font-size: 60px;
    color: var(--brando-orange);
}

.wishlist-page .wishlist-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.wishlist-page .wishlist-empty p {
    margin: 0 0 20px;
    color: #777;
}

.wishlist-shop-button {
    min-width: 150px;
    min-height: 42px;
    padding: 0 24px;

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

    background: var(--brando-orange);
    color: #fff;

    border-radius: 5px;

    font-weight: 700;
}

.wishlist-shop-button:hover {
    background: #e85f00;
    color: #fff;
}


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

@media (max-width: 992px) {

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

@media (max-width: 576px) {

    .wishlist-section {
        padding: 30px 0 45px;
    }

    .wishlist-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wishlist-product-image {
        height: 220px;
    }

    .wishlist-product-actions .brando-card-cart-row {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 6px;
    }

    .wishlist-product-actions .brando-card-quantity {
        grid-template-columns: 26px minmax(0, 1fr) 26px;
        height: 36px;
    }

    .wishlist-product-actions .brando-qty-btn {
        width: 26px;
        font-size: 16px;
    }
}
