/* ===== SHOP EXTRA STYLES ===== */
/* Product Price & Stock */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price .original-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.product-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-stock.in-stock {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-products i {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

/* Purchase Modal */
.purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.purchase-modal {
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(15, 15, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    margin: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.purchase-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-modal-header h2 {
    font-size: 20px;
    color: white;
    margin: 0;
}

.purchase-modal-header .modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.purchase-modal-body {
    padding: 24px;
}

.purchase-modal-body>p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.6;
}

.purchase-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: rgba(255, 255, 255, 0.5);
}

.info-row strong {
    color: white;
}

.insufficient-balance {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    text-align: center;
}

.insufficient-balance p {
    color: #ef4444;
    margin: 0;
}

.insufficient-balance a {
    color: #a855f7;
    text-decoration: underline;
}

.purchase-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.purchase-modal-footer .btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.purchase-modal-footer .btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.purchase-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.purchase-modal-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Delivered Data */
.delivered-data {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 10px;
    margin: 16px 0;
}

.delivered-data code {
    flex: 1;
    color: #22c55e;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.delivered-data button {
    background: rgba(168, 85, 247, 0.2);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: #a855f7;
    cursor: pointer;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    opacity: 1;
}

.modal {
    background: rgba(20, 20, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.modal-body {
    padding: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.5);
}

.toast-success i {
    color: #22c55e;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast-error i {
    color: #ef4444;
}

.toast-info i {
    color: #3b82f6;
}