/* Blog listing page */
.blog-page {
    padding: 16px 0 48px;
    color: #2d2944;
}

.blog-page .container {
    width: min(100%, 1830px) !important;
    max-width: 1830px !important;
}

.blog-page #middle {
    width: 100%;
}

.blog-page > .container,
.blog-page #middle > .container {
    width: min(100% - 90px, 1830px) !important;
    max-width: 1830px !important;
    padding-left: 45px !important;
    padding-right: 45px !important;
}

.blog-page h1 {
    margin: 24px 0 36px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #2f2b48;
}

.blog-page .breadcrumb {
    margin-bottom: 20px;
}

.blog-page .content {
    overflow: visible;
}

.blog-page .content__inner {
    max-width: none;
    margin: 0;
}

.blog-layout {
    display: block;
}

.blog-sidebar {
    display: none;
}

.blog-main {
    min-width: 0;
    width: auto;
    overflow: hidden;
}

.blog-main .content,
.blog-main .content__inner,
.blog-list {
    width: 100%;
}

/* Blog tags menu (vertical sidebar) */
.blog-tags-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    margin: 0 14px 14px 14px;
    float: left;
    width: 150px;
    background: transparent;
    border-radius: 0;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #a89d8f;
    text-decoration: none;
    transition: color 0.25s ease;
    letter-spacing: 0.01em;
    text-transform: none;
}

.blog-tag:hover {
    background: transparent;
    color: #2f2b48;
    text-decoration: none;
}

.blog-tag.active,
.blog-tag.current,
.blog-tag[aria-current="page"] {
    background: transparent;
    color: #2f2b48;
    box-shadow: none;
}

.blog-tag__count {
    font-size: 12px;
    opacity: 0.65;
    margin-left: 6px;
}

.blog-tag.active .blog-tag__count {
    opacity: 0.9;
}

/* Blog article tags (clickable) */
.blog-article__tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #CBA480;
    border-radius: 20px;
    font-size: 12px;
    color: #CBA480;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.blog-article__tag:hover {
    background: #CBA480;
    color: #fff;
    text-decoration: none;
}

.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 44px 20px;
    margin: 0;
    align-items: start;
}

.blog-card-col {
    padding: 0;
    margin: 0;
    width: calc((100% - 60px) / 4) !important;
    max-width: calc((100% - 60px) / 4) !important;
    flex: 0 0 calc((100% - 60px) / 4) !important;
    float: none !important;
    min-width: 0;
}

.blog-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    transition: transform 0.28s ease, color 0.28s ease;
    height: 100%;
    width: 100%;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: none;
    transform: translateY(-6px);
    color: inherit;
    text-decoration: none;
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 320 / 232;
    width: 100%;
    border-radius: 0;
    background: #e8e1d6;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.035);
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 20px 0 0;
}

.blog-card__date {
    font-size: 13px;
    line-height: 1.1;
    color: #7d788e;
    margin: 0;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    font-size: 13px;
    color: #7d788e;
}

.blog-card__reads,
.blog-article__reads {
    font-size: 13px;
    color: #7d788e;
    white-space: nowrap;
}

.blog-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-card__meta-item .fa {
    font-size: 13px;
    color: #8b8498;
}

.blog-card__title {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(20px, 1.35vw, 28px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #2f2b48;
}

.blog-card:hover .blog-card__title {
    color: #615377;
}

.blog-card__excerpt {
    margin: 0;
    font-size: 14px;
    min-height: 44px;
    line-height: 1.55;
    color: #55506b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__tags {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #8f7a63;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2f2b48;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.blog-card__cta-text {
    display: block;
    border-bottom: 1px solid transparent;
    line-height: 1.1;
    transition: border-color 0.25s ease;
}

.blog-card__cta-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-2px);
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card__cta-text {
    border-color: currentColor;
}

.blog-card:hover .blog-card__cta-arrow {
    transform: translateX(-2px);
}

.blog-card__image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(47, 43, 72, 0) 0%, rgba(47, 43, 72, 0.12) 100%);
    pointer-events: none;
}

/* Blog article */
.blog-article-page {
    max-width: 900px;
    margin: 0 auto;
}

.blog-article__header {
    margin-bottom: 32px;
}

.blog-article__header h1 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 0;
}

.blog-article__meta-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 20px 24px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.blog-article__date {
    color: #666;
    white-space: nowrap;
}

.blog-article__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-article__content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.blog-article__content h2 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    margin: 32px 0 16px;
}

.blog-article__content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
}

.blog-article__content p {
    margin-bottom: 16px;
}

