/* Custom styles for the furniture store */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Hero banner */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Furniture cards */
.furniture-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.furniture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.furniture-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.furniture-card .price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.25rem;
}

.furniture-card .stock-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Category sections */
.category-section {
    padding: 40px 0;
}

.category-section:nth-child(even) {
    background-color: #f8f9fa;
}

.category-section:nth-child(odd) {
    background-color: #ffffff;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

/* Contact form */
.contact-form .form-control {
    border-radius: 8px;
    padding: 12px;
}

/* Admin styles */
.admin-sidebar {
    background-color: #343a40;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .furniture-card .card-img-top {
        height: 150px;
    }
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --------------------------------------------------------- */
