/* Add custom CSS styles below */

body {
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
    background: #0a0a1a !important;
}

.store-footer__inner {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    background: #0a0a1a;
}
.store-footer {
    background-color: #0a0a1a;
}

@media (min-width: 768px) {
    .f_enhanced-square-photos .f_image-one-fourth {
        gap: 1.5rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        display: flex;
    }
}

.product-entry {
    border: solid 2px #ffffff;
    border-radius: 12px;
    padding: 8px;
}

.underlined-title salla-slider > div:not(.swiper) h2::after,
.underlined-title > div:not(.swiper) h2::after {
    background-color: #68d7d6;
}

.f_block__display-all {
    color: #ffffff;
}

.f_enhanced-store-features .f_features-item {
    border-radius: 4rem;
    padding: 2rem;
    border: solid 1px #FFBC00;
    box-shadow: 0px 0px 4px 4px #7AFFFB;
}

.breadcrumbs li a {
    color: #ffffff;
}

.s-add-product-button-mini-checkout-content:where([dir=rtl],[dir=rtl] *) {
    flex-direction: row-reverse;
    color: #fff;
}

.product-entry__title a:hover {
    color: #ff00d2;
}

.s-block--testimonials .default-testimonial .testimonial,
.s-block--testimonials .testimonial__inner {
    background-color: var(--main-background);
    border: solid 1px #ffbc00;
}

/* H2 في السلايدر — يفضل ذهبي مش transparent */
salla-slider .s-slider-block__title h2 {
    color: #ffbc00;
    font-size: 1rem;
    line-height: 1.5rem;
    width: fit-content;
    -webkit-text-fill-color: #ffbc00 !important;
    background: none !important;
    animation: none !important;
}
salla-slider .s-slider-block__title h2::after {
    display: none !important;
}

.faqs__item {
    background-color: var(--main-background);
    border-radius: 2rem;
    color: var(--main-color);
    padding: 1rem 1.5rem;
    border: solid 1px #ffbc00;
}

.f_block__title > div h2 {
    color: #ffbc00;
}

@media (min-width: 768px) {
    .store-footer h3:where([dir=rtl],[dir=rtl] *) {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .store-footer__inner .store-footer__blocks .s-menu-footer-list {
        max-height: 16rem;
    }
}

.s-payments-list-item img {
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
}

.store-footer__inner .about-us-block .s-contacts-list {
    flex-wrap: wrap;
    gap: 4.5rem;
    justify-content: space-around;
    margin-bottom: .5rem;
    margin-top: .5rem;
}

.s-fast-checkout-button.outline {
    background-color: #15153e;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

/* =============================================
   ALLWAN — Animations CSS
   ============================================= */

custom-salla-product-card.product-entry {
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
    will-change: transform;
}

custom-salla-product-card.product-entry:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.55),
        0 0 0 1px rgba(245,197,24,0.28),
        0 0 28px rgba(245,197,24,0.12);
    position: relative;
    z-index: 2;
}

custom-salla-product-card.product-entry:hover .f_bordered-product {
    border-color: rgba(245, 197, 24, 0.5) !important;
    transition: border-color 0.3s ease;
}

custom-salla-product-card.product-entry:hover h3.product-entry__title a {
    background: linear-gradient(90deg, #fff 0%, #f5c518 45%, #fff 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aw-shimmer 1.4s linear infinite;
}
@keyframes aw-shimmer {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}

custom-salla-product-card.product-entry:hover .f_price-container h4 {
    color: #f5c518 !important;
    transition: color 0.3s ease;
}

/* H2 sweep — بس على العناوين الرئيسية مش السلايدر */
h2:not(.store-footer h2):not(.store-footer *):not(#allwan-footer *):not(salla-slider h2) {
    background: linear-gradient(
        90deg,
        #fff 0%, #fff 28%,
        #f5c518 50%,
        #fff 72%, #fff 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aw-h2 4s linear infinite;
    position: relative;
    display: inline-block;
}
@keyframes aw-h2 {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}

h2:not(.store-footer h2):not(.store-footer *):not(#allwan-footer *):not(salla-slider h2)::after {
    content: '';
    position: absolute;
    bottom: -5px; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5c518, #fffbe8, #f5c518, transparent);
    border-radius: 2px;
    animation: aw-line 4s ease-in-out infinite;
}
@keyframes aw-line {
    0%   { width: 0;    right: 50%; }
    35%  { width: 100%; right: 0;   }
    65%  { width: 100%; right: 0;   }
    100% { width: 0;    right: 50%; }
}

@media (min-width: 768px) {
    .f_enhanced-square-photos .f_image-one-sixth {
        gap: 1rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* تم حذف justify-content من swiper-wrapper لأنه كان يكسر السلايدر */
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box;
}

.f_enhanced-square-photos .f_image-one-sixth {
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s-add-product-button-main .s-add-product-button-mini-checkout {
    --salla-fast-checkout-button-border-radius: .75rem;
    width: 50%;
    border: solid 1px #f5c518;
    border-radius: 16px;
}

.s-button-element:not(:disabled):not([loading]) {
    pointer-events: auto;
    border: solid 1px #f5c518;
}

img.s-payments-sbc-image {
    display: none;
}