:root {
    --main: #045097;
    --sec: #707070;
    --third: #7b8994;
    --text: #5a5a5a;
    --gray: #6e6e6e;
    --white: #fff;
    --black: #1c1c1c;
    --border: #dee2e7;
    --main-bg: #fafafa;
    --secod-bg: #f0f6ff;
    --third-bg: #fef9e7;
    --footer-bg: #045097;
    --bg: #f4cc3e;
    --animation: 2s ease-in-out infinite;
}

@font-face {
    font-family: "Almarai-ExtraBold";
    src: url("../../webfonts/arab fonts/TheYearofHandicrafts-Bold.otf")
        format("opentype");
}

@font-face {
    font-family: "Almarai-Light";
    src: url("../../webfonts/arab fonts/TheYearofHandicrafts-Light.otf")
        format("opentype");
}

@font-face {
    font-family: "Almarai-Regular";
    src: url("../../webfonts/arab fonts/TheYearofHandicrafts-Regular.otf")
        format("opentype");
}

@font-face {
    font-family: "Almarai-Bold";
    src: url("../../webfonts/arab fonts/TheYearofHandicrafts-Bold.otf")
        format("opentype");
}
@font-face {
    font-family: "Poppins-ExtraBold";
    src: url("../../webfonts/en fonts/Poppins-ExtraBold.ttf") format("opentype");
}

@font-face {
    font-family: "Poppins-Light";
    src: url("../../webfonts/en fonts/Poppins-Light.ttf") format("opentype");
}

@font-face {
    font-family: "Poppins-Regular";
    src: url("../../webfonts/en fonts/Poppins-Regular.ttf") format("opentype");
}

@font-face {
    font-family: "Poppins-Bold";
    src: url("../../webfonts/en fonts/Poppins-Bold.ttf") format("opentype");
}
.custom-border {
    border: 1px solid var(--border);
}
.second-bg {
    background-color: var(--bg);
}
.main {
    color: var(--main);
}
.prime-color-bg {
    background-color: var(--main);
}
.main-bg {
    background-color: var(--main-bg);
}
.second-text {
    color: var(--sec);
    font-size: 1.13rem;
    line-height: 1.4;
}
.third-text {
    color: var(--third);

    line-height: 1.4;
}

.login-modal .form-control,
.login-modal .login-input {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    background-color: #fff;
    transition: all 0.3s ease;
    color: var(--text-primary, #222);
}
.google-sign {
    border-color: var(--main);
}
.google-sign:hover {
    background-color: var(--main);
    color: var(--white);
    border-color: var(--main);
}
.login-modal .form-control:focus,
.login-modal .login-input:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
    background-color: #fff;
    outline: none;
}

.login-modal .form-label {
    color: var(--main);

    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.white-text {
    color: var(--white);
}
.black-text {
    color: var(--black);
}
.fourth-text {
    color: var(--bg);

    line-height: 1.4;
}
.d-contents {
    display: contents;
}
/* Title Style */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--main);
    position: relative;
}

/* Description */
.section-description {
    max-width: 490px;
    color: var(--sec);
    font-weight: 300;
    font-size: 1.2rem;
}
.main-btn {
    border: none;
    background-color: var(--main);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.6rem 1.5rem;
    border-radius: 0.65rem;
    font-weight: bold;
    box-shadow: 0px 4px 4px 0px #00000040;
}
.main-btn:hover {
    background-color: var(--main);
    color: var(--white);
    text-decoration: none;
    transform: translate(-2px, -2px);
}
.top-nav-menu-wrapper {
    background-color: #fafafa;
}
.top-bar {
    position: fixed;

    z-index: 423;
    width: 100%;
    top: 0px;
}
.main-header {
    position: fixed;
    background: #ffffff;
    z-index: 90;
    width: 100%;
    top: 40px;
}
@media (max-width: 768px) {
    .main-header {
        top: 62px;
    }
}

body:lang(ar):not(i),
*:lang(ar):not(i) {
    direction: rtl;
    font-family: "Almarai-Regular";
}

button,
a {
    font-family: "Almarai-Regular";
}

