
/* ============================================================
   HLxHub — Premium Homepage Mobile Card
   File: assets/css/components/home-card.css
============================================================ */

.hlx-mobile-card {
    --hlx-blue: #1769ff;
    --hlx-orange: #ff8a00;
    --hlx-text: #172033;
    --hlx-muted: #8992a3;
    --hlx-border: #e8ecf2;

    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 13px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid var(--hlx-border);
    border-radius: 17px;

    box-shadow: 0 3px 14px rgba(22, 34, 55, 0.045);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;

    box-sizing: border-box;
}

.hlx-mobile-card *,
.hlx-mobile-card *::before,
.hlx-mobile-card *::after {
    box-sizing: border-box;
}

.hlx-mobile-card:hover {
    border-color: #cbdcff;
    box-shadow: 0 9px 25px rgba(23, 105, 255, .09);
    transform: translateY(-2px);
}


/* ============================================================
   TOP AREA
============================================================ */

.hlx-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
}

.hlx-card-heading {
    flex: 1;
    min-width: 0;
}

.hlx-card-name {
    margin: 0;
    padding: 0;

    color: var(--hlx-text);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.3px;

    overflow-wrap: anywhere;
}

.hlx-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.hlx-card-name a:hover {
    color: var(--hlx-blue);
}

.hlx-card-launch {
    margin: 4px 0 0;
    padding: 0;

    color: #929aaa;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}


/* ============================================================
   TOP ACTIONS
============================================================ */

.hlx-card-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}


/* Wishlist */

.hlx-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;

    color: #7d8798;
    background: #ffffff;
    border: 1px solid #e8ebf1;
    border-radius: 10px;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.hlx-card-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.hlx-card-icon:hover {
    color: #e83e68;
    background: #fff4f6;
    border-color: #ffd3dc;
}

.hlx-card-icon:active {
    transform: scale(.92);
}

/* Saved wishlist state */

.hlx-card-icon.is-saved,
.hlx-card-icon[aria-pressed="true"] {
    color: #e83e68;
    background: #fff0f3;
    border-color: #ffcbd6;
}

.hlx-card-icon.is-saved svg,
.hlx-card-icon[aria-pressed="true"] svg {
    fill: #e83e68;
}


/* Compare */

.hlx-card-compare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 29px;
    padding: 0 9px;

    color: var(--hlx-blue);
    background: #f3f7ff;
    border: 1px solid #dce8ff;
    border-radius: 8px;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.hlx-card-compare-btn svg {
    display: block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.hlx-card-compare-btn:hover {
    color: #ffffff;
    background: var(--hlx-blue);
    border-color: var(--hlx-blue);
}


/* ============================================================
   PRODUCT IMAGE
============================================================ */

.hlx-card-image-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;

    color: inherit;
    text-decoration: none;
}

.hlx-card-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 185px;
    padding: 8px;

    overflow: hidden;
    background: #fafbfe;
    border-radius: 12px;
}

.hlx-card-product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: center;

    transition: transform .35s ease;
}

.hlx-mobile-card:hover .hlx-card-product-image {
    transform: scale(1.045);
}

.hlx-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #9aa3b2;
    background: #f4f6f9;
    border: 1px dashed #dce1e9;
    border-radius: 10px;

    font-family: 'Poppins', sans-serif;
    font-size: 11px;
}


/* ============================================================
   PRICE
============================================================ */

.hlx-card-price {
    display: block;
    width: 100%;
    margin-top: 11px;

    color: var(--hlx-text);
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.5px;
}

.hlx-card-price:empty {
    display: none;
}


/* ============================================================
   BOTTOM BUTTONS
============================================================ */

.hlx-card-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    width: 100%;
    margin-top: 12px;
}

