@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

body {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    line-height: 2.2;
}

input,
button,
option {
    font-family: "IBM Plex Sans Arabic", sans-serif!important;
}

button {
    transition: all 0.3s ease;
    border-radius: 10px;
}

button:hover {
    background: #27abbe;
    border: none;
    color: #fff;
}

body, html {
    overflow-x: hidden;
}

body h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 14px;
}

input,
textarea,
select,
.input-text {
    border-radius: 8px;
}

input {
    border: 1px solid #d9d9d9;
}

input:hover {
    border: 1px solid #0d0d0d;
}

.action.primary, .action-primary {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    border-radius: 10px;
    border: none!important;
    font-weight: 300;
    background-color: #008da9;
}

.action.primary:hover, .action-primary:hover {
    background: #27a6c0;
}

a, a:hover {
    text-decoration: none!important;
}

.abs-account-block-font-size,
.block-addresses-list address,
.box-billing-address .box-content,
.box-shipping-address .box-content,
.box-address-billing .box-content,
.box-address-shipping .box-content,
.box-information .box-content,
.block-balance-giftcard .block-content,
.block-reviews-dashboard .product-name {
    font-size: inherit!important;
}

/** transitions **/

.action.primary,
.action-primary,
input,
.header a[href*="customer/account/create"],
a,
body .minicart-wrapper .action.showcart:before,
.header-account-link .account-icon,
.three-categories a {
    transition: all ease 0.3s;
}


/* header */
body .page-header {
    background-color: #fff;
    border-top: 4px solid #008da9;
}

body .page-header .panel.wrapper {
    color: #d1d5db !important;
    background-color: rgb(21, 33, 43);
}

.panel.header {
    background: rgb(21, 33, 43);
}

body .page-header .panel.wrapper a,
.header.panel > .header.links > li > a,
.header.panel > .header.links > li > a:visited {
    color: #e5e7eb;
}

.panel.header .authorization-link a {
    color: #fff !important;
}

.header a[href*="customer/account/create"] {
    background-color: #008da9;
    padding: 5px 9px;
    color: #fff!important;
    border-radius: 5px;

}

.header a[href*="customer/account/create"]:hover {
    background: #27a6c0;
}

.logo {
    float: none;
}

.minicart-wrapper {
    float: none;
}

body .minicart-wrapper .action.showcart:before,
body .minicart-wrapper .action.showcart.active:before,
.action.tocart.primary span:before,
.tocartnewcolor span:before {
    font-family: 'heroicons-outline'!important;
    content: "\e9ff"    ;
    font-size: 37px;
    color: #008da9;
    display: contents;
}

.minicart-wrapper .action.showcart:before {
    line-height: 44px;
}

.action.tocart.primary span:before,
.tocartnewcolor span:before {
    font-size: 13px;
    color: #9ac4cc;
    margin-left: 4px;
    display: inline-block;
}

@keyframes afaq-cart-spin {
    to {
        transform: rotate(360deg);
    }
}

.action.tocart,
.tocartnewcolor {
    position: relative;
}

.action.tocart.is-loading,
.tocartnewcolor.is-loading {
    pointer-events: none;
}

.action.tocart.is-loading > span,
.tocartnewcolor.is-loading > span,
.action.tocart.is-added > span,
.tocartnewcolor.is-added > span {
    visibility: hidden;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.action.tocart.is-loading > span::before,
.action.tocart.is-loading > span::after,
.tocartnewcolor.is-loading > span::before,
.tocartnewcolor.is-loading > span::after,
.action.tocart.is-added > span::before,
.tocartnewcolor.is-added > span::before {
    display: none !important;
    content: none !important;
}

.action.tocart.is-loading::after,
.tocartnewcolor.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: afaq-cart-spin 0.65s linear infinite;
}

.action.tocart.is-added::after,
.tocartnewcolor.is-added::after {
    content: 'تمت';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 600;
}

form[data-role="tocart-form"] .loading-mask,
.actions-primary .loading-mask,
.slider-product-item-actions .loading-mask {
    display: none !important;
}

body .minicart-wrapper .block-minicart {
    min-width: auto;
}

body .minicart-wrapper .block-minicart:before {
    right: auto;
    left: 45px;
}

body .minicart-wrapper .block-minicart:after {
    right: auto;
    left: 44px;
}

body .minicart-wrapper .action.close:not(.afaq-minicart__close) {
    right: 5px;
    top: 5px;
}

body .minicart-wrapper .block-minicart {
    min-width: auto;
    right: auto;
    left: -33px;
    padding-bottom: 3px;
}

body .cart.table-wrapper .product-item-photo {
    max-width: 80px;
}

body .cart.table-wrapper .product-item-details,
body .cart.table-wrapper .qty,
body .cart.table-wrapper .subtotal,
body .cart.table-wrapper .price {
    padding-bottom: 0;
    vertical-align: middle;
    font-size: 15px;
}

body .cart-discount .block .content {
    display: block!important;
}

body .cart-discount .title {
    display: none!important;
}

.cart.table-wrapper .product-item-name {
    font-size: 15px;
    margin: 0!important;
}

.product-item-name .author {
    font-size: 12px;
    margin-top: 8px;
    color: #ac6822;
}

.page-header .minicart-wrapper.active .action.showcart:after {
    font-family: 'heroicons-outline'!important;
    content: "\e96d";
}

.page-header .minicart-wrapper .action.showcart:after {
    font-family: 'heroicons-outline'!important;
    content: "\e969";
}


body .minicart-wrapper .action.showcart .counter.qty {
    height: 19px;
    line-height: 17px;
    border-radius: 2px;
    min-width: 19px;
    border-radius: 7px;
    position: absolute;
    top: -6px;
    left: -9px;
}

body .customer-welcome .action.switch {
    color: #000;
}

/* Magento lib-dropdown pins ul to right:0 (out of flow), which collapses
   .customer-menu and spills the list past the left viewport edge on mobile. */
body .customer-welcome ul {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
}

.opc-progress-bar {
    text-align: center;
}

body .opc-progress-bar-item:first-child:before,
body .opc-progress-bar-item:last-child:before {
    height: 2px;
    border-radius: 0;
}

body .opc-progress-bar-item > span:after {
    font-weight: 400;
    line-height: normal;
}

body .opc-progress-bar-item._active > span:after {
    line-height: 1.4;
}

body .compare.wrapper {
    display: none;
}

/* nav mneu */

.nav-sections {
    background: none!important;
}

@media screen and (max-width: 768px) {
    .nav-sections {
        background: #fff !important;
    }

    .modal-popup.modal-slide .modal-inner-wrap[class] {
        background-color: #fff;
    }
}

.navigation a.ui-state-active {
    background-color: #008da9;
    color: #fff;
    border-radius: 8px;
}

.navigation > ul > .level0 > a.level-top.ui-state-focus {
    background-color: #008da9;
    color: #fff;
    border-radius: 8px;
}

.navigation a.ui-state-active span,
.navigation > ul > .level0 > a.level-top.ui-state-focus span {
    color: #fff;
}

.navigation a.ui-state-active:after,
.navigation > ul > .level0 > a.level-top.ui-state-focus:after,
.navigation .parent .level-top.ui-state-active:after,
.navigation .parent .level-top.ui-state-focus:after,
.navigation .category-item > a.level-top.ui-state-active:after,
.navigation .category-item > a.level-top.ui-state-focus:after {
    color: #fff !important;
}

