.nav-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none
}

.nav-icon-link:hover {
    filter: var(--filter-hover)
}

.nav-icon-link i {
    font-size: 25px
}

.nav-icon-label,
.cart-label {
    font-size: .85rem;
    font-weight: 500;
    margin-top: 2px
}

@supports (-webkit-touch-callout:none) {
    html {
        height: -webkit-fill-available
    }

    body {
        min-height: -webkit-fill-available;
        -webkit-font-smoothing: antialiased;
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: #fff0
    }

    .app-cart,
    #app-menu-drawer {
        height: -webkit-fill-available;
        max-height: -webkit-fill-available
    }

    button,
    .btn-primary,
    .add-cart,
    .cart-icon-container,
    .nav-icon-link,
    .topnav,
    .quantity-btn {
        -webkit-tap-highlight-color: #fff0;
        touch-action: manipulation;
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: none
    }

    input[type="text"],
    input[type="search"],
    input[type="number"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: #fff0
    }

    @media (display-mode:standalone) {
        body {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right)
        }

        header {
            padding-top: env(safe-area-inset-top)
        }

        .app-cart {
            padding-bottom: env(safe-area-inset-bottom)
        }

        .fixed-whats-up {
            bottom: calc(20px + env(safe-area-inset-bottom))
        }

        .a-up {
            bottom: calc(20px + env(safe-area-inset-bottom))
        }
    }
}

@supports (text-size-adjust:100%) {

    html,
    body {
        text-size-adjust: 100%
    }
}

@supports (-webkit-text-size-adjust:100%) {

    html,
    body {
        -webkit-text-size-adjust: 100%
    }
}

@media only screen and (device-width:390px) and (device-height:844px) and (-webkit-device-pixel-ratio:3) {
    body {
        font-size: 19px
    }

    .shop-content {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))
    }
}

