* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #005baa, #0078d4);
    color: white;
    padding: 30px 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Products Grid */
main {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #222;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #005baa;
}

/* Pay Button */
.btn-pay {
    background: linear-gradient(135deg, #005baa, #0078d4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-pay:hover {
    background: linear-gradient(135deg, #004a8f, #0066b8);
    transform: scale(1.02);
}

.btn-pay:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
}

/* Success & Callback Pages */
.message-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.message-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.message-box h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.message-box p {
    color: #666;
    margin-bottom: 20px;
}

.message-box .status-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.message-box .status-icon.success {
    color: #27ae60;
}

.message-box .status-icon.error {
    color: #e74c3c;
}

.message-box .status-icon.pending {
    color: #f39c12;
}

.btn-back {
    display: inline-block;
    background: #005baa;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #004a8f;
}

.transaction-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.transaction-details dt {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    margin-top: 8px;
}

.transaction-details dd {
    color: #333;
    margin-left: 0;
    margin-bottom: 4px;
}
