/* ====== GENERAL ====== */
@font-face {
font-family: 'VLAX';
src: url('https://hessennasser.github.io/smartdev-website/VLAX-01.otf') format('opentype');
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
  font-family: 'TheYearofHandicrafts';
  src: url('https://raw.githubusercontent.com/hessennasser/smartdev-website/main/TheYearofHandicrafts-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 {font-family: 'TheYearofHandicrafts', sans-serif !important;}
        
/* Apply font to entire store */
/* h1, h2 {font-family: 'VLAX', sans-serif !important;} */

.home-block-line, div.my-2.mx-auto.w-28.h-0.border-2.border-primary {display: none}
h2.text-3xl {line-height: 1.7; font-weight: 400 !important; color: var(--color-primary); font-size: 2rem !important; letter-spacing: 0 !important}

.s-block--best-offers .s-slider-block__title, salla-products-slider .s-slider-block__title {border-bottom-color: #ddd}
.btn--close {color: #6d1c4490}

@media (max-width:768px){
h2.text-3xl {font-size: 1.6rem !important;}
}

/* ====== HEADER ====== */
.top-navbar {min-height: 38px; border-bottom: 1px solid #6d1c4410;}
.topnav-link-item {border-right: 1px solid #6d1c4480; font-size: .9rem}

.promotion-banner {padding: 0}
.promotion-banner ul {display: flex; justify-content: center}
.promotion-banner ul li:not(:first-child) {display: none}
.promotion-banner ul li {animation: unset !important;}
.promotion-banner ul li a {font-size: .85rem}

.main-nav-container {height: auto !important; min-height: unset}
.main-nav-container .inner {padding-bottom: 8px;padding-top: 8px;}
.main-menu .has-children>a:after {display: none}
.store-header .sicon-cart:before {content: "\ef36";}
.menu-label {font-size: 1rem;margin: 0 10px;}

.s-cart-summary-count {top:0;right: -.475rem;border-radius: 0;background-color: transparent;font-size: .8rem;line-height: 1;padding: 0;color: #fff;color: var(--color-primary);}

@media (min-width:1024px){
.flex.items-center.justify-start {align-items: baseline}
.mburger--collapse i {height: 1.5rem;font-size: 1.2rem;}
.header-btn__icon {align-items: center;display: flex;font-size: 1.1rem;height: 2.5rem;justify-content: center;line-height: 1.75rem;width: 1.5rem;}
salla-cart-summary {margin-right: .5rem !important}
.main-nav-container .inner {padding-bottom: 0;padding-top: 0;}
}

/* ====== SLIDER ====== */
.advanced-slider__caption__inner__content__heading {font-size: 3rem; color: #fff; font-weight: 400;}
.advanced-slider__caption__inner__content__text {color: #fff; font-size: 2rem; font-weight: 100}
.advanced-slider__caption__inner__content__button {min-width: 30%; border-radius: 50px; padding: 10px 15px;}
.advanced-slider__caption__inner__content__button span {font-size: 1.3rem; font-weight: 400}

/* ====== CATEGORIES ====== */
.main-cats .max-w-7xl, .big-images .max-w-7xl {max-width: 100%; padding: 0 !important; margin: 0}
.main-cats .slide--one-fourth, .big-images .slide--one-fourth {padding-left: 0 !important; padding-right: 3px !important}
.main-cats img, .big-images img {aspect-ratio: unset}
.main-cats h3, .big-images h3 {position: absolute;bottom: 1rem;left: 0;right: 0;color: #fff;font-size: 1.5rem;font-family: 'VLAX', sans-serif !important;}
.main-cats .mt-4, .big-images .mt-4 {margin-top: 1.5rem}

@media (max-width:768px){
.main-cats .mt-4, .big-images .mt-4 {margin-top: .7rem;}
}

/* ====== PRODUCTS ====== */
.s-slider-block__title-right {padding-bottom: .5rem !important}
.s-slider-block__title h2 {font-size: 1.4rem;font-weight: 300;padding-bottom: 0;color: var(--color-primary);line-height: 1.6;}
.s-slider-block__title-nav {display: none !important}
.s-slider-block__display-all {font-size: .85rem;font-weight: 300;padding: 5px 15px !important;}
/* .index .product-card__normal-cart, .index .product-card__mini-cart {display: none !important} */
.product-card__title a, .product-card__price .total-price {font-size: .9rem;font-weight: 300;line-height: 1.3;color: #1a1a1a;}
.s-block--custom-products .s-products-slider-card {padding-left: 0 !important; padding-right: 5px !important}
.product-card {background-color: #ffffff80 !important}
.product-card__buttons .quickview-btn {display: none}
.product-card__buttons>div {transform: unset; margin: 0}
.product-card__buttons {top: 0;bottom: auto;left: 0;justify-content: flex-end;}
.product-card__buttons>div button, .product-card__buttons>div button:hover {background: none; box-shadow: none}
.fit-slider-products .s-slider-swiper-wrapper .swiper-slide {align-items: stretch;align-self: stretch;display: flex;}
salla-add-product-button button i, salla-add-product-button salla-button i {display: none}
salla-add-product-button button {padding: 10px 7px 7px !important}
salla-add-product-button button span {font-weight: 500}
salla-products-slider .s-slider-block__title-left .s-slider-block__display-all {padding: 9px 14px !important;line-height: 1;}

@media (min-width: 640px) {
.carousel-slider .swiper-wrapper>div {padding-left: 0; padding-right: 8px}
}

@media (max-width:992px){
.simplified-products .s-products-slider-card {width: 190px !important}
.simplified-products .offer-slide .product-card--simplified .product-card__mini-cart button, .simplified-products .s-products-list-wrapper .product-card--simplified .product-card__mini-cart button, .simplified-products .s-products-slider-card .product-card--simplified .product-card__mini-cart button {padding: 10px 7px 7px;}
}

/* ====== BIG IMAGES ====== */
.big-images h3 {bottom: 3rem;right: 2rem !important;left:auto;font-size: 2rem;font-weight: 100;color: #fff;display: flex;flex-direction: column;gap: 1.7rem;}
.big-images h3:after {content: 'اهـــدي الآن';display: block;font-size: 1.3rem;font-weight: 100 !important;border: 1px solid #ffffff80;width: fit-content;padding: 6px 16px;border-radius: 50px; font-family: Tajawal}

@media (min-width: 1024px) {
.big-images .slide--one-fourth {width: 33% !important;}
}

@media (min-width: 640px) {
.big-images .slide--one-fourth {max-width: unset !important;}
}

@media (max-width:768px){
.big-images h3 {right: 1.5rem !important; bottom: 2rem}
.big-images .slide--one-fourth {width: 290px !important;max-width: unset;}
}

/* ====== VIDEOS ====== */
.s-block--videos-gallery p.mt-2.text-lg {opacity: .6; font-size: 1rem; margin: 0}
.s-block--videos-gallery .relative.pt-8 {padding-top: 1rem}
.s-block--videos-gallery .videos-gallery-container salla-slider .swiper-wrapper {padding-bottom: 45px}

/* ====== TESTIMONAILS ====== */
.s-block--testimonials h2 {font-weight: 300 !important}

/* ====== FOOTER ====== */
.index .store-footer {margin-top: 0}
.index .store-footer__inner {padding-top: 1.5rem}
.store-footer h3 {font-size: 1.3rem;font-family: VLAX;color: var(--color-primary);font-weight: 500;}
.store-footer.basic-footer .footer-description, .footer-list a {font-size: 1rem}
.store-footer .enhanced_rounded_contacts a {font-size: .9rem; padding: .5rem; border-color: #ddd}
.s-social-link a {border-color: #ddd}
.store-footer .s-payments-list-item {width: 2.8rem; background-color: #ffffff80;}
.footer-badges .s-trust-badges-content, .footer-badges > .flex > div {display: flex;flex-direction: column;align-items: flex-start;gap: 4px;}
.footer-badges img {max-width: 3rem;}
.footer-badges p, .footer-badges b {margin: 0}

@media (max-width:768px){
.footer-is-custom .store-footer .store-footer__inner {padding-bottom: 0; border-bottom: 0}
.store-footer__inner .grid {display: flex;flex-direction: column;align-items: center; text-align: center;}
.store-footer salla-social:before{content: 'تابعنا';display: block;font-size: 1.3rem;color: var(--color-primary);font-weight: 500;line-height: 1;margin-bottom: .75rem;text-align: center;font-family: 'TheYearofHandicrafts', sans-serif !important}
.store-footer .s-social-list {margin-bottom:1rem}
}

/* ====== SIDEBAR ====== */
.mm-spn.mm-spn--navbar.mm-spn--main {font-size: 0}
.mm-spn.mm-spn--navbar ul:before {display: none}
.mm-spn li a, .mm-spn li>span {min-height: 5rem}

@media (max-width:768px){
.mm-ocd__content {width: 90%}
.mm-ocd__backdrop {width: 10%}
.mm-spn li a, .mm-spn li>span {font-size: .95rem;}
}

/* ====== CATEGORY PAGE ====== */
.product-index h1.text-xl {font-size: 1.6rem;}
.product-index .product-card__price {justify-content: center}
.product-index .product-card__title {text-align: center}
.product-index .product-card .product-card__content {padding: 12px !important;}

/* ====== PRODUCT PAGE ====== */
h1.text-xl {font-size: 1.7rem; font-weight: 500 !important}
.product-single .bg-storeBG.p-5.rounded-md.mb-5:has(.sicon-barcode) {display: none !important}
.dw-date-buttons button, .dw-time-buttons button {border: 1px solid #ddd;background: transparent;color: #1a1a1a;box-shadow: none;}
.dw-date-buttons button, .dw-time-buttons button, .dw-message-fields .dw-input {border-color: #ddd} 
.dw-date-buttons button:hover, .dw-date-buttons button.is-selected, .dw-time-buttons button:hover, .dw-time-buttons button.is-selected {background: #6d1c44;border-color: #6d1c44;color: #fff;}
.dw-input:focus {border-color: #ddd; outline: none}
.dw-message-fields {gap: 0}
.dw-message-fields .dw-input {text-align: center}
.dw-message-fields .dw-input:first-child {border-radius: 6px 6px 0 0 !important;}
.dw-message-fields .dw-input:last-child {border-radius: 0 0 6px 6px !important}

.product-single .s-product-options-text .s-form-control {border-color: #ddd; border-radius: 6px !important}
.product-single .product-price-bottom {display: none}
.product-single .product-features--wrapper {margin: 0; padding: 0 1.25rem}
.product-single .product-features--wrapper .grid {display: flex;flex-direction: column;align-items: flex-start;}
.product-single .product-features--wrapper .product-features-item {width: 100%;display: flex;justify-content: flex-start;padding-right: .8rem;border-radius: 6px;border-color: #ddd}
.product-single .feature-text h3 {font-weight: 400}
.product-single .s-product-options-option-label b span {color: var(--color-primary);}
.product-single .product-single__main-media {height: unset}
.product-single .s-slider-vertical .s-slider-thumbs-container {max-height: 100%;--tw-translate-y:unset}

salla-gifting {margin: 0}
.s-gifting-widget .s-list-tile-item {background: #ffffff80 !important;border-radius: 10px !important;}
salla-gifting h3 {color: var(--color-primary);font-family: VLAX;font-weight: 500 !important;font-size: 1.5rem;line-height: 1.8;}

.product-single .sticky-product-bar salla-add-product-button salla-button .s-button-btn {color: #fff}
.product-single .img-magnifier-glass, .product-single .magnify-wrapper img {height: auto}
.product-single .s-slider-vertical .s-slider-thumbs-container .swiper-slide {height: auto !important}
/* .product-single .fit-slider-products .product-card__mini-cart, .product-single .fit-slider-products .product-card__normal-cart {display: none !important} */

@media (max-width:768px){
.product-single .breadcrumbs {display: none}
.product-single .product-features--wrapper {padding: 0}
.product-single .feature-text h3 {font-size: .9rem}
.dw-date-buttons, .dw-time-buttons {display: grid !important;grid-template-columns: repeat(3, 1fr);}
.product-single .s-product-options-wrapper {padding: .25rem}
}

/* ====== BRANCHES ====== */
.content--single-page:has(.branches) {padding: 0 1rem; margin: 0}
.branches .grid {grid-template-columns: repeat(3,1fr); gap:1rem}
.branches .grid > div {border: 1px solid #ddd;padding: 1rem;border-radius: 10px;display: flex;flex-direction: column;}
.branch-header {display: flex;flex-direction: row;justify-content: space-between;margin-bottom: 1rem;}
.branch-header > div {display: flex;flex-direction: row;gap: 1rem;color: var(--color-primary);}
.branches .grid > div > p {font-weight: 600;border-bottom: 1px solid #ddd;margin-bottom: .5rem;border-top: 1px solid #ddd;padding-top: 5px;line-height: 2;}
.branches .grid > div > div {display: flex;font-size: .9rem;justify-content: space-between;}

@media (max-width:768px){
.branches .grid {grid-template-columns: repeat(1,1fr); gap:1.5rem}
}

/* ====== GENERAL PAGE ====== */
.content--single-page h1 {font-weight: 400}

/* ====== CUSTOM CONTACT ====== */
.content--single-page:has(.custom-contact) {padding: 0 1rem; margin: 0}
.custom-contact {border: 1px solid #ddd;padding: 1.5rem 1rem;border-radius: 10px;}
.custom-contact input[type=text], .custom-contact select, .custom-contact textarea {width: 100%;padding: 12px;border: 1px solid #ddd;border-radius: 4px;box-sizing: border-box;margin-top: 0;margin-bottom: 20px;resize: vertical;background: none;}
.custom-contact input[type=submit] {background-color: var(--color-primary);color: white;padding: 8px 20px;border: none;border-radius: 4px;cursor: pointer;width: 100%;}
.custom-contact input[type=submit]:hover {opacity: .8;}

@media (min-width:991px){
.custom-contact {max-width: 60%; margin-right: 0;}
.custom-contact input[type=submit] {width: 14rem}
}