/* RTL and Persian Font Settings */
body {
    font-family: 'Shabnam', tahoma, arial;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
div.single-blog-post-content figure.image {text-align:center;}
main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}
/* Breadcrumbs */
.breadcrumbs {
    margin: 1rem 0 2rem;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: #6B7280;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #007bff;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Filters Section */
.filters {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filters form > div {
    flex: 1;
    min-width: 200px;
}

.filters label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filters select,
.filters input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.filters button {
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filters button:hover {
    background-color: #0056b3;
}

/* Product List */
.product-list {
    margin-top: 20px;
    width: 100%;
}
.product-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  word-wrap: break-word;
  font-size: 0.95rem;
  line-height: 1.6;
  height: 3.2rem;
  text-align: right;
  direction: rtl;
}
#notifications-menu-button, .dropdown-toggle{text-decoration:none;}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    justify-content: right;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 10px;
}

/* Product Card */
.product-card {
    transition: transform 0.2s;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    object-fit: contain;
    padding: 15px;
    width: 100%;
}

.product-title {
    font-size: 1rem;
    margin: 10px 0;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price History Chart */
.price-chart {
    height: 300px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Store Cards */
.store-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Store Logos */
.store-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.store-logo.full {
    height: 60px;
    width: auto;
}

.store-logo.icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

/* Price Comparison Table */
.price-table {
    width: 100%;
    margin-top: 20px;
}

.price-table th {
    background-color: #f8f9fa;
    padding: 12px;
    font-weight: 600;
}

.price-table td {
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.price-value {
    font-weight: 600;
    color: #28a745;
    direction: ltr;
    text-align: left;
}

/* Loading Spinner */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin: 2rem auto;
    display: block;
}

/* Price Alert Badge */
.price-alert-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #dc3545;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination nav {
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    font-family: 'Shabnam', tahoma, arial;
}

.pagination nav > div > div > span {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
}
.page-link {padding:0;border:none;}
.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 2px;
    cursor: pointer;
}

.page-item.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-item:hover:not(.active) {
    background-color: #e9ecef;
    text-decoration: none;
}

.page-item svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Navigation arrows */
.page-item[rel="prev"] {
    order: 1;
}

.page-item[rel="next"] {
    order: 3;
}

.page-item:not([rel="prev"]):not([rel="next"]) {
    order: 2;
}

/* Fix arrow directions for RTL */
.page-item svg {
    transform: scaleX(-1);
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide empty elements */
.pagination span:empty,
.pagination .sm\:hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 992px) {
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .filters form {
        flex-direction: column;
    }
    
    .filters form > div {
        width: 100%;
    }
    
    .price-chart {
        height: 250px;
    }
}

/* Persian Number Formatting */
.persian-number {
    direction: ltr;
    text-align: left;
    font-family: 'Shabnam', tahoma, arial;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Form Styling */
.form-control {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Button Styling */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-gradient {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    color: white;
    text-decoration: none;
}

.btn-gradient i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.btn-gradient:hover i {
    transform: translateX(-4px);
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Price Trend Indicators */
.price-trend {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.price-trend-up {
    color: #dc3545;
}

.price-trend-down {
    color: #28a745;
}

/* Store Badge */
.store-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Minimalist Store Card */
.minimalist-store-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.minimalist-store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.minimalist-store-card h6 {
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.minimalist-store-card small {
    color: #718096;
    font-size: 0.875rem;
}

/* Minimalist Card */
.minimalist-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
}

.minimalist-card .card-body {
    padding: 1.5rem;
}

/* Minimalist Form Elements */
.minimalist-select {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    -webkit-appearance: none; /* Remove default dropdown arrow in Chrome and Safari */
    -moz-appearance: none;    /* Remove default dropdown arrow in Firefox */
    appearance: none;         /* Remove default dropdown arrow in modern browsers*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 0.75rem);
    background-position-y: 50%;
    padding-inline-end: 2.25rem;
}

.minimalist-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    outline: none;
}

.minimalist-input-group {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.1rem;
    transition: all 0.3s ease;
}

.minimalist-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

.minimalist-form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: transparent;
}

.minimalist-form-control:focus {
    box-shadow: none;
    outline: none;
}

/* Minimalist Filter Button */
.minimalist-filter-button {
    border: 1px solid #007bff;
    color: #007bff;
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.minimalist-filter-button:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,123,255,0.2);
}

/* Minimalist Section Title */
.minimalist-section-title {
    font-size: 1.75rem;
    color: #2d3748;
    margin-bottom: 0;
    font-weight: 600;
}
.hero-brand{
	background: #fff;
	padding: 2rem 0;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid rgba(0,0,0,0.03);
}
.brand-title{
	color: #2d3748;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.75rem;
}
/* Minimalist Hero Section */
.minimalist-hero {
    background-color: #fff;
    padding-top: 4rem;
    padding-bottom: 3rem;
    text-align: center; /* Center align hero content */
}

.minimalist-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.minimalist-hero-subtitle {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2rem;
}
