:root {
    --od-bg: #f7f8f9;
    --od-dark: #1d1f1f;
    --od-text: #06111f;
    --od-muted: #6b7280;
    --od-border: #e9edf1;
    --od-primary: #00e8d0;
}

/* Header restore: keep the stable pre-SVG header layout. */
.search-topbar {
    height: auto !important;
    min-height: 38px !important;
    background: var(--od-dark) !important;
}

.search-topbar-inner {
    width: min(100% - 112px, 1140px) !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 5px 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
    gap: 20px !important;
    align-items: center !important;
}

.search-topbar .woocommerce-product-search {
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    background: #303131 !important;
    border-radius: 999px !important;
}

.search-topbar .search-field {
    padding: 0 44px 0 18px !important;
    font-size: 13px !important;
}

.header-main {
    width: min(100% - 112px, 1140px) !important;
    height: auto !important;
    min-height: 78px !important;
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto !important;
    gap: 20px !important;
    align-items: center !important;
    direction: rtl !important;
}

.menu-toggle {
    display: none !important;
}

.brand {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 1 !important;
    justify-self: start !important;
    align-self: center !important;
}

.brand img,
.live-logo {
    width: 150px !important;
    max-height: 42px !important;
    object-fit: contain !important;
}

.live-main-menu {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 2 !important;
    width: auto !important;
    padding-inline-end: 0 !important;
    justify-self: start !important;
    align-self: center !important;
    display: flex !important;
    gap: 27px !important;
    align-items: center !important;
    direction: rtl !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.header-actions {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 4 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    direction: ltr !important;
}

.icon-link,
.cart-link {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--od-border) !important;
    border-radius: 50% !important;
    background: #fff !important;
}

.cart-link {
    order: 2 !important;
    margin-inline-start: 0 !important;
}

.account-link {
    order: 1 !important;
}

.cart-link::before {
    content: "0 ر.س" !important;
    position: absolute !important;
    right: 52px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.cart-icon {
    position: relative !important;
    width: 17px !important;
    height: 15px !important;
    display: block !important;
    border: 2px solid #101820 !important;
    border-top: 0 !important;
    border-radius: 0 0 4px 4px !important;
}

.cart-icon::before {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: -8px !important;
    width: 9px !important;
    height: 8px !important;
    border: 2px solid #101820 !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

.cart-count {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    width: 23px !important;
    height: 23px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: #a7181d !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.account-link::before {
    content: "" !important;
    width: 15px !important;
    height: 15px !important;
    border: 2px solid #101820 !important;
    border-radius: 50% !important;
    transform: translateY(-5px) !important;
}

.account-link::after {
    content: "" !important;
    position: absolute !important;
    width: 21px !important;
    height: 11px !important;
    bottom: 8px !important;
    border: 2px solid #101820 !important;
    border-top: 0 !important;
    border-radius: 0 0 18px 18px !important;
}

@media (max-width: 900px) {
    .search-topbar-inner,
    .header-main {
        width: min(100% - 32px, 720px) !important;
    }

    .live-top-links,
    .live-email,
    .live-main-menu {
        display: none !important;
    }

    .header-main {
        grid-template-columns: auto 1fr auto !important;
        min-height: 70px !important;
    }

    .menu-toggle {
        display: inline-grid !important;
        order: 3 !important;
        justify-self: end !important;
    }

    .brand {
        order: 2 !important;
        justify-self: center !important;
    }

    .header-actions {
        order: 1 !important;
        justify-self: start !important;
    }
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    background: var(--od-bg);
    color: var(--od-text);
    font-family: Tajawal, Arial, sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 320px), 1268px);
    margin-inline: auto;
}

.search-topbar {
    background: var(--od-dark);
    color: #fff;
    height: 36px;
}

.search-topbar-inner {
    width: min(calc(100% - 240px), 1280px) !important;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: auto 668.53px auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.live-top-links {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: flex-start;
    font-size: 15px;
    white-space: nowrap;
}

.live-email {
    direction: ltr;
    justify-self: start;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.search-topbar .woocommerce-product-search {
    position: relative;
    width: 668.53px;
    height: 36px;
    margin: 0;
    display: flex;
    align-items: center;
    background: #343636;
    border-radius: 999px;
    overflow: hidden;
}

.search-topbar .search-field {
    width: 100%;
    height: 100%;
    padding: 0 40px 2px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #d7dde7;
    font: inherit;
    font-size: 15px;
}

.search-topbar .woocommerce-product-search button {
    position: absolute;
    inset-inline-start: 10px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    overflow: hidden;
    color: transparent;
    background: transparent;
}

.search-topbar .woocommerce-product-search button::before {
    content: "";
    position: absolute;
    inset: 3px 5px 5px 3px;
    border: 2px solid #87909d;
    border-radius: 50%;
}

.search-topbar .woocommerce-product-search button::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    left: 3px;
    bottom: 4px;
    background: #87909d;
    transform: rotate(45deg);
    border-radius: 2px;
}

.site-header {
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.header-main {
    width: min(calc(100% - 260px), 1260px) !important;
    height: 84px;
    min-height: 84px;
    display: grid;
    grid-template-columns: 129px minmax(0, 1fr) 476.63px;
    align-items: center;
    gap: 0;
    direction: ltr;
}

.menu-toggle,
.primary-nav {
    display: none !important;
}

.brand {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: inline-flex;
}

.brand img,
.live-logo {
    width: 210px;
    max-height: 42px;
    object-fit: contain;
}

.live-main-menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    display: flex;
    align-items: center;
    width: 476.63px;
    gap: 42px;
    direction: rtl;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    padding-inline-end: 242px;
}

.header-actions {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    display: grid;
    grid-template-columns: 39px 40px 40px;
    align-items: center;
    justify-content: flex-end;
    column-gap: 5px;
    direction: ltr;
    width: 129px;
    height: 64px;
    margin: 10px 0;
}

.icon-link,
.cart-link {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--od-border);
    border-radius: 50%;
    background: #fff;
}