body:lang(en):not(i),
*:lang(en):not(i) {
    direction: ltr;
    font-family: "Poppins";
}
body {
    padding-top: 164px;
}
@media (max-width: 765px) {
    body {
        padding-top: 102px;
    }
}
@media (max-width: 456px) {
    html {
        font-size: 11px;
    }
}
a {
    text-decoration: none;
}

ul {
    list-style: none;
}
.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main);
}
.top-bar {
    background-color: #fafafa;
}
.main-header {
    border-bottom: 1px solid var(--border);
}
.top-bar a:hover,
.category-bar a:hover {
    color: var(--main);
}
.navigation {
    background-color: #f0f6ff;
    color: var(--sec);
}
.navigation span {
    line-height: 0;
}
.navigation a:last-child {
    color: #0e3475 !important;
    font-weight: 700;
}
.search {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 1.75rem;
    background: #fff;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.search:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
    background: #fff;
    outline: none;
}

.search::placeholder {
    color: #999;
}

.search:disabled {
    background: var(--bg);
    cursor: not-allowed;
}

.small-arrow {
    font-size: 10px;
    margin-top: 2px;
}

.category li a {
    color: var(--sec);
    font-size: 16px;
    font-weight: 400;
}

.top-menu li a {
    color: var(--sec);
    font-weight: 400;
    font-size: 16px;
}

.user-menu li a {
    color: var(--sec);
    font-weight: 400;
    font-size: 14px;
}

.form-select {
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--sec);
}

.search-btn {
    border-radius: 1.75rem;
    background-color: var(--main);
    color: white;
    inset-inline-end: 4px;
    top: 50%;
    height: 85%;

    transform: translateY(-50%);
}

.search-btn:hover {
    background-color: #0a2a55;
    color: white;
}
.help-sec i,
.fav-sec i {
    color: var(--main);
}

.help-serv {
    color: var(--sec);
    font-size: 14px;
    font-weight: 400;
}

.phone-num,
.fav-sec span {
    color: var(--main);
    font-size: 18px;
    font-weight: 700;
}

.fav-sec {
    color: var(--sec);
    font-size: 18px;
    font-weight: 400;
}

.support-sec i {
    color: var(--main);
}

.support-sec {
    color: var(--sec);
    font-size: 16px;
    font-weight: 400;
}
.mobile-menu-content .main-ul li:not(:last-child) {
    border-bottom: 1px solid var(--border);
}
.mobile-menu-content ul ul li {
    border: none !important;
    padding: 5px;
}
.mobile-menu-tabs {
    box-shadow:
        0px 0px 9px 1px #6969691a,
        1px 1px 2px 1px #b3b3b340 inset;
}

/* Footer Container */
.footer {
    background: var(--main);
    padding-top: 3rem;
}

.footer-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer a {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        text-decoration-color 0.2s ease;
}

.footer a:hover {
    color: #cfe4ff;
    transform: translateX(-4px);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contact-info i {
    margin-left: 8px;
    color: var(--white);
}

.footer-logo img {
    width: 120px;
}

.footer-logo p {
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    font-size: 22px;
    margin-left: 0;
    color: var(--white);
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.footer-social a i {
    line-height: 1;
    display: block;
}

.footer-social a:hover {
    color: #0a2a55;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.footer-social .whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
}

.footer-social .youtube:hover {
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.35);
}

.footer-social .facebook:hover {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.35);
}

.footer-social .twitter:hover {
    background: #0f1419;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 20, 25, 0.35);
}

