/* ============================================================
   BLOGS LIST PAGE
   ============================================================ */

/* ── Hero ── */
.blogs-hero {
    position: relative;
    width: 100%;
}

.blogs-hero-inner {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #e8d5d0;
}

@media (min-width: 768px) {
    .blogs-hero-inner {
        height: 420px;
    }
}

.blogs-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blogs-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.blogs-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.blogs-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    margin: 0;
    background-color: rgba(255, 255, 255, 0.18);
    padding: 10px 32px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
    .blogs-hero-title {
        font-size: 42px;
        padding: 12px 48px;
    }
}

/* ── Main Section ── */
.blogs-main {
    background-color: #faf7f6;
}

/* ── Category Bar ── */
.blogs-categories-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.blogs-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #333;
    color: #333;
    background-color: transparent;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.blogs-cat-btn:hover,
.blogs-cat-btn.active {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

/* ── Toolbar (count + sort) ── */
.blogs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.blogs-toolbar-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.blogs-count-badge {
    background-color: var(--primary-color, #b07070);
    color: var(--text-color-primary-bg, #fff);
    font-size: 0.8rem;
    min-width: 22px;
    height: 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.blogs-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blogs-sort-label {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    margin: 0;
}

.blogs-sort-select {
    font-size: 13px;
    padding: 6px 32px 6px 12px;
    border: 1px solid #d0cac8;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    min-width: 130px;
}

html[dir="ltr"] .blogs-sort-select {
    background-position: right 10px center;
    padding: 6px 12px 6px 32px;
}

.blogs-sort-select:focus {
    outline: none;
    border-color: var(--primary-color, #b07070);
}

/* ── Cards Grid ── */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1199px) {
    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Blog Card ── */
.blog-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e8e0dd;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    border-color: var(--primary-color, #b07070) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.blog-card .blog-card-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.blog-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #f0e8e5;
}

@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;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.04);
}

.blog-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.blog-desc {
    font-size: 12px;
    line-height: 1.55;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}

.blog-card-readmore {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-color, #b07070);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    position: relative;
    z-index: 11;
}

.blog-card-readmore:hover {
    color: #333;
    text-decoration: none;
}

html[dir="rtl"] .blog-arrow {
    transform: scaleX(-1);
}

.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: 4px;
    margin-bottom: 4px;
    background-color: #fff;
    display: inline-block;
}

html[dir="rtl"] .blog-badges .badge-item {
    margin-right: 0;
    margin-left: 4px;
}

.blog-card-footer {
    font-size: 11px;
    color: #6c757d;
    margin-top: 6px;
}

.blogs-empty {
    background-color: #fff;
    border: 1px solid #e0d8d5;
    border-radius: 8px;
    padding: 2rem 1.5rem;
}


/* ============================================================
   BLOG DETAIL PAGE
   ============================================================ */

.blog-detail-section {
    background-color: #fff;
}

/* ── Topbar (share + date) ── */
.blog-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ede8e6;
}

.blog-detail-share-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-detail-date-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #999;
}

.blog-detail-date {
    font-size: 13px;
    color: #999;
}

.blog-detail-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--primary-color, #b07070);
    border: 1px solid var(--primary-color, #b07070);
    border-radius: 4px;
    padding: 4px 10px;
}

/* ── Content Typography ── */
.blog-content {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.blog-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .blog-content h2 {
        font-size: 24px;
    }
}

.blog-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-content p {
    margin-bottom: 1.1rem;
}

.blog-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

html[dir="rtl"] .blog-content ul,
html[dir="rtl"] .blog-content ol {
    padding-left: 0;
    padding-right: 1.4rem;
}

.blog-content li {
    margin-bottom: 0.4rem;
}

/* ── Tags ── */
.blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-tag-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #f0ebe9;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── Share Bottom ── */
.blog-detail-share-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ============================================================
   PRODUCT SLIDER (shared)
   ============================================================ */

.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;
}