/* ==========================================================================
   COA Engine v2.0.0 — Public Styles
   ========================================================================== */

:root {
    --coa-pub-primary: #4f46e5;
    --coa-pub-primary-hover: #4338ca;
    --coa-pub-success: #10b981;
    --coa-pub-warning: #f59e0b;
    --coa-pub-danger: #ef4444;
    --coa-pub-gray-50: #f9fafb;
    --coa-pub-gray-100: #f3f4f6;
    --coa-pub-gray-200: #e5e7eb;
    --coa-pub-gray-300: #d1d5db;
    --coa-pub-gray-400: #9ca3af;
    --coa-pub-gray-500: #6b7280;
    --coa-pub-gray-700: #374151;
    --coa-pub-gray-800: #1f2937;
    --coa-pub-gray-900: #111827;
    --coa-pub-radius: 10px;
    --coa-pub-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
    --coa-pub-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
}

/* Viewer Container */
.coa-viewer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Search Bar */
.coa-search-bar {
    margin-bottom: 24px;
}

.coa-search-bar input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--coa-pub-gray-200);
    border-radius: var(--coa-pub-radius);
    transition: all .2s ease;
    box-sizing: border-box;
}

.coa-search-bar input:focus {
    outline: none;
    border-color: var(--coa-pub-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

/* Product Grid */
.coa-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Product Card */
.coa-product-card {
    background: #fff;
    border-radius: var(--coa-pub-radius);
    box-shadow: var(--coa-pub-shadow);
    border: 1px solid var(--coa-pub-gray-200);
    overflow: hidden;
    transition: all .2s ease;
}

.coa-product-card:hover {
    box-shadow: var(--coa-pub-shadow-md);
    transform: translateY(-2px);
}

.coa-product-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.coa-product-card .card-body {
    padding: 16px;
}

.coa-product-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--coa-pub-gray-900);
    margin: 0 0 8px;
}

.coa-product-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.coa-product-card .card-compound {
    font-size: 13px;
    color: var(--coa-pub-gray-500);
}

.coa-product-card .card-test-date {
    font-size: 12px;
    color: var(--coa-pub-gray-400);
    margin-bottom: 12px;
}

/* Card Action Buttons */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.coa-view-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--coa-pub-gray-50);
    color: var(--coa-pub-gray-700);
    border: 1px solid var(--coa-pub-gray-200);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
}

.coa-view-btn:hover {
    background: var(--coa-pub-gray-100);
    color: var(--coa-pub-gray-900);
}

.coa-buy-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--coa-pub-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
}

.coa-buy-btn:hover {
    background: var(--coa-pub-primary-hover);
    color: #fff;
    text-decoration: none;
}

/* Badges */
.coa-pub-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.coa-pub-badge-verified {
    background: #dbeafe;
    color: #1e40af;
}

.coa-pub-badge-count {
    background: var(--coa-pub-gray-100);
    color: var(--coa-pub-gray-500);
}

/* Detail View / Modal */
.coa-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.coa-detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

.coa-detail-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
    transform: translateY(20px);
    transition: transform .3s ease;
}

.coa-detail-overlay.active .coa-detail-modal {
    transform: translateY(0);
}

.coa-detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--coa-pub-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coa-detail-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--coa-pub-gray-900);
    margin: 0;
}

.coa-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--coa-pub-gray-400);
    padding: 4px;
}

.coa-detail-close:hover {
    color: var(--coa-pub-gray-700);
}

.coa-detail-body {
    padding: 24px;
}

/* Detail Product Header (Buy Now row) */
.coa-detail-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--coa-pub-gray-100);
}

.coa-detail-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--coa-pub-gray-900);
}

/* COA Table in Detail View */
.coa-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.coa-detail-table thead th {
    background: var(--coa-pub-gray-50);
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--coa-pub-gray-500);
    text-align: left;
    border-bottom: 2px solid var(--coa-pub-gray-200);
}

.coa-detail-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--coa-pub-gray-100);
    color: var(--coa-pub-gray-700);
}

.coa-detail-table tbody tr:hover {
    background: var(--coa-pub-gray-50);
}

.coa-detail-table .purity-high {
    color: var(--coa-pub-success);
    font-weight: 700;
}

.coa-detail-table .purity-good {
    color: #059669;
    font-weight: 600;
}