* {
    font-family: 'Cairo', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 2rem;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

:root {
    --danger-color: #EF4444;
    --danger-color-hover: #DC2626;
    --main-color: #1abc9c;
    --main-color-hover: #16a085;
    --sec-color: #2ecc71;
    --Soft-gold-color: #f1c40f;
    --text-color: #111827;
    --color-white: #fff;
    --text-utedm: #6b7280;
    --text-dark-gray: #777;
    --bg-color: #ffffff !important;
    --bg-light-gray: #f9fafb !important;
    --bg-softer-gray: #f9fafb !important;
    --surface: #ffffff;
    --surface-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --color-primary: #1abc9c;
    --color-primary-hover: #16a085;
    --color-secondary: #00bcd4;
    --color-accent: #f1c40f;
    --color-danger: #e74c3c;
    --color-success: #2ecc71;
    --whatsapp-color: #25D366;
    --btn-fg: #ffffff;
    --btn-gradient: linear-gradient(135deg, #1abc9c 0%, #00bcd4 100%);
    --btn-gradient-hover: linear-gradient(135deg, #16a085 0%, #0097a7 100%);
    --btn-gradient-hover2: linear-gradient(90deg, #f1c40f 0%, #fffbe6 100%);
    --filter-hover: brightness(1.15) drop-shadow(0 0 6px #FFD700)
}

.delete-btn {
    background-color: var(--danger-color);
    color: var(--color-white)
}

.delete-btn:hover {
    background-color: var(--danger-color-hover)
}

::selection {
    color: var(--text-color);
    background-color: var(--main-color)
}

@media (min-width:1025px) {
    .app-cart {
        max-width: 450px;
        left: -450px;
        border-right: 1px solid var(--border-color);
    }

    .app-cart.active {
        left: 0;
    }

    #app-menu-drawer {
        width: 22rem;
        max-width: 22rem;
        left: -22rem
    }
}

@media (max-width:1024px) {

    .product-box,
    .category-item,
    .cart-item {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000
    }
}

@media (max-width:360px) {
    #app-menu-drawer .app-menu-list li a {
        padding: 10px 8px;
        font-size: 15px
    }
}

body {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 20px;
    height: 100%;
    background-color: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    will-change: auto;
    -webkit-tap-highlight-color: #fff0;
    -webkit-touch-callout: none
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px
}

main {
    flex: 1 0 auto
}

button {
    border-radius: 10px;
    padding: 6px 8px;
    border: 1px solid var(--border-color)
}

button:hover {
    cursor: pointer
}

.hidden {
    display: none !important
}

.about-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #eee;
    padding: 2rem;
    max-width: 800px;
    margin: auto
}

.about-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem
}

.about-section p {
    line-height: 2;
    color: #444;
    text-align: justify
}

.policy-list {
    font-size: 1.2rem;
    line-height: 2;
    color: #444;
    text-align: justify;
    list-style: inside disc
}

button:active {
    transform: translateY(1px);
    -webkit-tap-highlight-color: #fff0;
    -webkit-touch-callout: none
}

button:disabled,
button[disabled] {
    background: var(--surface-alt) !important;
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
    box-shadow: none
}

.btn-primary,
.add-cart {
    background: var(--btn-gradient);
    color: var(--color-white)
}

.btn-primary:hover,
.add-cart:hover {
    background: var(--btn-gradient-hover)
}

a,
.menu a,
.nav-link {
    color: var(--color-secondary);
    text-decoration-color: rgb(14 165 233 / .4)
}

a:hover,
.menu a:hover,
.nav-link:hover {
    color: #0a6fa6
}

.section-title,
.category-title,
h2,
h3 {
    color: var(--text-color)
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
select,
textarea {
    background-color: var(--surface);
    color: var(--text-color);
    border: 1px solid var(--border-color)
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgb(14 165 233 / .2)
}

.product-box {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    padding: 5px
}

.product-box:hover {
    box-shadow: 0 10px 24px rgb(2 6 23 / .1);
    transform: translateY(-2px);
    transition: .4s
}

.product-price {
    color: var(--text-color)
}

.product-old-price,
.product-price-old,
.price-old {
    color: var(--text-muted)
}

.badge-discount {
    color: var(--color-accent);
    animation: pulse 2s infinite;
    border-radius: 10px;
    padding: 2px 4px
}

.badge {
    background-color: var(--surface-alt);
    color: var(--text-color);
    border: 1px solid var(--border-color)
}

.badge-success {
    background-color: #e6f9ef;
    color: #05502c;
    border-color: #b6f0d2
}

.badge-warning {
    background-color: var(--bg-color);
    color: #7a4a03;
    border-color: #ffe6b6
}

.badge-danger {
    background-color: #fdeaea;
    color: #6b1111;
    border-color: #f7b6b6
}

header,
.header,
footer,
.footer {
    color: var(--text-color);
    background-color: var(--surface);
    border-color: var(--border-color)
}

.footer {
    border-top: 1px solid var(--border-color)
}

:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px
}

.container {
    margin: auto;
    width: 90%
}

.faq-section {
    width: 90%;
    margin: 24px auto
}

.faq-section h2 {
    margin: 16px 5px 12px 5px;
    font-size: 1.4rem;
    font-weight: 700
}

.faq-section details {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px
}

.faq-section details>div {
    margin-top: 8px;
    line-height: 1.8;
    color: #444
}

.faq-section summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

.faq-section summary::-webkit-details-marker {
    display: none
}

.faq-section summary::marker {
    content: ""
}

.faq-section summary::before {
    content: "▸";
    font-size: 1.1em;
    line-height: 1;
    transform: translateY(.5px)
}

.faq-section details[open] summary::before {
    content: "▾"
}

.product-table {
    padding-bottom: 10px
}

img {
    width: 100%
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-softer-gray);
    color: var(--text-color);
    box-shadow: 0 1px 4px hs1(0 4% 15% / 10%);
    z-index: 10000
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--sec-color);
    padding: 1px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgb(0 0 0 / .12)
}

.logo-img:hover {
    filter: var(--filter-hover)
}

#div-logo {
    display: flex;
    align-items: center
}

.nav span {
    font-weight: 700
}

.cart-icon-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 4px;
    width: 65px;
    flex: 0 0 auto
}

.cart-icon-container .cart-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(35%, -35%);
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--main-color);
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    border: 2px solid var(--bg-color);
    pointer-events: none;
    letter-spacing: 0 !important;
    margin: 0 !important
}

