* {
    box-sizing: border-box;
}
body.dark-bg {
    background: #0e0e0e;
    color: #fff;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
header {
    padding: 18px 0 10px 0;
    text-align: center;
    background: #0e0e0e;
    box-shadow: 0 2px 16px #0e0e0e88;
    position: relative;
}
.orange {
    color: #ff9000;
    font-weight: 900;
    font-size: 2.3em;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 16px #ff900055;
    margin-bottom: 8px;
}
.categories {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 18px;
    margin: 22px 0 0 0;
    scrollbar-width: none;
    max-width: 100vw;
}
.categories::-webkit-scrollbar { display: none; }
.categories li { flex: 0 0 auto; }
.categories a {
    font-size: 1.22em;
    padding: 14px 28px;
    border-radius: 28px;
    background: rgba(30,30,35,0.92);
    color: #fff;
    font-weight: 700;
    margin-bottom: 2px;
    box-shadow: 0 2px 12px #0002;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    outline: none;
    text-decoration: none !important;
}
.categories a.active, .categories a:hover {
    background: #ff9000;
    color: #0e0e0e;
    box-shadow: 0 4px 24px #ff900055;
    transform: scale(1.07);
    text-decoration: none !important;
}
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 32px 0 0 0;
    padding: 0 16px;
    overflow-x: visible;
    max-width: 100vw;
}
.product-card {
    background: #0e0e0e;
    border-radius: 22px;
    box-shadow: 0 8px 36px #0e0e0eaa, 0 2px 16px #ff900033;
    padding: 14px 10px 18px 10px;
    width: 100%;
    min-width: 0;
    max-width: 340px;
    text-align: center;
    margin: 0 auto;
    transition: box-shadow 0.2s, transform 0.15s;
    border: 2px solid #292933;
    overflow: hidden;
    position: relative;
    word-break: break-word;
    transform: scale(0.96);
}
.product-card:hover {
    box-shadow: 0 16px 48px #ff900055, 0 6px 32px #0e0e0eaa;
    transform: translateY(-6px) scale(1.045);
    border-color: #ff9000;
}
.product-photo {
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    border-radius: 16px;
    background: #0e0e0e;
    margin-bottom: 14px;
    box-shadow: 0 2px 16px #0e0e0e55;
}
.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 60px;
}
.product-title {
    font-weight: 900;
    font-size: 1.22em;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 10px #0e0e0e55;
}
.product-price {
    color: #ff9000;
    font-size: 1.16em;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 0 1px 10px #ff900033;
}
.add-to-cart-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ff9000;
    color: #fff;
    border: none;
    font-size: 1.18em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 12px #ff900055;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    outline: none;
    position: absolute;
    right: 12px;
    bottom: 12px;
}
.add-to-cart-btn:active {
    background: #ff9000;
    color: #0e0e0e;
    transform: scale(0.92);
}
.orange-btn {
    background: #ff9000;
    color: #0e0e0e;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 1.13em;
    font-weight: 800;
    cursor: pointer;
    margin: 16px 0;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 16px #ff900055;
    letter-spacing: 0.7px;
    text-decoration: none !important;
}
.orange-btn:hover {
    background: #ff9000;
    color: #fff;
    box-shadow: 0 4px 32px #ff900055;
}
.login-container, .form-container {
    max-width: 400px;
    margin: 70px auto;
    background: #0e0e0e;
    border-radius: 26px;
    padding: 48px 34px;
    box-shadow: 0 2px 24px #0e0e0eaa, 0 2px 12px #ff900033;
    text-align: center;
    border: 2px solid #292933;
}
input[type="text"], input[type="password"], select, input[type="file"] {
    width: 96%;
    padding: 14px;
    margin: 16px 0;
    border-radius: 12px;
    border: none;
    background: #0e0e0e;
    color: #fff;
    font-size: 1.13em;
    box-shadow: 0 1px 10px #0e0e0e55;
    outline: none;
    transition: box-shadow 0.2s, border 0.2s;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus {
    box-shadow: 0 2px 16px #ff900055;
    border: 2px solid #ff9000;
}
input[type="file"] {
    background: #0e0e0e;
    color: #fff;
}
.delete-btn {
    display: inline-block;
    background: #0e0e0e;
    color: #ff9000;
    border: 2px solid #ff9000;
    border-radius: 16px;
    padding: 8px 22px;
    font-size: 1.08em;
    margin-top: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 10px #ff900033;
    font-weight: 700;
}
.delete-btn:hover {
    background: #ff9000;
    color: #0e0e0e;
    box-shadow: 0 2px 16px #ff900055;
}
.error {
    color: #fff;
    background: #ff9000;
    border-radius: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
    font-weight: 700;
    box-shadow: 0 1px 10px #ff900033;
}
.cart-item {
    border-radius: 20px;
    box-shadow: 0 2px 16px #0e0e0eaa, 0 2px 12px #ff900033;
    padding: 14px 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    border: 2px solid #292933;
    background: #0e0e0e;
}
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 16px;
    box-shadow: 0 1px 10px #0e0e0e55;
}
.cart-item .remove-from-cart-btn {
    background: #ff9000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 12px #ff900055;
    margin-left: 12px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cart-item .remove-from-cart-btn:active {
    background: #ff9000;
    color: #0e0e0e;
    transform: scale(0.92);
}
.cart-widget {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 10;
    display: flex;
    align-items: center;
}
.cart-icon {
    width: 30px;
    height: 30px;
    display: block;
    filter: drop-shadow(0 2px 12px #ff900055);
    transition: transform 0.15s;
}
.cart-widget:hover .cart-icon {
    transform: scale(1.12) rotate(-8deg);
}
.cart-counter {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ff9000;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    font-weight: bold;
    box-shadow: 0 2px 8px #ff900055;
    border: 1.5px solid #0e0e0e;
    transition: background 0.2s, color 0.2s;
    padding: 0 4px;
    z-index: 2;
}
@media (max-width: 600px) {
    .products {
        gap: 10px;
        padding: 0 2vw;
    }
    .product-card {
        max-width: 100vw;
        padding: 8px 2vw;
    }
} 