[dir="rtl"] .footer a:hover {
    transform: translateX(4px);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .footer {
        padding: 35px 15px;
    }

    .footer-logo img {
        margin-bottom: 15px;
    }

    .footer-social a {
        font-size: 20px;
    }

    .footer a {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .footer-title {
        font-size: 16px;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer p {
        font-size: 13px !important;
    }
}
/* floatet icons */
/* whats app plugin  */
.whats-float,
.facebook-float,
.phone-float {
    position: fixed;
    inset-inline-end: 20px;

    width: 3.1rem;
    height: 3.1rem;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    cursor: pointer;
    overflow: hidden;

    border-radius: 50%;
    z-index: 10;
    transition: all 0.5s ease-in-out;
    vertical-align: middle;
}
.whats-float {
    bottom: 15.6rem;

    background-color: #25d366;

    /* Pulse effect */
    animation: pulse 2s infinite;
}
.facebook-float {
    bottom: 10.9rem;

    background-color: #3b5998;

    /* Pulse effect */
    animation: pulse1 2s infinite;
}
.phone-float {
    bottom: 6.25rem;

    background-color: rgb(117 135 144 / 70%);

    /* Pulse effect */
    animation: pulse2 2s infinite;
}
.whats-float i,
.facebook-float i,
.phone-float i {
    font-size: 1.6rem;
    color: white;
    line-height: 3.1rem;
    transform: rotate(0deg);
    transition: all 0.5s ease-in-out;
    text-align: center;
    font-weight: bolder;
}

/* Hover spin */
.whats-float:hover i,
.facebook-float:hover i,
.phone-float:hover i {
    transform: rotate(360deg);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
@keyframes pulse1 {
    0% {
        box-shadow: 0 0 0 0 #3b58989a;
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
@keyframes pulse2 {
    0% {
        box-shadow: 0 0 0 0 rgb(117 135 144 / 30%);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* go to top btn */
.go-top {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 20px;
    border: none;
    border-radius: 30px;
    background-color: var(--main);
    color: white;
    width: 3.1rem;
    height: 3.1rem;
}

/* Enhanced Floating Cart with Modern Animations */
.floating-cart {
    position: fixed;
    bottom: 30px;
    inset-inline-start: 30px;
    z-index: 9999;

    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 50px;

    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    animation: floatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-login {
    position: fixed;
    bottom: 100px;
    inset-inline-start: 30px;
    z-index: 9998;

    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    color: #fff;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: floatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 999px;
}

.floating-login:hover::before {
    opacity: 1;
}

.login-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.floating-login i {
    font-size: 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    animation: pulseCart 2s ease-out infinite;
    opacity: 0;
}

.login-ripple {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.floating-login:active .login-ripple {
    transform: scale(2);
    opacity: 0;
}

.floating-login:hover {
    background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

.floating-login:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.floating-login:active {
    transform: translateY(-4px) scale(1);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-cart::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-cart:hover::before {
    opacity: 1;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.floating-cart i {
    font-size: 22px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulseCart 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulseCart {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.cart-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.floating-cart:active .cart-ripple {
    transform: scale(2);
    opacity: 0;
}

.floating-cart:hover {
    background: linear-gradient(135deg, #084298 0%, #052c65 100%);
    color: #fff;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.6);
}

.floating-cart:hover i {
    transform: scale(1.2) rotate(10deg);
    animation: cartShake 0.5s ease-in-out;
}

@keyframes cartShake {
    0%,
    100% {
        transform: scale(1.2) rotate(10deg);
    }
    25% {
        transform: scale(1.3) rotate(-5deg);
    }
    75% {
        transform: scale(1.3) rotate(15deg);
    }
}

.floating-cart:active {
    transform: translateY(-6px) scale(1);
}

.cart-count {
    position: absolute;
    top: -8px;
    inset-inline-start: -8px;
    background: linear-gradient(135deg, #ff4d4d 0%, #e63946 100%);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.5);
    border: 2px solid #fff;
    z-index: 3;

    animation: bounceCount 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.3s ease;
}

@keyframes bounceCount {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cart-count:empty {
    display: none;
}

.floating-cart:hover .cart-count {
    transform: scale(1.15);
    animation: wiggle 0.8s ease-in-out infinite;
}

@keyframes wiggle {
    0%,
    100% {
        transform: scale(1.15) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(-10deg);
    }
    75% {
        transform: scale(1.15) rotate(10deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 20px;
        inset-inline-start: 20px;
        padding: 14px 16px;
    }

    .floating-login {
        bottom: 84px;
        inset-inline-start: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-cart i {
        font-size: 20px;
    }

    .cart-count {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}
