body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    color: white;
    padding: 1px 0;
    text-align: center;
    box-shadow: none;
    position: relative;
}

h1 {
    margin: 0;
}

nav {
    padding: 10px 0;
    display: flex;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

nav a:hover {
    color: #cb0c0c;
}

.logo {
    max-width: 100%;
    height: 10vh;
    border-radius: 8px;
    position: absolute;
    left: 12px;
    top: 50%;
    margin-top: -5vh;
    width: auto;
    margin-left: 0;
}

.container {
    background: linear-gradient(to bottom, #c507eb, #41abe3);
}

.login-info {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
}

.login-info button {
    background-color: white;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 20px;
    font-size: 14px;
    margin-right: -2px;
    margin-top: 10px;
}

.login-info button:hover {
    background-color: #f0f0f0;
}

.add-button {
    position: absolute;
    left: 1240px;
    top: 55%;
}

.add-button button {
    background-color: white;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nav-buttons {
    position: absolute;
    left: 26%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 40px;
}

.nav-btn {
    background-color: white;
    color: #333;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nav-btn:hover {
    background-color: #f0f0f0;
}

.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button-group button, .button-group input[type="submit"] {
    flex: 1;
    margin: 0 5px;
}

.register-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.add-product-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.add-product-form label {
    display: block;
    margin-top: 15px;
}

.add-product-form input, .add-product-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #fafafa;
}

.drop-zone.dragover {
    background-color: #e0e0e0;
}

#thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thumbnail {
    position: relative;
    margin: 5px;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.thumbnail .name {
    font-size: 10px;
    text-align: center;
    height: 20%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail .remove {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    border: none;
    width: 15px;
    height: 15px;
    cursor: pointer;
    font-size: 10px;
}

.products-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: calc(33.333% - 20px);
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.product-box:hover {
    transform: scale(1.05);
}

.product-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-name {
    font-size: 18px;
}

.product-price {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.no-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

.no-products {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin: 50px 0;
}

.add-button button:hover {
    background-color: #f0f0f0;
}

.search-bar {
    position: absolute;
    left: 70%;
    top: 70%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.search-bar button {
    background-color: white;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #f0f0f0;
}

.product-detail {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.product-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-info-detail {
    flex: 1;
}

.product-info-detail h1 {
    margin-top: 0;
}

.product-info-detail .price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.product-info-detail .description {
    margin: 20px 0;
}

.product-info-detail label {
    display: block;
    margin-top: 15px;
}

.product-info-detail select, .product-info-detail input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.product-info-detail button {
    margin-top: 20px;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.product-info-detail button:hover {
    background-color: #555;
}

.cart-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.cart-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-info h3 {
    margin: 0;
}

.cart-total {
    text-align: right;
    margin-top: 20px;
}

.cart-total p {
    font-size: 24px;
    font-weight: bold;
}

.cart-total button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.cart-total button:hover {
    background-color: #555;
}

.checkout-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}