/* =========================================================
   PERFUMESIA — CORE UI
   Primitivas visuales compartidas por la aplicación.
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0e0e0e;
    color: #fff;
    padding: 30px;
}

header {
    margin-bottom: 30px;
}


/* =========================================================
   LAYOUT
========================================================= */

.grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: #1b1b1b;
    padding: 20px;
    border-radius: 14px;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .25);
}

.large {
    grid-column: span 2;
}


/* =========================================================
   FORM CONTROLS
========================================================= */

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;

    border: none;
    border-radius: 8px;
}

button {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #00c896;
    color: #fff;

    font-weight: bold;

    cursor: pointer;

    transition: .2s;
}

button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   TOAST — PERFUMESIA PREMIUM
========================================================= */

.toast {
    position: fixed;

    right: 30px;
    bottom: 30px;

    z-index: 9999;

    width: min(380px, calc(100vw - 36px));

    padding: 17px 20px 17px 25px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(18, 18, 18, .98),
            rgba(10, 14, 13, .98)
        );

    color: rgba(255, 255, 255, .94);

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

    box-shadow:
        0 18px 48px rgba(0, 0, 0, .42);

    font-size: .94rem;
    font-weight: 600;
    line-height: 1.45;

    opacity: 0;

    transform:
        translateY(14px)
        scale(.985);

    transition:
        opacity .22s ease,
        transform .22s ease;
}


/* Acento lateral curvo */

.toast::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 0;
    bottom: 0;

    width: 5px;

    background:
        linear-gradient(
            180deg,
            #e0b477 0%,
            #c99a5c 48%,
            #8b5c30 100%
        );

    border-radius:
        18px 0 0 18px;

    box-shadow:
        3px 0 16px
        rgba(201, 154, 92, .20);
    }


.toast.show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


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

@media (max-width: 700px) {

    body {
        padding: 18px;
    }

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

    .large {
        grid-column: auto;
    }

    .toast {
        left: 18px;
        right: 18px;
        bottom: 18px;

        width: auto;

        padding: 16px 18px 16px 23px;

        border-radius: 16px;
    }

    .toast::before {
        border-radius: 16px 0 0 16px;
    }

}