/* ================= VARIABLES & RESETS ================= */
:root {
    --orange: #e85d04;
    --orange-hover: #cf4f00;
    --dark: #141517;
    --black: #141312;
    --bg: #f4f3f1;
    --text: #2e2a26;
    --muted: #6b7280;
    --border: #e7e2da;
    --container: min(1680px, calc(100% - 240px));
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: 'Saira', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Saira', system-ui, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ================= TOPBAR ================= */
.topbar {
    position: relative;
    width: 100%;
    height: 60px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.topbar p {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 16px;
}

/* ================= HEADER ================= */
.header {
    position: absolute;
    z-index: 50;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1520px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    transition: var(--transition);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 44px;
    height: 74px;
}

.logo {
    width: 170px;
    height: 36px;
    flex: none;
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= NAVIGATION & ANIMATED UNDERLINE ================= */
.menu {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.menu__link {
    position: relative;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}


.menu__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

[dir="rtl"] .menu__link::after {
    left: auto;
    right: 0;
}

.menu__link:hover {
    color: var(--orange);
}

.menu__link:hover::after,
.menu__link.active::after {
    width: 100%;
}


.chevron-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.has-submenu:hover .chevron-arrow {
    transform: rotate(180deg);
}

/* ================= DESKTOP MEGAMENU ================= */
.has-submenu {
    position: relative;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(18px);
    width: 860px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid #ede8e2;
    padding: 32px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    z-index: 100;
}

[dir="rtl"] .megamenu {
    transform: translateX(50%) translateY(18px);
}

.has-submenu:hover .megamenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
}

[dir="rtl"] .has-submenu:hover .megamenu {
    transform: translateX(50%) translateY(6px);
}

.megamenu__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.megamenu__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 14px;
    border-bottom: 1px solid #f2ede7;
    padding-bottom: 8px;
}

.megamenu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.megamenu__list a {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--text);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.megamenu__list a:hover {
    color: var(--orange);
    transform: translateX(4px);
}

[dir="rtl"] .megamenu__list a:hover {
    transform: translateX(-4px);
}

/* ================= HEADER ACTIONS ================= */
.header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search {
    position: relative;
    width: 280px;
    height: 48px;
    background: #f1efed;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.search:focus-within {
    background: #ffffff;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.search input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    padding-right: 28px;
}

[dir="rtl"] .search input {
    padding-right: 0;
    padding-left: 28px;
}

.search__btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

[dir="rtl"] .search__btn {
    right: auto;
    left: 12px;
}

.search__btn:hover {
    transform: translateY(-50%) scale(1.15);
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-action {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-cart {
    background: #d96b2b;
    box-shadow: 0 4px 14px rgba(217, 107, 43, 0.25);
}

.btn-account {
    background: #f4ede4;
    color: #8a3d0b;
}

.btn-account:hover {
    background: #efe3d3;
    transform: translateY(-2px);
}

.btn-cart:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 93, 4, 0.35);
}

.btn-cart .ic {
    width: 22px;
    height: 22px;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--dark);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: transform 0.2s ease;
}

[dir="rtl"] .badge {
    right: auto;
    left: -4px;
}

.btn-lang {
    border: 1.5px solid var(--dark);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.btn-lang:hover {
    background: var(--dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f4f3f1;
    align-items: center;
    transition: var(--transition);
}

.btn-hamburger:hover {
    background: #eae7e4;
}

.btn-hamburger span {
    display: block;
    height: 2px;
    width: 20px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    min-height: clamp(520px, calc(100vh - 270px), 700px);
    overflow: hidden;
    background: var(--dark);
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    left: 50%;
    top: 0;
    width: max(100%, 1920px);
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 21, 23, 0.95) 15%, rgba(20, 21, 23, 0.5) 60%, rgba(20, 21, 23, 0.1) 100%);
    z-index: 1;
}

[dir="rtl"] .hero__shade {
    background: linear-gradient(to left, rgba(20, 21, 23, 0.95) 15%, rgba(20, 21, 23, 0.5) 60%, rgba(20, 21, 23, 0.1) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    margin-left: max(32px, calc((100% - 1680px)/2 + 24px));
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

[dir="rtl"] .hero__content {
    margin-left: 0;
    margin-right: max(32px, calc((100% - 1680px)/2 + 24px));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 30px;
}

.eyebrow img {
    height: 26px;
    width: auto;
}

.eyebrow span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.8px;
}

.hero h1 {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero__lead {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.55;
    color: #ebe7e4;
    max-width: 760px;
}

/* ================= BUTTONS ================= */
.hero__btns {
    display: flex;
    gap: 18px;
    align-items: center;
}

.hero__btns .btn {
    width: 250px;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

.btn--fill {
    background: var(--orange);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
}

.btn--fill:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 93, 4, 0.45);
}

.btn--line {
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    gap: 8px;
}

.btn--line img {
    width: 20px;
    height: 20px;
}

.btn--line:hover {
    background: #ffffff;
    color: var(--dark);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.35s; }
.anim-delay-3 { animation-delay: 0.55s; }
.anim-delay-4 { animation-delay: 0.75s; }

/* ================= CART DRAWER POPUP ================= */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transition: right 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

[dir="rtl"] .cart-drawer {
    right: auto;
    left: -450px;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.18);
    transition: left 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-drawer.open {
    right: 0;
}

[dir="rtl"] .cart-drawer.open {
    left: 0;
}

.cart-drawer__header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer__title-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cart-drawer__title-wrap h3 {
    font-size: 21px;
    font-weight: 700;
}

.cart-drawer__count {
    font-size: 14px;
    color: var(--muted);
}

.cart-drawer__close {
    font-size: 30px;
    line-height: 1;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}

.cart-drawer__close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2ede7;
    position: relative;
}

.cart-item__img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: #f7f6f4;
    border: 1px solid #eee;
    flex: none;
}

.cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    padding-right: 20px;
}

[dir="rtl"] .cart-item__title {
    padding-right: 0;
    padding-left: 20px;
}

.cart-item__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--orange);
    margin-top: 4px;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.cart-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1dcda;
    border-radius: 10px;
    padding: 2px 8px;
    gap: 10px;
    background: #faf8f7;
}

.cart-stepper button {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    width: 18px;
    text-align: center;
}

.cart-stepper button:hover {
    color: var(--orange);
}

.cart-stepper span {
    font-size: 14px;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}

.cart-item__delete {
    position: absolute;
    top: 0;
    right: 0;
    color: #9ca3af;
    transition: color 0.2s, transform 0.2s;
}

[dir="rtl"] .cart-item__delete {
    right: auto;
    left: 0;
}

.cart-item__delete:hover {
    color: #dc2626;
    transform: scale(1.15);
}

.cart-drawer__footer {
    padding: 22px 24px;
    border-top: 1px solid var(--border);
    background: #faf9f7;
}

.cart-drawer__summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    color: var(--muted);
}

.summary-row.total-row {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    border-top: 1px dashed #ded8cf;
    padding-top: 10px;
}

.free-badge {
    color: #16a34a;
    font-weight: 700;
}

.cart-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn--block { width: 100%; }

.btn--text {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 0;
    text-align: center;
}

.btn--text:hover {
    color: var(--dark);
    text-decoration: underline;
}

.cart-overlay,
.drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    touch-action: none;
}
.cart-overlay.active,
.drawer-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}
/* ================= MOBILE DRAWER & ACCORDION ================= */

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none; 
}


.mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: -330px;
    width: 310px;
    height: 100vh !important;
    height: 100dvh !important; 
    background: #ffffff;
    z-index: 99999 !important; 
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overscroll-behavior: contain; 
}

[dir="rtl"] .mobile-drawer {
    left: auto;
    right: -330px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-drawer.open {
    left: 0 !important;
}

[dir="rtl"] .mobile-drawer.open {
    right: 0 !important;
}

.mobile-drawer__header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0eae4;
}

.mobile-drawer__title {
    font-size: 20px;
    font-weight: 700;
}

.mobile-drawer__close {
    font-size: 32px;
    color: var(--muted);
}

.mobile-drawer__body {
    padding: 20px 22px;
    overflow-y: auto;
}

.mobile-search {
    width: 100%;
    margin-bottom: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-nav__link {
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    padding: 4px 0;
}


.mobile-accordion__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    padding: 4px 0;
}

.mobile-accordion__btn .chevron-arrow {
    transition: transform 0.28s ease;
}

.mobile-accordion.open .mobile-accordion__btn .chevron-arrow {
    transform: rotate(180deg);
}

.mobile-accordion__content {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 14px;
    background: #faf8f5;
    border-radius: 14px;
    margin-top: 8px;
}

.mobile-accordion.open .mobile-accordion__content {
    display: flex;
}

.mobile-megacol__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
    border-bottom: 1px solid #eee7df;
    padding-bottom: 4px;
}

.mobile-megacol a {
    display: block;
    font-size: 14px;
    color: var(--text);
    padding: 5px 0;
}


@media (max-width: 1600px) {
    .header {
        width: calc(100% - 40px);
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
}

/* ================= RESPONSIVE LAYOUT ================= */
@media (max-width: 1200px) {
    .menu { gap: 20px; font-size: 16px; }
    .search { width: 220px; }
}

@media (max-width: 1100px) {
    .menu,
    .header__right .search {
        display: none;
    }

    .btn-hamburger {
        display: flex;
    }

    .header {
        top: 76px;
        width: calc(100% - 48px);
        padding: 0 18px;
        border-radius: 24px;
    }

    .hero__content {
        margin: 180px auto 70px;
        padding: 0 24px;
        text-align: center;
        align-items: center;
    }

    .hero h1 {
        font-size: 54px;
        line-height: 1.25;
    }

    .hero__lead {
        font-size: 18px;
    }
}


@media (max-width: 768px) {
    .header {
        top: 70px;
        width: calc(100% - 32px);
        padding: 0 14px;
        height: 66px;
    }

    .header__left {
        height: 66px;
    }

    .logo {
        width: 130px;
        height: 28px;
    }

    .header__right {
        gap: 8px;
    }

    .actions {
        gap: 8px;
    }

    .btn-action {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .btn-cart .ic {
        width: 19px;
        height: 19px;
    }

    .btn-lang {
        font-size: 14px;
    }

    .btn-hamburger {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .hero {
        min-height: clamp(430px, calc(100vh - 320px), 560px);
    }

    .hero__content {
        margin-top: 160px;
        gap: 24px;
        padding: 0 16px;
    }

    .eyebrow span {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.25;
    }

    .hero__lead {
        font-size: 16px;
        line-height: 1.5;
    }

    
    .hero__btns {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .hero__btns .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 48px !important;
        padding: 0 10px !important;
        font-size: 13.5px !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
    }

    .btn--line img {
        width: 17px !important;
        height: 17px !important;
        flex-shrink: 0 !important;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    [dir="rtl"] .cart-drawer {
        left: -100%;
    }
}

@media (max-width: 380px) {
    .logo {
        width: 110px;
    }
    
    .hero h1 {
        font-size: 32px;
    }

    .hero__btns .btn {
        font-size: 12px !important;
        padding: 0 6px !important;
        gap: 5px !important;
    }

    .btn--line img {
        width: 15px !important;
        height: 15px !important;
    }
}