/**
    main content
**/

.pagebuilder-column {
    padding: 20px;
}

.afaq-main-content-wrap {
    width: 100%;
    background-color: #f9f9f9;
}

#maincontent {
    background-color: transparent;
    padding: 30px;
    margin-bottom: 18px;
}

body.customer-account-login .block-new-customer {
    display: none;
}

body.customer-account-login .login-container .block {
    width: 100%;
}

.product-item .old-price .price,
.product-info-main .product-info-price .old-price .price-wrapper .price {
    position: relative;
}

.product-item .old-price .price:after,
.product-info-main .product-info-price .old-price .price-wrapper .price:after {
    content: "";
    position: absolute;
    top: 12px;
    right: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid #ff00007d;
    transform: rotate(-14deg);
    pointer-events: none;
}

.product-item .price-box {
    display: flex;
    flex-direction: column-reverse;
}

.slider-product-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slider-product-item-details .price-box {
    margin: 0;
}

.slider-product-item-actions {
    align-content: end;
    flex: 1;
    margin: 0!important;
}

.page-404-wrapper figure {
    text-align: center;
}

.page-404-wrapper img {
    width: 400px;
}

h2 {
    /* font-size: 100px; */
    color: #5e9aa1;
}

.cms-not-found .page-title-wrapper {
    display: none;
}

/* slider */

.owl-stage {
    display: flex;
}

.product-slider {
    height: 100%;
}

.slider-product-item-info {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

#mageplaza-bannerslider-block-after-content-6 {
    margin: 25px auto;
    max-width: 700px;
}

/* forms */

.field-error {
    color: #e02b27;
    font-size: 1.2rem;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type*="date"],
input[type="email"] {
    background: #fff;
    background-clip: padding-box;
    border: 1px solid #cdcdcd;
    border-radius: 10px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    height: 32px;
    line-height: 1.42857143;
    padding: 20px 14px;
    vertical-align: baseline;
    width: 100%;
    box-sizing: border-box;
}

.customer-account-create #maincontent,
.customer-account-login #maincontent,
.customer-account-forgotpassword #maincontent {
    max-width: 500px;
}

.form-create-account .field,
.customer-account-login .field,
.customer-account-forgotpassword .field {
    display: flex;
}

.form-create-account .field label,
.customer-account-login .field label,
.customer-account-forgotpassword .field label {
    font-weight: 400!important;
    min-width: 110px;
    padding-top: 4px;
}

.form-create-account .control,
.field .control {
    flex: 1;
}

body .legend > span {
    font-size: 16px!important;
    font-weight: 500!important;
}

.abs-account-title, .abs-account-blocks .block-title,
.account .legend, .form-giftregistry-search .legend,
.block-giftregistry-results .block-title,
.block-giftregistry-shared-items .block-title,
.block-wishlist-search-form .block-title,
.block-wishlist-search-results .block-title,
.multicheckout .block-title, .multicheckout .block-content .title,
.customer-review .review-details .title,
.paypal-review .block .block-title,
.account .column.main .block:not(.widget) .block-title,
.multicheckout .block-title,
.magento-rma-guest-returns .column.main .block:not(.widget) .block-title,
[class^='sales-guest-'] .column.main .block:not(.widget) .block-title,
.sales-guest-view .column.main .block:not(.widget) .block-title {
    border-bottom: 1px solid #e2e2e2!important;
}

.form.password.forget .fieldset:after {
    margin-top: 6px;
}

.form-shipping-address .field .control._with-tooltip input {
    margin-right: 0;
}

.form-shipping-address .field .field-tooltip {
    display: none;
}

.abs-discount-code .form-discount, .checkout-payment-method .payment-option-content .form-discount {
    display: flex;
}

.checkout-payment-method .payment-option-inner {
    flex-basis: 290px;
}

/** main content **/
.cms-index .page-title-wrapper {
    display: none;
}

.banner-title {
    display: none;
}

.right-banners .owl-stage {
    display: flex;
    flex-direction: column;
    width: 100%!important;
}

.right-banners .owl-stage .owl-item {
    width: 100%!important;
}

body .mp-product-slider-title,
.block .title strong {
    display: block;
    font-size: 17px!important;
    font-weight: 500;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    padding: 12px 0;
    margin-bottom: 25px;
    color: #000;
    text-align: center;
    width: 100%;
}

.three-categories {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.five-categoris-wrapper .pagebuilder-column-line {
    gap: 15px;
    justify-content: center;
}

.five-categoris-wrapper .pagebuilder-column {
    padding: 0;
    transition: all ease 0.7s;
}

.five-categoris-wrapper .pagebuilder-column:hover {
    background-position: left top!important;
}

.five-categoris-wrapper .pagebuilder-column > div,
.five-categoris-wrapper .pagebuilder-column p,
.five-categoris-wrapper .pagebuilder-column a {
    height: 100%;
    margin: 0;
}

.five-categoris-wrapper .pagebuilder-column a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 40px 15px;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.five-categoris-wrapper .partners-cat a {
    padding: 0!important;
}

.five-categoris-wrapper figure {
    line-height: 0;
}

.banners-list a {
    display: block;
    margin-bottom: 20px;
}

/* writers page */
.writers-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.writers-item {
    flex: 1 1 33.3333%;
    box-sizing: border-box;
    padding: 5px;
}

.writers-item a {
    display: block;
    padding: 10px;
    background-color: #ebebeb;
    border: 1px solid #ddd;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.writers-item a:hover {
    background-color: #e5e5e5;
}

/* product page */

.product-main-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
    justify-content: space-between;
}

.product-main-container-left {
    display: flex;
    flex-basis: 250px;
    background: #d8e9ec;
    padding: 20px;
    flex-direction: column;
    text-align: center;
}

.product-main-container-left .action.primary {
    padding: 8px;
    font-size: 14px;
}

@media (min-width: 769px) {
    .product-main-container-left .box-tocart {
        display: block;
    }

    .product-main-container-left .box-tocart .field.qty,
    .product-main-container-left .box-tocart .actions {
        display: block;
        padding: 0;
        text-align: center;
    }

    .product-main-container-left .box-tocart .field.qty {
        margin-bottom: 12px;
    }

    .product-main-container-left .box-tocart .action.tocart {
        width: fit-content;
        margin: 0;
        min-height: 44px;
        padding: 5px 15px;
    }
}

.product-main-container-middle {
    flex-grow: 1;
    flex-basis: 0;
}

.product-main-container-right {
    flex-basis: 270px;
}

body.page-layout-1column .product-info-main {
    width: 100%;
}

body .product-info-main .product-info-stock-sku {
    display: block!important;
    float: none;
    padding-left: 0;
}

.product-saving {
    margin-top: -40px;
}

.product-saving span {
    padding: 10px;
    border: 2px solid red;
    font-weight: 600;
    font-size: 20px;
    display: inline-block;
    background: #fff;
}

.product-info-main .product-info-price .price-box {
    display: flex;
    flex-direction: column-reverse;
}

.product-social-links .action.towishlist:before,
.block-bundle-summary .action.towishlist:before,
.product-item .action.towishlist:before,
.table-comparison .action.towishlist:before,
.product-social-links .action.tocompare:before,
.product-social-links .action.mailto.friend:before,
.product-item .tocompare:before {
    font-family: 'heroicons-outline'!important;
    font-size: 19px;
    padding: 8px;
    border: 1px solid #c1c1c1;
    margin-right: 5px!important;
}