.coa-detail-table .purity-medium {
    color: var(--coa-pub-warning);
    font-weight: 600;
}

.coa-detail-table .purity-low {
    color: var(--coa-pub-danger);
    font-weight: 700;
}

/* View PDF button in table */
.coa-view-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--coa-pub-gray-50);
    color: var(--coa-pub-primary);
    border: 1px solid var(--coa-pub-gray-200);
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s ease;
}

.coa-view-pdf-btn:hover {
    background: var(--coa-pub-primary);
    color: #fff;
    border-color: var(--coa-pub-primary);
}

.coa-download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--coa-pub-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.coa-download-link:hover {
    color: var(--coa-pub-primary-hover);
}

/* ==========================================================================
   Inline PDF Viewer Modal
   ========================================================================== */
.coa-pdf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.coa-pdf-overlay.active {
    opacity: 1;
    visibility: visible;
}

.coa-pdf-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    transform: scale(0.95);
    transition: transform .3s ease;
}

.coa-pdf-overlay.active .coa-pdf-modal {
    transform: scale(1);
}

.coa-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--coa-pub-gray-200);
    flex-shrink: 0;
}

.coa-pdf-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--coa-pub-gray-800);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.coa-pdf-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coa-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--coa-pub-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s ease;
}

.coa-pdf-download-btn:hover {
    background: var(--coa-pub-primary-hover);
    color: #fff;
    text-decoration: none;
}

.coa-pdf-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--coa-pub-gray-400);
    padding: 4px 8px;
    line-height: 1;
}

.coa-pdf-close:hover {
    color: var(--coa-pub-gray-700);
}

.coa-pdf-body {
    flex: 1;
    overflow: hidden;
}

.coa-pdf-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading */
.coa-pub-loading {
    text-align: center;
    padding: 32px;
    color: var(--coa-pub-gray-400);
}

/* Responsive */
@media (max-width: 640px) {
    .coa-product-grid {
        grid-template-columns: 1fr;
    }

    .coa-detail-modal {
        width: 95%;
        max-height: 90vh;
    }

    .coa-detail-table {
        font-size: 12px;
    }

    .card-actions {
        flex-direction: column;
    }

    .coa-pdf-modal {
        width: 98%;
        height: 90vh;
    }

    .coa-pdf-header h3 {
        max-width: 50%;
    }

    .coa-detail-product-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Product COA Section Classes (replaces inline styles)
   ========================================================================== */
.coa-product-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--coa-pub-gray-50);
    border-radius: 12px;
    border: 1px solid var(--coa-pub-gray-200);
}

.coa-product-section .coa-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--coa-pub-gray-900);
    margin: 0 0 12px;
}

.coa-product-section .coa-stat-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.coa-product-section .coa-stat-card {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--coa-pub-gray-200);
    min-width: 120px;
}

.coa-product-section .coa-stat-label {
    font-size: 12px;
    color: var(--coa-pub-gray-500);
    text-transform: uppercase;
    font-weight: 500;
}

.coa-product-section .coa-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--coa-pub-gray-900);
}

.coa-product-section .coa-stat-value.large {
    font-size: 24px;
    font-weight: 700;
}

.coa-product-section .coa-stat-hint {
    font-size: 12px;
    color: var(--coa-pub-gray-400);
    margin-top: 2px;
}

.coa-product-section .coa-expiry-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.coa-product-section .coa-expiry-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

.coa-product-section .coa-expiry-badge.expiring {
    background: #fef3c7;
    color: #92400e;
}

.coa-product-section .coa-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--coa-pub-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s ease;
}

.coa-product-section .coa-download-btn:hover {
    background: var(--coa-pub-primary-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.coa-product-section .coa-history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--coa-pub-gray-700);
    margin: 0 0 8px;
}

.coa-product-section .coa-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.coa-product-section .coa-history-table thead tr {
    border-bottom: 2px solid var(--coa-pub-gray-200);
}

.coa-product-section .coa-history-table th {
    text-align: left;
    padding: 6px 8px;
    color: var(--coa-pub-gray-500);
    font-size: 11px;
    text-transform: uppercase;
}

.coa-product-section .coa-history-table td {
    padding: 8px;
    border-bottom: 1px solid var(--coa-pub-gray-100);
}