.cart-link {
    order: 1;
    grid-column: 2;
    margin-inline-start: 0;
}

.cart-link::before {
    content: none;
}

.cart-total {
    grid-column: 1;
    position: static;
    transform: none;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    direction: rtl;
    unicode-bidi: isolate;
    white-space: nowrap;
    justify-self: start;
}

.account-link {
    order: 2;
    grid-column: 3;
}

.cart-icon {
    width: 30px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #231f1e;
}

.cart-icon svg,
.account-link svg {
    display: block;
    fill: currentColor;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #a7181d;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.account-link::before,
.account-link::after,
.cart-icon::before {
    content: none;
}

.ondas-live-home {
    padding: 88px 0 86px;
}

.live-products-section {
    padding: 0 0 42px;
}

.live-products-section + .live-products-section {
    padding-top: 28px;
}

.live-products-section h2 {
    margin: 0 0 34px;
    text-align: right;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.woocommerce,
.woocommerce-page {
    direction: rtl;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.ondas-live-home .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 614px) !important;
    gap: 40px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class] li.product[class] {
    position: relative !important;
    float: none !important;
    clear: none !important;
    width: 614px !important;
    height: 240px !important;
    min-height: 240px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: 390px 224px !important;
    grid-template-rows: auto auto 1fr !important;
    width: 614px !important;
    height: 178px !important;
    min-height: 178px !important;
    padding: 0 !important;
    color: inherit !important;
}

.woocommerce ul.products li.product a img {
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    width: 224px !important;
    height: 240px !important;
    margin: 0 !important;
    padding: 24px 24px !important;
    object-fit: contain !important;
    background: #fff !important;
}

.woocommerce-loop-product__title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    direction: rtl !important;
    margin: 0 !important;
    width: 350px !important;
    min-height: 30px !important;
    margin: 0 auto !important;
    padding: 26px 0 0 !important;
    color: #06111f !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .price {
    grid-column: 1 !important;
    grid-row: 2 !important;
    direction: rtl !important;
    display: block !important;
    width: 350px !important;
    min-height: 20px !important;
    margin: 10px auto 0 !important;
    color: #020617 !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .price del {
    color: #020617 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.woocommerce ul.products li.product .price ins {
    color: #c71c24 !important;
    margin-inline-start: 10px;
    text-decoration: none;
}

.woocommerce ul.products li.product .button {
    position: absolute !important;
    left: 78px !important;
    right: auto !important;
    bottom: 24px !important;
    width: 294px !important;
    min-width: 294px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid var(--od-primary) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #00d8c2 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product .button::before {
    content: "";
    width: 15px;
    height: 17px;
    margin-inline-start: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

.woocommerce ul.products li.product .button::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 7px;
    margin-inline-start: 57px;
    margin-top: -18px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.woocommerce ul.products li.product::after {
    content: "\2661" !important;
    position: absolute !important;
    left: 24px !important;
    right: auto !important;
    bottom: 24px !important;
    width: 48px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid var(--od-border) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #64748b !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.site-footer {
    background: var(--od-dark);
    color: #fff;
}

.footer-grid {
    min-height: 255px;
    padding: 58px 0 42px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 70px;
}

.site-footer h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 16px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #d4d8d8;
    font-size: 14px;
    line-height: 2;
    font-weight: 500;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    background: #171818;
}

