/* Styles from frontend/index.html */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header h1 {
    margin: 0;
    font-weight: 700;
}
.buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}
a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background-color: #e74c3c;
    border-radius: 5px;
    transition: background-color 0.3s;
}
a:hover {
    background-color: #c0392b;
}
button {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #c0392b;
}
#cartBtn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
#cartBtn img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}
#cartBtn img:hover {
    transform: scale(1.1);
}
#userBtn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
#userBtn img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}
#userBtn img:hover {
    transform: scale(1.1);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #333;
}
form {
    display: flex;
    flex-direction: column;
}
input {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.register-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}
.register-link a {
    color: #333;
    text-decoration: underline;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    transition: none;
}
.register-link a:hover {
    text-decoration: underline;
}
.hero {
    background: url('../img/background.png') center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h2 {
    font-size: 3em;
    margin: 0;
    font-weight: 700;
}
.hero p {
    font-size: 1.2em;
    margin: 10px 0 0 0;
}
.center-section {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
}
.center-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}
.featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.product {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.2em;
}
.product p {
    padding: 0 15px 15px;
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
}
.categories {
    padding: 50px 20px;
    background-color: #f8f9fa;
    text-align: center;
}
.categories h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}
.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.category-btn {
    background-color: white;
    border: none;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.category-btn img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}
.category-btn span {
    font-weight: 500;
}
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em;
    }
    .center-section h2 {
        font-size: 2em;
    }
    .featured, .products {
        grid-template-columns: 1fr;
    }
}

/* Styles from frontend/user.html */
.profile-content {
    padding: 50px 20px;
    text-align: center;
}
.profile-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}
.profile-content p {
    font-size: 1.2em;
    margin: 10px 0;
}
.section {
    max-width: 600px;
    margin: 0 auto 30px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.section h3 {
    margin-top: 0;
    color: #2c3e50;
}
.profile-info form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.profile-info label {
    font-weight: 500;
    color: #2c3e50;
}
.profile-info input, .profile-info select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
}

/* Styles from frontend/cart.html */
.cart-content {
    padding: 50px 20px;
    text-align: center;
}
.cart-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}
.cart-items {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.cart-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item h3 {
    margin: 0;
    font-size: 1.2em;
}
.cart-item .sku {
    font-size: 0.8em;
    color: #666;
    margin: 0;
}
.cart-item p {
    margin: 5px 0;
    color: #e74c3c;
    font-weight: 500;
}
.cart-item .quantity {
    font-weight: bold;
}
.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}
.item-details img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.empty-cart {
    font-size: 1.5em;
    color: #7f8c8d;
}
.checkout-btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}
.checkout-btn:hover {
    background-color: #0056b3;
}
.item-actions {
    margin-top: 10px;
}
.change-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8em;
    margin-right: 5px;
}
.change-btn:hover {
    background-color: #0056b3;
}
.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8em;
}
.delete-btn:hover {
    background-color: #c82333;
}
.modal-content {
    border-radius: 10px;
}
.modal-header {
    background-color: #2c3e50;
    color: white;
    border-bottom: none;
}
.modal-body {
    padding: 20px;
}
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}
.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
}
.btn-primary:hover {
    background-color: #0056b3;
}
.btn-danger {
    background-color: #dc3545;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
}
.btn-danger:hover {
    background-color: #c82333;
}
.btn-secondary {
    background-color: #6c757d;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
}
.btn-secondary:hover {
    background-color: #545b62;
}

/* Styles from frontend/checkout.html */
.checkout-content {
    padding: 50px 20px;
    text-align: center;
}
.checkout-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}
.checkout-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.items-summary {
    margin-bottom: 20px;
}
.items-summary h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}
.item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.separator {
    border-top: 1px solid #ddd;
    margin: 10px 0;
}
.payment-form {
    margin-top: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.paypal-btn, .credit-btn {
    background-color: #0070ba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}
.paypal-btn:hover, .credit-btn:hover {
    background-color: #005ea6;
}

/* Styles from frontend/items/Double-Bell-Full-Metal-AK-12.html */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.thumbnails {
    display: flex;
    gap: 10px;
}
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.thumbnail:hover {
    border-color: #e74c3c;
}
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}
.sku {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 20px;
}
.price {
    font-size: 1.8em;
    color: #e74c3c;
    margin-bottom: 20px;
}
.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    margin-right: 10px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.quantity-selector button {
    width: 50px;
    height: 50px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-selector button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}
.quantity-selector input {
    width: 80px;
    text-align: center;
    margin: 0 15px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    padding: 12px;
    font-size: 18px;
    font-weight: 500;
}
.add-to-cart {
    padding: 15px 30px;
    font-size: 1.2em;
    margin-bottom: 20px;
}
.sold-out {
    padding: 15px 30px;
    font-size: 1.2em;
    margin-bottom: 20px;
    background-color: #ccc;
    color: #666;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
}
.product-description {
    background-color: white;
    padding: 50px 20px;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.product-description h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #2c3e50;
}
.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.description-item {
    display: flex;
    flex-direction: column;
}
.description-item strong {
    font-weight: 500;
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-title {
        font-size: 2em;
    }
    .description-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .main-image {
        width: 100%;
        height: auto;
        max-width: none;
    }
    .thumbnails {
        flex-wrap: wrap;
        justify-content: center;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
