* { margin: 0; padding: 0; box-sizing: border-box; }

/* Golden glow effect for discounted products */
.product.discounted {
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: golden-glow 2s ease-in-out infinite alternate;
}

@keyframes golden-glow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 25px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
}

.discounted-price {
    color: #d4af37;
    font-weight: 900;
    font-size: 1em;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #000000;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

.screen { 
    display: none; 
    min-height: 100vh; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    z-index: 1;
}
.screen.active { 
    display: flex; 
    flex-direction: column;
}

.btn {
    padding: 16px 32px; 
    border: 2px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff;
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    margin: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}
.btn:hover { 
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Main/Welcome Screen */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center; 
    height: 100vh;
    padding: 60px 40px;
}

.main-content h1 {
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.main-content p {
    font-size: 1.3rem; 
    margin-bottom: 2.5rem; 
    color: #666;
    max-width: 500px;
    line-height: 1.6;
}

/* Access Denied Screen */
.denied-content {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center; 
    height: 100vh;
    padding: 40px;
}

/* Shop */

.top-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff; 
    padding: 1.5rem 2rem;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0.8rem 0.8rem;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5vw;
    width: 100%;
}

@media (max-width: 768px) {
    .header-container {
        gap: 1vw;
        padding: 0 1vw;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 0.8vw;
        padding: 0 0.5vw;
    }
}

.top-header h1 { 
    font-size: 1.8rem; 
    font-weight: 700; 
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .top-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .top-header h1 {
        font-size: 1.2rem;
    }
}

.header-left { 
    flex: 0 0 auto;
    display: flex; 
    align-items: center;
    justify-content: flex-start;
}

.header-right { 
    flex: 0 0 auto;
    display: flex; 
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-right {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 2px;
    }
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 20px);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        gap: 5px;
    }
}

.admin-btn {
    background: #ff0000;
    color: #fff;
    border: 2px solid #ff0000;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    margin: 0 5px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .admin-btn {
        padding: 8px 12px;
        font-size: 12px;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .admin-btn {
        padding: 6px 8px;
        font-size: 10px;
        margin: 0 1px;
    }
}
.admin-btn:hover {
    background: #fff;
    color: #ff0000;
    transform: translateY(-2px);
}

.auth-btn {
    padding: 10px 20px; 
    background: rgba(255, 255, 255, 0.1);
    color: #fff; 
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    font-size: 14px;
    margin: 0 5px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .auth-btn {
        padding: 8px 12px;
        font-size: 12px;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .auth-btn {
        padding: 6px 8px;
        font-size: 10px;
        margin: 0 1px;
    }
}

#cart { 
    cursor: pointer; 
    padding: 12px 20px; 
    background: rgba(255, 255, 255, 0.1);
    color: #fff; 
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
#cart:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.nav-btn {
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px); 
    background: rgba(255, 255, 255, 0.1);
    color: #fff; 
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    font-size: clamp(12px, 1.8vw, 14px);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.user-greeting {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.user-info {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (max-width: 768px) {
    .user-info {
        font-size: 12px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .user-info {
        font-size: 10px;
        max-width: 80px;
    }
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}
.modal.active { display: flex; justify-content: center; align-items: center; }

.modal-content {
    background: #fff;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    border: 2px solid #000;
    border-radius: 10px;
}

.product-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 { margin-bottom: 20px; font-size: 1.5rem; }
.modal input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #000;
    font-size: 16px;
}
.modal .close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

/* Products Section */

.shop-content {
    flex: 1;
    overflow-y: auto;
}

#products { 
    max-width: 1400px;
    margin: 0 auto;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    padding: 40px 20px;
    justify-items: center;
}

@media (max-width: 768px) {
    #products {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    #products {
        padding: 15px 10px;
        gap: 10px;
    }
}

/* Warenkorb Content */
.warenkorb-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .warenkorb-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .warenkorb-content {
        padding: 15px 10px;
    }
}

.cart-container {
    max-width: 800px;
    margin: 0 auto;
}

#cart-items-display {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    margin-bottom: 30px;
    min-height: 200px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-actions .btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Admin Content */
.admin-content {
    flex: 1;
    overflow-y: auto;
}

.product {
    background: #fff; 
    border: 3px solid #000;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-bottom: 3px solid #000;
}

.product-content {
    padding: 30px;
}

.product h3 { 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.product p { 
    color: #666; 
    margin-bottom: 20px; 
    line-height: 1.5;
    font-size: 1rem;
}
.product .price { 
    font-size: 2rem; 
    font-weight: 900; 
    margin-bottom: 25px; 
    color: #000;
}

.product .btn {
    width: 100%;
    padding: 15px;
    margin: 0;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product .btn:hover {
    background: #fff;
    color: #000;
}

/* Status */
#status { 
    margin-top: 20px; 
    padding: 20px; 
    border: 2px solid #007bff;
    background: #ffffff;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    min-height: 60px;
    color: #333;
    font-weight: 500;
}

#status:empty {
    display: none;
}

#status div {
    width: 100%;
}

#status .btn {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 14px;
}

/* Improved Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Admin Screen Styles */
#admin-screen {
    background: #ffffff;
}

#admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

/* Checkout Screen */
.checkout-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
}

.checkout-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.checkout-form {
    margin-top: 30px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input[type="file"] {
    padding: 10px;
    background: #f8f9fa;
}

#photo-preview {
    margin-top: 10px;
    text-align: center;
}

#photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.order-total {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Checkout Steps */
.checkout-step {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sub-step {
    margin: 20px 0;
}

.step-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.step-buttons .btn {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.camera-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.camera-controls .btn {
    padding: 12px 20px;
}

#order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

/* User section styling */
#user-section, #user-section-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Product Detail Modal */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.product-detail-info h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #000;
}

.product-detail-info p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.base-price {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

.variant-selection {
    margin: 20px 0;
}

.variant-group {
    margin-bottom: 15px;
}

.variant-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
}

.variant-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.variant-group select:focus {
    outline: none;
    border-color: #666;
}

.total-price {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #000;
}

.modal-actions {
    margin-top: 20px;
    text-align: center;
}

.modal-actions .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.modal-actions .btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    border-color: #ccc;
}

.modal-actions .btn:disabled:hover {
    background: #ccc;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* Responsive design for product modal */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-modal-content {
        padding: 20px;
        margin: 10px;
    }
}

@media (max-width: 768px) {
    #user-section, #user-section-2 {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    #user-section, #user-section-2 {
        gap: 2px;
    }
}

/* Improved Buttons */
.admin-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