.coa-product-section .coa-history-table a {
    color: var(--coa-pub-primary);
    text-decoration: none;
}

.coa-product-section .coa-history-table a:hover {
    color: var(--coa-pub-primary-hover);
}

/* ==========================================================================
   THEME 2 — Dark Lab
   ========================================================================== */
.coa-theme-dark .coa-viewer-container,
.coa-theme-dark.coa-viewer-container,
.coa-theme-dark.coa-product-section {
    --coa-pub-gray-50: #1a1a2e;
    --coa-pub-gray-100: #16213e;
    --coa-pub-gray-200: #2a2a4a;
    --coa-pub-gray-300: #3a3a5c;
    --coa-pub-gray-400: #8888aa;
    --coa-pub-gray-500: #aaaacc;
    --coa-pub-gray-700: #d4d4ee;
    --coa-pub-gray-800: #e8e8f4;
    --coa-pub-gray-900: #f0f0ff;
    --coa-pub-radius: 8px;
    --coa-pub-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    --coa-pub-shadow-md: 0 4px 20px rgba(0, 0, 0, .5);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.coa-theme-dark .coa-viewer-container,
.coa-theme-dark.coa-viewer-container {
    color: #d4d4ee;
}

.coa-theme-dark .coa-product-card,
.coa-theme-dark.coa-product-section .coa-stat-card {
    background: #16213e;
    border-color: #2a2a4a;
}

.coa-theme-dark .coa-product-card:hover {
    border-color: var(--coa-pub-primary);
    box-shadow: 0 0 20px rgba(79, 70, 229, .3), var(--coa-pub-shadow-md);
    transform: translateY(-3px);
}

.coa-theme-dark .coa-search-bar input {
    background: #16213e;
    color: #e8e8f4;
    border-color: #2a2a4a;
}

.coa-theme-dark .coa-search-bar input:focus {
    border-color: var(--coa-pub-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .25);
}

.coa-theme-dark .card-title {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: -.3px;
}

.coa-theme-dark .coa-pub-badge-verified {
    background: rgba(79, 70, 229, .2);
    color: #a5b4fc;
    border: 1px solid rgba(79, 70, 229, .3);
}

.coa-theme-dark .coa-pub-badge-count {
    background: rgba(255, 255, 255, .06);
    color: #8888aa;
    border: 1px solid #2a2a4a;
}

.coa-theme-dark .coa-view-btn {
    background: #1a1a2e;
    color: #aaaacc;
    border-color: #3a3a5c;
}

.coa-theme-dark .coa-view-btn:hover {
    background: #2a2a4a;
    color: #f0f0ff;
    border-color: var(--coa-pub-primary);
}

.coa-theme-dark .coa-detail-modal,
.coa-theme-dark .coa-pdf-modal {
    background: #0f0f23;
    border: 1px solid #2a2a4a;
}

.coa-theme-dark .coa-detail-header,
.coa-theme-dark .coa-pdf-header {
    border-color: #2a2a4a;
}

.coa-theme-dark .coa-detail-table thead th {
    background: #1a1a2e;
    color: #8888aa;
    border-color: #2a2a4a;
}

.coa-theme-dark .coa-detail-table tbody td {
    color: #d4d4ee;
    border-color: #1a1a2e;
}

.coa-theme-dark .coa-detail-table tbody tr:hover {
    background: #16213e;
}

.coa-theme-dark .coa-view-pdf-btn {
    background: #1a1a2e;
    border-color: #3a3a5c;
}

.coa-theme-dark.coa-product-section {
    background: #0f0f23;
    border-color: #2a2a4a;
}

.coa-theme-dark.coa-product-section .coa-stat-card {
    background: #16213e;
    border-color: #2a2a4a;
}

/* ==========================================================================
   THEME 3 — Glassmorphism
   ========================================================================== */
.coa-theme-glass .coa-viewer-container,
.coa-theme-glass.coa-viewer-container,
.coa-theme-glass.coa-product-section {
    --coa-pub-radius: 16px;
    --coa-pub-shadow: none;
    --coa-pub-shadow-md: none;
    font-family: 'Inter', 'SF Pro Display', -apple-system, sans-serif;
}

.coa-theme-glass .coa-product-card {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, .12);
}

