/* Global font */
* {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

/* =========================
   Orders - create (country dropdown)
   ========================= */
.country-option {
    cursor: pointer;
    transition: background-color 0.2s;
}
.country-option:hover {
    background-color: #f8f9fa !important;
}
#country_dropdown {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#country_dropdown::-webkit-scrollbar {
    width: 8px;
}
#country_dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#country_dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
#country_dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =========================
   Admin countries index (scrollable table)
   ========================= */
.countries-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}
.countries-table-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}
.countries-table-container thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}
.countries-table-container::-webkit-scrollbar {
    width: 8px;
}
.countries-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.countries-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.countries-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =========================
   Product show (gallery, breadcrumb, hovers)
   ========================= */
.product-image-card:hover #mainProductImage {
    transform: scale(1.05);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}
.breadcrumb {
    background: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: #667eea;
    transition: color 0.3s;
}
.breadcrumb-item a:hover {
    color: #764ba2;
}
.gallery-thumbnail:hover {
    border-color: #667eea !important;
    transform: scale(1.1);
}
.gallery-thumbnail.active {
    border-color: #667eea !important;
}
.product-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-specs-list li {
    padding: 0.25rem 0;
    border-bottom: 1px dashed #e9ecef;
}
.product-specs-list li:last-child {
    border-bottom: none;
}

/* =========================
   Admin products edit (attribute checkbox)
   ========================= */
.attribute-checkbox {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================
   Products index (pagination)
   ========================= */
.pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}
.pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    transition: all 0.2s;
}
.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0a58ca;
}
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* =========================
   Home page (cards hovers & promos)
   ========================= */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}
.product-card:hover .card-img-top img {
    transform: scale(1.1);
}
.promo-card {
    position: relative;
    transition: transform 0.3s;
}
.promo-card:hover {
    transform: translateY(-5px);
}

/* =========================
   Pages show (rich text content)
   ========================= */
.page-content {
    color: #495057;
}
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.page-content p {
    margin-bottom: 1.5rem;
}
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}
.page-content li {
    margin-bottom: 0.5rem;
}
