.rtl .mobile-button{
    right: unset;
    left: unset;
    z-index: 30;
}
.main-header .logo-box .logo {
    margin-right: 35px;
}
.loader {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}
@keyframes l5 {
    0%  {box-shadow: 20px 0 #000, -20px 0 #0002;background: #000 }
    33% {box-shadow: 20px 0 #000, -20px 0 #0002;background: #0002}
    66% {box-shadow: 20px 0 #0002,-20px 0 #000; background: #0002}
    100%{box-shadow: 20px 0 #0002,-20px 0 #000; background: #000 }
}
.text-justify {
    text-align: justify !important;
}
.tooltip {
    font-family: 'AnjomanMax' !important;
}
span,li,p {
    font-family: 'AnjomanMax' !important;
}
.box-title-listing .box-filter-tab .nice-select{
    padding: 0 12px 0 40px ;
}
select {
    border-radius: 99px !important;
}

.box-img {
    position: relative;
    display: inline-block;
    background-color: #F7F7F7;
}

.box-img:not(.item1)::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20%;
    max-width: 100px;
    aspect-ratio: 1 / 1;
    background-image: url('/storage/media/e1022aec-69a9-4fde-8d85-193f5b62a540.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
}

.images-style {
    position: relative;
    display: inline-block;
    background-color: #F7F7F7;
}

.images-style::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: 16px;
    width: 20%;
    max-width: 80px;
    aspect-ratio: 1 / 1;
    background-image: url('/storage/uploads/assets/logo@2x.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.flat-gallery-single{
    max-width: 1290px;
    margin: 0 auto;
}
.main-video{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.product-header-row {
    background-color: #f8f9fa;
}
.product-data-row td {
    border-top: none;
}
.header-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-item-count-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e3242b;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
    border: 1px solid white;
}


.logo-grayscale svg {
    filter: grayscale(100%) brightness(0.4) opacity(0.6);
    transition: all 0.3s ease-in-out;
}
.logo-grayscale svg:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
}


/* --- UI/UX Improvements for Latest Posts Section --- */

/* Added new rule to fix swiper height calculation */
.tf-sw-latest .swiper-slide {
    height: auto;
}

/* 1. Card Structure & Alignment */
.flat-blog-item-v2 {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row take up the same height */
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flat-blog-item-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 2. Consistent Image Aspect Ratio */
.flat-blog-item-v2 .img-style {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f0f2f5;
}

.flat-blog-item-v2 .img-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flat-blog-item-v2:hover .img-style img {
    transform: scale(1.05);
}

.flat-blog-item-v2 .date-post {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

/* 3. Content Box & Typography Control */
.flat-blog-item-v2 .content-box {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.flat-blog-item-v2 .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1A202C;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flat-blog-item-v2 .description {
    font-size: 14px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
