:root {
    --bg-dark: #000000;
    --accent-red: #dc143c;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --border-dark: #333333;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.logo {
    max-height: 60px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

.nav-list li {
    margin: 0 20px;
}

.nav-list a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-list a:hover {
    color: var(--accent-red);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-dark);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.product-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-red);
}

.old-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-gray);
}

.discount-badge {
    background-color: var(--accent-red);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.add-to-cart {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #b01030;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    color: var(--text-white);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-red);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b01030;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo {
        max-height: 40px;
    }
}
/* Galerie Produs */
.product-gallery {
    position: relative;
}

.thumbnail {
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--accent-red) !important;
}

/* Animatie slider */
@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.main-image img {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .main-image img {
        height: 300px !important;
    }
}

/* Stiluri pentru butoanele de acțiune în admin */
.btn-small {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
}