/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #699cc9 0%, #0f1366 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-btn {
    background-color: #3a75be;
    color: rgb(229, 239, 233);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-btn:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #668cc3 0%, #4318dc 100%);
    color: white;
    border-radius: 10px;
    margin: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Catalog Section */
.catalog {
    margin: 3rem 0;
}

.catalog h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #667eea;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    color: #667eea;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.cart-items {
    padding: 1.5rem;
    min-height: 200px;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background-color: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #5568d3;
}

.cart-item-quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.remove-item-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-item-btn:hover {
    background-color: #ee5a52;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.cart-total {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: right;
    color: #667eea;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* Image Preview Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
}

.image-modal-content:hover {
    transform: scale(1.02);
}

#image-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ff6b6b;
    text-decoration: none;
    cursor: pointer;
}

/* Add cursor pointer to product images */
.product-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Button Styles */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-success:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.payment-methods {
    padding: 0 1rem;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Admin Section Styles */
.admin-section {
    margin: 2rem 0;
}

.admin-section h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.admin-section p {
    color: #666;
    margin-bottom: 2rem;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.admin-form h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    color: #999;
    font-size: 0.85rem;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Orders Section */
.admin-orders {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-orders h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background-color: #ff4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: none;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-orders {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.order-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card.pending {
    border-color: #ffc107;
    background-color: #fffbf0;
}

.order-card.completed {
    border-color: #4caf50;
    background-color: #f0f8f1;
}

.order-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-id {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-method {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
}

.order-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.order-status.pending {
    background-color: #ffc107;
    color: #855600;
}

.order-status.completed {
    background-color: #4caf50;
    color: white;
}

.order-customer {
    background-color: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.order-customer h4 {
    margin: 0 0 0.8rem 0;
    color: #667eea;
    font-size: 1rem;
}

.order-customer p {
    margin: 0.4rem 0;
    color: #333;
    font-size: 0.9rem;
}

.order-customer strong {
    color: #667eea;
}

.order-items {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-items h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.item-name {
    flex: 1;
    font-weight: 500;
}

.item-quantity {
    color: #666;
    margin: 0 1rem;
}

.item-price {
    font-weight: bold;
    color: #667eea;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.order-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.admin-products {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-products h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.admin-product-list {
    display: grid;
    gap: 1rem;
}

.admin-product-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    align-items: center;
    transition: border-color 0.3s;
}

.admin-product-item:hover {
    border-color: #667eea;
}

.admin-product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-product-info {
    flex: 1;
}

.admin-product-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.admin-product-price {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.admin-product-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.edit-product-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.edit-product-btn:hover {
    background-color: #5568d3;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.delete-product-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.delete-product-btn:hover {
    background-color: #ee5a52;
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #699cc9 0%, #0f1366 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-number {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-number:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.whatsapp-contact {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 0.7rem 2rem;
    background-color: #25d366;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.whatsapp-contact:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

/* Responsive Design */

/* Tablets and smaller desktops (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.7rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .add-to-cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .cart-item {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-info {
        flex: 1 1 100%;
        min-width: 0;
    }

    .cart-item-price {
        font-size: 1.1rem;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cart-actions .btn {
        width: 100%;
    }

    .admin-form,
    .admin-products {
        padding: 1.5rem;
    }

    .admin-product-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .admin-product-image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .login-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Mobile devices (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header {
        padding: 0.8rem 0;
    }

    header h1 {
        font-size: 1.3rem;
    }

    nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 1.5rem 0.8rem;
        margin: 1rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .catalog h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .product-price {
        font-size: 1.2rem;
        text-align: center;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 0.7rem;
    }

    .modal-content {
        width: 98%;
        max-height: 90vh;
        border-radius: 10px;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .close-btn {
        font-size: 1.5rem;
    }

    .cart-items {
        padding: 1rem;
    }

    .cart-item {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .cart-item-controls {
        justify-content: center;
        gap: 0.8rem;
    }

    .cart-item-price {
        font-size: 1.1rem;
        text-align: center;
    }

    .remove-item-btn {
        width: 100%;
        padding: 0.6rem;
    }

    .cart-footer {
        padding: 1rem;
    }

    .cart-total {
        font-size: 1.3rem;
        text-align: center;
    }

    .cart-actions {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .admin-section h2 {
        font-size: 1.5rem;
    }

    .admin-form,
    .admin-products {
        padding: 1rem;
        border-radius: 10px;
    }

    .admin-form h3,
    .admin-products h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .image-preview {
        margin-top: 0.8rem;
    }

    .preview-image {
        max-height: 200px;
    }

    .admin-product-item {
        padding: 0.8rem;
    }

    .admin-product-image {
        max-height: 150px;
    }

    .admin-product-name {
        font-size: 1rem;
    }

    .admin-product-price {
        font-size: 1.1rem;
    }

    .admin-product-actions {
        flex-direction: row;
        width: 100%;
    }

    .edit-product-btn,
    .delete-product-btn {
        flex: 1;
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .login-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }

    .login-container > p {
        font-size: 0.9rem;
    }

    .auth-form h3 {
        font-size: 1.2rem;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
    }

    .logout-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Extra small devices (360px) */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.1rem;
    }

    .nav-link,
    .cart-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .catalog h2 {
        font-size: 1.3rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .cart-total {
        font-size: 1.2rem;
    }

    .login-container {
        padding: 1.2rem;
    }

    .login-container h2 {
        font-size: 1.3rem;
    }
    
    .admin-product-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .edit-product-btn,
    .delete-product-btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Image preview modal responsive */
    .image-modal-content {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    #image-caption {
        font-size: 1rem;
        width: 90%;
    }
}

/* Success Message */
.success-message {
    background-color: #4caf50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.error-message {
    background-color: #ff6b6b;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Styles */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.login-container h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-container > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-form h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-full {
    width: 100%;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #e0e0e0;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #999;
}

.logout-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: #ee5a52;
    transform: scale(1.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}
