/* Osnovni stilovi */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    flex-grow: 1;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Responsive dizajn */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}


/* Product Detail Page */
.product-detail {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery {
    position: relative;
    background: #f5f5f5;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.product-gallery img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #333;
}

.product-info {
    padding: 1rem;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.price {
    font-size: 1.5rem;
    margin: 1.5rem 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 10px;
}

.sale-price {
    color: #e74c3c;
    font-weight: bold;
}

.size-selector {
    margin: 2rem 0;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.size-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.size-btn:hover,
.size-btn.selected {
    border-color: #333;
    background: #333;
    color: white;
}

.product-info form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 2rem;
}

.product-info form button[type="submit"]:hover {
    background: #333;
}

.description {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-gallery {
        padding: 1rem;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .size-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .product-info form button[type="submit"] {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-gallery img {
        max-width: 100%;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .price {
        font-size: 1.3rem;
    }
}

/* Ukloni defaultne stilove za select */
.size-selector select {
    display: none !important;
}

.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.size-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    border-color: #000;
    background: #f8f8f8;
}

.size-btn.selected {
    border-color: #000;
    background: #000;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .size-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}


/* Checkout forma */
.checkout-form {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Administratorski panel */
.admin-dashboard .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Admin Dashboard */
.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.admin-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    color: #333;
    text-decoration: none;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error {
    color: #dc3545;
    padding: 10px;
    margin-bottom: 15px;
    background: #f8d7da;
    border-radius: 5px;
}