#app-cart-icon {
    width: 65px;
    height: 65px;
    cursor: pointer;
    color: var(--sec-color);
    border: none;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box
}

#app-cart-icon:hover {
    color: var(--main-color);
    filter: var(--filter-hover)
}

.app-cart {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--main-color);
    box-shadow: 2px 0 4px hsl(0 4% 15% / .1);
    transition: left 0.35s ease
}

.app-cart.active {
    left: 0;
    transition: left 0.35s ease;
    z-index: 10001
}

.cart-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    color: var(--main-color)
}

.cart-box {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05)
}

.cart-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px
}

.detail-box {
    display: grid;
    row-gap: .5rem
}

.cart-product-title {
    font-size: 1.2rem;
    text-transform: uppercase
}

.cart-price {
    font-weight: 500;
    font-size: 1.1rem
}

.cart-quantity {
    border: 1px solid var(--text-color);
    outline-color: var(--main-color);
    width: 3.4rem;
    text-align: center;
    font-size: 1.2rem
}

.cart-remove {
    padding: 1px 7px;
    background: var(--bg-color);
    color: var(--danger-color);
    border: none;
    cursor: pointer;
    margin: 0;
    border-radius: 6px;
    font-size: 1.4rem;
    border: none;
    border-radius: .5em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(30 144 255 / .08);
    font-weight: 600;
    transition: background 0.2s
}

.cart-remove:hover {
    background: var(--main-color);
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgb(30 144 255 / .13)
}

.total {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 10px;
    border-top: 1px solid var(--text-color);
    font-size: 1.2rem
}

.total-title {
    font-weight: 600;
    color: var(--main-color)
}

.total-price {
    margin-right: .5rem;
    color: var(--text-color)
}

#total-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 1rem auto 0;
    padding: 14px 24px;
    background: var(--btn-gradient);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-checkout:hover {
    background: var(--btn-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4);
}

.btn-checkout:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.btn-checkout::before {
    content: '←';
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-checkout:hover::before {
    transform: translateX(-5px);
}

/* تأثير اللمعان عند التمرير */
.btn-checkout::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-checkout:hover::after {
    left: 150%;
}

.coupon-info {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    margin: 1.2rem 0 0.5rem;
    padding: 10px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #e5e7eb;
    font-weight: 500;
}

.btn-buy {
    display: none;
    padding: 0 6px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer
}

.btn-buy:hover {
    background-color: var(--main-color);
    color: var(--bg-color)
}

.whats-buy {
    margin-right: .2rem
}

.whats-buy {
    color: #25d366;
    font-size: 30px;
    font-weight: 500;
    transition: color 0.2s
}

.whats-buy:hover {
    color: #128c7e
}

#app-cart-close {
    position: absolute;
    top: 1rem;
    right: .8rem;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 10px
}

#app-cart-close:hover {
    background: rgb(0 0 0 / .06);
    color: #111
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: .5rem
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: .5rem
}

.product-price {
    font-weight: 700;
    color: var(--text-color)
}

.product-code {
    font-size: .85em;
    color: #666;
    margin: 4px 0;
    text-align: center;
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #e9ecef
}

.product-short-desc {
    font-size: .95em;
    color: #444;
    margin: 8px 0 4px 0;
    text-align: center
}

.add-cart {
    display: block;
    margin: 0 auto 8px auto;
    padding: 5px;
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s
}

.add-cart i {
    margin-left: 4px
}

.shop-title {
    margin: 40px 5px 1.5rem 5px;
    border-bottom: 2px solid #000;
    font-size: 1.4rem;
    font-weight: 700
}

#footer {
    background-color: var(--bg-softer-gray);
    color: var(--text-color);
    text-align: center;
    padding: 20px 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 1rem
}

#footer a {
    color: var(--text-color);
    text-decoration: none
}

#footer .a-up {
    color: var(--sec-color);
    text-decoration: none
}

#footer a:hover {
    color: var(--main-color)
}

