/* Members supplements shop - frontend styles.
   White base with calm green accents, designed to sit inside SWELL.
   Mobile first. All selectors are prefixed with .msl- to avoid clashes. */

.msl-shop {
    --msl-green: #2f6f4e;
    --msl-green-dark: #1f4d36;
    --msl-green-light: #e8f3ec;
    --msl-text: #243528;
    --msl-border: #cfddd3;
    color: var(--msl-text);
    max-width: 1080px;
    margin: 0 auto;
}

.msl-shop .msl-heading {
    color: #fff;
    background: var(--msl-green-dark);
    border-left: none;
    padding: 0.5em 0.8em;
    border-radius: 6px;
}

.msl-shop .msl-error {
    background: #fdecec;
    color: #8a1f1f;
    border: 1px solid #e5aaaa;
    border-radius: 8px;
    padding: 0.7em 1em;
}

.msl-shop .msl-button {
    display: inline-block;
    border: 1px solid var(--msl-green);
    background: #ffffff;
    color: var(--msl-green-dark);
    border-radius: 999px;
    padding: 0.6em 1.4em;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
}

.msl-shop .msl-button-primary {
    background: var(--msl-green);
    color: #ffffff;
    font-weight: 700;
}

.msl-shop .msl-button-primary:disabled {
    background: #9db8a8;
    border-color: #9db8a8;
    cursor: not-allowed;
}

/* Closed period */
.msl-closed-message {
    background: var(--msl-green-light);
    border: 1px solid var(--msl-border);
    border-radius: 12px;
    padding: 1.2em;
    text-align: center;
    font-size: 1.05rem;
}

/* Login */
.msl-login-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.msl-login-form input[type="password"] {
    width: 100%;
    max-width: 420px;
    padding: 0.7em;
    font-size: 1rem;
    border: 1px solid var(--msl-border);
    border-radius: 8px;
    margin-bottom: 0.8em;
}

/* Product grid */
.msl-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 1.2em 0 2em;
}

@media (min-width: 640px) {
    .msl-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .msl-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

.msl-card {
    background: #ffffff;
    border: 1px solid var(--msl-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msl-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: var(--msl-green-light);
    cursor: pointer;
}

.msl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.msl-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--msl-green-dark);
    font-weight: 700;
}

.msl-card-name {
    font-size: 1.1rem;
    margin: 0.3em 0 0;
    color: var(--msl-green-dark);
}

.msl-card-desc {
    font-size: 0.9rem;
    margin: 0;
}

.msl-price-general {
    margin: 0;
    color: #5c6f62;
    text-decoration: line-through;
}

.msl-price-salon {
    margin: 0;
    color: var(--msl-green-dark);
}

.msl-price-salon strong {
    font-size: 1.5rem;
    color: var(--msl-green);
}

.msl-price-discount {
    margin: 0;
    color: #b3541e;
    font-weight: 700;
}

.msl-card-limit {
    margin: 0;
    font-size: 0.85rem;
    color: #5c6f62;
}

.msl-card-message {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    color: var(--msl-green-dark);
}

.msl-add-button {
    margin-top: auto;
    min-height: 48px;
    font-size: 1rem;
}

/* Cart */
.msl-cart {
    background: var(--msl-green-light);
    border: 1px solid var(--msl-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 2em;
}

.msl-cart-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.msl-cart-line-name {
    flex: 1 1 100%;
    font-weight: 700;
}

@media (min-width: 640px) {
    .msl-cart-line-name {
        flex: 1 1 auto;
    }
}

.msl-qty-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--msl-green);
    background: #ffffff;
    color: var(--msl-green-dark);
    font-size: 1.2rem;
    cursor: pointer;
}

.msl-qty-input {
    width: 64px;
    height: 44px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid var(--msl-border);
    border-radius: 8px;
}

.msl-remove-button {
    min-height: 44px;
    border: 1px solid #c0564b;
    color: #8a1f1f;
    background: #ffffff;
    border-radius: 999px;
    padding: 0 1em;
    cursor: pointer;
}

.msl-cart-total {
    font-size: 1.15rem;
}

.msl-cart-total strong {
    font-size: 1.5rem;
    color: var(--msl-green-dark);
}

.msl-cart-shortage {
    font-weight: 700;
    color: #8a5a1f;
}

.msl-cart-shortage.msl-ok {
    color: var(--msl-green-dark);
}

/* Order form */
.msl-order-form p {
    margin: 0 0 1em;
}

.msl-order-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.msl-order-form input[type="text"],
.msl-order-form input[type="email"],
.msl-order-form input[type="tel"],
.msl-order-form select,
.msl-order-form textarea {
    width: 100%;
    padding: 0.7em;
    font-size: 1rem;
    border: 1px solid var(--msl-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--msl-text);
}

.msl-required {
    color: #b3261e;
    font-size: 0.8rem;
}

.msl-note {
    font-size: 0.9rem;
    color: #5c6f62;
}

/* Confirmation */
.msl-confirm-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2em;
}

.msl-confirm-items th,
.msl-confirm-items td {
    border: 1px solid var(--msl-border);
    padding: 0.6em;
    text-align: left;
}

.msl-confirm-items thead th {
    background: var(--msl-green);
    color: #ffffff;
}

.msl-confirm-items tfoot th,
.msl-confirm-items tfoot td {
    background: var(--msl-green-light);
    font-weight: 700;
}

.msl-confirm-form {
    margin: 1.2em 0;
}

.msl-complete strong {
    color: var(--msl-green-dark);
}
