/* =========================================================
   PERFUMESIA — SEARCH IA
   Storefront / Artificial Intelligence Search
========================================================= */

.smart-search-panel {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 24px;

    background: #151515;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;

    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}


/* =========================================================
   SEARCH INPUT
========================================================= */

.smart-search-panel input {
    width: 100%;
    box-sizing: border-box;

    margin: 14px 0;
    padding: 14px 16px;

    background: #0e0e0e;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.smart-search-panel input::placeholder {
    color: #888;
}

.smart-search-panel input:focus {
    outline: none;

    border-color: #00c896;

    box-shadow:
        0 0 0 3px rgba(0, 200, 150, 0.10);
}


/* =========================================================
   BUTTONS
========================================================= */

.smart-search-panel button {
    width: 100%;

    padding: 13px 16px;

    border: none;
    border-radius: 14px;

    background: #00c896;
    color: #fff;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        background 0.18s ease;
}

.smart-search-panel button:hover {
    background: #00b98a;
    transform: translateY(-1px);
}

.smart-search-panel button:active {
    transform: translateY(0);
}

.smart-search-panel button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}


/* =========================================================
   AI INTERPRETATION
========================================================= */

.smart-reading {
    margin-top: 20px;
    padding: 16px 18px;

    background: #101010;

    border-left: 3px solid #00c896;
    border-radius: 16px;

    color: #ddd;

    line-height: 1.55;
}

.smart-reading strong {
    color: #fff;
}


/* =========================================================
   RESULTS
========================================================= */

.smart-results {
    margin-top: 20px;

    display: grid;
    gap: 16px;
}


/* =========================================================
   RESULT CARD
========================================================= */

.smart-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);

    gap: 16px;

    padding: 16px;

    background: #101010;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.smart-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(0, 200, 150, 0.24);
}

.smart-card img {
    width: 120px;
    height: 120px;

    display: block;

    object-fit: cover;

    border-radius: 14px;

    cursor: pointer;
}

.smart-card__content {
    min-width: 0;
}

.smart-card h3 {
    margin: 0 0 4px;

    color: #fff;

    cursor: pointer;
}

.smart-card h3:hover {
    color: #00c896;
}

.smart-card small {
    color: #aaa;
}

.smart-card p {
    color: #ccc;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   AI SCORE
========================================================= */

.smart-score {
    display: inline-flex;
    align-items: center;

    margin: 10px 0;
    padding: 5px 10px;

    background:
        rgba(0, 230, 167, 0.08);

    color: #00e6a7;

    border-radius: 999px;

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

.smart-reason {
    color: #bbb !important;
}


/* =========================================================
   ADD TO CART
========================================================= */

.smartAddCartBtn {
    margin-top: 8px;
}


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

.smart-empty {
    margin-top: 18px;
    padding: 16px;

    background: #101010;
    color: #ccc;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;

    text-align: center;
}


/* =========================================================
   RECOMMENDATION DETAIL
========================================================= */

.smart-detail {
    margin-top: 22px;

    display: grid;
    grid-template-columns:
        minmax(240px, 0.9fr)
        minmax(0, 1.1fr);

    gap: 36px;

    align-items: center;
}

.smart-detail__image img {
    width: 100%;
    max-height: 500px;

    display: block;

    object-fit: cover;

    border-radius: 22px;

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.30);
}

.smart-detail__content {
    min-width: 0;
}

.smart-detail__content > small {
    color: #aaa;
}

.smart-detail__content h2 {
    margin: 6px 0 12px;

    color: #fff;

    font-size:
        clamp(1.7rem, 4vw, 2.4rem);
}

.smart-detail__content > p {
    color: #ccc;

    line-height: 1.65;
}

.smart-detail__price {
    margin: 14px 0;

    color: #fff;

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

.smart-detail__actions {
    margin-top: 24px;

    display: flex;
    gap: 12px;
}

.smart-detail__actions button {
    flex: 1;
}

#smartDetailBack {
    background: #242424;

    border:
        1px solid rgba(255, 255, 255, 0.10);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .smart-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .smart-detail__image img {
        max-height: 420px;
    }
}


/* =========================================================
   MOBILE — iPHONE / ANDROID
========================================================= */

@media (max-width: 600px) {

    .smart-search-panel {
        margin-top: 18px;
        padding: 18px 14px;

        border-radius: 16px;
    }

    .smart-card {
        grid-template-columns: 88px minmax(0, 1fr);

        gap: 12px;

        padding: 12px;

        border-radius: 15px;
    }

    .smart-card img {
        width: 88px;
        height: 104px;

        border-radius: 12px;
    }

    .smart-card h3 {
        font-size: 16px;
    }

    .smart-card p {
        font-size: 13px;
    }

    .smart-detail {
        margin-top: 12px;
        gap: 18px;
    }

    .smart-detail__image img {
        max-height: 360px;

        border-radius: 16px;
    }

    .smart-detail__actions {
        flex-direction: column;
    }

    .smart-detail__actions button {
        width: 100%;
        min-height: 46px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .smart-card {
        grid-template-columns: 1fr;
    }

    .smart-card img {
        width: 100%;
        height: 190px;
    }
}