.footer-bottom .container {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.payment-row {
    display: flex;
    gap: 8px;
}

.payment-row span {
    padding: 5px 10px;
    border: 1px solid #394040;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 12px;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1400px) {
    .container {
        width: min(calc(100% - 120px), 1268px);
    }

    .woocommerce ul.products li.product {
        height: 240px !important;
        min-height: 240px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__link {
        grid-template-columns: 390px 224px !important;
        height: 178px !important;
        min-height: 178px !important;
    }

    .woocommerce ul.products li.product a img {
        width: 224px !important;
        height: 240px !important;
        padding: 24px !important;
    }

    .woocommerce-loop-product__title {
        padding-top: 26px !important;
        font-size: 16px !important;
    }

    .woocommerce ul.products li.product .price {
        margin-top: 10px !important;
        font-size: 16px !important;
    }

    .woocommerce ul.products li.product .button {
        left: 78px !important;
        right: auto !important;
        bottom: 24px !important;
        width: 294px !important;
        min-width: 294px !important;
        height: 40px !important;
        min-height: 40px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    .woocommerce ul.products li.product::after {
        left: 24px !important;
        bottom: 24px !important;
        width: 48px !important;
        height: 40px !important;
        font-size: 22px !important;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 32px), 720px);
    }

    .search-topbar-inner {
        width: min(calc(100% - 32px), 720px) !important;
        height: 44px;
        min-height: 44px;
        padding: 0;
        grid-template-columns: 1fr;
    }

    .live-top-links,
    .live-email,
    .live-main-menu {
        display: none;
    }

    .header-main {
        width: min(calc(100% - 32px), 720px) !important;
        height: 70px;
        min-height: 70px;
        grid-template-columns: auto 1fr auto;
        direction: ltr;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: 40px;
        height: 40px;
        display: inline-grid !important;
        place-items: center;
        border: 0;
        background: transparent;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        margin: 2px 0;
        display: block;
        border-radius: 999px;
        background: #35d4c8;
    }

    .brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .brand img,
    .live-logo {
        width: 145px;
    }

    .header-actions {
        grid-column: 1;
        grid-row: 1;
        width: 129px;
        height: 64px;
    }

    .ondas-live-home {
        padding-top: 34px;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .ondas-live-home .woocommerce ul.products {
        grid-template-columns: minmax(0, 614px) !important;
        gap: 18px !important;
        justify-content: center !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products[class] li.product[class] {
        width: min(100%, 614px) !important;
    }

    .footer-grid,
    .footer-bottom .container {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Final header restore after all earlier header experiments. */
.search-topbar{height:auto!important;min-height:38px!important;background:var(--od-dark)!important}
.search-topbar-inner{width:min(100% - 112px,1140px)!important;height:auto!important;min-height:38px!important;padding:5px 0!important;display:grid!important;grid-template-columns:auto minmax(260px,1fr) auto!important;gap:20px!important;align-items:center!important}
.search-topbar .woocommerce-product-search{width:100%!important;height:30px!important;min-height:30px!important;background:#303131!important;border-radius:999px!important}
.search-topbar .search-field{padding:0 44px 0 18px!important;font-size:13px!important}
.header-main{width:min(100% - 112px,1140px)!important;height:auto!important;min-height:78px!important;display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:20px!important;align-items:center!important;direction:rtl!important}
.menu-toggle{display:none!important}
.brand{grid-column:auto!important;grid-row:auto!important;order:1!important;justify-self:start!important;align-self:center!important}
.brand img,.live-logo{width:150px!important;max-height:42px!important;object-fit:contain!important}
.live-main-menu{grid-column:auto!important;grid-row:auto!important;order:2!important;width:auto!important;padding-inline-end:0!important;justify-self:start!important;align-self:center!important;display:flex!important;gap:27px!important;align-items:center!important;direction:rtl!important;font-size:13px!important;font-weight:800!important}
.header-actions{grid-column:auto!important;grid-row:auto!important;order:4!important;width:auto!important;height:auto!important;margin:0!important;display:flex!important;gap:10px!important;align-items:center!important;justify-content:flex-end!important;justify-self:end!important;direction:ltr!important}
.icon-link,.cart-link{position:relative!important;width:42px!important;height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid var(--od-border)!important;border-radius:50%!important;background:#fff!important}
.cart-link{order:2!important;margin-inline-start:0!important}.account-link{order:1!important}
.cart-link::before{content:"0 ر.س"!important;position:absolute!important;right:52px!important;top:50%!important;transform:translateY(-50%)!important;color:#000!important;font-size:14px!important;font-weight:800!important;white-space:nowrap!important}
.cart-icon{position:relative!important;width:17px!important;height:15px!important;display:block!important;border:2px solid #101820!important;border-top:0!important;border-radius:0 0 4px 4px!important;color:#101820!important}
.cart-icon::before{content:""!important;position:absolute!important;left:2px!important;top:-8px!important;width:9px!important;height:8px!important;border:2px solid #101820!important;border-bottom:0!important;border-radius:10px 10px 0 0!important}
.cart-count{position:absolute!important;top:-7px!important;right:-7px!important;width:23px!important;height:23px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#a7181d!important;color:#fff!important;font-size:12px!important;font-weight:800!important}
.account-link::before{content:""!important;width:15px!important;height:15px!important;border:2px solid #101820!important;border-radius:50%!important;transform:translateY(-5px)!important}
.account-link::after{content:""!important;position:absolute!important;width:21px!important;height:11px!important;bottom:8px!important;border:2px solid #101820!important;border-top:0!important;border-radius:0 0 18px 18px!important}
@media (max-width:900px){.search-topbar-inner,.header-main{width:min(100% - 32px,720px)!important}.live-top-links,.live-email,.live-main-menu{display:none!important}.header-main{grid-template-columns:auto 1fr auto!important;min-height:70px!important}.menu-toggle{display:inline-grid!important;order:3!important;justify-self:end!important}.brand{order:2!important;justify-self:center!important}.header-actions{order:1!important;justify-self:start!important}}
