/* golobal  */
button {
    border: none;
    outline: none;
    background: none;
}

a {
    font-weight: 500;
    font-size: 1.6rem;
    color: #333;
}

/* End global  */

/* header */

body {
    position: relative;
    margin: 0;
    font-family: Arial, sans-serif;
}
.card-cover {
    position: relative;
}

.product-card .card-cover {
    height: 90%;
    width: 100%;
}

.container {
    width: 85%;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 1rem !important;
    }
}

.header {
    width: 100%;
}

.header .content .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .content {
    border-bottom: 1px solid #ccc;
    height: 70px;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo-main {
    color: #333;
    margin: 0 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-main a {
    display: block;
}

.logo-da {
    background-color: red;
    color: white;
    padding: 2px 6px;
    margin-left: 2px;
    font-size: 18px;
    transform: rotate(-10deg);
    display: inline-block;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    height: 70px;
}

.header-right > div a {
    display: flex;
    align-items: center;
    color: #444;
    font-size: 16px;
    cursor: pointer;
    padding: 22px;
    border-left: #c1282d60 1px solid;
    border-right: #c1282d60 1px solid;
}
.header-right > div:last-child a {
    border: 0;
}

.header-right .subscribe:last-child > a,
.header-right .subscribe:first-child > a {
    border: 0;
}

.location.active {
    color: #c1282c;
}

.search.active {
    color: #c1282c;
}
.search i {
    color: #c1282c;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 70px;
    left: 0px;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 50px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.dropdown.show {
    display: flex;
}

.dropdown-header {
    display: flex;
    align-items: center;
}

.dropdown-header input {
    flex: 1;
    padding: 6px;
    border: none;
    outline: none;
    font-size: 14px;
}

.close-btn {
    cursor: pointer;
    margin-left: auto;
}

.suggestion {
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    color: #333;
}

.suggestion:hover {
    background-color: #f0f0f0;
}

/* Hide suggestion when not matching */
.suggestion.hide {
    display: none;
}

.search-panel {
    position: absolute;
    width: 100%;
    top: 70px;
    display: none;
    padding: 30px;
    border-top: 1px solid #eee;
    background: #fff;
    z-index: 500;
    animation: fadeIn 0.3s ease-in-out;
}

@media (max-width: 480px) {
    .search-panel {
        padding: 15px;
    }
}

.search-input {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.search-input input {
    flex: 1;
    border: none;
    font-size: 20px;
    padding: 10px;
    outline: none;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

.section-title i {
    margin-right: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.tag {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background-color: #f9f9f9;
    font-size: 14px;
    cursor: pointer;
}

.tag:hover {
    background-color: #eaeaea;
}

.delete-history {
    color: #888;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.header .brochures-bar {
    height: 50px;
    position: fixed;
    top: 70px;
    z-index: 499;
    width: 100%;
    line-height: 17px;
}

.header .brochures-bar .brochures a {
    border-bottom: 2px solid #c1282c;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    transition: transform 0.1s ease;
}

.bottom-header {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 999;
    transition: top 0.1s ease;
}

.header.scrolled .top-header {
    transform: translateY(-100%);
}

.header.scrolled .bottom-header {
    top: 0;
}

.header .brochures-bar .show a {
    color: #1d1c1c;
    font-size: 12px;
    padding: 15px 22px;
}

/* End Header  */

/* Main  */

main {
    margin-top: 80px;
}

main .top-menu {
    margin-top: 65px;
}

.menu-wrapper {
    max-width: 100%;
    height: 40px;
    padding: 0 30px;
    position: relative;
    overflow: hidden;
}
.menu-wrapper .menu-item {
    height: 100%;
    overflow: auto;
    white-space: nowrap;
}

header nav a {
    padding: 8px;
}
.menu-wrapper .menu-item a {
    display: inline-block;
    padding: 5px 16px;
    color: #afb1b2;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #afb1b2;
    border-radius: 12px;
    margin-right: 5px;
}
.menu-wrapper .menu-item a:hover {
    text-decoration: none;
}

.menu-wrapper .menu-item::-webkit-scrollbar {
    display: none;
}
.menu-wrapper .pointer {
    height: 20px;
    width: 15px;
    line-height: 34px;
    text-align: center;
    position: absolute;
    top: 0;
}
.menu-wrapper .pointer i {
    color: #333;
    cursor: pointer;
}
.menu-wrapper .left-pointer {
    left: 0;
}
.menu-wrapper .right-pointer {
    right: 0;
}
.menu-wrapper .dis i {
    color: #ccc;
}
a.active {
    color: red;
}

.brands-brochures-container {
    margin-top: 15px;
}

.brands-brochures {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    justify-content: center;
}
.brands-brochures .brochure-card {
    flex-basis: calc(100% / 6 - 15px);
    display: block;
    overflow: hidden;
    position: relative;
}

.brands-brochures .card-title {
    font-size: 22px;
    font-weight: bold;
    height: 60px;
    display: flex;
    align-items: end;
    line-height: 20px;
    padding: 6px;
}
@media (max-width: 768px) {
    .brands-brochures .brochure-card {
        flex-basis: calc(100% / 4 - 15px);
    }
}
@media (max-width: 480px) {
    .brands-brochures {
        justify-content: center;
        gap: 10px;
    }

    .brands-brochures .card-title {
        height: 50px;
    }

    .brands-brochures .brochure-card {
        flex-basis: calc(100% / 3 - 10px);
    }
    .brands-brochures .brochure-card .card-title {
        font-size: 18px;
    }

    .brands-brochures .card-subtitle {
        font-size: 12px !important;
    }
}

.brands-brochures .card-cover {
    border: 1px solid #777777c2;
    border-radius: 16px;
    overflow: hidden;
}
.brands-brochures .card-cover picture {
    display: block;
    width: 100%;
}
.brands-brochures .card-cover picture img {
    width: 100%;
    height: 250px;
}

@media (max-width: 480px) {
    .brands-brochures .card-cover picture img {
        height: 140px;
    }
}
.brands-brochures .card-cover .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 4px;
    border: none;
}

.brands-brochures .card-cover .btn button {
    color: #888;
}

.brands-brochures .card-subtitle {
    display: block;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    padding: 4px;
    padding-bottom: 0;
}
.variants {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}
.variants > div {
    padding: 0 4px;
}
.variants > div span {
    padding: 2px 4px;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
}
.card-banderole-wrapper-success span {
    background-color: #3fbe82;
}

.card-banderole-wrapper-danger span {
    background-color: #ff3b30;
}

/* ============================ */
.advertisements .carousel-inner {
    border-radius: 8px;
    box-shadow: 0 2px 3px rgb(0 0 0 / 70%);
}
.carousel-nav-icon {
    height: 48px;
    width: 48px;
}
.carousel-item {
    .col,
    .col-sm,
    .col-md {
        margin: 8px;
        height: 300px;
        background-size: cover;
        background-position: center center;
    }
}
.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;
}

[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='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"] .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='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,
.carousel-control-prev-icon {
    width: 4rem;
    height: 4rem;
}

.carousel-indicators .active {
    padding: 1.5px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.validity {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.new-products {
    margin-top: 30px;
}
.new-products h4 {
    font-size: 3rem;
}

.slider-container {
    position: relative;
    background: #eee;
    border-radius: 12px;
    padding: 20px;
}

.p-slider .product-card,
.p-slider .brochure-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 300px;
}

.brochure-card .featured-catalog-img {
    height: 100% !important;
    max-height: 100% !important;
}

.product-card img,
.inspired-card img {
    width: 100%;
    border-radius: 8px;
    max-height: 70%;
}

.brochure-card a {
    display: block;
    height: 100%;
}

.product-card .product-info {
    width: 100%;
    text-align: left;
    height: 30%;
    line-height: 25px;
    padding: 0 5px;
    background: unset;
}

.product-card .product-info span {
    display: block;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-card .product-info del {
    font-size: 14px;
}

.follow-btn {
    font-size: 16px;
    padding: 4px;
}

.product-card .product-info .product-price {
    font-weight: bold;
    color: #d00;
    margin-top: 0;
}

@media (max-width: 480px) {
    .p-slider .product-card,
    .p-slider .brochure-card {
        height: 200px !important;
    }
    .product-card .product-info {
        line-height: 20px;
    }
    .product-card .product-info span,
    .product-card .product-info del {
        font-size: 12px;
    }
    .product-card .product-info .product-price {
        font-size: 16px;
    }
    .follow-btn {
        padding: 3px !important;
        font-size: 12px !important;
    }
}
/* ================== */

.inspired {
    margin: 30px 0;
}
.inspired .inspired-card {
    min-width: 320px;
    min-height: 250px;
}

.more-brochures,
.btn {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-brochures a,
.btn a {
    padding: 5px 8px;
    background-color: #c1282c;
    color: white;
    font-size: 14px;
    border-radius: 15px;
}
/* End Main  */

/* Start Footer Section */

.footer .footer-content {
    background-color: #111111;
    padding: 20px 10px;
}

.footer .footer-content .container {
    display: flex;
    color: white;
}

.footer .footer-content .container .fototer-logo {
    width: 30%;
    padding: 25px 10px;
}

@media (max-width: 767px) {
    .footer .footer-content .container {
        flex-direction: column;
    }

    .footer .footer-content .container .fototer-logo {
        width: 100%;
    }
}

.footer .footer-content .container .fototer-logo > li {
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.footer .footer-content .container .fototer-logo .logo {
    width: fit-content;
    margin-bottom: 25px;
}

.footer .footer-content .container .fototer-logo .logo a img {
    height: 50px;
}

.footer .footer-content .container .fototer-logo .address i {
    display: block;
}

.footer .footer-content .container .fototer-logo > li span {
    display: block;
    margin-left: 10px;
}

.footer .footer-content .container .fototer-logo > li span a {
    text-decoration: none;
    color: white;
    transition-duration: var(--main-duration);
}

.footer .footer-content .container .fototer-logo > li span a:hover {
    color: var(--main-color);
}

.footer .footer-content .container .fototer-logo > li i {
    color: var(--main-color);
}

.footer .footer-content .container .fototer-logo .social-icons {
    display: flex;
    align-items: center;
}

.footer .footer-content .container .fototer-logo .social-icons li {
    margin-left: 20px;
    background-color: var(--main-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
}

.footer .footer-content .container .fototer-logo .social-icons li:first-child {
    margin: 0;
}

.footer .footer-content .container .fototer-logo .social-icons li a i {
    color: black;
    transition-duration: var(--main-duration);
}

.footer .footer-content .container .fototer-logo .social-icons li:hover a i {
    color: white;
}

.footer .footer-content .container .links-categorys {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.footer .footer-content .container .links-categorys .category {
    padding: 10px;
    margin-top: 35px;
}

@media (max-width: 767px) {
    .footer .footer-content .container .links-categorys {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        width: 100%;
    }

    .footer .footer-content .container .links-categorys .category {
        margin-top: initial;
    }
}

.footer .footer-content .container .links-categorys .category h4 {
    margin-bottom: 20px;
    font-weight: initial;
}

.footer .footer-content .container .links-categorys .category ul li {
    margin-bottom: 20px;
}

.footer .footer-content .container .links-categorys .category ul li a {
    font-size: 12px;
    padding: 15px;
    color: white;
    text-decoration: none;
    transition-duration: var(--main-duration);
}

.footer .footer-content .container .links-categorys .category ul li a:hover {
    color: var(--main-color);
}

.footer .copy-right {
    background-color: black;
    padding: 15px;
}

.footer .copy-right p {
    text-align: center;
    color: #adadad;
    font-size: 14px;
}

.footer .links .link {
    margin: 0 2px;
}

.footer .links .link a {
    color: #adadad;
    font-size: 10px;
    font-weight: 400;
    text-decoration: underline;
}

/* End Footer Section */

/* خلفية معتمة خلف العنصر */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* ظل خلفي */
    z-index: 1000;
}

/* .show-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.show-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 200px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 15px;
}

@media (max-width: 480px) {
    .show-card {
        min-width: 150px;
        max-width: 150px;
    }
}

.show-card b {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
} */

/* Swiper Styling */
.swiper {
    padding: 20px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* Show Card Styling */
.show-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    min-width: 160px;
    max-width: 180px;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s ease;
}

.show-card b {
    display: block;
    font-size: 15px;
    margin: 10px 0 5px;
}

.show-card .logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Responsive Slide Width */
@media (max-width: 480px) {
    .show-card {
        width: 140px;
        font-size: 14px;
    }
}

.show-section {
    border-top: 1px solid #ddd;
    padding-top: 18px;
    margin-top: 18px;
}

.show-section h3 {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.show-section > div:first-child {
    display: flex;
    align-items: center;
}

.show-section > div:first-child i {
    font-size: 16px;
    color: #c1282c;
}

.show-section p {
    margin: 6px 0;
    font-size: 15px;
}

.show-section ul {
    padding-left: 20px;
    margin: 10px 0;
    font-size: 15px;
}

.show-footer {
    margin-top: 25px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 15px;
}

.show-footer i {
    font-size: 16px;
    color: #c1282c;
}

.modal-content::-webkit-scrollbar,
.suggestions-list::-webkit-scrollbar,
#suggestions::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.suggestions-list::-webkit-scrollbar-track,
#suggestions::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
.suggestions-list::-webkit-scrollbar-thumb,
#suggestions::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #c1282c;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.suggestions-list::-webkit-scrollbar-thumb:hover,
#suggestions::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 0px) !important;
}

.swiper-button-next,
.swiper-button-prev {
    margin-top: unset;
    height: 100% !important;
    top: var(--swiper-navigation-top-offset, 0);
    right: var(--swiper-navigation-sides-offset, 0px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 30px !important;
}
