﻿:root {
    --bg: #ffffff;
    --primary-color: #F57C00;
    --primary-light: #FFB74D;
    --header-gradient-end: #FF9800;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --success: #4caf50;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --transition: 0.3s ease;
    --gs1-blue: #002c6c;
    --gs1-orange: #f26334;
    --gs1-dark-gray: #58595b;
    --gs1-medium-gray: #a7a9ac;
    --gs1-light-gray: #e6e7e8;
}

/* Color Utilities */
.bg-gs1-blue {
    background-color: var(--gs1-blue) !important;
}

.bg-gs1-orange {
    background-color: var(--gs1-orange) !important;
}

.text-gs1-blue {
    color: var(--gs1-blue) !important;
}

.text-gs1-orange {
    color: var(--gs1-orange) !important;
}

.text-gs1-dark-gray {
    color: var(--gs1-dark-gray) !important;
}

.bg-gs1-light-gray {
    background-color: var(--gs1-light-gray) !important;
}

/* Buttons */
.btn-gs1-orange {
    background-color: var(--gs1-orange);
    border-color: var(--gs1-orange);
    color: white;
}

    .btn-gs1-orange:hover {
        background-color: #d14619;
        border-color: #d14619;
        color: white;
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--gray-200);
    color: var(--gray-800);
    min-height: 100vh;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--header-gradient-end) 100%);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.category-wrapper {
    background: var(--white);
    border: 1px solid rgba(0,44,108,.08);
    /*padding: 20px;*/
    border-radius: 20px;
}


.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gs1-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
}

    .gs1-logo svg {
        width: 40px;
        height: 30px;
    }

.logo-text {
    font-size: 0.65rem;
    color: var(--primary-color);
    font-weight: 500;
}

.header-title h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.search-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .search-box:focus-within {
        border-color: var(--primary-color);
    }

.search-icon {
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    color: var(--gray-500);
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

    .search-input::placeholder {
        color: var(--gray-400);
    }

.qr-scan-btn {
    background: var(--primary-color);
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
}

    .qr-scan-btn svg {
        width: 28px;
        height: 28px;
        color: var(--white);
    }

.search-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.status-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.status-label {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 28px;
    cursor: pointer;
    transition: var(--transition);
}

    .toggle-slider:before {
        content: '';
        position: absolute;
        width: 22px;
        height: 22px;
        left: 3px;
        bottom: 3px;
        background: var(--white);
        border-radius: 50%;
        transition: var(--transition);
    }

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }

.category-section {
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0.75rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

    .category-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .category-item.active {
        border-color: var(--primary-color);
        background: #FFF3E0;
    }

.category-icon {
    width: 60px;
    height: 60px;
}

    .category-icon svg {
        width: 100%;
        height: 100%;
    }

.category-item span {
    font-size: 0.85rem;
    text-align: center;
    color: var(--gray-700);
    font-weight: 500;
}

.products-section {
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.product-card {
    position: relative; /* 👈 สำคัญมาก */
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: all .2s ease;
}


    .product-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }


/* IMAGE */
.product-image-wrapper {
    width: 100%;
    height: 180px; /* 👈 คุมความสูง */
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* 👈 สำคัญมาก */
    }

.product-side-icon {
    position: absolute;
    top: 90%;
    right: 20px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
    z-index: 3;
}

/* Mobile only */
@media (max-width: 576px) {
    .product-side-icon {
        right: 7px;
        top: 90%;
        width: 30px;
        height: 30px;
    }

    .product-side-icon i {
        font-size: 18px;
    }

    .product-image-wrapper {
        height: 110px; /* 👈 คุมความสูง */
    }
}

    .product-side-icon i {
        font-size: 22px;
        color: #0d6efd;
    }

    .product-side-icon.retail {
        background: #e7f1ff;
    }

    .product-side-icon.wholesale {
        background: #fff3cd;
    }

.product-sale-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}
    /* ขายส่ง */
    .product-sale-type.wholesale {
        background: #e7f1ff;
        color: #0d6efd;
    }
    /* ขายปลีก */
    .product-sale-type.retail {
        background: #f1f3f5;
        color: #495057;
    }

    .product-sale-type i {
        font-size: 16px;
    }



