/* Membership Manager - Public/Frontend Styles */

/* General */
.mm-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.mm-btn-primary {
    background: #2271b1;
    color: #fff;
}

.mm-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.mm-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.mm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.mm-table th,
.mm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mm-table th {
    background: #f6f7f7;
    font-weight: 600;
}

/* Status badges */
.mm-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mm-status-active,
.mm-status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.mm-status-pending {
    background: #fff3cd;
    color: #664d03;
}

.mm-status-cancelled,
.mm-status-expired {
    background: #f8d7da;
    color: #842029;
}

/* Products Grid */
.mm-products-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.mm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mm-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mm-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.mm-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mm-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.mm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-product-info {
    padding: 20px;
}

.mm-product-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.mm-product-price {
    margin: 10px 0;
    font-size: 20px;
}

.mm-product-price del {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.mm-product-price strong {
    color: #2271b1;
}

.mm-product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Dashboard */
.mm-member-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.mm-welcome {
    background: #f0f6fb;
    border: 1px solid #c5d9ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.mm-welcome h2 {
    margin-top: 0;
}

/* Forms */
.mm-login-form,
.mm-register-form,
.mm-checkout-form {
    max-width: 500px;
    margin: 0 auto;
}

.mm-login-form p,
.mm-register-form p {
    margin-bottom: 15px;
}

.mm-login-form label,
.mm-register-form label,
.mm-checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mm-login-form input[type="text"],
.mm-login-form input[type="password"],
.mm-register-form input[type="text"],
.mm-register-form input[type="email"],
.mm-register-form input[type="tel"],
.mm-register-form input[type="password"],
.mm-checkout-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mm-login-form input:focus,
.mm-register-form input:focus,
.mm-checkout-form select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Checkout */
.mm-checkout {
    max-width: 600px;
    margin: 0 auto;
}

.mm-order-summary {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.mm-total td {
    font-size: 18px;
    border-top: 2px solid #333;
}

/* Notices */
.mm-error {
    background: #f8d7da;
    color: #842029;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.mm-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .mm-columns-2,
    .mm-columns-3,
    .mm-columns-4 {
        grid-template-columns: 1fr;
    }

    .mm-table {
        font-size: 14px;
    }

    .mm-table th,
    .mm-table td {
        padding: 8px;
    }
}
