/* Frontend Styles for Nội Thất Người Việt */

:root {
    --primary-color: #6C3D2E;
    --secondary-color: #D4A373;
    --accent-color: #6C584C;
    --light-color: #FAF3E0;
    --text-color: #3E3E3E;
    --info-color: #B3C4A0;
    --success-color: #A3B18A;
    --warning-color: #E9C46A;
    --danger-color: #C97C5D;
  }


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px;
}
.h-406{
    height: 406px;
    overflow: hidden;
}
.h-406 img{
    object-fit: cover;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4, .display-5, .display-6 {
    font-weight: 700;
    color: var(--primary-color);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #EEE3D0, #C2B280);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Cards */
.category-card, .product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: none;
}

.category-card:hover, .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Product Images */
.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Gallery */
.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.product-gallery .main-image img:hover {
    transform: scale(1.05);
}

.thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
}

.thumbnail-image:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.thumbnail-image.active {
    border-color: var(--secondary-color);
}

/* Pricing */
.price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.display-6.price {
    font-size: 2rem;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.badge-category {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Category Icons */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Icon animations */
.category-card i,
.card i {
    transition: all 0.3s ease;
}

.category-card:hover i,
.card:hover i {
    transform: scale(1.1);
}

/* Icon specific styles */
.fa-couch {
    color: #2c3e50;
}

.fa-bed {
    color: #28a745;
}

.fa-utensils {
    color: #ffc107;
}

.fa-briefcase {
    color: #17a2b8;
}

.fa-coffee {
    color: #6f42c1;
}

.fa-tv {
    color: #e83e8c;
}

.fa-tshirt {
    color: #fd7e14;
}

.fa-mirror {
    color: #20c997;
}

.fa-moon {
    color: #6c757d;
}

.fa-window-maximize {
    color: #28a745;
}

.fa-chair {
    color: #dc3545;
}

.fa-cabinet {
    color: #fd7e14;
}

.fa-snowflake {
    color: #17a2b8;
}

.fa-sink {
    color: #6f42c1;
}

.fa-desktop {
    color: #17a2b8;
}

.fa-folder {
    color: #ffc107;
}

.fa-book {
    color: #28a745;
}

.fa-chalkboard {
    color: #6c757d;
}

.fa-shelf {
    color: #fd7e14;
}

.fa-lightbulb {
    color: #ffc107;
}

.fa-rug {
    color: #6f42c1;
}

.fa-pillow {
    color: #e83e8c;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.5rem;
    background: transparent;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-color);
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    border: none;
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Status Indicators */
.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .product-gallery .main-image img {
        height: 300px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #d00;
        --text-color: #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .product-card:hover,
    .category-card:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus{
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
} 
.bg-features{
    background-color: #FAF3E0;
}
 .text-features{
    color: #6C584C;
}
.pt-50{
    padding-top: 50px;
}
.pb-50{
    padding-bottom: 50px;
}
.row{
    max-width: 100%;
}