/* ===== پایه و فونت ===== */
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: #faf7f2;
    color: #3d2b1f;
    line-height: 1.7;
}

/* ===== رنگ‌های چوبی ===== */
.bg-wood {
    background: linear-gradient(135deg, #4a2c17 0%, #6b3e26 50%, #8b5a2b 100%) !important;
}

.btn-wood {
    background-color: #8b5a2b;
    border-color: #8b5a2b;
    color: #fff;
    transition: all 0.25s ease;
}
.btn-wood:hover,
.btn-wood:focus {
    background-color: #6b4423;
    border-color: #6b4423;
    color: #fff;
    transform: translateY(-1px);
}

.text-wood {
    color: #8b5a2b !important;
}

/* ===== برند ===== */
.brand-icon {
    font-size: 1.4rem;
}

.navbar-brand {
    letter-spacing: -0.5px;
}

.nav-link.active {
    font-weight: 600;
}

/* ===== هیرو ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(74,44,23,0.92) 0%, rgba(139,90,43,0.85) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23d4a574" width="100" height="100"/><path d="M0 50 Q25 30 50 50 T100 50" stroke="%23c49a6c" fill="none" stroke-width="2"/></svg>');
    background-size: cover;
    color: #fff;
    border-radius: 16px;
    padding: 3.5rem 2rem;
    margin-bottom: 2.5rem;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* ===== کارت محصول ===== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.06);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(92, 58, 33, 0.14);
}
.product-card .card-img-top {
    height: 230px;
    object-fit: cover;
    background: #f0e6d8;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img-top {
    transform: scale(1.04);
}
.product-card .price {
    color: #8b5a2b;
    font-weight: 700;
    font-size: 1.1rem;
}
.product-card .category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(74, 44, 23, 0.88);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.product-card .card-title a {
    transition: color 0.2s;
}
.product-card .card-title a:hover {
    color: #8b5a2b !important;
}

/* ===== صفحه جزئیات محصول ===== */
.product-detail-img {
    border-radius: 14px;
    max-height: 480px;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

/* ===== فیلتر دسته‌ها ===== */
.category-filter .btn {
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
}

/* ===== پنل ادمین ===== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #2c1e14;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #8b5a2b;
    color: #fff;
}

.table-admin img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== فرم‌ها ===== */
.form-control:focus,
.form-select:focus {
    border-color: #8b5a2b;
    box-shadow: 0 0 0 0.2rem rgba(139, 90, 43, 0.22);
}

/* ===== فوتر ===== */
footer a:hover {
    color: #d4a574 !important;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1.25rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
    .product-card .card-img-top {
        height: 170px;
    }
}

@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 150px;
    }
}