.product-social-links .action.towishlist:before,
.block-bundle-summary .action.towishlist:before,
.product-item .action.towishlist:before,
.table-comparison .action.towishlist:before {
    content: "\e9b8";
}

.product-social-links .action.towishlist:hover:before,
.block-bundle-summary .action.towishlist:hover:before,
.product-item .action.towishlist:hover:before,
.table-comparison .action.towishlist:hover:before {
    color: rgb(255, 0, 0);
}

.product-social-links .action.tocompare:before,
.product-item .tocompare:before {
    content: "\e959";
}

.product-social-links .action.mailto.friend:before {
    content: "\e99a";
}

.bundle-options-container .block-bundle-summary .product-addto-links > .action,
.product-item-actions .actions-secondary > .action,
.product-social-links .action.tocompare,
.wishlist.split.button > .action.split,
.product-social-links .action.mailto.friend,
.product-social-links .action.towishlist,
.block-bundle-summary .action.towishlist,
.product-item .action.towishlist,
.table-comparison .action.towishlist {
    letter-spacing: 0;
}

.product-addto-links .action {
    margin-right: 0;
}

.product-info-main .stock.available,
.product-info-main .stock.unavailable {
    text-align: center;
}

.stock.available {
    color: green;
}

.product-inner-h3 {
    display: flex;
    font-weight: 400;
    align-items: center;
    gap: 18px;
    margin: 30px 0 14px 0;
    font-size: 15px;
    color: #676767;
}

.product-inner-h3:after {
    border-top: 1px solid #e5e5e5;
    content: "";
    flex: 1;
}

body .fotorama--fullscreen {
    background-color: rgba(0,0,0,0.2);
}

body .fotorama--fullscreen .fotorama__wrap {
    max-width: 80% !important;
    background-color: #fff;
    margin: 20px auto;
    padding: 20px 0;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
}

/* category page */

.product-item {
    direction: rtl;
}

.products-grid .product-item-info {
    transition: all ease 0.3s;
}

body .products-grid .product-item-info:hover,
body .products-grid .product-item-info.active,
.products-grid .product-item-inner {
    box-shadow: -1px 2px 4px 0 rgba(0, 0, 0, 0.1);
    border: none;
}

.featured-grid-home .product-item-inner {
    box-shadow: none;
}

.product.info.detailed {
    margin-top: 30px;
}

.products-grid .product-item-info:hover,
.products-grid .product-item-info.active {
    margin: -9px;
}

.products-grid .product-item-actions {
    margin: 0;
}

.products-grid .product-item-inner {
    margin-right: 1px;
    margin-left: 0;
    margin-top: 11px;
    transform: translateY(-20px);
}

.sidebar-main .filter dt {
    background-color: #008da9;
    color: #fff;
    padding: 0 10px;
    font-weight: 300;
}

.sidebar-main .filter dd {
    margin: 0;
}

.sidebar-main .filter li {
    background-color: #efefef;
    padding: 3px 8px;
    display: flex;
}

.sidebar-main .filter li a {
    flex: 1;
}

.sidebar-main #narrow-by-list2 li span.count {
    background-color: #dedede;
    padding: 0 3px;
    min-width: 20px;
    text-align: center;
}

.products-list .product-item-photo {
    padding: 0 0 30px 30px!important;
}

body .block-compare {
    margin-bottom: 50px!important;
}

.block-compare .block-title,
.block-reorder .block-title,
.block-wishlist .block-title {
    background-color: #8b8b8b;
    color: #fff;
    padding: 0 10px;
}

.block-compare .actions-toolbar,
.block-reorder .actions-toolbar,
.block-wishlist .actions-toolbar {
    text-align: left;
    float: none!important;
}

.block-compare .counter, .block-wishlist .counter {
    color: #cdcdcd;
}


/* footer */

.page-footer,
.copyright {
    background-color: #272723!important;
}

.page-footer h4 {
    color: #fff;
}

.page-footer a {
    color: #A8A8A8;
}

.page-footer ul {
    padding-right: 0!important;
}

.page-footer li {
    padding: 0;
    margin-bottom: 10px!important;
}

.page-footer p {
    color: #A8A8A8;
}

.social-icons a {
    background-color: #33332f;
    color: #fff;
    width: 48px;
    height: 48px;
    margin-left: 0;
    margin-right: 8px;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-second,
.footer-third {
    border-top: 1px solid #3d3d39 ;
}

.social-icons a:hover {
    background-color: #444441;
}

.social-icons svg {
    height: 22px;
    fill: #fff;
}

.block.newsletter {
    max-width: fit-content!important;
    margin: 15px 0;
}

.block.newsletter .form.subscribe {
    display: flex;
}

.block.newsletter input {
    font-family: "IBM Plex Sans Arabic", sans-serif!important;
    background-color: #fff;
    color: #848484;
    height: 48px;
    border: none;
    font-size: 13px;
    border-radius: 0 30px 30px 0 ;
    padding-left: 40px;
}

.block.newsletter .field .control:before {
    margin: 7px 10px 0 0!important;
    color: #cfcece;
}

.block.newsletter .actions button {
    height: 48px;
    padding: 0 22px !important;
    border-radius: 30px 0 0 30px !important;
}

.vat-logo {
    max-width: 100px;
}

.payment-logos {
    max-width: 400px;
}


/* header */
body .header.panel > .header.links {
    float: left;
    display: flex;
    align-items: center;
}

.header.panel > .header.links > li > a {
    margin-left: 10px;
}

.header.content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 20px 40px !important;
}

body.afaq-header-is-fixed .page-header {
    min-height: var(--afaq-header-content-height, 0px);
}

@keyframes afaq-header-slide-in {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

body.afaq-header-is-fixed .page-header .header.content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    /* content-box + side padding made it 100vw + padding, spilling past the
       viewport edge (RTL keeps right:0, so the left side got clipped) */
    box-sizing: border-box;
    z-index: 250;
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    animation: afaq-header-slide-in 0.25s ease;
}

body.afaq-header-is-fixed .page-header .panel.wrapper {
    visibility: hidden;
}

.header.content::before,
.header.content::after {
    display: none;
    content: none;
}

.header.content .logo {
    flex: 0 0 auto;
    order: 1;
    margin: 0;
}

.header.content .block-search {
    flex: 1 1 auto;
    order: 2;
    min-width: 0;
    width: auto;
    margin: 0;
}

.header.content .header-account-link {
    flex: 0 0 auto;
    order: 3;
    line-height: 1;
}

.header.content .minicart-wrapper {
    flex: 0 0 auto;
    order: 4;
    margin: 0;
}

.header.content .nav-toggle {
    flex: 0 0 auto;
    order: 5;
    float: none;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
}

.header.content .block-search .block-title {
    display: none;
}

.header.content .block-search .block-content {
    margin: 0;
    padding: 0;
}

.header.content .block-search .form.minisearch {
    display: flex;
    align-items: center;
}

.header.content .block-search .field.search {
    flex: 1 1 auto;
    margin: 0;
}

.header.content .block-search .field.search .control {
    position: relative;
}

.header.content .block-search .field.search .control input {
    width: 100%;
}

.header-account-link .action.header-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 1;
    padding: 0;
}

.header-account-link .account-icon {
    font-size: 37px;
    color: #008da9;
    line-height: 1;
    display: inline-block;
}

