/* Global base styles */
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #111827;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Utility classes (optional, if you want them globally) */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.mt-10 { margin-top: 2.5rem; }

/* Abuse modal hidden by default */
.abuse-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

/* Abuse modal content box */
.abuse-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 300px;
    border-radius: 6px;
    font-size: 13px;
    position: relative;
}

/* Close button */
.abuse-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}
.abuse-close:hover {
    color: #e74c3c;
}

/* Form styling inside abuse modal */
.abuse-modal-content form input,
.abuse-modal-content form select,
.abuse-modal-content form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.abuse-modal-content form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

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

/* QR modal content box */
.qr-modal-content {
    background: #fff;
    padding: 24px;
    width: 320px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    animation: qrModalScale 0.25s ease-out;
}

@keyframes qrModalScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qr-modal-content h6 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Close button */
.qr-close {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}
.qr-close:hover {
    color: #ef4444;
}

/* QR code body */
.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-modal-body img {
    width: 200px;
    height: 200px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.qr-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.qr-download-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Make catalog page QR codes clickable */
.qr-code img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.qr-code img:hover {
    transform: scale(1.05);
}