.a-up {
    position: fixed;
    bottom: 20px;
    right: -55px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background: var(--text-color);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgb(0 0 0 / .2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: right 0.25s ease, opacity 0.25s ease, transform 0.2s ease, background 0.2s ease
}

.a-up .fa-arrow-up {
    font-size: 22px;
    line-height: 1
}

.a-up:hover {
    transform: scale(1.05)
}

.fixed-whats-up {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background-color: #4dc247;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgb(0 0 0 / .2);
    text-decoration: none
}

.fixed-whats-up i {
    font-size: 36px;
    line-height: 1
}

.fixed-whats-up:hover {
    transform: scale(1.05)
}

@media (min-width:481px) and (max-width:1024px) {
    .a-up {
        width: 48px;
        height: 48px;
        bottom: 18px
    }

    .a-up .fa-arrow-up {
        font-size: 20px
    }

    .fixed-whats-up {
        width: 44px;
        height: 44px;
        bottom: 14px
    }

    .fixed-whats-up i {
        font-size: 30px
    }
}

@media (max-width:480px) {
    .a-up {
        width: 44px;
        height: 44px;
        bottom: 14px
    }

    .a-up .fa-arrow-up {
        font-size: 18px
    }

    .fixed-whats-up {
        width: 44px;
        height: 44px;
        bottom: 14px
    }

    .fixed-whats-up i {
        font-size: 30px
    }

    .app-cart {
        padding: 16px
    }

    .cart-box {
        grid-template-columns: 28% 1fr auto;
        gap: .6rem
    }

    .cart-img {
        width: 100px;
        height: 100px;
        padding: 6px
    }

    .cart-product-title {
        font-size: 1rem
    }

    .cart-price {
        font-size: 1rem
    }

    .cart-quantity {
        width: 2.6rem;
        font-size: 1rem
    }

    .cart-remove {
        margin: 0;
        font-size: 1.1rem
    }

    .total {
        font-size: 1rem
    }
}

.progress-bar {
    height: 2px;
    background: var(--text-dark-gray);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1
}

li a {
    color: var(--color-white)
}

a:hover {
    color: var(--sec-color)
}

.topnav {
    color: #fff;
    padding: 5px 7px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    display: block
}

.topnav:hover {
    filter: var(--filter-hover);
    border-radius: 50%
}

.topnav #myLinks {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 85vw;
    max-width: 320px;
    background: var(--bg-color);
    padding: 3rem 1rem 1rem 1rem;
    box-shadow: 0 0 15px rgb(0 0 0 / .1);
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), right 0.3s cubic-bezier(.4, 0, .2, 1);
    z-index: 10001;
    overflow-y: auto;
    transform: translateX(0)
}

.topnav #myLinks.closing {
    transform: translateX(-100%)
}

.menu-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    transition: all 0.2s ease
}

.menu-close-btn:hover {
    background-color: rgb(0 0 0 / .1);
    color: var(--main-color)
}

.topnav.open #myLinks {
    max-height: 60vh;
    opacity: 1;
    pointer-events: auto
}

#myLinks.drawer {
    position: fixed;
    top: 0;
    left: -85vw;
    height: 100vh;
    width: 85vw;
    max-width: 20rem;
    background: var(--bg-color);
    color: #111;
    padding: .5rem 0;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    transform: translateX(0);
    opacity: 1;
    max-height: none;
    overflow-y: auto;
    transition: left 0.3s ease;
    pointer-events: none;
    z-index: 10001
}

.topnav.open #myLinks.drawer {
    left: 0;
    opacity: 1;
    pointer-events: auto
}

#myLinks.drawer.closing-right {
    left: -85vw
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / .5);
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    z-index: 9999
}

#myLinks {
    list-style: none;
    margin: 0;
    padding: 20px 0
}

#myLinks li {
    margin: 0;
    padding: 0
}

#myLinks a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease
}

#myLinks a:hover {
    background: var(--main-color);
    color: var(--color-white)
}

#myLinks hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid rgb(0 0 0 / .1)
}

.menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10002
}

.menu-close:hover {
    background: rgb(0 0 0 / .1);
    color: #333
}

body.no-scroll {
    overflow: hidden
}

