.body-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.card-container {
    box-sizing: border-box;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    height: 100%;
    width: 100%;
}

.card:hover {
    transform: scale(1.01);
}

.product-image {
    width: 100%;
    height: 400px;
}

.card-content {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
}

.product-price {
    font-size: 1em;
    color: #333;
}

.product-price span {
    font-size: 0.8em;
    color: #777;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart-button:hover {
    background: linear-gradient(135deg, #388E3C, #2C6B2F);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.delet-to-cart-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #F44336, #D32F2F);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.delet-to-cart-button:hover {
    background: linear-gradient(135deg, #D32F2F, #C62828);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-buy {
    padding: 12px 24px;
    background: linear-gradient(135deg, #091a2a, #21476c);
    border-radius: 5px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #1b3d5d, #1b3d5d);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.autocomplete-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.autocomplete {
    position: relative;
    display: inline-block;
}

#myInput {
    background-color: #f7f7f7;
    border: 1.5px solid #091a2a;
    border-radius: 10px;
    width: 100%;
    padding: 10px 40px 10px 10px;
}

.search-button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    background: linear-gradient(135deg, #091a2a, #21476c);
    height: 100%;
    width: 50px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.search-button:hover {
    background: linear-gradient(135deg, #1b3d5d, #1b3d5d);
}

.search-button i {
    pointer-events: none;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.form-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
}

.form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #091a2a;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.submit-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    background: linear-gradient(45deg, #091a2a, #21476c);
    transition: background 0.3s ease-in-out;
}

.submit-button:hover {
    background: linear-gradient(45deg, #1b3d5d, #1b3d5d);
}

.close-button {
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    background: linear-gradient(45deg, #091a2a, #21476c);
    transition: background 0.3s ease-in-out;
}

.close-button:hover {
    color: white;
}

.alert-success {
    padding: 8px !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 1200px) {
    .body-card {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .body-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .body-card {
        grid-template-columns: 1fr;
    }
}