/* Main Container Styles */
.almadaa-gift-card-store,
.almadaa-my-gift-cards,
.almadaa-purchase-history {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Wallet balance box */
.wallet-balance {
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Gift cards grid */
.gift-cards-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Gift card */
.gift-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gift-card-image {
    height: 200px;
    overflow: hidden;
}

.gift-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-card-details {
    padding: 15px;
}

.gift-card-details h3 {
    margin-top: 0;
    color: #333;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #2a7d2a;
    margin: 10px 0;
}

.stock {
    color: #666;
    margin-bottom: 15px;
}

/* Purchase button */
.purchase-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background 0.3s ease;
}

.purchase-btn:hover {
    background: #135e96;
}

.purchase-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Gift card status */
.card-code {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #2a7d2a;
}

.card-amount {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.card-expiry {
    color: #666;
    font-size: 14px;
}

.expired-badge {
    background: #d63638;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

.gift-card.expired {
    opacity: 0.7;
    border-color: #d63638;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gift-card-details h3 {
        font-size: 18px;
    }
    .price {
        font-size: 20px;
    }
    .purchase-btn {
        font-size: 15px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .gift-card-details h3 {
        font-size: 16px;
    }
    .price {
        font-size: 18px;
    }
    .purchase-btn {
        font-size: 14px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .gift-card-details h3 {
        font-size: 14px;
    }
    .price {
        font-size: 16px;
    }
    .purchase-btn {
        font-size: 13px;
        padding: 6px 8px;
    }
    .gift-cards-grid,
    .cards-grid {
        gap: 10px;
    }
}