.header-account-link .action.header-account .text {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Logged-in header avatar + account dropdown */
.header.content .afaq-header-account {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header.content .afaq-header-account__toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.header.content .afaq-header-account__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #008da9 !important;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    direction: ltr;
    unicode-bidi: plaintext;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    z-index: 1;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.header.content .afaq-header-account__alert {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff;
    z-index: 2;
}

.header.content .afaq-header-account__nudge {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 14px 14px 12px;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 42, 63, 0.14);
    z-index: 280;
    text-align: start;
    box-sizing: border-box;
}

.header.content .afaq-header-account__nudge-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.35;
}

.header.content .afaq-header-account__nudge-text {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.55;
}

.header.content .afaq-header-account__nudge-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #108a9b;
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
}

.header.content .afaq-header-account__nudge-cta:hover {
    background: #0d7280;
    color: #fff !important;
    text-decoration: none;
}

.header.content .afaq-header-account__avatar--placeholder:empty::after {
    content: '…';
    color: #008da9;
    font-size: 16px;
    line-height: 1;
}

.header.content .afaq-header-account__toggle:hover .afaq-header-account__avatar,
.header.content .afaq-header-account.active .afaq-header-account__avatar {
    background: #e8f6f8;
    box-shadow: 0 0 0 2px rgba(0, 141, 169, 0.15);
}

.header.content .afaq-header-account .action.switch {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.header.content .afaq-header-account .customer-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    /* Keep the panel inside the viewport: grow toward page center from the avatar. */
    left: 0 !important;
    right: auto !important;
    inset-inline-start: 0;
    inset-inline-end: auto;
    z-index: 260;
    width: min(240px, calc(100vw - 24px));
    min-width: 200px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.header.content .afaq-header-account.active .customer-menu {
    display: block;
}

.header.content .afaq-header-account .customer-menu::before,
.header.content .afaq-header-account .customer-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 14px;
    right: auto;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #eef1f4;
    border-left: 1px solid #eef1f4;
    transform: rotate(45deg);
}

.header.content .afaq-header-account .customer-menu::after {
    top: -5px;
    border: none;
    background: #fff;
}

.header.content .afaq-header-account .header.links,
.header.content .afaq-header-account .customer-menu ul {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    list-style: none;
    margin: 0 !important;
    padding: 6px;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.header.content .afaq-header-account .header.links > li {
    margin: 0;
    padding: 0;
}

.header.content .afaq-header-account .header.links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #374151;
    font-size: 1.35rem;
    text-decoration: none;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header.content .afaq-header-account .afaq-header-account__menu-label {
    flex: 1 1 auto;
    min-width: 0;
}

.header.content .afaq-header-account .afaq-header-account__menu-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.header.content .afaq-header-account .customer-menu {
    pointer-events: auto;
}

.header.content .afaq-header-account .header.links > li > a:hover {
    background: #f3f4f6;
    color: #008da9;
}

.header.content .afaq-header-account .header.links > li.authorization-link > a {
    color: #dc2626;
}

.header.content .afaq-header-account .header.links > li.authorization-link > a:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Hide top-panel account menu when logged in (dropdown is on avatar) */
body .header.panel > .header.links > li.customer-welcome,
body .header.panel > .header.links > li.greet.welcome {
    display: none !important;
}

.block-search {
    margin-top: 0;
    min-width: 0;
}

.block-search input {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    border: 1.5px solid rgb(226, 230, 232);
    border-radius: 10px;
}

input::placeholder {
    color: #b9b9b9!important;
}

.block-search .action.search {
    right: inherit!important;
    left: 30px;
}

body .block-search .action.search:before {
    font-size: 17px;
    line-height: 38px;
}

div .minicart-wrapper {
    margin-top: 0;
}

body .minicart-wrapper .showcart {
    position: relative;
    float: none;
    padding: 0;
    border: none;
}

.minicart-items-wrapper {
    padding: 0 20px;
}

.minicart-items-wrapper {
    border: none;
}

body .minicart-wrapper .secondary a {
    display: block;
    border: 1px solid #ccc;
    padding: 4px;
    color: #000;
}

.block-minicart .subtotal label,
.block-minicart .subtotal .price-container {
    display: inline-block;
}

.block-minicart #top-cart-btn-checkout {
    font-size: 15px;
    text-align: center;
    padding: 9px;
}

/* nav mneu */

.section-item-content,
.nav-sections-item-content {
    background: #f0f0f0;
}

body .nav-sections {
    margin-bottom: 18px;
}

.nav-sections-item-content > .navigation {
    padding: 0 20px;
    font-weight: 300;
}

.category-item > a.level-top:after {
    font-family: 'luma-icons'!important;
    content: "\e622";
    margin-right: 7px;
    font-size: 7px;
    color: #b4b4b4;
}

body .navigation .level0 .submenu {
    border: none !important;
    box-shadow: none;
    font-weight: 300;
    min-width: 210px;
    padding: 10px;
    right: 0;
    background: #e5e4e4;
    z-index: 200;
}

@media screen and (min-width: 769px) {
    body .navigation .level0 .submenu {
        display: none;
    }

    body .navigation .level0:hover > .submenu,
    body .navigation .level0.ui-state-active > .submenu {
        display: block;
    }

    .navigation .level0 .submenu a:hover,
    .navigation .level0 .submenu a.ui-state-focus {
        background: #008da9;
        color: #fff;
        text-decoration: none;
    }

    .navigation .level0 .submenu a:hover span,
    .navigation .level0 .submenu a.ui-state-focus span {
        color: #fff;
    }
}

.navigation .level0.active > .level-top, .navigation .level0.has-active > .level-top,
.navigation .level0 .submenu .active > a {
    border-color: #ffab55!important;
}

