
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}


html {
    scroll-behavior: smooth;
}

/* width */
::-webkit-scrollbar {
    width: 6px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #FAF8F6;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #084e5a;
    border-radius: 40px;
  }
  

:root {
    --main-color: #084e5a;
    --text-color: #333333;
    --title-color: #010F1C;
    --green-color:#00AB1D;
}

ul {
    list-style: none;
    margin: 0;
}

button {
    border: 0;
}

a {
    text-decoration: none !important;
    color: black;
}
.cursor{
        cursor: pointer;

}
.bg-main{
    background-color:var(--main-color) ;
}
.text-main{
    color:var(--main-color) ;
}


.custom-carousel{
  height: 65vh;
}
.custom-carousel .carousel-item img {
  height:65vh;
  object-fit: cover;
}
/* تخصيص الأسهم */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.8);
  background-size: 60% 60%;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid #084e5a; /* وردي ناعم */
  box-shadow: 0 0 10px rgba(224, 193, 208, 0.5);
}

/* تخصيص شكل السهم */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23084e5a' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23084e5a' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}


/*.carousel-control-prev-icon,*/
/*.carousel-control-next-icon {*/
/*  width: 3rem;*/
/*  height: 3rem;*/
/*  background-color: rgba(0, 0, 0, 0.5);*/
/*  border-radius: 50%;*/
/*  background-size: 60% 60%;*/
/*  background-position: center;*/
/*  background-repeat: no-repeat;*/
/*}*/

/*.carousel-control-prev-icon {*/
/*  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2L5 8l6 6'/%3E%3C/svg%3E");*/
/*}*/

/*.carousel-control-next-icon {*/
/*  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 2l6 6-6 6'/%3E%3C/svg%3E");*/
/*}*/
/*.carousel-control-prev,*/
/*.carousel-control-next {*/
/*  top: 50%;*/
/*  transform: translateY(-50%);*/
/*  width: 5%;*/
/*}*/



/* global style */
.loader-container {
    display: none;
}
.loader-container .spinner-border {
    width: 3rem;
    height: 3rem;
}
.loader-container.loading {
    display: flex;
    padding: 10px 0;
    height: fit-content;
    min-height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.center-child-element {
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-btn {
    border: 0;
    outline: 0;
    background-color: var(--main-color);
    padding: 11px 20px;
    color: white;
    border-radius: 48px;
    font-size: 15px;
    font-weight: 500;
    line-height: 22.4px;
    cursor: pointer;
}

.search-box {
    flex-grow: 1;
    max-width: 680px;
    height: 40px;
    position: relative;
    border: 1px solid var(--main-color);
    padding: 5px 20px;
    border-radius: 20px;
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    padding-left: 30px;
}

.search-box i {
    position: absolute;
    top: calc(50% + 2px);
    font-size: 24px;
    left: 15px;
    transform: translateY(-50%);
    color: var(--main-color);
}


.range-box {
    position: relative;
}

.range-box .circle {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #000;
    position: absolute;
    top: 0.4rem;
}
.range-box .circle::before {
    content: attr(data-num);
    position: absolute;
    top: calc(100% + 5px);
    color: var(--main-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
}
.range-box .circle.c-left {
    left: 0;
}

.range-box .circle.c-right {
    right: 0;
    background-color: #d1d1d1;
}
.stars-box i {
    color: var(--main-color);
}

.span-btn {
    padding: 3px;
    border-radius: 4px;
    background-color: #F6F8FA;
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
    color: #8C8C8C;
}

.span-btn i {
    color: var(--main-color);
}

/* header ********************************************************************* */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    z-index: 50;
    transition: box-shadow 0.3s ease;
    -webkit-transition: box-shadow 0.3s ease;
    -moz-transition: box-shadow 0.3s ease;
    -ms-transition: box-shadow 0.3s ease;
    -o-transition: box-shadow 0.3s ease;
    z-index: 999;
}
header.scroll-active {
    box-shadow: 0px 0px 0px 0px #C4C4C41A ,0px 4px 10px 0px #C4C4C41A, 0px 17px 17px 0px #C4C4C417, 0px 39px 23px 0px #C4C4C40D, 0px 108px 30px 0px #C4C4C400;

}
header .dragon-logo img {
    width: 80px;
    object-fit: cover;
}

header .large-menu {
    gap: 40px;
}
header .large-menu li {
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s linear;
}

header .large-menu li.active {
    font-weight: 600;
}
header .large-menu li::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(0);
}

header .large-menu li:is(.active , :hover)::before {
    transform: scale(1);
}

header .action-buttons-container .profile-btn {
    font-size: 12px;
}

header .action-buttons-container i {
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
}

header .action-buttons-container .profile-btn i {
    font-size: 20px;
}

header .action-buttons-container .cart-icon {
    position: relative;
}
header .action-buttons-container .cart-icon .count-item {
    position: absolute;
    top: 0;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #F57038;
    color: white;
    font-size: 10px;
    text-align: center;
}
header .action-buttons-container .lang-icon {
    font-weight: 500;
    font-size: 14px;
}


/* categories ************************************************************** */
html[dir="rtl"] .scroll-control {
  flex-direction: row-reverse;
}

.categories .categories-header .cat-title p {
font-size: 18px;
font-weight: 600;
line-height: 22.4px;
letter-spacing: 0.16em;
color: var(--main-color);
}
.categories .categories-header .cat-title h3 {
  font-size: 45px;
  font-weight: 700;
  line-height: 50px;
  color: var(--title-color);
  max-width: 450px;
}

/* ✅ تعديل الحجم على الشاشات الصغيرة */
@media (max-width: 768px) {
  .categories .categories-header .cat-title h3 {
    font-size: 28px;
    line-height: 35px;
  }
}

@media (max-width: 576px) {
  .categories .categories-header .cat-title h3 {
    font-size: 22px;
    line-height: 30px;
  }
}

.scroll-control .control {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #E0E0E0;
    font-size: 29px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0;
}
.scroll-control .control:is(:hover, .active) {
    background-color: var(--main-color);
    color: white;
}


.categories-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    width: 100%;
}
.categories-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.categories-menu .cat-item {
    padding: 10px 20px;
    border-radius: 100px;
    background-color: #FAF8F6;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.categories-menu .cat-item:is(:hover, .active) {
    background-color: var(--main-color);
    color: white;
}
.categories-menu .cat-item span {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}


