* {
    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: #f5f5f5;
}

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

/* Admin Link - Fixed at top right */
.admin-link-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.admin-link-fixed:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.admin-link-fixed svg {
    width: 20px;
    height: 20px;
    animation: rotate 8s linear infinite;
}

.admin-link-fixed:hover svg {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.admin-link-fixed span {
    font-size: 1em;
    letter-spacing: 0.5px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-link-fixed {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 0.85em;
    }

    .admin-link-fixed svg {
        width: 18px;
        height: 18px;
    }

    .admin-link-fixed span {
        display: none;
    }

    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1em;
    }
}

/* Products Section */
#products {
    margin: 40px 0;
}

#products h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #667eea;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

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

.product-card h3 {
    padding: 15px 20px 10px;
    font-size: 1.3em;
    color: #333;
}

.product-card .description {
    padding: 0 20px;
    color: #666;
    font-size: 0.95em;
    min-height: 60px;
}

.product-card .price {
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.add-to-cart {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #5568d3;
}

/* Cart Section */
.cart-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-section h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item.out-of-stock {
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
}

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

.cart-item-name {
    font-weight: bold;
    color: #333;
}

.cart-item-price {
    color: #667eea;
    font-size: 1.1em;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

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

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.remove-btn:hover {
    background: #c0392b;
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #667eea;
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.checkout-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #27ae60;
}

/* Order Form */
.order-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.order-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-form h2 {
    color: #667eea;
    margin: 0;
}

.back-to-cart-btn {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.back-to-cart-btn:hover {
    background: #7f8c8d;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.bank-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.bank-details h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.bank-details p {
    margin: 8px 0;
}

.bank-details .note {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

#order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

#order-summary h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.submit-order-btn {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-order-btn:hover {
    background: #27ae60;
}

.submit-order-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.success-message h2 {
    color: #2ecc71;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 1.1em;
    margin: 10px 0;
}

#order-id {
    font-weight: bold;
    color: #667eea;
}

.btn,
#new-order-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn:hover,
#new-order-btn:hover {
    background: #5568d3;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-section h2 {
    color: #667eea;
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
}

.contact-intro {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.contact-item-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contact-item p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #5568d3;
    text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    /* Single column product grid for easier mobile browsing */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 1.8em;
    }

    .tagline {
        font-size: 1em;
    }

    #products h2 {
        font-size: 1.6em;
    }

    /* Larger touch targets for mobile */
    .add-to-cart {
        padding: 18px;
        font-size: 1.1em;
        min-height: 48px;
    }

    .product-card .price {
        font-size: 1.4em;
    }

    /* Cart optimizations */
    .cart-section {
        padding: 20px 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 10px;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-name {
        font-size: 1.1em;
    }

    .cart-item-quantity {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    /* Larger touch targets for quantity controls */
    .qty-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2em;
    }

    .remove-btn {
        padding: 12px 20px;
        min-height: 44px;
        margin-left: 0;
        flex: 1;
    }

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

    .checkout-btn {
        max-width: 100%;
        font-size: 1.1em;
        min-height: 48px;
    }

    /* Order form optimizations */
    .order-form {
        padding: 20px 15px;
    }

    .order-form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-form h2 {
        font-size: 1.5em;
    }

    .back-to-cart-btn {
        width: 100%;
        min-height: 44px;
    }

    /* Larger form inputs for easier tapping */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    .form-group label {
        font-size: 1em;
    }

    .submit-order-btn {
        min-height: 48px;
        font-size: 1.1em;
    }

    /* Mobile notification positioning */
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification {
        min-width: auto;
        width: 100%;
    }

    /* Success message */
    .success-message {
        padding: 30px 20px;
    }

    .success-message h2 {
        font-size: 1.5em;
    }

    .success-message p {
        font-size: 1em;
    }

    /* Contact section mobile */
    .contact-section {
        padding: 30px 20px;
    }

    .contact-section h2 {
        font-size: 1.6em;
    }

    .contact-intro {
        font-size: 1em;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .contact-item {
        min-width: 100%;
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 0.9em;
    }

    #products h2 {
        font-size: 1.4em;
    }

    .product-card h3 {
        font-size: 1.1em;
    }

    .product-card .description {
        font-size: 0.9em;
    }

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

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #2ecc71;
    background: #e8f8f5;
}

.notification-error {
    border-left: 4px solid #e74c3c;
    background: #fadbd8;
}

.notification-warning {
    border-left: 4px solid #f39c12;
    background: #fef5e7;
}

.notification-info {
    border-left: 4px solid #3498db;
    background: #ebf5fb;
}