@media (max-width:1024px) {
    .topnav {
        position: relative;
        z-index: 1001
    }

    .topnav #myLinks {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 85vw;
        max-width: 320px;
        background: var(--bg-color);
        color: #111;
        padding: 20px 0;
        box-shadow: 2px 0 12px rgb(0 0 0 / .15);
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        z-index: 10001;
        overscroll-behavior: contain;
        opacity: 1;
        visibility: visible
    }

    .topnav.open #myLinks {
        left: 0;
        pointer-events: auto
    }

    .topnav #myLinks.closing {
        left: -100%
    }

    .menu-close {
        position: absolute;
        top: 10px;
        left: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: none;
        background: #fff0;
        color: #444;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
        z-index: 1001
    }

    .menu-close:hover {
        background: rgb(0 0 0 / .06);
        color: #111
    }
}

.cart-label {
    color: var(--sec-color) !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    opacity: .95;
    letter-spacing: .2px;
    font-family: 'Cairo', 'Poppins', sans-serif;
    text-align: center;
    display: block;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

input {
    border-radius: 10px;
    padding: 5px
}

.product-original-price {
    text-decoration: line-through;
    color: #888;
    font-size: .9rem;
    margin-right: 5px
}

.about-link {
    display: inline-block;
    margin: 1rem 0;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s
}

.about-link:hover {
    text-decoration: none
}

.footer-main-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem
}

.footer-main-links .about-link {
    font-size: 1.05rem;
    color: var(--main-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
    margin: 0 .2rem
}

.footer-main-links .about-link:hover {
    color: var(--main-color-hover);
    text-decoration: none
}

.footer-sep {
    color: #bbb;
    font-size: 1.2rem;
    margin: 0 .2rem;
    -webkit-user-select: none;
    -webkit-user-select: none;
    user-select: none
}

.whats-dev i {
    color: #25d366;
    font-size: 1.5rem;
    transition: color 0.2s
}

.whats-dev i:hover {
    color: #128c7e
}

.footer-copy {
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: .5rem
}

.footer-copy a {
    color: var(--sec-color);
    text-decoration: underline
}

.footer-copy a:hover {
    color: var(--main-color)
}

.about-main {
    min-height: 60vh;
    padding: 5rem 0 3rem 0
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: var(--color-white);
    font-size: 1.1em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    z-index: 10;
    box-shadow: 0 2px 8px rgb(0 0 0 / .12);
    letter-spacing: 1px;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    transition: background 0.2s
}

.product-box {
    position: relative
}

@media (max-width:1080px) {
    .container {
        width: 90%;
        margin: 0 auto
    }
}

@media (max-width:900px) {
    body {
        font-size: 18px
    }
}

@media (max-width:600px) {
    .footer-copy {
        font-size: .98rem
    }

    .discount-badge {
        font-size: .9em;
        padding: 3px 8px;
        top: 6px;
        left: 6px
    }

    .product-box {
        width: 95%
    }

    .shop-title {
        margin: 20px 5px 1rem 5px;
        font-size: 1.1rem
    }

    .app-cart {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        background-color: var(--bg-color);
        border: 1px solid var(--main-color);
        box-shadow: 2px 0 4px hsl(0 4% 15% / .1);
        transition: left 0.35s ease;
        z-index: 10001
    }

    .cart-title {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 600;
        margin-top: 2rem
    }

    .cart-box {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        align-items: center;
        gap: 0.8rem;
        margin-top: 1rem;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(0,0,0,0.05)
    }

    .cart-img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        padding: 0
    }

    .detail-box {
        display: grid;
        row-gap: .5rem
    }

    .cart-product-title {
        font-size: 1rem;
        text-transform: uppercase
    }

    .cart-price {
        font-weight: 500;
        font-size: 1.1rem
    }

    .cart-quantity {
        border: 1px solid var(--text-color);
        outline-color: var(--main-color);
        text-align: center;
        font-size: 1rem
    }

    .cart-remove {
        font-size: 1.1rem
    }

    .total {
        margin-top: 1.5rem;
        border-top: 1px solid var(--text-color)
    }

    .total-title {
        font-size: 1rem;
        font-weight: 600
    }

    .total-price {
        margin-right: .5rem
    }

    .btn-buy {
        padding: 6px 9px;
        color: var(--text-color);
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer
    }

    .btn-buy:hover {
        background-color: var(--main-color);
        color: var(--bg-color)
    }

    #app-cart-close {
        top: 1rem;
        right: .8rem;
        font-size: 2rem;
        color: var(--text-color);
        cursor: pointer
    }

    .product-title {
        font-size: 1.1rem;
        margin-bottom: .5rem
    }

    .product-price {
        font-size: 1rem
    }

    .add-cart {
        font-size: .9rem
    }

    .topnav.icon {
        font-size: 20px;
        padding: 3px 13px
    }
}

