:root {
    --wcsm-neon: #dc2626; /* red-600 */
    --wcsm-bg-dark: #f8fafc; /* slate-50 */
    --wcsm-card-bg: #ffffff; /* white */
    --wcsm-text: #0f172a; /* slate-900 */
}

.wcsm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--wcsm-bg-dark);
}

@media (min-width: 768px) {
    .wcsm-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
}

.wcsm-card {
    background: var(--wcsm-card-bg);
    border-radius: 12px; /* rounded-xl */
    overflow: hidden;
    position: relative;
    color: var(--wcsm-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(220, 38, 38, 0.2); /* border-red-600/20 */
    display: flex;
    flex-direction: column;
    padding: 4px; /* p-1 equivalent */
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.05);
}

.wcsm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.wcsm-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 8px; /* inner rounded-lg */
    margin-bottom: 0.5rem;
    position: relative;
}

/* En stock badge simulation for plain CSS version */
.wcsm-card-img::after {
    content: "EN STOCK";
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--wcsm-neon);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    font-style: italic;
    padding: 2px 4px;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .wcsm-card-img {
        height: 280px;
        margin-bottom: 1rem;
    }
    .wcsm-card-img::after {
        top: 8px;
        right: 8px;
        font-size: 10px;
        padding: 2px 8px;
    }
}

.wcsm-card-content {
    padding: 0 0.5rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .wcsm-card-content {
        padding: 0 0.75rem 1rem 0.75rem;
    }
}

.wcsm-title {
    margin: 0;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700; /* font-bold */
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .wcsm-title {
        font-size: 1.125rem; /* text-lg */
        margin-bottom: 0.5rem;
    }
}

.wcsm-desc {
    color: #475569;
    font-size: 0.55rem;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wcsm-desc {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

.wcsm-price {
    font-size: 0.875rem; /* text-sm */
    font-weight: 900;
    color: var(--wcsm-neon); /* red-600 */
    margin-top: auto;
}

@media (min-width: 768px) {
    .wcsm-price {
        font-size: 1.25rem; /* text-xl */
    }
}

.wcsm-btn-commander {
    background: var(--wcsm-neon);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem; /* text-xs */
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    margin-top: 1rem;
}

.wcsm-btn-commander:hover {
    background: #b91c1c; /* red-700 */
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.5);
}

/* Modal styles */
.wcsm-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wcsm-modal.hidden {
    display: none;
}

.wcsm-modal-content {
    background: #ffffff; /* white */
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: var(--wcsm-text);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
}

.wcsm-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8; /* slate-400 */
    transition: color 0.2s;
}

.wcsm-close:hover {
    color: white;
}

.wcsm-modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em; /* tracking-tighter */
    text-transform: uppercase;
    color: var(--wcsm-neon); /* red-600 */
    margin-bottom: 0.5rem;
}

.wcsm-modal-content p {
    color: #475569; /* slate-600 */
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.wcsm-donation-options {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.wcsm-don-btn {
    flex: 1;
    padding: 0.5rem;
    background: #ffffff; /* white */
    border: 1px solid #cbd5e1; /* slate-300 */
    color: #334155; /* slate-700 */
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.875rem; /* text-sm */
    transition: all 0.2s;
}

.wcsm-don-btn.active, .wcsm-don-btn:hover {
    border-color: var(--wcsm-neon);
    background: #fef2f2; /* red-50 */
    color: var(--wcsm-neon);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.15);
}

.wcsm-custom-don {
    margin-bottom: 2rem;
    text-align: left;
}

.wcsm-custom-don label {
    display: block;
    color: #64748b; /* slate-500 */
    font-size: 0.75rem; /* text-xs */
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.05em; /* tracking-widest */
}

.wcsm-custom-don input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff; /* white */
    border: 1px solid #cbd5e1; /* slate-300 */
    color: #0f172a;
    border-radius: 8px;
    font-size: 0.875rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

.wcsm-custom-don input:focus {
    outline: none;
    border-color: var(--wcsm-neon);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.1);
}

.wcsm-btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--wcsm-neon);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: -0.05em; /* tracking-tighter */
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.2);
}

.wcsm-btn-submit:hover {
    background: #b91c1c; /* red-700 */
}

.wcsm-btn-skip {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: #64748b;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.2s;
    border-radius: 8px;
}

.wcsm-btn-skip:hover {
    color: #334155;
    background: #f8fafc;
}
