body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #0070ba;
    color: white;
}

h1 {
    margin: 0;
}

.terms {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.product {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 20px;
    text-align: center;
    flex: 1 1 300px; /* responsive */
    transition: transform 0.2s;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    max-width: 95%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ccc;
    padding: 5px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 
}

.price {
    font-size: 1.5em;
    margin: 10px 0;
    color: #0070ba;
}

.buy-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0070ba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #005a8c;
}

.modal-buy-button {
    display: inline-block;
    width: 350px;
    padding: 10px 15px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.modal-buy-button:hover {
    background-color: #005a8c;
}


@media (max-width: 600px) {
    .product {
        flex: 1 1 100%; 
    }
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    padding: 20px 0;
    text-align: center;
    color: #ecf0f1;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.disclaimer {
    font-size: 14px;
    margin: 10px 0;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-icon {
    width: 50px;
    height: auto;
    margin: 0 10px;
}

.payment-icon:hover {
    transform: scale(1.1); 
    transition: transform 0.3s ease;
}



/* Style za thankyou stran */


body.thank-you {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}


.thank-you-container {
    text-align: center;
}


.thank-you-header {
    background-color: #007bff; 
    width: 100%;
    text-align: center;
    padding: 20px;
    border-radius: 8px 8px 0 0; 
    margin: 0 auto;
    max-width: 400px; 
}

.thank-you-header h1 {
    color: #fff; 
    margin: 0;
}


.thank-you .container {
    background-color: #fff;
    padding: 20px;
    border-radius: 0 0 8px 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: 0 auto; 
}


.thank-you .thank-you-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}


.thank-you label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}


.thank-you input[type="email"] {
    width: 300px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


.thank-you button {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 320px;
    transition: background-color 0.3s;
}


.thank-you button:hover {
    background-color: #218838;
}


.purchase-details {
    margin-top: 20px;
}


.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda; 
    border: 1px solid #c3e6cb; 
    border-radius: 4px;
    color: #155724; 
}

.back-home-button {
    display: block;
    margin-top: 20px; 
    padding: 12px 24px;
    font-size: 16px;
    background-color: #3498db;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-home-button:hover {
    background-color: #2980b9;
}


@media (max-width: 600px) {
    .thank-you h1 {
        font-size: 20px;
    }

    .thank-you p {
        font-size: 14px;
    }

    .thank-you input[type="email"], .thank-you button {
        font-size: 14px;
    }
}

/* Header Styles */
.header {
    width: 100%;
    background-color: #2c3e50; /* Background color for the header */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1200px; /* Maximum width of the header container */
    width: 100%;
    margin: 0 auto; /* Center the header container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.header-logo {
    flex: 1;
}

.logo {
    width: 150px; /* Adjust the size of the logo */
    height: auto;
}

.header-menu {
    flex: 2;
    text-align: right;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    display: inline-block;
    margin-left: 20px;
}

.menu li a {
    text-decoration: none;
    color: #ecf0f1; /* Text color */
    font-size: 16px;
    font-family: 'Roboto', sans-serif; /* Font style */
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu li a:hover {
    background-color: #3498db; /* Hover background */
    color: #fff; /* Hover text color */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-menu {
        width: 100%;
        text-align: left;
        margin-top: 15px;
    }

    .menu li {
        display: block;
        margin: 10px 0;
    }
}

/* Modal Container */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* Full width by default */
    max-width: 500px; /* Limit max width to 600px */
    border-radius: 8px;
    position: relative;
    animation: slideIn 0.3s; /* Optional: Add slide-in animation */
    text-align: center; /* Center align text and inline elements */
}

/* Image Style */
.product-image {
    max-width: 350px;
    height: auto;
    border: 1px solid #ccc;
    margin: 10px 0; /* Add some space around the image */
}

/* Animation for Modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { top: -50px; opacity: 0; }
    to { top: 0; opacity: 1; }
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* More Details Button */
.details-button {
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.details-button:hover {
    background-color: #2980b9;
}

/* Buy Now Button */
.buy-button {
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #27ae60;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%; /* Reduce width on smaller screens */
    }
}

/* Container for buttons to align them horizontally */
.button-container {
    display: inline-flex; /* Use inline-flex to keep container's width natural */
    align-items: baseline; /* Align items vertically centered */
    gap: 10px; /* Add some spacing between the buttons */
    margin-top: 15px;
}

/* Adjust button styles */
.details-button,
.buy-button {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Optional: Uniform button size */
.details-button {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.details-button:hover {
    background-color: #2980b9;
}

/* Optional: Adjust form to keep it inline */
form {
    display: inline; /* Ensure form remains inline */
}

/* Optional: Buy Now button styling */
.buy-button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #27ae60;
}

.edit-button,
.delete-button {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    margin: 5px;
}

.edit-button {
    background-color: #007bff; /* Blue for Edit */
}

.delete-button {
    background-color: #dc3545; /* Red for Delete */
}

.edit-button:hover {
    background-color: #0056b3;
}

.delete-button:hover {
    background-color: #c82333;
}