.coa-theme-glass .coa-product-card:hover {
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 8px 32px rgba(31, 38, 135, .22);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, .5);
}

.coa-theme-glass .card-image {
    border-radius: 16px 16px 0 0;
}

.coa-theme-glass .card-body {
    padding: 20px !important;
}

.coa-theme-glass .card-title {
    font-weight: 800;
    letter-spacing: -.3px;
}

.coa-theme-glass .coa-search-bar input {
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    padding: 14px 20px;
}

.coa-theme-glass .coa-search-bar input:focus {
    background: rgba(255, 255, 255, .7);
    border-color: var(--coa-pub-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}

.coa-theme-glass .coa-pub-badge {
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.coa-theme-glass .coa-pub-badge-verified {
    background: rgba(79, 70, 229, .12);
    border: 1px solid rgba(79, 70, 229, .2);
}

.coa-theme-glass .coa-view-btn {
    background: rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
}

.coa-theme-glass .coa-view-btn:hover {
    background: rgba(255, 255, 255, .7);
}

.coa-theme-glass .coa-buy-btn {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, .25);
}

.coa-theme-glass .coa-buy-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, .35);
    transform: translateY(-1px);
}

.coa-theme-glass .coa-detail-modal {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 24px;
}

.coa-theme-glass .coa-pdf-modal {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 20px;
}

.coa-theme-glass .coa-detail-table thead th {
    background: rgba(249, 250, 251, .6);
}

.coa-theme-glass .coa-detail-table tbody tr:hover {
    background: rgba(249, 250, 251, .5);
}

.coa-theme-glass.coa-product-section {
    background: rgba(255, 255, 255, .45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
}

.coa-theme-glass.coa-product-section .coa-stat-card {
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 14px;
}

/* ==========================================================================
   THEME 4 — Minimal Line
   ========================================================================== */
.coa-theme-minimal .coa-viewer-container,
.coa-theme-minimal.coa-viewer-container,
.coa-theme-minimal.coa-product-section {
    --coa-pub-radius: 0;
    --coa-pub-shadow: none;
    --coa-pub-shadow-md: none;
    font-family: 'Georgia', 'Cambria', 'Times New Roman', serif;
}

.coa-theme-minimal .coa-product-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    box-shadow: none;
    transition: border-color .2s ease;
}

.coa-theme-minimal .coa-product-card:hover {
    border-color: var(--coa-pub-primary);
    box-shadow: none;
    transform: none;
}

.coa-theme-minimal .card-image {
    border-bottom: 1px solid #e5e7eb;
}

.coa-theme-minimal .card-title {
    font-family: 'Georgia', 'Cambria', serif;
    font-weight: 400;
    font-size: 17px;
    font-style: italic;
}

.coa-theme-minimal .coa-search-bar input {
    border: none;
    border-bottom: 2px solid #d1d5db;
    border-radius: 0;
    padding: 12px 4px;
    font-family: inherit;
}

.coa-theme-minimal .coa-search-bar input:focus {
    border-color: var(--coa-pub-primary);
    box-shadow: none;
}

.coa-theme-minimal .coa-pub-badge {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    padding: 3px 10px;
    border: 1px solid currentColor;
    background: transparent;
}

.coa-theme-minimal .coa-pub-badge-verified {
    color: #1e40af;
    background: transparent;
}

.coa-theme-minimal .coa-pub-badge-count {
    color: var(--coa-pub-gray-500);
    background: transparent;
}

.coa-theme-minimal .coa-view-btn {
    border-radius: 0;
    border: 1px solid #d1d5db;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.coa-theme-minimal .coa-view-btn:hover {
    border-color: var(--coa-pub-gray-900);
    background: var(--coa-pub-gray-900);
    color: #fff;
}