.hlx-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 100%;
    min-width: 0;
    min-height: 37px;
    padding: 7px 8px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.hlx-card-button svg {
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.hlx-card-button:active {
    transform: scale(.97);
}


/* Full Review */

.hlx-review-button {
    color: #ffffff;
    background: #172033;
    border-color: #172033;
}

.hlx-review-button:hover {
    color: #ffffff;
    background: #263957;
    border-color: #263957;
}


/* Amazon */

.hlx-amazon-button {
    color: #ffffff;
    background: var(--hlx-orange);
    border-color: var(--hlx-orange);
}

.hlx-amazon-button:hover {
    color: #ffffff;
    background: #e87900;
    border-color: #e87900;
}

.hlx-amazon-disabled {
    color: #8d95a3;
    background: #f0f2f5;
    border-color: #e6e9ee;
    cursor: not-allowed;
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

.hlx-mobile-card a:focus-visible,
.hlx-mobile-card button:focus-visible {
    outline: 3px solid rgba(23, 105, 255, .35);
    outline-offset: 3px;
}


/* ============================================================
   TABLET
============================================================ */

@media (min-width: 600px) {

    .hlx-mobile-card {
        padding: 15px;
        border-radius: 18px;
    }

    .hlx-card-name {
        font-size: 16px;
    }

    .hlx-card-image {
        height: 205px;
    }

    .hlx-card-price {
        font-size: 21px;
    }

    .hlx-card-button {
        min-height: 39px;
        font-size: 11px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 480px) {

    .hlx-mobile-card {
        padding: 10px;
        border-radius: 14px;
    }

    .hlx-card-top {
        gap: 5px;
        margin-bottom: 8px;
    }

    .hlx-card-name {
        font-size: 13px;
        line-height: 1.4;
    }

    .hlx-card-launch {
        font-size: 9px;
    }

    .hlx-card-actions {
        gap: 4px;
    }

    .hlx-card-icon {
        width: 29px;
        height: 29px;
        border-radius: 8px;
    }

    .hlx-card-icon svg {
        width: 15px;
        height: 15px;
    }

    .hlx-card-compare-btn {
        min-height: 27px;
        padding: 0 7px;
        gap: 3px;
        font-size: 9px;
        border-radius: 7px;
    }

    .hlx-card-compare-btn svg {
        width: 12px;
        height: 12px;
    }

    .hlx-card-image {
        height: 155px;
        padding: 6px;
        border-radius: 10px;
    }

    .hlx-card-price {
        margin-top: 9px;
        font-size: 17px;
    }

    .hlx-card-bottom {
        gap: 6px;
        margin-top: 10px;
    }

    .hlx-card-button {
        min-height: 34px;
        padding: 6px 5px;
        gap: 4px;
        font-size: 9px;
        border-radius: 8px;
    }

    .hlx-card-button svg {
        width: 13px;
        height: 13px;
    }

}


/* ============================================================
   EXTRA SMALL MOBILE
============================================================ */

@media (max-width: 360px) {

    .hlx-mobile-card {
        padding: 8px;
    }

    .hlx-card-name {
        font-size: 12px;
    }

    .hlx-card-icon {
        width: 26px;
        height: 26px;
    }

    .hlx-card-compare-btn {
        min-height: 25px;
        padding: 0 5px;
        font-size: 8px;
    }

    .hlx-card-image {
        height: 135px;
    }

    .hlx-card-price {
        font-size: 15px;
    }

    .hlx-card-button {
        min-height: 32px;
        font-size: 8px;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .hlx-mobile-card,
    .hlx-card-product-image,
    .hlx-card-button,
    .hlx-card-icon,
    .hlx-card-compare-btn {
        transition: none !important;
    }

    .hlx-mobile-card:hover,
    .hlx-mobile-card:hover .hlx-card-product-image {
        transform: none;
    }

}

/* ============================================================
   HLxHub — Premium Review & Amazon Buttons
============================================================ */

.hlx-card-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 9px;

    width: 100%;
    margin-top: 13px;
}


/* COMMON BUTTON STYLE */

.hlx-card-bottom .hlx-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 8px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.hlx-card-bottom .hlx-card-button svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}


/* FULL REVIEW — BLUE */

.hlx-card-bottom .hlx-review-button {
    color: #ffffff;
    background: #1769ff;
    border-color: #1769ff;

    box-shadow: 0 3px 8px rgba(23, 105, 255, .16);
}

.hlx-card-bottom .hlx-review-button:hover {
    color: #ffffff;
    background: #0d54dc;
    border-color: #0d54dc;

    box-shadow: 0 5px 13px rgba(23, 105, 255, .25);
}


/* AMAZON — ORANGE */

.hlx-card-bottom .hlx-amazon-button {
    color: #ffffff;
    background: #ff8a00;
    border-color: #ff8a00;

    box-shadow: 0 3px 8px rgba(255, 138, 0, .16);
}

.hlx-card-bottom .hlx-amazon-button:hover {
    color: #ffffff;
    background: #e87900;
    border-color: #e87900;

    box-shadow: 0 5px 13px rgba(255, 138, 0, .24);
}


/* DISABLED AMAZON */

.hlx-card-bottom .hlx-amazon-disabled {
    color: #8b94a3;
    background: #eef1f5;
    border-color: #e3e7ed;
    box-shadow: none;
    cursor: not-allowed;
}


/* CLICK EFFECT */

.hlx-card-bottom .hlx-card-button:active {
    transform: scale(.97);
}


/* MOBILE */

@media (max-width: 480px) {

    .hlx-card-bottom {
        gap: 6px;
        margin-top: 10px;
    }

    .hlx-card-bottom .hlx-card-button {
        min-height: 37px;
        padding: 7px 5px;
        gap: 5px;
        font-size: 9px;
        border-radius: 8px;
    }

    .hlx-card-bottom .hlx-card-button svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

}
