/* BUTTON */
.choose-store-btn {
    background: #ffb84d; 
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    margin: 30px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 179, 71, 0.2);
}

.choose-store-btn:hover {
    background: #ff9f1a; 
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(255, 160, 0, 0.3);
}

.wa-button {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wa-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(18, 140, 126, 0.3);
}

/* MODAL */
body.store-modal-open {
    overflow: hidden;
}

.store-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.store-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 1100px;
    width: 95%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 95vh;
    min-height: 650px;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

/* STORE */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
    justify-items: center;
    margin-bottom: 20px;
}

.store-card {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    padding: 15px;
    text-align: center;
    height: 170px;
    width: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.store-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.store-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.store-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    line-height: 1.2;
    word-wrap: break-word;
}

/* PAYMENT */
.payment-section {
    display: none;
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.selected-store-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.selected-store-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.product-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-info p {
    margin: 5px 0;
}

/* FORM */
.voucher-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.voucher-input:focus {
    border-color: #007bff;
    outline: none;
}

.total-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    margin-bottom: 20px;
    background: #f8f9fa;
    font-weight: bold;
    font-size: 16px;
}

/* TYPHOGRAPHY */
h1.display-5 {
    font-weight: 700;
    color: #333;
}

.text-primary {
    color: #007bff !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .store-content {
        max-width: 900px;
        padding: 25px;
        min-height: 600px;
    }

    .store-card {
        height: 160px;
        width: 160px;
        padding: 14px;
    }

    .store-image {
        width: 90px;
        height: 90px;
    }

    .store-name {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .store-modal {
        padding: 10px;
    }
    .store-content {
        max-width: 95%;
        padding: 20px;
        max-height: 90vh;
        min-height: auto;
        overflow-y: auto;
    }

    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .store-card {
        height: 130px;
        width: 130px;
        padding: 10px;
    }

    .store-image {
        width: 70px;
        height: 70px;
    }

    .store-name {
        font-size: 12px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .store-modal {
        padding: 5px; 
    }
    
    .store-content {
        padding: 15px;
        max-height: 95vh; 
        min-height: auto; 
        border-radius: 15px; 
    }

    .store-grid {
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .store-card {
        height: 110px; 
        width: 110px;
        padding: 8px;
    }

    .store-image {
        width: 60px;
        height: 60px;
    }

    .store-name {
        font-size: 11px;
        margin-top: 5px;
    }
    
    .store-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}