.no-image {
    color: #bbb;
    text-align: center;
    font-size: 12px;
}
/* BODY */
.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-gtin {
    font-size: 14px;
    color: #ff6a00;
    font-weight: 600;
    margin-bottom: 4px;
}
/* จำกัดชื่อสินค้า 2 บรรทัด */
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* meta */
.product-meta,
.product-brand,
.product-category {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.view-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

    .modal.show {
        display: flex;
    }

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--header-gradient-end) 100%);*/
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

    .modal-header h3 {
        color: var(--white);
        font-size: 1.1rem;
        font-weight: 600;
    }

.detail-header .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.back-btn,
.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.scanner-modal {
    max-width: 500px;
}

.scanner-container {
    position: relative;
    background: #000;
    aspect-ratio: 4/3;
}

#qrVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.scanner-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.manual-input {
    padding: 1.5rem;
    background: var(--gray-50);
}

    .manual-input p {
        font-size: 0.9rem;
        color: var(--gray-600);
        margin-bottom: 0.75rem;
    }

.manual-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

    .manual-input-wrapper input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 2px solid var(--gray-300);
        border-radius: var(--radius-md);
        font-size: 1rem;
        font-family: inherit;
        outline: none;
    }

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
}

.product-detail-modal {
    max-width: 900px;
}

.product-detail-content {
    padding: 1.5rem;
}

.product-info-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.product-image-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-product-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-dimensions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--gray-800);
}

    .detail-value.highlight {
        color: var(--primary-color);
    }

    .detail-value a {
        color: var(--primary-color);
        text-decoration: none;
    }

.company-info-section,
.ai-qualifiers-section,
.digital-link-section {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.section-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.company-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.company-row {
    display: flex;
    gap: 0.75rem;
}

.company-label {
    min-width: 120px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.company-value {
    font-size: 0.9rem;
    color: var(--gray-800);
}

    .company-value.status-active {
        color: var(--primary-color);
        font-weight: 500;
    }

.qualifier-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.qualifier-label {
    font-size: 0.9rem;
}

.qualifier-code {
    color: var(--primary-color);
    font-weight: 500;
}

.qualifier-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.qualifier-value {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 500;
}

.digital-link-url {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--gray-700);
    word-break: break-all;
    font-family: monospace;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-details-grid {
        grid-template-columns: 1fr;
    }
}
/* Scanner Overlay */
.scanner-overlay {
    z-index: 10;
}

.scan-frame {
    width: 250px;
    height: 250px;
    border: 4px solid var(--gs1-orange);
    border-radius: 20px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5); /* Dimming effect */
    position: relative;
    background-color: transparent;
}
    /* Corners specifically (optional enhancement) */
    .scan-frame::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border: 3px solid rgba(255,255,255,0.2);
        border-radius: 20px;
        z-index: -1;
    }
/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Utilities */
.dashed-border {
    border-style: dashed !important;
    border-width: 2px !important;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .scan-frame {
        width: 70vw;
        height: 70vw;
    }
}
/* Card base */
.cert-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: all 0.25s ease;
    border-left: 4px solid #0A4A8F; /* GS1 Blue */
}
    /* Hover effect */
    .cert-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(10, 74, 143, 0.15);
    }
/* Badge */
.cert-badge {
    background-color: rgba(10, 74, 143, 0.1);
    color: #0A4A8F;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}
/* Button */
.cert-card .btn-outline-primary {
    --bs-btn-color: #0A4A8F;
    --bs-btn-border-color: #0A4A8F;
    --bs-btn-hover-bg: #0A4A8F;
    --bs-btn-hover-border-color: #0A4A8F;
}


.scroll-top-link {
    color: #FF6A13; /* GS1 Orange */
    text-decoration: none;
}

    .scroll-top-link:hover {
        color: #e55c10;
    }

.scroll-top-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #FF6A13;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.scroll-top-link:hover .scroll-top-icon {
    transform: translateY(-2px);
    background-color: #e55c10;
}

.section-title-alt {
    font-size: 1.4rem;
    font-weight: 700;
    padding-left: 0.75rem;
    padding-top: 1.2rem;
}

    .section-title-alt small {
        display: block;
        margin-top: 4px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #ff6a13; /* GS1 Orange */
        letter-spacing: 0.4px;
    }


.empty-icon {
    font-size: 72px; /* ← ขยายตรงนี้ */
    color: #9ca3af; /* เทาอ่อน สุภาพ */
    line-height: 1;
}

    .empty-icon i {
        display: inline-block;
    }

