/* Yituo Embroidery - Main Styles */

:root {
    --primary-color: #8B6F47;
    --secondary-color: #D4A574;
    --accent-color: #C9A86C;
    --dark-color: #2C2C2C;
    --light-color: #F9F7F4;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.category-card .card-img-top,
.product-card .card-img-top,
.article-card .card-img-top {
    transition: transform 0.5s ease;
}

.category-card:hover .card-img-top,
.product-card:hover .card-img-top,
.article-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Object Fit */
.object-fit-cover {
    object-fit: cover;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.product-main-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 111, 71, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Badges */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Utilities */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Custom Grid for 5 columns */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 991px) {
    .col-lg-2-4 {
        width: 33.333%;
    }
}

@media (max-width: 767px) {
    .col-lg-2-4 {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .col-lg-2-4 {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    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); }
}

/* Admin Styles */
.admin-sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.75);
    padding: 0.75rem 1rem !important;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,.1);
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}