/* Desktop main nav: single row, stable hover, dropdowns without scroll clipping */
@media screen and (min-width: 769px) {
    .section-item-content.nav-sections-item-content,
    .nav-sections-item-content {
        overflow: visible;
    }

    .nav-sections-item-content > .navigation {
        overflow: visible;
    }

    .nav-sections-item-content > .navigation > ul {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        margin: 0;
        padding: 0;
    }

    .nav-sections-item-content > .navigation .level0 {
        flex: 0 0 auto;
        float: none;
        position: relative;
    }

    .nav-sections-item-content > .navigation .level0 > .level-top {
        white-space: nowrap;
        transition: none;
    }

    .nav-sections-item-content .navigation .level0 > .level-top:hover,
    .nav-sections-item-content .navigation .level0 > .level-top.ui-state-focus,
    .nav-sections-item-content .navigation .level0 > .level-top.ui-state-active {
        background-color: #008da9 !important;
        color: #fff !important;
        border-color: transparent !important;
        border-radius: 8px;
        text-decoration: none;
    }

    .nav-sections-item-content .navigation .level0 > .level-top:hover span,
    .nav-sections-item-content .navigation .level0 > .level-top.ui-state-focus span,
    .nav-sections-item-content .navigation .level0 > .level-top.ui-state-active span {
        color: #fff !important;
    }

    .nav-sections-item-content .navigation .level0 > .level-top:hover:after,
    .nav-sections-item-content .navigation .level0 > .level-top.ui-state-focus:after,
    .nav-sections-item-content .navigation .level0 > .level-top.ui-state-active:after,
    .nav-sections-item-content .navigation .parent .level-top.ui-state-focus:after,
    .nav-sections-item-content .navigation .parent .level-top.ui-state-active:after,
    .nav-sections-item-content .navigation .category-item > a.level-top:hover:after,
    .nav-sections-item-content .navigation .category-item > a.level-top.ui-state-focus:after,
    .nav-sections-item-content .navigation .category-item > a.level-top.ui-state-active:after {
        color: #fff !important;
    }

    .nav-sections-item-content .navigation .submenu a.ui-state-focus,
    .nav-sections-item-content .navigation .submenu a.ui-state-active,
    .nav-sections-item-content .navigation .submenu a:hover {
        background-color: #008da9 !important;
        color: #fff !important;
        filter: none;
    }

    .nav-sections-item-content .navigation .submenu a.ui-state-focus span,
    .nav-sections-item-content .navigation .submenu a.ui-state-active span,
    .nav-sections-item-content .navigation .submenu a:hover span {
        color: #fff !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1280px) {
    .nav-sections-item-content > .navigation .level0 > .level-top {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 1.3rem;
    }
}

/* forms */
.form.password.reset, .form.send.confirmation,
.form.password.forget, .form.create.account,
.form.search.advanced, .form.form-orders-search {
    min-width: 400px!important;
    width: 100%!important;
}

body .product-social-links {
    text-align: center;
}

/* .abs-margin-for-blocks-and-widgets-desktop,
.page-main .block, .customer-review .product-details {
    margin-bottom: 0!important;
} */

/* product page */
body.page-layout-1column .product.media {
    width: 100%!important;
}

.product-main-container-left {
    flex-direction: column;
}


/* custom */

.publisher-logo {
    margin: 20px 0;
}

.publisher-logo img {
    width: 270px;
    max-width: 70%!important;
    filter: grayscale(1);
    transition: all ease 0.3s;
}

.publisher-logo img:hover {
    filter: grayscale(0);
}



@media all and (min-width: 768px),print {
    body.page-products .products-grid .product-item:nth-child(4n + 1),
    body.page-products .products-grid .product-item:nth-child(3n + 1),
    body.page-products .products-grid .product-item {
        margin-left: 2%!important;
        width: calc((100% - 9%) / 4);
    }
}

/* For tablet screens (up to 900px) */
@media screen and (max-width: 900px), print{

    /* header */

    .header.content {
        gap: 10px;
        padding: 14px 20px !important;
    }

    .header.content .logo img {
        max-width: 148px;
        width: auto;
        height: auto;
    }

    .header.content .minicart-wrapper {
        display: block;
        position: static;
        width: auto;
    }

    .header.content .nav-toggle:before {
        content: "\e93b";
        font-family: 'heroicons-outline' !important;
        color: #008da9;
        font-size: 27px;
        line-height: 1;
        transition: color 0.2s ease;
    }

    html.nav-open .header.content .nav-toggle:before {
        content: "\ea27";
    }

    .header.content .block-search {
        flex: 1 1 auto;
    }

    .header.content .block-search .label {
        margin: 0;
        float: none;
    }

    .header-account-link .account-icon,
    body .minicart-wrapper .action.showcart:before,
    body .minicart-wrapper .action.showcart.active:before,
    .tocartnewcolor span:before {
        font-size: 27px;
    }

    .header.content .block-search .label:before {
        content: "\e9cb";
        font-size: 24px;
        font-family: 'heroicons-outline' !important;
        color: #008da9;
    }

    body .minicart-wrapper .action.showcart:before {
        margin: 0;
    }

    .page-header .minicart-wrapper .action.showcart:after {
        display: none;
    }

    body .minicart-wrapper .block-minicart {
        left: 20px;
    }

    .nav-open .nav-toggle:after {
        display: none;
    }

    /* product page */
    .product-main-container-right,
    .product-main-container-left {
        flex-basis: 170px;
    }

}

/* Mobile (up to 768px): hide header links + search icon only */
@media screen and (max-width: 768px) {
    body .header.panel > .header.links {
        display: none !important;
    }

    .header.content {
        justify-content: flex-start;
        align-items: center;
        gap: 2px;
    }

    .header.content .logo {
        order: 1;
        flex: 0 0 auto;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .header.content .block-search {
        order: 2;
        flex: 0 0 auto;
        margin-inline-start: auto;
        position: relative;
        display: flex;
        align-items: center;
    }

    .header.content .header-account-link {
        order: 3;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        position: relative;
    }

    .header.content .afaq-header-account__avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .header.content .afaq-header-account__toggle,
    .header.content .afaq-header-account .customer-name {
        display: inline-flex !important;
    }

    /* Keep account dropdown fully on-screen (icon cluster sits near the left edge). */
    .header.content .afaq-header-account .customer-menu,
    .header.content .afaq-header-account__nudge {
        left: 0 !important;
        right: auto !important;
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        width: min(260px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .header.content .minicart-wrapper {
        order: 4;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin: 0 !important;
        float: none !important;
    }

    .header.content .nav-toggle {
        order: 5;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        cursor: pointer;
        z-index: 2;
        -webkit-tap-highlight-color: transparent;
    }

    .header.content .block-search .label {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 !important;
        float: none !important;
        position: relative;
        cursor: pointer;
    }

    .header.content .header-account-link .action.header-account {
        width: 40px;
        height: 40px;
    }

    .header.content .minicart-wrapper .action.showcart {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
    }

    .header.content .block-search .label:before,
    .header-account-link .account-icon,
    body .minicart-wrapper .action.showcart:before,
    body .minicart-wrapper .action.showcart.active:before,
    .header.content .nav-toggle:before {
        font-size: 26px;
        line-height: 1;
        vertical-align: middle;
    }

    body .minicart-wrapper .action.showcart:before,
    body .minicart-wrapper .action.showcart.active:before {
        display: block;
        margin: 0;
    }

    body .minicart-wrapper .action.showcart .counter.qty {
        top: 2px;
        left: auto;
        right: 0;
        min-width: 17px;
        height: 17px;
        line-height: 15px;
        font-size: 11px;
    }

    .nav-before-open .page-wrapper,
    .nav-open .page-wrapper {
        left: 0 !important;
        right: 0 !important;
    }

    html.nav-open .page-wrapper::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 400;
        pointer-events: auto;
    }

    .nav-sections {
        position: fixed !important;
        top: 0;
        right: -100%;
        left: auto !important;
        width: min(320px, 88vw);
        max-width: 360px;
        height: 100%;
        z-index: 410;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-open .nav-sections {
        right: 0 !important;
        left: auto !important;
        z-index: 410;
    }

    /* Hide header icons under the drawer; keep a fixed close control. */
    html.nav-open .header.content .logo,
    html.nav-open .header.content .block-search,
    html.nav-open .header.content .header-account-link,
    html.nav-open .header.content .minicart-wrapper {
        visibility: hidden;
        pointer-events: none;
    }

    html.nav-open .header.content .nav-toggle {
        visibility: visible;
        pointer-events: auto;
        position: fixed !important;
        top: 12px;
        left: 8px;
        right: auto;
        z-index: 420;
    }

    /* Drawer: menu list only, no tabs row */
    .nav-sections .nav-sections-item-title {
        display: none !important;
    }

    .nav-sections .nav-sections-item-content {
        display: block !important;
        margin-top: 0 !important;
        padding: 12px 0;
    }

    .nav-sections #store.links {
        display: none !important;
    }

    .nav-sections .navigation {
        background: transparent;
        box-sizing: border-box;
        padding: 0;
    }

    .nav-sections .navigation .level0 > .level-top {
        font-weight: 300;
        padding: 12px 20px 12px 40px;
        text-transform: none;
        overflow-wrap: break-word;
    }

    .nav-sections .navigation .level0 {
        border-top: 1px solid #e8e8e8;
        font-size: 14px;
    }

    .nav-sections .navigation .level0:first-child {
        border-top: none;
    }

    .nav-sections .navigation .parent .level-top:after {
        font-size: 12px;
        left: 10px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-sections .navigation .level0 > .level1,
    .nav-sections .navigation .level0 .level1 {
        font-weight: inherit;
    }

    .nav-sections .navigation .level0 .level1 > a,
    .nav-sections .navigation .submenu .level1 > a {
        font-weight: inherit;
    }

    .nav-sections .navigation .submenu > li {
        word-wrap: break-word;
    }

    .nav-sections .navigation .submenu > li > a {
        position: relative;
        padding-inline-start: 32px;
    }

    .nav-sections .navigation .submenu > li > a::before {
        font-family: 'heroicons-outline' !important;
        content: "\e96a";
        font-size: 14px;
        color: #008da9;
        position: absolute;
        inset-inline-start: 12px;
        top: 50%;
        transform: translateY(-50%);
        line-height: 1;
    }

    .nav-sections .navigation .submenu > li > a.ui-state-active::before,
    .nav-sections .navigation .submenu > li.active > a::before {
        color: #fff !important;
    }

    /* Let the open search panel position against .header.content (full width),
       not the narrow icon — otherwise it clips off the left edge on RTL. */
    .header.content .block-search,
    .header.content .block-search .form.minisearch,
    .header.content .block-search .field.search {
        position: static;
    }

    .header.content .block-search .field.search .control {
        /* Keep the input focusable (label[for=search]). display:none breaks mobile open. */
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
        white-space: nowrap;
    }

    /* Dimmed backdrop — tap outside closes via Magento blur handler */
    body:has(.header.content .form.minisearch.active)::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 390;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        animation: afaq-search-backdrop-in 0.2s ease;
    }

    @keyframes afaq-search-backdrop-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes afaq-search-panel-in {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    body:has(.header.content .form.minisearch.active) .page-header,
    body:has(.header.content .form.minisearch.active) .page-header .header.content {
        z-index: 395;
    }

    .header.content .block-search .form.minisearch.active .field.search .control,
    .header.content .block-search .label.active + .control {
        clip: auto;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        inset-inline-start: 16px;
        inset-inline-end: 16px;
        width: auto;
        max-width: none;
        height: auto;
        margin: 0;
        overflow: visible;
        white-space: normal;
        padding: 10px 48px 10px 14px;
        background: #fff;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
        border-radius: 14px;
        border: 1px solid rgba(0, 141, 169, 0.18);
        z-index: 400;
        box-sizing: border-box;
        animation: afaq-search-panel-in 0.22s ease;
    }

    [dir="rtl"] .header.content .block-search .form.minisearch.active .field.search .control,
    [dir="rtl"] .header.content .block-search .label.active + .control {
        padding: 10px 14px 10px 48px;
    }

    .header.content .block-search .field.search .control input {
        position: absolute;
        left: -300%;
        width: 100%;
        margin: 0;
        font-size: 16px;
    }

    .header.content .block-search .form.minisearch.active .field.search .control input,
    .header.content .block-search .label.active + .control input {
        position: static;
        left: auto;
        height: 44px;
        padding: 0 4px;
        border: 0;
        box-shadow: none;
        background: transparent;
        font-size: 16px;
        line-height: 44px;
        color: #1a1a1a;
    }

    .header.content .block-search .form.minisearch.active .field.search .control input:focus,
    .header.content .block-search .label.active + .control input:focus {
        outline: none;
        box-shadow: none;
        border: 0;
    }

    .header.content .block-search .actions {
        display: none;
    }

    .header.content .block-search .form.minisearch.active .actions {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        inset-inline-start: 16px;
        inset-inline-end: 16px;
        width: auto;
        height: 64px;
        margin: 0;
        padding: 0;
        z-index: 401;
        pointer-events: none;
        background: transparent;
        box-sizing: border-box;
        animation: afaq-search-panel-in 0.22s ease;
    }

    .header.content .block-search .form.minisearch.active .actions .action.search {
        pointer-events: auto;
        position: absolute;
        top: 14px;
        inset-inline-end: 12px;
        inset-inline-start: auto;
        right: auto;
        left: auto;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: rgba(0, 141, 169, 0.1);
        box-shadow: none;
        line-height: 40px;
    }

    body .header.content .block-search .form.minisearch.active .actions .action.search:before {
        line-height: 40px;
        font-size: 20px;
        color: #008da9;
    }

    .header.content .block-search .form.minisearch.active .search-autocomplete {
        z-index: 402;
        margin-top: 8px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .header.content .block-search {
        overflow: visible;
        z-index: auto;
    }

    .header.content .block-search:has(.form.minisearch.active) {
        z-index: 620;
    }

    .header.content {
        overflow: visible;
    }

    /* Keep header icons under minicart overlay/panel */
    html.minicart-open .header.content .block-search,
    html.minicart-open .header.content .header-account-link,
    html.minicart-open .header.content .nav-toggle,
    html.minicart-closing .header.content .block-search,
    html.minicart-closing .header.content .header-account-link,
    html.minicart-closing .header.content .nav-toggle {
        visibility: hidden;
        pointer-events: none;
    }

    html.minicart-open .header.content .minicart-wrapper,
    html.minicart-closing .header.content .minicart-wrapper {
        visibility: visible;
        pointer-events: auto;
    }

    @media (prefers-reduced-motion: reduce) {
        body:has(.header.content .form.minisearch.active)::before,
        .header.content .block-search .form.minisearch.active .field.search .control,
        .header.content .block-search .label.active + .control,
        .header.content .block-search .form.minisearch.active .actions {
            animation: none;
        }
    }

    /* Short label only on the homepage and product listings;
       everywhere else the button keeps its full "أضف إلى السلة" text */
    body.cms-index-index .action.tocart > span,
    body.cms-index-index .tocartnewcolor > span,
    body.catalog-category-view .action.tocart > span,
    body.catalog-category-view .tocartnewcolor > span,
    body.catalogsearch-result-index .action.tocart > span,
    body.catalogsearch-result-index .tocartnewcolor > span {
        font-size: 0;
        line-height: 0;
    }

    body.cms-index-index .action.tocart > span::after,
    body.cms-index-index .tocartnewcolor > span::after,
    body.catalog-category-view .action.tocart > span::after,
    body.catalog-category-view .tocartnewcolor > span::after,
    body.catalogsearch-result-index .action.tocart > span::after,
    body.catalogsearch-result-index .tocartnewcolor > span::after {
        content: 'أضف';
        font-size: 1.4rem;
        line-height: 1.4;
        vertical-align: middle;
    }

    body.cms-index-index .action.tocart.is-loading > span::after,
    body.cms-index-index .tocartnewcolor.is-loading > span::after,
    body.cms-index-index .action.tocart.is-added > span::after,
    body.cms-index-index .tocartnewcolor.is-added > span::after,
    body.catalog-category-view .action.tocart.is-loading > span::after,
    body.catalog-category-view .tocartnewcolor.is-loading > span::after,
    body.catalog-category-view .action.tocart.is-added > span::after,
    body.catalog-category-view .tocartnewcolor.is-added > span::after,
    body.catalogsearch-result-index .action.tocart.is-loading > span::after,
    body.catalogsearch-result-index .tocartnewcolor.is-loading > span::after,
    body.catalogsearch-result-index .action.tocart.is-added > span::after,
    body.catalogsearch-result-index .tocartnewcolor.is-added > span::after {
        content: none !important;
    }
}

/* For phone screens (up to 640px) */
@media screen and (max-width: 640px) {
    .header.content {
        gap: 2px;
        padding: 12px 16px !important;
    }

    .header.content .logo img {
        max-width: 120px;
    }

    /* writers page */

    .writers-item {
        flex: 100%;
    }

    /* main */

    #maincontent {
        padding: 15px;
    }

    .pagebuilder-column {
        padding: 0;
    }

    .three-categories .pagebuilder-column-line {
        display: flex;
        flex-direction: row-reverse;
    }

    .three-categories .pagebuilder-column {
        flex-basis: auto;
        padding: 20px;
    }

    .five-categoris-wrapper .pagebuilder-column {
        flex-basis: auto;
        width: 47%!important;
    }

    .five-categoris-wrapper .partners-cat {
        width: 100%!important;
    }

    .banners-list {
        display: flex;
        gap: 10px;
    }

    /* .featured-grid-home .product-items {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .featured-grid-home .product-item {
        width: 46%!important;
        box-sizing: border-box;
        padding: 10px;
    } */

    .products-grid .product-item {
        display: inline-block;
        margin-left: 7%;
        width: calc((100% - 14%) / 2);
    }

    .product-item-details,
    .slider-product-item-details {
        text-align: center;
    }

    .products-grid .product-item-inner {
        box-shadow: none;
    }


    /* product page */

    .product-main-container {
        flex-direction: column;
    }

    .product-main-container-right {
        order: 1;
        max-width: 70%;
        margin: 0 auto;
    }

    .product-main-container-right .page-title-wrapper,
    .product-main-container-right .author-name {
        display: block!important;
        text-align: center;
    }

    .product-main-container-middle .page-title-wrapper,
    .product-main-container-middle .author-name {
        display: none;
    }

    .product-main-container-right .page-title-wrapper h1 {
        font-size: 25px;
        margin: 15px;
    }

    .product-main-container-right .author-name strong {
        display: none;
    }

    .product-saving {
        margin: 0 0 10px 0;
    }

    .product-main-container-left {
        order: 2;
        background-color: transparent;
    }

    .product-main-container-middle {
        order: 3;
    }

    .page-header .panel.wrapper,
    .sm-hide {
        display: none;
    }

    /* footer */

    .footer-second .pagebuilder-column {
        flex-basis: 49%;
    }

    .sm-show {
        display: block!important;
    }

}

/* display none */

.secondary-addto-links.actions-secondary,
.price-label,
.navigation .ui-menu-icon,
.catalog-category-view .page-title-wrapper,
.product-reviews-summary.empty,
.product-social-links span,
.filter-content strong,
#remember-me-box .tooltip.wrapper,
.catalogsearch-advanced-result .page-title-wrapper,
.block.related .block-actions,
.field.choice.related,
.product.attribute.sku,
.widget-product-grid .actions-secondary,
.paypal,
.paypal img {
    display: none!important;
}

.lg-hide,
.product-main-container-right .page-title-wrapper,
.product-main-container-right .author-name {
    display: none;
}

/* Cart page: flex two columns (loaded via custom.css for reliability) */
body.checkout-cart-index .afaq-cart-columns {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
}

body.checkout-cart-index .afaq-cart-columns > .afaq-cart-col {
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    min-width: 0;
}

body.checkout-cart-index .afaq-cart-col--main {
    flex: 1 1 68%;
    max-width: 68%;
}

body.checkout-cart-index .afaq-cart-col--side {
    flex: 0 0 32%;
    max-width: 32%;
}

body.checkout-cart-index .cart-summary,
body.checkout-cart-index .form-cart,
body.checkout-cart-index .cart-discount {
    float: none !important;
    width: 100%;
}

/* below ~992px the two columns squeeze the items table until book titles
   wrap word-by-word; stack to one column instead */
@media (max-width: 991px) {
    body.checkout-cart-index .afaq-cart-columns {
        flex-direction: column;
        flex-wrap: wrap;
    }

    body.checkout-cart-index .afaq-cart-col--main,
    body.checkout-cart-index .afaq-cart-col--side {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* Footer — tighter vertical rhythm */
.page-footer .footer.content {
    padding-top: 10px;
}

.page-footer h4 {
    margin: 14px 0 8px;
    font-size: 1.5rem;
}

.page-footer li {
    margin-bottom: 2px !important;
    line-height: 1.6;
}

.page-footer .footer-second a {
    font-size: 1.3rem;
    line-height: 1.6;
}

.page-footer p {
    margin-bottom: 4px;
    line-height: 1.7;
}

.social-icons a {
    width: 38px;
    height: 38px;
}

.social-icons svg {
    height: 18px;
}

.block.newsletter {
    margin: 10px 0;
}

.block.newsletter input,
.block.newsletter .actions button {
    height: 42px;
}

.footer-first {
    padding-bottom: 12px;
}

.footer-second,
.footer-third {
    padding: 12px 0;
}

.footer-second .pagebuilder-column-group {
    row-gap: 0;
}

.payment-logos {
    max-width: 320px;
}

.payment-logos img {
    max-height: 26px;
}

.vat-logo {
    max-width: 64px;
}

.copyright {
    display: block;
    padding: 10px 0 14px;
}

/* Footer bottom row: payments and VAT logo on one line */
.footer-third .pagebuilder-column-group,
.footer-third .pagebuilder-column-line {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-third .pagebuilder-column {
    width: auto !important;
    flex: 0 0 auto;
}

/* Luma's desktop styles-l sets html,body{height:100%}; combined with the flex
   .page-wrapper this traps scrolling on <body> so window scroll events never
   fire and the sticky header (header-sticky.js) never engages on desktop */
html,
body {
    /* !important: styles-l.css loads after this file and would win the tie */
    height: auto !important;
}

/* Product page (mobile): qty stays inline; the rich buy bar below is the
   fixed bottom bar (image + price + button), matching desktop */
@media (max-width: 767px) {
    body.catalog-product-view .product-info-main .box-tocart {
        margin: 10px 0 4px;
    }

    body.catalog-product-view .box-tocart .fieldset {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    body.catalog-product-view .box-tocart .field.qty {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    body.catalog-product-view .box-tocart .field.qty > .label {
        display: none;
    }

    body.catalog-product-view .box-tocart .field.qty .control {
        margin: 0;
    }

    body.catalog-product-view .box-tocart .input-text.qty {
        width: 64px;
        height: 48px;
        margin: 0;
        border: 1.5px solid #e2e6e8;
        border-radius: 10px;
        font-size: 1.5rem;
        text-align: center;
        box-sizing: border-box;
    }

    body.catalog-product-view .box-tocart .actions {
        flex: 1;
        display: block;
        padding: 0;
        margin: 0;
    }

    body.catalog-product-view .box-tocart .action.tocart {
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 10px 16px;
        border-radius: 10px;
        font-size: 1.45rem;
        font-weight: 700;
        box-sizing: border-box;
    }

    /* keep page content clear of the fixed bar */
    body.catalog-product-view .page-wrapper {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

/* ============ Product page: tighter, better distribution ============ */

/* shared */
body.catalog-product-view .product-inner-h3 {
    margin: 18px 0 10px;
}

body.catalog-product-view .product-info-main .product-info-price {
    margin-bottom: 8px;
}

body.catalog-product-view .product-info-main .price-box {
    padding-bottom: 4px;
}

body.catalog-product-view .product-info-main .stock {
    margin-bottom: 0;
}

/* Desktop: buy box as a theme card, fuller image, tighter column rhythm */
@media (min-width: 768px) {
    .product-main-container {
        gap: 20px;
        align-items: flex-start;
    }

    .product-main-container-right {
        flex-basis: 240px;
    }

    .product-main-container-right .product.media {
        margin-bottom: 0;
    }

    .product-main-container-right .product.media img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .product-main-container-left {
        flex: 0 0 240px;
        min-width: 0;
        box-sizing: border-box;
        padding: 18px 14px;
        gap: 0;
        background: #eaf5f7;
        border-radius: 14px;
        position: sticky;
        top: 90px;
    }

    .product-main-container-left .price-box .price {
        font-size: 2.2rem;
    }

    .product-main-container-left .box-tocart {
        margin: 4px 0 12px;
    }

    .product-main-container-left .box-tocart .field.qty {
        margin-bottom: 10px;
    }

    .product-main-container-left .box-tocart .field.qty > .label {
        display: none;
    }

    .product-main-container-left .box-tocart .input-text.qty {
        height: 42px;
        width: 70px;
        border: 1.5px solid #cfe0e4;
        border-radius: 10px;
        text-align: center;
        font-size: 1.4rem;
    }

    .product-main-container-left .box-tocart .action.tocart {
        width: 100%;
        min-height: 44px;
        border-radius: 10px;
        font-weight: 700;
    }

    .product-main-container-left .product-social-links {
        margin: 0;
    }

    .product-main-container-middle .page-title-wrapper .page-title {
        margin-bottom: 6px;
        font-size: 2.2rem;
        line-height: 1.4;
    }

    .product-main-container-middle .product-info-stock-sku {
        margin-bottom: 10px;
    }

    .product-main-container-middle {
        min-width: 0;
    }
}

@media (min-width: 1100px) {
    .product-main-container-right {
        flex-basis: 300px;
    }
}

/* Mobile: pull everything together */
@media (max-width: 767px) {
    body.catalog-product-view .product.media {
        margin-bottom: 12px;
    }

    body.catalog-product-view .product-main-container {
        gap: 0;
    }

    body.catalog-product-view .product-main-container-left {
        padding: 10px 16px 0;
        background: transparent;
    }

    body.catalog-product-view .product-main-container-left .product-info-main {
        margin-bottom: 0;
    }

    /* box-tocart is fixed at the bottom; its wrapper should not hold space */
    body.catalog-product-view .product-main-container-left .product-add-form {
        margin: 0;
        padding: 0;
        height: 0;
        overflow: hidden;
    }

    body.catalog-product-view .page-title-wrapper.product .page-title,
    body.catalog-product-view .product-main-container-middle .page-title {
        margin: 0 0 4px;
        font-size: 2rem;
        line-height: 1.45;
    }

    body.catalog-product-view .product-info-main .price-box .price {
        font-size: 2.2rem;
    }

    body.catalog-product-view .product-info-main .product-info-price {
        margin-bottom: 4px;
    }

    body.catalog-product-view .product-info-main .product-social-links {
        margin-bottom: 8px;
    }

    body.catalog-product-view .product-inner-h3 {
        margin: 14px 0 8px;
    }

    /* container-left keeps ~40px of phantom height from hidden buy-box leftovers;
       pull the content column up to close the visual gap */
    body.catalog-product-view .product-main-container-middle {
        margin-top: -38px;
    }

    body.catalog-product-view #maincontent {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* Desktop sticky bottom buy bar */
.afaq-buybar {
    display: none;
}

@media (min-width: 768px) {
    .afaq-buybar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 95;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 10px 28px;
        background: #fff;
        border-top: 1px solid #eef1f4;
        box-shadow: 0 -4px 18px rgba(15, 42, 63, 0.1);
        box-sizing: border-box;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .afaq-buybar.is-visible {
        transform: translateY(0);
    }

    .afaq-buybar__product {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .afaq-buybar__product .product-image-container,
    .afaq-buybar__product .product-image-wrapper,
    .afaq-buybar__product img {
        width: 46px !important;
        height: 56px !important;
        margin: 0;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #eef1f4;
        display: block;
    }

    .afaq-buybar__product .product-image-wrapper {
        padding: 0 !important;
        overflow: hidden;
    }

    .afaq-buybar__meta {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .afaq-buybar__name {
        font-size: 1.35rem;
        font-weight: 600;
        color: #1e3a5f;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 480px;
    }

    .afaq-buybar__price .price {
        font-size: 1.5rem;
        font-weight: 700;
        color: #008da9;
    }

    .afaq-buybar__actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .afaq-buybar__qty {
        width: 64px;
        height: 44px;
        border: 1.5px solid #e2e6e8;
        border-radius: 10px;
        text-align: center;
        font-size: 1.4rem;
        box-sizing: border-box;
    }

    .afaq-buybar__qty:focus {
        border-color: #008da9;
        outline: none;
    }

    .afaq-buybar .afaq-buybar__btn {
        min-height: 44px;
        margin: 0;
        padding: 10px 28px;
        border-radius: 10px;
        font-size: 1.4rem;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* Product compare disabled site-wide (no value for books) — pairs with
   Magento_Catalog/layout/default.xml; remove both to restore the feature */
.action.tocompare,
.block-compare,
.link.compare {
    display: none !important;
}

/* Buy bar: final price only — no old price, no labels */
.afaq-buybar__price .old-price,
.afaq-buybar__price .price-label {
    display: none !important;
}


/* Mobile: the buy bar is always visible on product pages */
@media (max-width: 767px) {
    .afaq-buybar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 95;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eef1f4;
        box-shadow: 0 -4px 18px rgba(15, 42, 63, 0.1);
        box-sizing: border-box;
        transform: none !important;
    }

    .afaq-buybar__product {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .afaq-buybar__product .product-image-container,
    .afaq-buybar__product .product-image-wrapper,
    .afaq-buybar__product img {
        width: 38px !important;
        height: 48px !important;
        margin: 0;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #eef1f4;
        display: block;
    }

    .afaq-buybar__product .product-image-wrapper {
        padding: 0 !important;
        overflow: hidden;
    }

    .afaq-buybar__meta {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }

    .afaq-buybar__name {
        font-size: 1.15rem;
        font-weight: 600;
        color: #1e3a5f;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .afaq-buybar__price .price {
        font-size: 1.4rem;
        font-weight: 700;
        color: #008da9;
    }

    .afaq-buybar__qty {
        display: none;
    }

    .afaq-buybar__actions {
        flex-shrink: 0;
    }

    .afaq-buybar .afaq-buybar__btn {
        min-height: 46px;
        margin: 0;
        padding: 10px 18px;
        border-radius: 10px;
        font-size: 1.35rem;
        font-weight: 700;
        white-space: nowrap;
    }
}