@media (max-width:500px) {
    .nav.container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 7px 0 3px 0
    }

    #div-logo {
        flex-direction: row;
        align-items: center;
        gap: .3rem;
        margin-bottom: 0
    }

    .logo-img {
        width: 50px;
        height: 50px;
        padding: 1px
    }

    .cart-icon-container {
        width: 50px;
        font-size: .9rem;
        gap: 2px;
        margin-right: 1px
    }

    .cart-icon-container i {
        font-size: 1rem
    }

    .cart-label {
        font-size: 0.5rem !important
    }

    #app-cart-icon {
        width: 50px;
        height: 50px;
        padding: 0
    }

    .topnav {
        font-size: 11px;
        padding: 2px 2px
    }

    .topnav #myLinks {
        font-size: 9px;
        padding: 2px 2px
    }

    #app-menu-trigger {
        font-size: 13px;
        padding: 1px 5px
    }
}

@media (max-width:400px) {
    #go-to-selected-product-btn {
        padding: 8px 12px;
        font-size: .9em;
        margin-top: 5px
    }

    .discount-badge {
        font-size: .85em;
        padding: 3px 8px;
        top: 6px;
        left: 6px
    }

    .logo {
        font-size: 1rem
    }

    #app-menu-trigger {
        font-size: 15px;
        padding: 3px 13px
    }
}

@media (max-width:360px) {
    .whats-buy {
        font-size: 20px
    }

    * {
        font-size: 15px
    }

    .cart-box {
        display: grid;
        grid-template-columns: 32% 50% 18%;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem
    }

    .cart-img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        padding: 10px
    }

    .detail-box {
        display: grid;
        row-gap: .5rem
    }

    .cart-product-title {
        font-size: 1rem;
        text-transform: uppercase
    }

    .cart-price {
        font-weight: 500;
        font-size: 1rem
    }

    .cart-quantity {
        border: 1px solid var(--text-color);
        outline-color: var(--main-color);
        text-align: center;
        font-size: 1rem
    }

    .cart-remove {
        font-size: 20px
    }

    .total {
        margin-top: 1.5rem;
        border-top: 1px solid var(--text-color)
    }

    .total-title {
        font-size: 1rem;
        font-weight: 600
    }

    .total-price {
        margin-left: .5rem
    }

    .btn-buy {
        font-size: .8rem;
        font-weight: 500
    }

    #app-cart-close {
        top: 1rem;
        right: .8rem;
        font-size: 2rem
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: .5rem
    }

    .product-price {
        font-size: .9rem
    }

    .product-original-price {
        font-size: .8rem
    }

    .add-cart {
        font-size: .8rem
    }

    #footer {
        padding: 35px 20px;
        font-size: 14px
    }

    #app-menu-trigger {
        font-size: 20px
    }

    .topnav {
        padding: 5px 5px;
        font-size: 12px
    }

    .topnav #myLinks {
        font-size: 10px
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.fade-in-product {
    opacity: 0;
    animation: fadeInProduct 1.2s forwards
}

@keyframes fadeInProduct {
    to {
        opacity: 1
    }
}

#app-menu-trigger {
    font-size: 27px;
    color: var(--sec-color);
    background: #fff0;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease
}

#app-menu-trigger i {
    font-size: 1.7rem
}

#app-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999
}

#app-menu-overlay.visible {
    opacity: 1;
    pointer-events: auto
}

#app-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85vw;
    max-width: 360px;
    background: var(--color-white);
    color: #111;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 10001;
    overflow-y: auto
}

#app-menu-drawer.open {
    transform: translateX(0)
}