.blog-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.blog-article__content blockquote {
    border-left: 3px solid #CBA480;
    padding: 12px 20px;
    margin: 24px 0;
    background: #faf8f5;
    font-style: italic;
    color: #555;
}

.blog-article__content ul,
.blog-article__content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.blog-article__content li {
    margin-bottom: 6px;
}

/* Blog products slider */
.blog-products-slider {
    margin: 32px 0;
    width: 100%;
}

.blog-products-slider .slider-section {
    position: relative;
}

.blog-products-slider .splide__arrows {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin-bottom: 16px;
}

.blog-products-slider .splide__arrow {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 1;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.blog-products-slider .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blog-products-slider .splide__arrow--prev {
    transform: rotate(0deg);
}

.blog-products-slider .splide__arrow--next {
    transform: rotate(0deg);
}

.blog-products-slider .product-card {
    list-style: none;
    border-radius: 20px;
    border: 1px solid #E8E2D5;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 0 16px 16px;
    background: #fff;
}

.blog-products-slider .product-link {
    text-decoration: none;
}

.blog-products-slider .product-gallery {
    position: relative;
    height: 200px;
    margin-bottom: 12px;
}

.blog-products-slider .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-products-slider .gallery-bars {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.blog-products-slider .gallery-bars .bar {
    width: 20px;
    height: 3px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
    transition: background 0.2s;
}

.blog-products-slider .gallery-bars .bar.active {
    background: #CBA480;
}

.blog-products-slider .company-name {
    font-size: 11px;
    margin-bottom: 4px;
}

.blog-products-slider .company-name a {
    color: #999;
    text-decoration: none;
}

.blog-products-slider .company-name a:hover {
    color: #CBA480;
}

.blog-products-slider .product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px;
}

.blog-products-slider .product-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.blog-products-slider .product-title a:hover {
    color: #CBA480;
}

.blog-products-slider .spacer {
    flex: 1;
}

.blog-products-slider .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.blog-products-slider .prices_block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-products-slider .price {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.blog-products-slider .price.sale {
    color: #e53935;
}

.blog-products-slider .price.old_price {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.blog-products-slider .actions {
    display: flex;
    gap: 8px;
}

.blog-products-slider .actions img {
    width: 20px;
    height: 20px;
}

.blog-products-slider .btnv2 {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #2E2A47;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-products-slider .btnv2 > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blog-products-slider .btnv2 span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #2E2A47;
}

.blog-products-slider .btnv2:hover {
    background: #2E2A47;
}

.blog-products-slider .btnv2:hover span {
    color: #fff;
}

.blog-products-slider .btnv2:hover svg path {
    stroke: #fff;
}

@media (max-width: 767px) {
    .blog-products-slider .splide__arrows {
        display: none;
    }
    
    .blog-products-slider .product-card {
        padding: 0 12px 12px;
    }
    
    .blog-products-slider .product-gallery {
        height: 160px;
    }
}

/* Related articles */
.blog-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eaeaea;
}

.blog-related__title {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    margin-bottom: 24px;
}

.blog-related .blog-list {
    display: flex;
    flex-wrap: wrap;
    margin: 15px -15px;
}

.blog-related .blog-card-col {
    width: 33.333%;
    flex: 0 0 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.blog-related .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-related .blog-card__image {
    aspect-ratio: 400 / 260;
}

.blog-related .blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-related .blog-card__excerpt {
    flex: 1;
}

/* Pagination */
.blog-page .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 56px;
    list-style: none;
    padding: 0;
}

.blog-page .pagination a,
.blog-page .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd5c7;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #2f2b48;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.blog-page .pagination a:hover {
    border-color: #c1ab8e;
    color: #8f7a63;
}

.blog-page .pagination .active > a,
.blog-page .pagination .active > span {
    background: #2f2b48;
    border-color: #2f2b48;
    color: #fff;
}

/* Blog categories menu */
.blog-categories-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 0 0 32px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog-categories-menu::-webkit-scrollbar {
    display: none;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    border-bottom: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #7f788f;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-category:hover {
    background: #f4ede4;
    color: #2f2b48;
    text-decoration: none;
}

.blog-category.active,
.blog-category.current,
.blog-category[aria-current="page"] {
    background: #2f2b48;
    color: #fff;
}

.blog-category__count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 2px;
}

/* Blog card meta (date + category) */
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.blog-card__category {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 9px 14px;
    background: rgba(255, 245, 233, 0.95);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #2f2b48;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 26px rgba(47, 43, 72, 0.12);
}

