.show-single {
    display: flex;
    justify-content: space-between;
    background-color: white;
    width: 100%;
    height: calc(100vh - 70px);
    margin-top: 70px;
}
.show-single .brochures {
    width: 80%;
    max-height: 100%;
}
.brochures button {
    height: fit-content;
    margin: auto;
}
.show-single .brochures .brochures-card {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.show-single .brochures .brochures-card .brochure {
    height: 100%;
    width: 50%;
}

.show-single .brochures .brochures-card .brochure:first-child .img {
    float: right;
}

@media (max-width: 768px) {
    .show-single .brochures .brochures-card .brochure .img {
        max-height: calc(100vh - 215px) !important;
        aspect-ratio: unset !important;
    }
}

/* .show-single .brochures .brochures-card .brochure .img img {
    height: 100%;
    background-size: cover;
    width: 100%;
} */

/* ==========  */
.show-single .brochures .brochures-card .brochure .img img {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========== */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* للغات LTR (الإنجليزية) */
[dir="ltr"] {
    direction: ltr;
    text-align: left;
}
/* الصندوق الرئيسي */
.brochure-info {
    position: relative;
    padding-bottom: 70px;
    padding-right: 60px !important;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-body .brochure-info {
    padding: 10px !important;
}

.brochure-info .logo-address .logo {
    display: flex;
    justify-content: center;
}

.brochure-info .logo-address .logo img {
    width: 120px;
    height: auto;
}

.brochure-info .logo-address h4 {
    font-size: 1.6rem;
    text-align: left;
    font-weight: bold;
    margin: 10px 0;
    color: #c1282c;
}

.brochure-info .logo-address p,
.brochure-info .logo-address span {
    display: block;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4px;
}

.brochure-info .address {
    padding: 6px;
    border-left: 3px solid #ddd;
}

.brochure-info .address p {
    margin: 0;
    font-weight: 600;
    color: #222;
    font-size: 1.5rem;
}

.brochure-info .address span {
    display: block;
    color: #444;
    font-size: 1.3rem;
    margin-top: 3px;
}

.brochure-info .address .open-now {
    color: green;
    font-weight: bold;
}

.carousel {
    height: 100%;
}
.carousel-item {
    height: 100%;
}

.carousel-control-next,
.carousel-control-prev {
    width: unset;
}
.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 4rem;
    height: 4rem;
    background-color: white;
}

.header.single-page {
    margin: 0;
}

.brochures-sidebar {
    width: 20%;
    background: #e5e5e54b;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    margin-bottom: 10px;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c1282c'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c1282c'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.page-counter {
    font-size: 13px;
    color: #555;
}

.branch-button {
    width: 100%;
    padding: 8px;
    border: 1px solid #888;
    border-radius: 20px;
    margin: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

.brochures-list {
    height: 280px;
    overflow-y: auto;
}

@media (min-width: 1025px) {
    .brochures-list {
        height: fit-content;
        max-height: 55vh;
        overflow-y: auto;
    }
}

.brochures-sidebar h5 {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}
.brochure-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 5px;
}
.brochure-item {
    font-size: unset;
    display: flex;
    flex-direction: column;
    width: calc(50% - 5px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.brochure-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.side-brochure-info {
    padding: 2px;
}

.store-name {
    font-weight: bold;
    font-size: 12px;
    margin: 0;
}

.validity {
    font-size: 11px;
    margin: 2px 0;
    color: #666;
}

.label-new {
    font-size: 10px;
    color: #00b67a;
    font-weight: bold;
}

.next-brochure-btn {
    width: 100%;
    padding: 10px;
    background-color: #c1282c;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* ############ */
.carousel-inner {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease; /* تأثير ناعم للتكبير */
    max-height: 100%;
}

.carousel-item {
    transition: transform 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* تأثير ناعم عند الزوم على الصورة */
}

@keyframes glowFade {
    0% {
        background-color: transparent;
        filter: brightness(100%) contrast(100%);
    }

    30% {
        background-color: rgba(224, 224, 224, 0.4);
        filter: brightness(140%) contrast(130%);
    }

    60% {
        background-color: rgba(255, 255, 255, 0.6);
        filter: brightness(160%) contrast(150%);
    }

    100% {
        background-color: transparent;
        filter: brightness(100%) contrast(100%);
    }
}

.highlight-glow {
    animation: glowFade 1.2s ease-in-out 1;
    transition: all 0.2s ease;
}

.link-glow-opacity {
    background-color: rgba(193, 40, 44, 0.8) !important;
    box-shadow: 0 0 15px rgba(193, 40, 44, 0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-xl {
    max-width: 95vw !important;
}

.modal-content.h-95 {
    height: 95vh;
    min-height: 95vh;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.product-info-section {
    flex: 1;
    min-height: 0;
}

.product-info-section .contact-address {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.product-info-section .contact-address > div:first-child {
    margin: 0 10px;
}
.product-info-section .contact-address .address-content .wrapper-heading {
    font-size: 18px;
}

.product-info-section .sub-sec {
    margin-top: 0 !important;
}
.contact-map {
    margin-bottom: 30px;
}
.contact-map iframe {
    height: 400px !important;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.shop-btn,
.share-btn {
    margin: 0;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.shop-btn {
    width: 70%;
    background-color: #c1282c;
    background: #c1282c;
    color: white;
    margin-right: 15px;
}

[dir="rtl"] .shop-btn {
    margin-right: 0;
    margin-left: 15px;
}
[dir="rtl"] .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c1282c'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}
[dir="rtl"] .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c1282c'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

[dir="rtl"] .modal-header .btn-close {
    margin: 0;
}
.share-btn {
    width: 30%;
    background-color: #c1282c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttons:only-child .share-btn,
.buttons a:only-of-type.share-btn {
    width: 100%;
    text-align: center;
}
.swiper-button-next,
.swiper-button-prev {
    color: #c1282c;
}
.product-info-section .row > * {
    --bs-gutter-y: 10px;
}
.product-info-content .product-details .inner-text {
    color: #c1282c;
}
.shop-btn:hover {
    background-color: unset;
}
.accordion {
    font-family: Arial, sans-serif;
}

.accordion-item {
    border: 0;
    margin-bottom: 10px;
}

.accordion-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f8f9fa;
}

.accordion-header h4 {
    margin: 0;
    font-size: 16px;
}

.accordion-header i {
    font-size: 16px;
    transition: transform 0.3s;
    color: #aaa;
}

.accordion-item
    .accordion-content:not(.accordion-item.active .accordion-content) {
    max-height: 0 !important;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: #555;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    color: #444;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 15px 30px;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
}

.price {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: red;
}

.product-description,
.price-details {
    margin-bottom: 20px;
}

.product-description h4,
.price-details h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-description p,
.price-details p {
    margin: 3px 0;
    font-size: 14px;
    color: #555;
}

.price .amount {
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
}

.price .offer {
    color: #e53935;
    font-size: 14px;
}

.product-info-img .product-top {
    height: 400px;
    /* max-width: 400px; */
}

.product-info-img .product-top .slider-top-img {
    max-height: 100%;
    margin: auto;
}
.product-info-img .product-top .slider-top-img img {
    width: unset !important;
}
#offerModal {
    padding-right: 0 !important;
}

@media (max-width: 768px) {
    .product-info-content {
        padding: 0 1rem;
    }
}
/* Swiper styles */
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-wrapper {
    max-width: 400px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbs-swiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

.subscribe-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    /* مسافة بين العناصر */
    height: 100%;
    /* حسب الحاجة */
}

.subscribe a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator {
    width: 1px;
    height: 24px;
    background-color: #c1282c;
}

.modal-body .brochure.brochure-info {
    align-items: unset;
}

#offerModalBody {
    padding: 20px;
    padding-left: 100px;
    padding-right: 100px;
}
@media (max-width: 992px) {
    #offerModalBody {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 480px) {
    #offerModalBody {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.modal.fade .modal-dialog {
    transform: translateY(100%);
}
.modal.show .modal-dialog {
    transform: none;
}
/* إخفاء السايدر بار في الشاشات الصغيرة وظهر زر التحكم */
@media (max-width: 1024px) {
    .show-single {
        position: relative;
    }

    .show-single .brochures {
        width: 100%;
    }

    .brochures-sidebar {
        position: fixed;
        bottom: -360px;
        left: 0;
        width: 100%;
        background-color: rgba(228, 225, 225, 0.9);
        border-top: 1px solid #eee;
        transition: bottom 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    }

    .brochures-sidebar.active {
        bottom: 20px;
    }

    .toggle-sidebar {
        display: flex !important;
        justify-content: center;
        padding: 10px;
        background: #f5f5f5;
        cursor: pointer;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
    }

    .toggle-sidebar svg {
        width: 24px;
        height: 24px;
        color: #c1282c;
    }

    .brochure-item {
        width: calc(20% - 5px);
    }
    .brochure-grid {
        padding: 10px;
    }
}

/* تعديلات للهواتف المحمولة */
@media (max-width: 768px) {
    .show-single .brochures .brochures-card {
        padding: 0;
    }
    .brochure-grid {
        padding: 10px;
    }
    .brochure-item {
        width: calc((100% / 3) - 5px);
    }
}

@media (max-width: 480px) {
    .show-single .brochures .brochures-card {
        padding: 0;
    }
    .brochure-item {
        width: calc(50% - 5px);
    }
    .brochure-grid {
        padding: 10px;
    }
}

@media (max-width: 991px) {
    .brochures-card {
        flex-direction: column !important;
        height: auto !important;
        text-align: center;
    }

    .brochures-card .brochure {
        width: 100% !important;
    }

    .brochures-card .brochure-info {
        display: none;
    }

    .show-single {
        height: auto;
    }

    [dir="rtl"] .show-single .brochures .brochures-card .brochure .img {
        float: unset;
        margin: 0 auto;
    }

    [dir="ltr"] .show-single .brochures .brochures-card .brochure .img {
        float: unset;
        margin: 0 auto;
    }
}

.map-info-box {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: 80%;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    font-family: Arial, sans-serif;
    z-index: 2;
}

.map-info-box .address {
    font-size: 14px;
    color: #222;
}

.map-info-box .distance {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.map-info-box .map-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #1a73e8;
    text-decoration: underline;
}
