.printa-wrap *, .printa-wrap *::before, .printa-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* GRID */
.printa-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 12px;
}

/* Single card — centered */
.printa-card-grid--single {
    grid-template-columns: minmax(0, 780px);
    margin: 0 !important;
    justify-content: center;
}

@media (max-width: 1024px) {
    .printa-card-grid:not(.printa-card-grid--single) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .printa-card-grid:not(.printa-card-grid--single) { grid-template-columns: 1fr; }
}

/* CARD */
.printa-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    border: 1px solid #f1f1f1;
}

.printa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* IMAGE */
.printa-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* BODY */
.printa-card-body {
    padding: 12px 10px;
    flex: 1;
}

/* TABLE */
.printa-card-table {
    width: 100% !important;
    border-collapse: collapse;
}

/* HEADER */
.printa-table-header-row th {
    color: #fff;
    text-align: center;
    padding: 12px 10px;
    font-size: 0.95rem;
    font-weight: bold !important;
    letter-spacing: 0.04em;
    border-radius: 10px 10px 0 0;
}

/* Header gradients by card type */
.printa-card--bw    .printa-table-header-row th,
.printa-card--bw_text .printa-table-header-row th { background: linear-gradient(135deg, #636363 0%, #1a1a1a 100%); }
.printa-card--color .printa-table-header-row th,
.printa-card--color_text .printa-table-header-row th { background: linear-gradient(135deg, #0fd850 0%, #1a9e5c 50%, #0b7a8a 100%); }
.printa-card--cmyk  .printa-table-header-row th { background: linear-gradient(135deg, #00d4ff 0%, #c850c0 40%, #ffcc70 75%, #ff6b35 100%); }

/* REMOVE ALL DEFAULT BORDERS */
.printa-card-table,
.printa-card-table th,
.printa-card-table td {
    border: none !important;
}

/* ROWS */
.printa-card-table tbody tr {
    border-bottom: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    border-left: 1.5px solid #e5e7eb;
}

/* CELLS */
.printa-card-table tbody td {
    padding: 12px 8px;
    font-size: 0.88rem;
    color: #333;
    vertical-align: middle;
}

/* COLUMNS */
.printa-col-name {
    width: 30%;
    font-weight: bold !important;
    color: #111827;
}

.printa-col-download {
    width: 40%;
    text-align: center;
}

.printa-col-print {
    width: 30%;
    text-align: center;
}

/* BUTTON BASE */
.printa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.printa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.printa-btn:active {
    transform: scale(0.98);
}

/* DOWNLOAD */
.printa-btn-download {
    font-weight: bold !important;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff !important;
}

/* PRINT */
.printa-btn-print {
    font-weight: bold !important;
    background: linear-gradient(135deg, #48a9ff, #3870fa);
    color: #fff;
}

/* DISABLED */
.printa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    div.table-responsive table.printa-card-table {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ── HORIZONTAL CARD (desktop only, single shortcode) ── */
@media (min-width: 601px) {
    .printa-card--horizontal {
        flex-direction: row;
        align-items: stretch;
    }

    .printa-card--horizontal .printa-card-image {
        width: 42%;
        height: auto;
        min-height: 100%;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 16px 0 0 16px;
    }

    .printa-card--horizontal .printa-card-body {
        width: 58%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 16px;
    }
}

/* Mobile — horizontal card falls back to vertical (no extra CSS needed,
   default .printa-card is already flex-direction: column) */

/* TOAST */
#printa-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    z-index: 9999;
}

#printa-toast.printa-show {
    opacity: 1;
    transform: translateY(0);
}