/* Blog article category */
.blog-article__category {
    display: inline-block;
    padding: 4px 12px;
    background: #CBA480;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 1699px) {
    .blog-card-col {
        width: calc((100% - 40px) / 3) !important;
        max-width: calc((100% - 40px) / 3) !important;
        flex: 0 0 calc((100% - 40px) / 3) !important;
    }
}

@media (max-width: 1349px) {
    .blog-card-col {
        width: calc((100% - 22px) / 2) !important;
        max-width: calc((100% - 22px) / 2) !important;
        flex: 0 0 calc((100% - 22px) / 2) !important;
    }
}

@media (max-width: 1049px) {
    .blog-page {
        padding-top: 8px;
    }

    .blog-page > .container,
    .blog-page #middle > .container {
        width: min(100% - 40px, 1830px) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .blog-page h1 {
        margin-bottom: 28px;
        font-size: 48px;
    }

    .blog-layout {
        display: block;
    }
    
    .blog-sidebar {
        display: none;
    }
    
    .blog-main {
        order: initial;
    }

    .blog-categories-menu,
    .blog-tags-menu {
        gap: 10px 12px;
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
    }

    .blog-categories-menu {
        margin-bottom: 24px;
    }

    .blog-tags-menu {
        margin-bottom: 24px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .blog-tags-menu::-webkit-scrollbar {
        display: none;
    }

    .blog-category,
    .blog-tag {
        white-space: normal;
        text-align: center;
    }

    .blog-tag {
        width: auto;
        white-space: nowrap;
        text-align: center;
        flex: 0 0 auto;
    }

    .blog-list {
        display: flex;
        gap: 32px 22px;
    }

    .blog-card-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .blog-card {
        max-width: 760px;
    }

    .blog-card__body {
        padding-top: 16px;
    }

    .blog-card__title {
        font-size: clamp(28px, 4vw, 34px);
    }

    .blog-card__excerpt {
        font-size: 15px;
    }
    
    .blog-article__header h1 {
        font-size: 26px;
    }
    .blog-article__content h2 {
        font-size: 22px;
    }
    .blog-related .blog-card-col {
        width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    .blog-page .container {
        width: min(100%, 100vw - 28px);
    }

    .blog-page > .container,
    .blog-page #middle > .container {
        width: min(100% - 28px, 1830px) !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .blog-page h1 {
        margin: 18px 0 24px;
        font-size: 40px;
        line-height: 0.98;
    }

    .blog-categories-menu {
        gap: 10px;
        margin-bottom: 24px;
        flex-wrap: wrap;
        overflow: visible;
    }

    .blog-category {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }

    .blog-list {
        display: flex;
        gap: 26px;
    }

    .blog-card-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .blog-card-col {
        margin-bottom: 0;
    }

    .blog-card__body {
        padding-top: 14px;
    }

    .blog-card__title {
        font-size: clamp(24px, 7vw, 30px);
        margin-bottom: 10px;
    }

    .blog-card__excerpt {
        font-size: 14px;
        min-height: 0;
    }

    .blog-card__tags {
        margin-top: 14px;
        font-size: 13px;
    }

    .blog-card__footer {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 14px;
    }

    .blog-card__meta {
        gap: 8px 14px;
    }

    .blog-card__category {
        top: 14px;
        left: 14px;
        padding: 9px 12px;
        font-size: 11px;
        max-width: calc(100% - 28px);
    }

    .blog-page .pagination {
        gap: 8px;
        margin-top: 36px;
        flex-wrap: wrap;
    }

    .blog-page .pagination a,
    .blog-page .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .blog-article__header h1 {
        font-size: 22px;
    }
    .blog-article-page {
        padding: 0 10px;
    }
    .blog-related .blog-card-col {
        width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 479px) {
    .blog-category,
    .blog-tag {
        width: 100%;
        justify-content: center;
    }

    .blog-card__meta,
    .blog-card__footer {
        align-items: flex-start;
    }

    .blog-card__cta {
        white-space: normal;
    }
}

/* Pagination */
.blog-pagination {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}

.blog-pagination__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination__item {}

.blog-pagination__link,
.blog-pagination__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e0dde8;
    border-radius: 4px;
    color: #2d2944;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-pagination__link:hover {
    background: #f5f3fa;
    border-color: #b0a8cc;
}

.blog-pagination__link.active,
.blog-pagination__link--active {
    background: #2d2944;
    border-color: #2d2944;
    color: #fff;
    pointer-events: none;
}

.blog-pagination__item--prev .blog-pagination__link,
.blog-pagination__item--next .blog-pagination__link {
    font-size: 16px;
}

@media (max-width: 479px) {
    .blog-pagination__link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