#app-menu-drawer .app-menu-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: #fff0;
    color: #444;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease
}

#app-menu-drawer .app-menu-close i {
    font-size: 24px
}

#app-menu-drawer .app-menu-close:hover {
    background: rgb(0 0 0 / .06);
    color: #111
}

#app-menu-drawer .app-menu-close:active {
    transform: scale(.96)
}

body.no-scroll {
    overflow: hidden !important;
    touch-action: none
}

#app-menu-drawer .app-menu-list {
    padding: 16px 12px 24px 12px
}

#app-menu-drawer .app-menu-list li a {
    display: flex;
    font-size: 16px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #222;
    font-weight: 400;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease
}

#app-menu-drawer .app-menu-list li a i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    border-radius: 8px;
    color: var(--main-color);
    background: rgb(30 144 255 / .1);
    box-shadow: 0 1px 2px rgb(0 0 0 / .06) inset
}

#app-menu-drawer .app-menu-list li a:hover {
    background: var(--main-color);
    color: var(--color-white)
}

#app-menu-drawer .app-menu-list li a:hover i {
    color: var(--color-white)
}

#app-menu-drawer .app-menu-list hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 6px 0
}

#app-menu-drawer .app-menu-list li p {
    display: block;
    margin: 8px 4px 4px;
    padding: 4px 8px;
    color: #111;
    font-weight: 700;
    font-size: 16px;
    opacity: .95
}

#app-menu-trigger {
    display: flex;
    bottom: 30px;
    right: 30px
}

#app-menu-overlay {
    display: block
}

#app-menu-drawer {
    display: block
}

@media (min-width:1080px) {

    body *,
    header *,
    footer *,
    #app-menu-drawer .app-menu-list li a,
    #footer a,
    #app-menu-trigger i {
        font-size: 20px
    }

    button {
        font-size: 18px
    }

    #app-menu-trigger i,
    #app-cart-icon {
        font-size: 40px;
        width: 65px;
        height: 65px
    }

    .nav-icon-link i {
        font-size: 35px
    }

    .nav span {
        font-size: 20px
    }
}

.toast-container {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    z-index: 100000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px))
}

@media (max-width:500px) {
    .toast-container {
        left: calc(16px + env(safe-area-inset-left, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        max-width: none;
        align-items: center
    }
}

.toast {
    background: #fff;
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease
}

.toast.show {
    transform: translateX(0);
    opacity: 1
}

.toast i {
    font-size: 24px
}

.toast.success {
    border-right: 4px solid #4CAF50
}

.toast.success i {
    color: #4CAF50
}

.badges-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgb(0 0 0 / .1)
}

.badge i {
    font-size: .8rem
}

.badge-out-of-stock {
    background-color: #6c757d;
    color: #fff;
    animation: pulse 2s infinite;
    border-radius: 10px;
    padding: 2px 4px
}

.badge-discount {
    background-color: #dc3545;
    color: #fff
}

.product-box.out-of-stock {
    opacity: .85
}

.product-box.out-of-stock img {
    filter: grayscale(30%)
}

.product-box.out-of-stock .add-cart.disabled {
    background-color: #6c757d;
    cursor: not-allowed
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }

    100% {
        transform: scale(1)
    }
}

.low-stock-warning {
    color: #dc3545;
    font-size: .9em;
    font-weight: 700;
    display: block;
    margin: 5px 0;
    animation: blink 2s infinite
}

@keyframes blink {
    0% {
        opacity: 1
    }

    50% {
        opacity: .7
    }

    100% {
        opacity: 1
    }
}

.flex-center-wrap {
    display: flex;
    align-items: center;
    gap: 8px
}

.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgb(0 0 0 / .1);
    font-family: 'Cairo', sans-serif
}

.install-banner-content {
    display: flex;
    align-items: center
}

.install-banner-icon {
    width: 48px;
    height: 48px;
    margin-left: 15px
}

.install-banner-text strong {
    font-size: 16px;
    color: #333;
    display: block
}

.install-banner-text p {
    font-size: 14px;
    color: #666;
    margin: 0
}

.install-banner-actions {
    display: flex;
    gap: 10px
}

.install-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s
}