/* Featured card */
.featured-card {
    background: #ffffff;
    border-left: 4px solid #0A4A8F; /* GS1 Blue */
}
/* Result count badge */
.result-count-badge {
    background-color: rgba(10, 74, 143, 0.1);
    color: #0A4A8F;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}
/* Header text spacing */
.featured-card h5 {
    line-height: 1.2;
}
/* Responsive tweak */
@media (max-width: 576px) {
    .result-count-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

#thumbWrapper img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: .6;
    transition: all .2s ease;
}

    #thumbWrapper img:hover {
        opacity: 1;
    }

    #thumbWrapper img.active {
        opacity: 1;
        outline: 2px solid #ff6a13;
        outline-offset: -2px;
    }



.barcode-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid transparent;
    white-space: nowrap;
}
    /* ===== GTIN / 1D ===== */
    .barcode-chip.gtin {
        background: #e8f2ff;
        color: #0a4a8f; /* GS1 Blue */
        border-color: #b6d4ff;
    }
    /* ===== QR / DataMatrix ===== */
    .barcode-chip.qrcode {
        background: linear-gradient(135deg, #00c6ff, #0072ff);
        color: #fff;
        border: none;
    }
    /* ===== DataMatrix (ถ้าจะใช้) ===== */
    .barcode-chip.datamatrix {
        background: linear-gradient(135deg, #20c997, #0ca678);
        color: #fff;
    }
    /* icon size */
    .barcode-chip i {
        font-size: 1rem;
    }


.dl-action {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0a4a8f;
    text-decoration: none;
}

    .dl-action:hover {
        background: #0a4a8f;
        color: #fff;
    }


.scan-card-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    cursor: pointer;
    transition: all .25s ease;
}

    .scan-card-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
        border-color: #d1d5db;
    }

.scan-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.scan-card-text {
    flex: 1;
}

    .scan-card-text .title {
        font-weight: 600;
        font-size: 1rem;
        color: #111827;
    }

    .scan-card-text .subtitle {
        font-size: .85rem;
        color: #6b7280;
    }

.scan-card-arrow {
    color: #9ca3af;
    font-size: 20px;
}

.scan-reset-btn {
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

    .scan-reset-btn:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border-color: #cbd5e1;
    }

    .scan-reset-btn .icon-wrap {
        width: 36px;
        height: 36px;
        background-color: #0d6efd;
        color: #fff;
        font-size: 18px;
    }

.expiry-hero-card {
    background: #fff;
    border: 1px solid transparent;
    border-left: 6px solid transparent;
}
    /* ===== Level Colors ===== */
    .expiry-hero-card.info {
        border-color: #0d6efd;
    }

    .expiry-hero-card.warning {
        border-color: #f59f00;
    }

    .expiry-hero-card.danger {
        border-color: #dc3545;
    }
/* ===== Circle ===== */
.expiry-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a8b, #ff6a88);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expiry-hero-card.info .expiry-circle {
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.expiry-hero-card.warning .expiry-circle {
    background: linear-gradient(135deg, #fbc02d, #f59f00);
}

.expiry-hero-card.danger .expiry-circle {
    background: linear-gradient(135deg, #ff6b6b, #dc3545);
}

.expiry-circle .days {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.expiry-circle .label {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.85;
}


.toast-container {
    bottom: 4rem;
}


.expiry-circle-sm {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5dade2, #3498db);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}

    .expiry-circle-sm .days {
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .expiry-circle-sm .label {
        font-size: 9px;
        letter-spacing: 1px;
        opacity: 0.85;
    }

.toast.info .expiry-circle-sm {
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.toast.warning .expiry-circle-sm {
    background: linear-gradient(135deg, #fbc02d, #f59f00);
}

.toast.danger .expiry-circle-sm {
    background: linear-gradient(135deg, #ff6b6b, #dc3545);
}


.origin-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569; /* slate-600 */
    background: #f8fafc; /* slate-50 */
    border-radius: 12px;
    padding: 8px 12px;
}

    .origin-inline i {
        font-size: 16px;
        color: #f59e0b; /* amber-500 */
    }

    .origin-inline strong {
        color: #0f172a; /* slate-900 */
    }


.logo-box {
    width: 100px;
    height: 100px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

    .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }

.origin-inline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    padding: 14px 18px;
    border-radius: 12px;
}

.origin-main {
    font-size: 0.95rem;
    color: #444;
}

.origin-reason {
    margin-top: 6px;
    display: inline-block;
    background: #ffffff;
    color: #b26a00;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
}
