body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 30px;
    background: #f9fafb;
    color: #222;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

th {
    background: #f3f4f6;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

tr:hover td {
    background: #fafafa;
}

a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.price {
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.when {
    color: #666;
    font-size: 0.85rem;
}

/* Pager */
.pager {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.pager a, .pager span.btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: background .15s, border .15s;
}

.pager a:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pager .disabled {
    opacity: .5;
    pointer-events: none;
}

.pager .info {
    margin-left: 8px;
    color: #555;
    font-style: italic;
}

/* Gallery Overlay */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#overlay.open { display: flex; }

#overlayImg {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    line-height: 1;
    color: #fff;
    background: rgba(0,0,0,.3);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
    transition: background .15s;
}

.nav-btn:hover { background: rgba(0,0,0,.6); }

#prevBtn { left: 32px; }
#nextBtn { right: 32px; }

#closeBtn {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}

#closeBtn:hover { color: #e5e7eb; }

img.thumb {
    max-width: 100px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

img.thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hidden { display: none; }