.coa-theme-minimal .coa-buy-btn {
    border-radius: 0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.coa-theme-minimal .coa-detail-modal {
    border-radius: 0;
    border: 1px solid #d1d5db;
}

.coa-theme-minimal .coa-pdf-modal {
    border-radius: 0;
    border: 1px solid #d1d5db;
}

.coa-theme-minimal .coa-detail-table thead th {
    background: transparent;
    border-bottom: 2px solid #111827;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    font-family: -apple-system, sans-serif;
}

.coa-theme-minimal .coa-detail-table tbody td {
    border-color: #e5e7eb;
}

.coa-theme-minimal .coa-view-pdf-btn {
    border-radius: 0;
}

.coa-theme-minimal.coa-product-section {
    border-radius: 0;
    border: 1px solid #d1d5db;
    background: #fff;
}

.coa-theme-minimal.coa-product-section .coa-section-title {
    font-family: 'Georgia', 'Cambria', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
}

.coa-theme-minimal.coa-product-section .coa-stat-card {
    border-radius: 0;
}

.coa-theme-minimal.coa-product-section .coa-download-btn {
    border-radius: 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .8px;
}

/* ==========================================================================
   THEME 5 — Bold Gradient
   ========================================================================== */
.coa-theme-gradient .coa-viewer-container,
.coa-theme-gradient.coa-viewer-container,
.coa-theme-gradient.coa-product-section {
    --coa-pub-radius: 16px;
    --coa-pub-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    --coa-pub-shadow-md: 0 10px 30px rgba(0, 0, 0, .12);
    font-family: 'Outfit', 'Poppins', 'Montserrat', -apple-system, sans-serif;
}

.coa-theme-gradient .coa-product-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    position: relative;
}

.coa-theme-gradient .coa-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--coa-pub-primary), #ec4899, #f59e0b);
    z-index: 1;
}

.coa-theme-gradient .coa-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    transform: translateY(-6px);
}

.coa-theme-gradient .card-title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.4px;
}

.coa-theme-gradient .card-body {
    padding: 20px !important;
}

.coa-theme-gradient .coa-search-bar input {
    border-radius: 50px;
    padding: 14px 24px;
    border: 2px solid var(--coa-pub-gray-200);
    font-size: 16px;
}

.coa-theme-gradient .coa-search-bar input:focus {
    border-color: var(--coa-pub-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.coa-theme-gradient .coa-pub-badge {
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
}

.coa-theme-gradient .coa-pub-badge-verified {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #3730a3;
}

.coa-theme-gradient .coa-pub-badge-count {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.coa-theme-gradient .coa-view-btn {
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 16px;
    font-size: 13px;
}

.coa-theme-gradient .coa-view-btn:hover {
    background: var(--coa-pub-gray-200);
    transform: translateY(-1px);
}

.coa-theme-gradient .coa-buy-btn {
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 16px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--coa-pub-primary), #7c3aed);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

.coa-theme-gradient .coa-buy-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, .4);
    transform: translateY(-2px);
}

.coa-theme-gradient .coa-detail-modal {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

.coa-theme-gradient .coa-detail-header {
    background: linear-gradient(135deg, var(--coa-pub-primary), #7c3aed);
    color: #fff;
    border: none;
}

.coa-theme-gradient .coa-detail-header h3 {
    color: #fff;
}

.coa-theme-gradient .coa-detail-close {
    color: rgba(255, 255, 255, .7);
}

.coa-theme-gradient .coa-detail-close:hover {
    color: #fff;
}

.coa-theme-gradient .coa-pdf-modal {
    border-radius: 20px;
}

.coa-theme-gradient .coa-pdf-header {
    background: linear-gradient(135deg, var(--coa-pub-primary), #7c3aed);
    border: none;
}

.coa-theme-gradient .coa-pdf-header h3 {
    color: #fff;
}

.coa-theme-gradient .coa-pdf-close {
    color: rgba(255, 255, 255, .7);
}

.coa-theme-gradient .coa-pdf-close:hover {
    color: #fff;
}

.coa-theme-gradient .coa-detail-table thead th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.coa-theme-gradient .coa-view-pdf-btn {
    border-radius: 50px;
}

.coa-theme-gradient.coa-product-section {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc, #f0f0ff);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    position: relative;
    overflow: hidden;
}

.coa-theme-gradient.coa-product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--coa-pub-primary), #ec4899, #f59e0b);
}

.coa-theme-gradient.coa-product-section .coa-section-title {
    font-size: 20px;
    font-weight: 800;
}

.coa-theme-gradient.coa-product-section .coa-stat-card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.coa-theme-gradient.coa-product-section .coa-download-btn {
    border-radius: 50px;
    background: linear-gradient(135deg, var(--coa-pub-primary), #7c3aed);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

.coa-theme-gradient.coa-product-section .coa-download-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, .4);
}