.categories-menu .cat-item img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 5px;
    
}

.categories .products-container .product-item .currency {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 1px 7px;
    text-align: center;
    color: white;
    background-color: var(--green-color);
    border-radius: 8px;
    font-size: 14px;
}
.categories .products-container .product-item .product-img {
    width: 100%;
    border: 1px solid var(--main-color);
    border-radius: 14px;
    padding: 10px;
    overflow: hidden;
}
.categories .products-container .product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}
.categories .product-item .product-det h5 {
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    margin: 0;
}

.categories .product-item .product-det .price {
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
    color: var(--green-color);
    padding: 6px;
}

.categories .product-item .product-det button {
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
    background-color: var(--main-color);
    color: white;
    border-radius: 6px;
    padding: 6px;
}
.categories .product-item p {
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
    color: #797575;
}


  .section-btn {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
  }
  .section-btn.active {
    background-color: var(--main-color);
    color: #fff;
  }
  
  .card-img-top {
    width: 100%;
    height: 200px; /* أو 250px حسب التصميم */
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }
  
  
  .offcanvas .offcanvas-header button {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background-color: #FAF8F6;
    color: black;
    font-size: 15px;
    text-align: center;
    line-height: 35px;
}

.popup-cart .product-details .product-img {
    text-align: center;
}

.popup-cart .product-details .product-img img {
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    height: 260px;
    border-radius: 12px;
}

.popup-cart .product-details .product-info h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

.popup-cart .product-details .product-info span {
    padding: 3px;
    border-radius: 4px;
    background-color: #F6F8FA;
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
    color: #8C8C8C;
}

.popup-cart .product-details .product-info span i {
    color: var(--main-color);
}

.popup-cart .product-details p {
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
    color: #8C8C8C;
    margin-top: 5px;
}

.popup-cart .controller-box .product-price {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
}

.offcanvas .controller-box .controller-btns button {
    background-color: var(--main-color);
    color: #fff;
    border-radius: 4px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    padding-bottom: 5px;
}

.offcanvas .add-extra-table .head span {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
}

.offcanvas .add-extra-table .head p {
    color: #8C8C8C;
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
}



.offcanvas .add-extra-table .item p {
    color: #000;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
}

.offcanvas .add-extra-table .item span {
    color: #8C8C8C;
    font-size: 14px;
    font-weight: 500;
    line-height: 16.8px; 
    margin-left: auto;
}

.rtl .offcanvas .add-extra-table .item span {
    margin-left: 0;
    margin-right: auto;
}

.offcanvas .add-extra-table .item input.form-check-input {
    color: #8C8C8C;
    font-size: 14px;
    font-weight: 500;
    line-height: 16.8px;
    margin-left: auto;
    border-color: var(--main-color);
    box-shadow: none;
    margin: 0;
}

.offcanvas .add-extra-table .item input.form-check-input:checked {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.offcanvas .offcanvas-bottom {
    position: absolute;
    bottom: 1rem;
    width: calc(100% - 2rem);
}

.offcanvas .offcanvas-bottom button {
    background-color: var(--main-color);
    color: #fff;
    font-size: 14px; 
    font-weight: 600;
    line-height: 16.8px;
    padding: 10px 20px;
    border-radius: 6px;
    width: 100%;
}

.offcanvas .offcanvas-bottom button .count {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    background-color: #FFE366;
    margin-left: 10px;
    display: inline-block;
}

  .input-box {
    width: 100%;
    height: 40px;
    position: relative;
    padding: 6px 20px;
    background-color: white;
    border-radius: 10px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 14.4px;
    color: #111;
    line-height: 14.4px;
}

.input-box input::placeholder {
    font-size: 14px;
    font-weight: 500;
    line-height: 14.4px;
    color: #111;
}


.input-box i {
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

:dir(ltr) .input-box i {
  
   right: 10px;
  left: auto;
}

:dir(rtl) .input-box i {
 left: 10px;
  right: auto;
}


.modal .modal-body .input-box {
    width:100%;
    background-color: #607d8b30;
}

.offcanvas .popup-cart .offcanvas-body {
    max-height: 100vh;
}




/**/

.product-img {
  transition: transform 0.3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.hover-shadow:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.textSection{
position: relative;
width: fit-content;
}    

.textSection::after{
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50%;
    height: 1px;
    background-color: var(--main-color);
}    

:dir(rtl) .textSection::after{
   right: 0px;
  left: auto;
}