.install-btn.install {
    background-color: #007bff;
    color: #fff
}

.install-btn.install:hover {
    background-color: #0056b3
}

.install-btn.dismiss {
    background-color: #e9ecef;
    color: #495057
}

.install-btn.dismiss:hover {
    background-color: #ced4da
}

@media (max-width:600px) {
    .install-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center
    }

    .install-banner-content {
        justify-content: center;
        margin-bottom: 15px
    }

    .install-banner-actions {
        justify-content: center
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none
}

.quantity-btn:hover {
    background: var(--main-color);
    color: var(--color-white);
    border-color: var(--main-color);
    transform: scale(1.05)
}

.quantity-btn:active {
    transform: scale(.95)
}

.quantity-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    background: var(--surface-alt);
    color: var(--text-muted)
}

.cart-quantity {
    border: 1px solid var(--border-color);
    outline-color: var(--main-color);
    width: 60px;
    text-align: center;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--text-color)
}

@media (max-width:768px) {
    .quantity-controls {
        gap: 6px
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 14px
    }

    .cart-quantity {
        width: 50px;
        font-size: 13px;
        padding: 3px
    }
}

@media (max-width:480px) {
    .quantity-controls {
        gap: 4px
    }

    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 12px
    }

    .cart-quantity {
        width: 40px;
        font-size: 12px;
        padding: 2px
    }
}

.cart-icon-container.cart-pulse,
#app-cart-icon.cart-pulse {
    display: inline-block;
    animation: cart-pulse 0.6s ease-in-out 3
}

@keyframes cart-pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.22)
    }

    100% {
        transform: scale(1)
    }
}

@media (max-width:360px) {

    .text-for-logo,
    .store-name,
    .nav-icon-label,
    .cart-label {
        display: none !important
    }

    .logo-img {
        width: 40px !important;
        height: 40px !important
    }

    .nav-icon-link i,
    #app-cart-icon {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important
    }

    .nav.container {
        gap: 6px !important;
        padding: 6px !important;
        min-height: 56px !important
    }

    .nav-icon-link,
    .cart-icon-container {
        gap: 4px !important
    }

    .cart-icon-container {
        width: 40px !important
    }

    .icon-menu {
        padding: 6px !important
    }
}

.product-box .product-title {
    color: #1a1a1a !important
}

.product-box .product-price {
    color: #0f0f0f !important;
    font-weight: 700
}

.product-box .product-original-price {
    color: #555555 !important;
    text-decoration-color: #555
}

.product-box .product-code {
    color: #2e2e2e !important
}

.product-box .product-short-desc {
    color: #2e2e2e !important
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: contain
}

.topnav {
    overflow-x: hidden
}



main {
    padding-top: 110px
}

@media (max-width:1080px) {
    main {
        padding-top: 90px
    }
}

@media (max-width:500px) {
    main {
        padding-top: 85px
    }
}

@media (max-width:360px) {
    main {
        padding-top: 80px
    }
}

#shop-content-bestsellers,
.shop-content,
#category-products-grid,
#bestsellers-products-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px
}

@keyframes btnspin {
    to {
        transform: rotate(360deg)
    }
}

.pagination .btn-primary:disabled {
    cursor: wait;
    opacity: .85
}

.pagination .btn-primary:disabled::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: #fff0;
    border-radius: 50%;
    margin-inline-start: 6px;
    vertical-align: middle;
    animation: btnspin .6s linear infinite
}

.pagination.loading {
    position: relative;
    min-height: 40px
}

.pagination.loading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: #fff0;
    border-radius: 50%;
    animation: btnspin .6s linear infinite
}

.pagination:empty.loading {
    min-height: 40px
}

.pagination:empty.loading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: #fff0;
    border-radius: 50%;
    animation: btnspin .6s linear infinite
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: #fff0;
    border-radius: 50%;
    animation: btnspin .6s linear infinite;
    margin-inline-start: 8px;
    vertical-align: middle
}

.btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f9a825;
    border-right-color: #fff0;
    border-radius: 50%;
    animation: btnspin .6s linear infinite;
    margin-inline-start: 8px;
    vertical-align: middle
}

.btn-primary.loading {
    pointer-events: none
}
