.blog-grid {
    margin-left: -15px;
    margin-right: -15px;
}

/* Page heading */
.blog-page-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

@media (min-width: 768px) {
    .blog-page-title {
        font-size: 28px;
    }
}

.blog-categories {
    top: var(--header-h);
    z-index: 30;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
}

.blog-category-title {
    white-space: nowrap !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    flex-shrink: 0;
}

.blog-list {
    font-size: 0.9rem;
}

.blog-count {
    color: var(--text-color-primary-bg);
    font-size: 0.8rem;
    min-width: 20px;
    height: 20px;
}

.blog-card {
    position: relative;
    transition: .2s ease-in-out;
    border-radius: 6px;
    overflow: hidden;
}

.blog-card:hover {
    border-color: var(--primary-color) !important;
}

.blog-card .blog-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

/* full clickable layer */
.blog-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* 4:3 image ratio */
.blog-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .blog-image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 480px) {
    .blog-image {
        aspect-ratio: 16 / 9;
    }
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title clamp */
.blog-title {
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description clamp */
.blog-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges */
.blog-badges .badge-item {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    margin-bottom: 6px;
    background-color: #fff;
}

html[dir="rtl"] .blog-badges .badge-item {
    margin-right: 0;
    margin-left: 6px;
}

.blog-card-footer {
    font-size: 12px;
    color: #6c757d;
}

.blog-card-readmore {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

html[dir="rtl"] .blog-arrow {
    transform: scaleX(-1);
}

/* Blog Page */
/* max width like max-w-[900px] */
.blog-article {
    max-width: 900px;
}

/* aspect ratio 21:9 replacement */
.blog-cover {
    position: relative;
    width: 100%;
    padding-top: 42.85%; /* 21:9 */
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* title size replacement md:text-[32px] */
h1.blog-title {
    font-size: 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h1.blog-title {
        font-size: 32px;
    }
}

/* content (prose replacement) */
.blog-content {
    font-size: 16px;
    line-height: 1.7;
}

/* tags spacing */
.blog-tags .badge {
    font-size: 12px;
    padding: 5px 10px;
}

.products-slider.loading {
    opacity: 0;
    visibility: hidden;
}

.products-slider {
    transition: opacity 0.3s ease;
}

.products-slider .prod-col {
    margin: 0 auto;
    width: auto;
}

.product-slider-icon{
    font-size: 32px;
    width: 32px;
    color:var(  --primary-color);
}

.product-slider-title {
    font-size: 1.733rem;
    font-weight: 500;
    color: var(--secondary-color-alt3);
    margin-left: 40px;
}

.rtl .product-slider-title {
    margin-left: unset;
    margin-right: 40px;
}

.product-slider-paragrah {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary-color-alt8);
    line-height: 1.6;
}



/* =========================
   Layout
========================= */

.blog-section {
    padding: 1rem 0;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================
   Header
========================= */

.blog-header {
    margin: 1rem 0;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
}

/* =========================
   Categories
========================= */

.blog-categories-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
    gap: 0.5rem;
}

.blog-category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 169px;
    border-radius: 999px;
    font-size: 14px;
    padding: 10px 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.blog-category-link.active {
    background: #111;
    color: #fff;
}

.blog-category-link.inactive {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

/* =========================
   Meta bar
========================= */

.blog-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.blog-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.blog-count-badge {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
}

/* =========================
   Grid
========================= */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.blog-grid-item {
    width: 100%;
}

/* =========================
   Empty state
========================= */

.blog-empty-state {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    color: #6b7280;
}

/* =========================
   Pagination wrapper (optional hook)
========================= */

.pagination-wrapper {
    margin-top: 2rem;
}


/* =========================
   Loader
========================= */

.loader {
    position: relative;
}

/* =========================
   Layout
========================= */

.blog-post-section {
    padding: 2rem 0 3rem;
}

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post {
    margin: 0 auto;
}

/* =========================
   Cover Image
========================= */

.blog-post-cover {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

.blog-post-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================
   Title
========================= */

.blog-post-title {
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: #111827;
}

@media (min-width: 768px) {
    .blog-post-title {
        font-size: 3rem;
    }
}

/* =========================
   Meta
========================= */

.blog-post-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .blog-post-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.blog-post-date {
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   Content
========================= */

.blog-post-content {
    font-size: 1.125rem;
    max-width: none;
    line-height: 1.7;
    color: #374151;
}

/* Optional rich content styling */
.blog-post-content img {
    border-radius: 12px;
}

/* =========================
   Tags + Footer
========================= */

.blog-post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .blog-post-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =========================
   Tag pill
========================= */

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* =========================
   Sections (featured/related)
========================= */

.blog-featured-products,
.blog-related-posts {
    padding: 2rem 0;
}

.blog-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* =========================
   Blog Card Container
========================= */


/* Full clickable overlay */
.blog-card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* =========================
   Image
========================= */

.blog-card-image {
    position: relative;
    height: 14rem;
    background: #f3f4f6;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}

/* =========================
   Body
========================= */

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    background: #f9fafb;
    padding: 1.25rem;
}

/* =========================
   Title
========================= */

.blog-card-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: #111827;
}

/* =========================
   Description
========================= */

.blog-card-description {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

/* =========================
   Badges
========================= */

.blog-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
}

.blog-badge.is-category {
    font-weight: 700;
}

.blog-badge-more {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    color: #9ca3af;
}


/* Date */
.blog-card-date {
    font-size: 0.875rem;
}


.blog-card-readmore svg {
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-readmore svg {
    transform: translateX(4px);
}




.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px; /* spacing between items */
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

/* optional separator style (if you want later) */
.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    margin-left: 12px;
    opacity: 0.5;
}

.breadcrumbs-link {
    text-decoration: none;
}

.breadcrumbs-text {
    color: inherit;
}