/* =========================================================
   BUTTON
   ========================================================= */

.button {
    display: inline-block;

    border: 0;

    border-radius: 8px;

    padding: 13px 22px;

    background: #222;

    color: white;

    cursor: pointer;
}

.full {
    width: 100%;
}


/* =========================================================
   FORM
   ========================================================= */

select,
input,
textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #ddd;

    border-radius: 8px;

    margin: 8px 0 15px;

    font-family: inherit;
}

textarea {
    min-height: 120px;
}

.qty {
    max-width: 150px;
}


/* =========================================================
   LOGIN / SIGNUP
   ========================================================= */

.auth-card {
    max-width: 460px;

    margin: 50px auto;

    background: white;

    padding: 32px;

    border-radius: 18px;

    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.07);
}

.auth-card form {
    display: flex;

    flex-direction: column;
}

/* Signup form */
.auth-card.signup-card {
    width: calc(100% - 32px);
    max-width: 680px;
    margin: 42px auto 64px;
    padding: 38px 42px 30px;
    border: 1px solid #eee6e0;
    box-sizing: border-box;
    box-shadow: 0 18px 55px rgba(58, 35, 39, 0.09);
}

.signup-heading { margin-bottom: 26px; }
.signup-eyebrow {
    color: #8b5962;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}
.signup-heading h1 {
    margin: 10px 0 8px;
    color: #332329;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
}
.signup-heading p {
    max-width: 540px;
    margin: 0;
    color: #766b68;
    font-size: 15px;
    line-height: 1.55;
}
.auth-card.signup-card .signup-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
}
.signup-field { min-width: 0; }
.signup-field label {
    display: block;
    margin: 0 0 7px;
    color: #3d3332;
    font-size: 14px;
    font-weight: 600;
}
.signup-field input {
    width: 100%;
    height: 46px;
    margin: 0 0 4px;
    padding: 0 13px;
    border: 1px solid #ddd4cf;
    border-radius: 8px;
    box-sizing: border-box;
    color: #332929;
    background: #fff;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.signup-field input:focus {
    outline: none;
    border-color: #8a5661;
    box-shadow: 0 0 0 3px rgba(138, 86, 97, .12);
}
.signup-field span {
    display: block;
    min-height: 18px;
    margin-bottom: 5px;
    color: #b42318;
    font-size: 12px;
}
.signup-submit {
    grid-column: 1 / -1;
    min-height: 48px;
    margin-top: 8px;
    border-radius: 8px;
    background: #542b35;
    font-size: 15px;
    font-weight: 700;
}
.signup-submit:hover { background: #683843; }
.signup-login {
    margin: 22px 0 0;
    color: #766b68;
    text-align: center;
    font-size: 14px;
}
.signup-login a { color: #542b35; font-weight: 700; }
.signup-validation-summary:empty { display: none; }

@media (max-width: 600px) {
    .auth-card.signup-card {
        width: calc(100% - 28px);
        margin: 22px auto 36px;
        padding: 28px 22px 24px;
        border-radius: 16px;
    }
    .auth-card.signup-card .signup-form { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .signup-submit { grid-column: auto; }
}

.social {
    display: block;

    padding: 15px;

    border-radius: 10px;

    margin: 15px 0;

    font-weight: 700;

    text-align: center;
}

.google {
    background: white;

    border: 1px solid #ddd;
}

.facebook {
    background: #1877f2;

    color: white;
}

.divider {
    text-align: center;

    margin: 22px 0;

    color: #888;
}

.center {
    text-align: center;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.error {
    background: #fff0f0;

    color: #b42318;

    padding: 12px;

    border-radius: 8px;

    margin: 15px 0;
}

.success {
    background: #effaf3;

    color: #18794e;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 15px;
}


/* =========================================================
   CART
   ========================================================= */

.cart-row {
    display: flex;

    gap: 20px;

    align-items: center;

    background: white;

    margin: 15px 0;

    padding: 15px;

    border-radius: 12px;
}

.cart-row img {
    width: 100px;

    height: 120px;

    object-fit: cover;

    border-radius: 8px;
}

.cart-row > div {
    flex: 1;
}

.inline {
    display: inline;
}

.link-button {
    border: 0;

    background: transparent;

    cursor: pointer;

    font: inherit;
}


/* =========================================================
   ORDERS
   ========================================================= */

.order-json {
    white-space: pre-wrap;

    background: white;

    padding: 20px;

    border-radius: 12px;
}


/* =========================================================
   SIDE MENU OVERLAY
   ========================================================= */

.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 900;
}

.menu-overlay.active {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   SIDE MENU
   ========================================================= */

.side-menu {
    position: fixed;

    top: 0;

    left: 0;

    width: 380px;

    max-width: 90vw;

    height: 100vh;

    background: #ffffff;

    transform: translateX(-100%);

    transition: transform 0.35s ease;

    z-index: 1000;

    overflow-y: auto;

    box-shadow:
        5px 0 30px rgba(0, 0, 0, 0.12);
}

.side-menu.active {
    transform: translateX(0);
}


/* =========================================================
   SIDE MENU HEADER
   ========================================================= */

.side-menu-header {
    height: 84px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 25px;

    border-bottom: 1px solid #eeeeee;
}

.side-menu-header h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 24px;

    font-weight: 400;
}


#menuClose {
    width: 40px;

    height: 40px;

    border: none;

    background: transparent;

    font-size: 28px;

    cursor: pointer;

    color: #3a1b27;
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.search-button {
    margin: 25px;

    width: calc(100% - 50px);

    padding: 14px 18px;

    border: 1px solid #dddddd;

    background: #faf8f6;

    text-align: left;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;
}


/* =========================================================
   MENU ITEMS
   ========================================================= */

.menu-items {
    display: flex;

    flex-direction: column;

    padding: 0 25px 30px;
}

.menu-items a {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 17px 0;

    border-bottom: 1px solid #eeeeee;

    font-size: 14px;

    color: #3a1b27;

    transition: color 0.2s ease;
}

.menu-items a:hover {
    color: #7a1938;
}

.menu-items a.highlight {
    color: #7a1938;

    font-weight: 700;
}

.menu-items a span {
    font-size: 18px;
}


/* =========================================================
   PREVENT SCROLL WHEN MENU OPEN
   ========================================================= */

body.menu-open {
    overflow: hidden;
}
