@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #000000;
    --text-color: #191919;
    --text-secondary: #4B4B4B;
    --bg-light: #FAFAFA;
    --border-color: #E0E0E0;
    --success-color: #2E7D32;
    --error-bg: #FFEBEE;
    --error-text: #C62828;
}

.loufiem-nfc-container {
    max-width: 600px;
    margin: 60px auto;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

/* Card Styles */
.loufiem-nfc-form-card,
.loufiem-nfc-result-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.08);
}

/* Headings */
.loufiem-nfc-form-card h2,
.loufiem-nfc-result-card h2 {
    margin: 0 0 10px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.loufiem-nfc-form-card p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Form Styles */
.loufiem-form-group {
    margin-bottom: 24px;
}

.loufiem-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
}

.loufiem-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-light);
    padding: 0 16px;
    transition: all 0.3s ease;
    height: 50px;
}

.loufiem-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.loufiem-input-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.loufiem-input-icon svg path {
    fill: #9E9E9E;
    transition: fill 0.3s ease;
}

.loufiem-input-wrapper:focus-within .loufiem-input-icon svg path {
    fill: var(--primary-color);
}

.loufiem-form-group input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 0;
    height: 100%;
    outline: none;
}

/* Button Styles */
.form-actions {
    margin-top: 32px;
}

.loufiem-nfc-btn {
    width: 100%;
    background: #000000 !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.loufiem-nfc-btn:hover {
    background: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Result Page Specifics */
.nfc-success-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nfc-check-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.nfc-success-title {
    font-size: 20px;
    color: var(--success-color);
    font-weight: 700;
    text-transform: uppercase;
}

.product-details {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.3;
}

.product-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.meta-value {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.scanned-notice {
    background: #FFF3E0;
    color: #E65100;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.secondary-action {
    margin-top: 30px;
    text-align: center;
}

.btn-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.btn-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.loufiem-nfc-error {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Gallery */
.nfc-product-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Aspect ratio if needed, or fixed height */
    height: 300px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain based on preference */
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* for scrollbar spacing if needed */
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #f0f0f0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 0.8;
}