/* 10.8 Storefront — header, mega menu, drawer, footer. Mobile first; 600 / 990 / 1280. */
.tp8s-chrome, .tp8s-footer {
	--ink: #1b1f1c; --muted: #6f7570; --line: #e9e7e2; --soft: #f6f5f2; --brand: #3d5244; --brand-2: #2f3d33; --accent: #a8432c;
	--pad: 14px;
	color: var(--ink);
}
.tp8s-chrome { display: contents; } /* lets the header stick to the top of the whole page */
.tp8s-chrome *, .tp8s-chrome *::before, .tp8s-chrome *::after, .tp8s-footer *, .tp8s-footer *::before, .tp8s-footer *::after { box-sizing: border-box; }
.tp8s-chrome :is(.tp8s-header, .tp8s-drawer, .tp8s-ann):lang(ar), .tp8s-footer:lang(ar) { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.tp8s-header ul, .tp8s-drawer ul, .tp8s-footer ul { list-style: none; margin: 0; padding: 0; }
.tp8s-header li, .tp8s-drawer li, .tp8s-footer li { margin: 0; list-style: none; }
.tp8s-header li::before, .tp8s-footer li::before { content: none; }
.tp8s-header a, .tp8s-drawer a, .tp8s-footer a { color: inherit; text-decoration: none; }
.tp8s-header button, .tp8s-drawer button { font: inherit; color: inherit; background: none !important; border: 0 !important; padding: 0 !important; margin: 0; cursor: pointer; box-shadow: none !important; min-height: 0; text-transform: none; letter-spacing: normal; }
.tp8s-chrome .tp8s-i, .tp8s-footer .tp8s-i { width: 22px; height: 22px; display: block; flex: none; }
.tp8s-header a:focus-visible, .tp8s-header button:focus-visible, .tp8s-drawer a:focus-visible, .tp8s-drawer summary:focus-visible, .tp8s-footer a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Theme header pieces we replace */
body.tp8s-chrome-on .bwp-header, body.tp8s-chrome-on .bwp-mobile_toolbar, body.tp8s-chrome-on .campbar, body.tp8s-chrome-on .header-campbar { display: none !important; }
body.tp8s-chrome-on #bwp-main { padding-top: 0 !important; }

/* Checkout keeps its own distraction-free header (10.8 Checkout) */
body.tp8co-checkout .tp8s-ann, body.tp8co-checkout .tp8s-header, body.tp8co-checkout .tp8s-drawer { display: none !important; }

/* Announcement */
.tp8s-ann { background: var(--brand-2); color: #eef2ee; font-size: 12px; line-height: 1.4; text-align: center; padding: 7px var(--pad); }
.tp8s-ann-long { display: none; }

/* Header */
.tp8s-header { position: sticky; top: 0; z-index: 9000; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.tp8s-header.is-stuck { box-shadow: 0 6px 20px rgba(20,30,22,.08); }
body.admin-bar .tp8s-header { top: 46px; }
.tp8s-hrow { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "burger logo icons" "search search search"; align-items: center; gap: 8px 10px; max-width: 1440px; margin: 0 auto; padding: 8px var(--pad) 10px; }
.tp8s-burger { grid-area: burger; justify-self: start; width: 44px; height: 44px; display: grid !important; place-items: center; margin-inline-start: -10px !important; }
.tp8s-logo { grid-area: logo; display: block; }
.tp8s-logo img { height: 34px; width: auto; display: block; }
.tp8s-hsearch { grid-area: search; display: flex; align-items: center; gap: 8px; height: 44px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 14px; background: #fff; margin: 0; }
.tp8s-hsearch .tp8s-i { width: 19px; height: 19px; color: var(--muted); }
.tp8s-hsearch input[type=search] { flex: 1; min-width: 0; height: 40px !important; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.tp8s-hsearch input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.tp8s-hicons { grid-area: icons; justify-self: end; display: flex; align-items: center; gap: 2px; margin-inline-end: -10px; }
.tp8s-hicon { width: 44px; height: 44px; display: grid; place-items: center; }
.tp8s-hwish, .tp8s-langbtn { display: none !important; }
.tp8s-langbtn { align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; margin-inline-end: 6px; }
.tp8s-langbtn .tp8s-i { width: 16px; height: 16px; }
/* The theme's cart component (kept for its drawer and fragments) */
.tp8s-hcart { position: relative; }
.tp8s-hcart .calma-topcart .cart-icon { width: 44px; height: 44px; display: grid !important; place-items: center; padding: 0 !important; color: var(--ink); }
.tp8s-hcart .calma-topcart .bwp-svg-icon svg { width: 22px !important; height: 22px !important; }
.tp8s-hcart .cart-count { position: absolute !important; top: 4px !important; inset-inline-start: 2px !important; inset-inline-end: auto !important; background: var(--brand) !important; color: #fff !important; font: 600 10px/17px system-ui, sans-serif !important; min-width: 17px; height: 17px; border-radius: 9px !important; text-align: center; padding: 0 4px !important; }

/* Category bar (≥ 990 px) */
.tp8s-nav { display: none; position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.tp8s-navlist { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tp8s-navlist::-webkit-scrollbar { display: none; }
.tp8s-navlink { display: flex !important; align-items: center; gap: 4px; height: 44px; font-size: 14.5px; white-space: nowrap; color: var(--ink); border-bottom: 2px solid transparent; }
.tp8s-navlink:hover { border-bottom-color: var(--ink); }
.tp8s-mega-toggle { font-weight: 600 !important; }
.tp8s-chrome .tp8s-chev { width: 15px; height: 15px; transition: transform .2s; }
.tp8s-mega { display: none; position: absolute; top: 100%; inset-inline: var(--pad); z-index: 9001; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 22px 60px rgba(20,30,22,.14); padding: 22px 24px 18px; }
.tp8s-mega-item:hover .tp8s-mega, .tp8s-mega-item:focus-within .tp8s-mega, .tp8s-mega-toggle[aria-expanded="true"] + .tp8s-mega { display: block; }
.tp8s-mega-toggle[aria-expanded="true"] .tp8s-chev, .tp8s-mega-item:hover .tp8s-chev { transform: rotate(180deg); }
.tp8s-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
.tp8s-mega-head { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.tp8s-mega-col li a { display: block; padding: 4px 0; font-size: 13.5px; color: #4b514d; }
.tp8s-mega-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tp8s-mega-all { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }

/* Drawer (< 990 px) */
.tp8s-drawer { position: fixed; inset: 0; z-index: 100002; background: rgba(15,20,16,.45); }
.tp8s-drawer[hidden] { display: none; }
.tp8s-drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: tp8s-drawer-in .22s ease-out; }
[dir="rtl"] .tp8s-drawer-panel { animation-name: tp8s-drawer-in-rtl; }
@keyframes tp8s-drawer-in { from { transform: translateX(-30px); opacity: .5; } }
@keyframes tp8s-drawer-in-rtl { from { transform: translateX(30px); opacity: .5; } }
.tp8s-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.tp8s-drawer-head img { height: 30px; width: auto; }
.tp8s-drawer .tp8s-x { width: 40px; height: 40px; border-radius: 50% !important; background: var(--soft) !important; display: grid !important; place-items: center; }
.tp8s-drawer .tp8s-x .tp8s-i { width: 18px; height: 18px; }
.tp8s-drawer-nav { padding: 4px 16px; }
.tp8s-dgroup { border-bottom: 1px solid var(--line); }
.tp8s-dgroup > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15.5px; font-weight: 500; cursor: pointer; list-style: none; }
.tp8s-dgroup > summary::-webkit-details-marker { display: none; }
.tp8s-dgroup[open] > summary .tp8s-chev { transform: rotate(180deg); }
.tp8s-dgroup ul { padding: 0 12px 10px !important; }
.tp8s-dgroup li a { display: flex; align-items: center; min-height: 40px; font-size: 14.5px; color: #4b514d; }
.tp8s-dlink { display: flex; align-items: center; min-height: 52px; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.tp8s-drawer-foot { margin-top: auto; padding: 16px; display: grid; gap: 10px; }
.tp8s-drawer-foot a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; }
html.tp8s-drawer-open, html.tp8s-drawer-open body { overflow: hidden !important; }

/* Footer */
.tp8s-footer { background: var(--brand-2); color: #dfe6df; margin-top: 56px; font-size: 14px; line-height: 1.7; }
.tp8s-fwrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) 18px; }
.tp8s-news { display: grid; gap: 14px; padding: 28px 0 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.tp8s-news h2 { color: #fff !important; font-size: 20px !important; margin: 0 0 2px !important; font-weight: 600 !important; font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; }
.tp8s-news p { margin: 0; color: #c9d3ca; }
.tp8s-news-form form { margin: 0 !important; }
.tp8s-news-form p { margin: 0 !important; display: flex; gap: 8px; flex-wrap: wrap; }
.tp8s-news-form br { display: none; }
.tp8s-news-form .wpcf7-form-control-wrap { flex: 1; min-width: 200px; }
.tp8s-news-form input[type=email] { width: 100% !important; height: 48px !important; border-radius: 999px !important; border: 0 !important; padding: 0 18px !important; font: inherit; background: #fff !important; color: var(--ink) !important; margin: 0 !important; }
.tp8s-news-form input[type=submit] { height: 48px !important; border-radius: 999px !important; border: 0 !important; padding: 0 26px !important; background: #fff !important; color: var(--brand-2) !important; font-weight: 600 !important; cursor: pointer; margin: 0 !important; }
.tp8s-news-form .wpcf7-spinner { position: absolute; }
.tp8s-news-form .content-newsletter { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.tp8s-news-form .content-newsletter > * { margin: 0 !important; }
.tp8s-news-form span.clearfix { background: none !important; height: auto !important; border-radius: 999px; }
.tp8s-news-form .wpcf7-response-output { margin: 10px 0 0 !important; border-radius: 10px; font-size: 13px; color: #fff; }
.tp8s-fcols { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 28px 0; }
.tp8s-flogo { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 10px; }
.tp8s-fabout p { margin: 0 0 8px; }
.tp8s-frow { display: inline-flex; align-items: center; gap: 8px; }
.tp8s-frow .tp8s-i { width: 18px; height: 18px; }
.tp8s-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tp8s-soc { display: flex; gap: 10px; margin-top: 12px; }
.tp8s-soc a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.tp8s-soc a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.tp8s-soc .tp8s-i { width: 18px; height: 18px; }
.tp8s-fcol h3 { color: #fff !important; font-size: 15px !important; font-weight: 600 !important; margin: 0 0 10px !important; text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important; }
.tp8s-fcol li a { display: inline-flex; min-height: 34px; align-items: center; }
.tp8s-fbot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 12.5px; color: #c9d3ca; }
.tp8s-fpays { display: flex; gap: 6px; }
.tp8s-fpays img { width: 42px; height: 26px; object-fit: contain; background: #fff; border-radius: 5px; padding: 2px 4px; }
/* Checkout: a quiet footer on the page background */
.tp8s-footer.is-compact { background: transparent; color: var(--muted); margin-top: 24px; }
.tp8s-footer.is-compact .tp8s-fwrap { max-width: 1130px; padding-bottom: 28px; }
.tp8s-footer.is-compact .tp8s-fbot { border-top-color: var(--line); color: var(--muted); }
.tp8s-footer.is-compact a:hover { color: var(--ink); }
.tp8s-fpol { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tp8s-fpol a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
@media (max-width: 900px) { /* clear the checkout's fixed pay bar */
	body.tp8co-checkout .tp8co-co:has(~ .tp8s-footer), body.tp8co-checkout:has(.tp8s-footer.is-compact) .tp8co-co { padding-bottom: 8px; }
	.tp8s-footer.is-compact .tp8s-fwrap { padding-bottom: 130px; }
}
/* WooCommerce notices outside cart / checkout (those are styled by 10.8 Checkout) */
body.tp8s-chrome-on:not(.tp8co) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px !important; padding: 12px 16px !important; border: 1px solid var(--line, #e9e7e2) !important; border-radius: 14px !important; background: #fff !important; color: #1b1f1c !important; font-size: 14px !important; line-height: 1.6 !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; list-style: none; }
body.tp8s-chrome-on:not(.tp8co) .woocommerce-message { background: #eef2ec !important; border-color: #d4e0d0 !important; color: #2f4a2c !important; }
body.tp8s-chrome-on:not(.tp8co) .woocommerce-error { display: block; background: #fdf2f1 !important; border-color: #f2c9c3 !important; color: #7c2a20 !important; }
body.tp8s-chrome-on:not(.tp8co) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none !important; content: none !important; }
body.tp8s-chrome-on:not(.tp8co) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) li { list-style: none; margin: 0; padding: 0; }
body.tp8s-chrome-on:not(.tp8co) :is(.woocommerce-message, .woocommerce-info) .button { order: 3; margin: 0 !important; margin-inline-start: auto !important; float: none !important; height: 36px !important; line-height: 1 !important; padding: 0 16px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: normal !important; background: #1b1f1c !important; color: #fff !important; border: 0 !important; display: inline-flex !important; align-items: center; gap: 6px; }
/* The theme's own footer bar and copyright are replaced */
body.tp8s-chrome-on .bwp-copyright { display: none; }

/* Wishlist pop-up (WPC Smart Wishlist): sentence case like the rest of the site */
body.tp8s-chrome-on .woosw-popup :is(.woosw-popup-content-top, .woosw-popup-content-bot-inner a, .woosw-continue) { text-transform: none !important; letter-spacing: normal !important; }
body.tp8s-chrome-on .woosw-popup:lang(ar), body.tp8s-chrome-on:lang(ar) .woosw-popup { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Pages that skip unused plugin files (speed): hide the markup those plugins still print */
body.tp8s-lean :is(#woosc-area, .woosc-area, .woosc-popup) { display: none !important; }

/* Content pages built with the old nasa grid (e.g. order tracking): a column grew to its content (425 px) on phones */
@media (max-width: 767px) {
	body.tp8s-chrome-on .row > .nasa-col.columns { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0; }
	body.tp8s-chrome-on .nasa-col.columns .woocommerce > div:first-child ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
}

/* Theme pieces still drawn on content pages, in the storefront palette instead of the theme's orange */
body.tp8s-chrome-on .back-top .back-top-icon { background: #1b1f1c !important; color: #fff !important; border-radius: 50% !important; }
body.tp8s-chrome-on .breadcrumb, body.tp8s-chrome-on .bwp-breadcrumb, body.tp8s-chrome-on .bwp-breadcrumb .current { color: #6f7570 !important; border-color: #e9e7e2 !important; }
body.tp8s-chrome-on .bwp-breadcrumb a { color: #1b1f1c !important; }
body.tp8s-chrome-on :is(.shopping-cart-link, .checkout-link, .order-tracking-link).active > a { background: #1b1f1c !important; border-color: #1b1f1c !important; color: #fff !important; }

/* Not-found page */
body.tp8s-404-page #bwp-main > .page-title.bwp-title, body.tp8s-404-page #bwp-main > .breadcrumb-noheading { display: none !important; }
.tp8s-404 { padding: 48px var(--pad, 14px) 24px; }
.tp8s-404-box { max-width: 620px; margin: 0 auto; text-align: center; }
.tp8s-404-code { margin: 0 0 4px !important; font: 700 64px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .04em; color: #e2dfd8; }
.tp8s-404 h1 { font-size: 24px !important; line-height: 1.35 !important; font-weight: 700 !important; margin: 0 0 8px !important; }
.tp8s-404-body { margin: 0 auto 22px !important; color: #6f7570; max-width: 460px; }
.tp8s-404-search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0; padding-inline: 16px 6px; border: 1.5px solid #1b1f1c; border-radius: 999px; background: #fff; margin: 0 0 28px; }
.tp8s-404-search .tp8s-i { width: 20px; height: 20px; color: #6f7570; flex: none; }
.tp8s-404-search input[type=search] { flex: 1; min-width: 0; height: 100% !important; border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; font: inherit; font-size: 15px; box-shadow: none !important; outline: none; }
.tp8s-404-search .tp8s-btn { height: 40px; padding: 0 18px !important; }
.tp8s-404-h { font-size: 15px !important; font-weight: 600 !important; margin: 0 0 12px !important; }
.tp8s-404-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px !important; }
.tp8s-404-cats a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #e9e7e2; border-radius: 999px; font-size: 14px; }
.tp8s-404-cats a:hover { border-color: #1b1f1c; }
.tp8s-404-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 990px) { .tp8s-404 { padding-top: 72px; } .tp8s-404 h1 { font-size: 30px !important; } .tp8s-404-code { font-size: 88px; } }

/* ≥ 600 px */
@media (min-width: 600px) {
	.tp8s-chrome, .tp8s-footer { --pad: 22px; }
	.tp8s-ann-long { display: inline; } .tp8s-ann-short { display: none; }
	.tp8s-logo img { height: 38px; }
	.tp8s-hwish { display: grid !important; }
	.tp8s-fcols { grid-template-columns: 1fr 1fr; }
	.tp8s-news { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ≥ 990 px: one header row with the search in the middle, category bar under it */
@media (min-width: 990px) {
	.tp8s-chrome, .tp8s-footer { --pad: 36px; }
	.tp8s-hrow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search icons"; gap: 32px; padding-top: 14px; padding-bottom: 12px; }
	.tp8s-burger { display: none !important; }
	.tp8s-logo img { height: 42px; }
	.tp8s-hsearch { width: 100%; max-width: 640px; justify-self: center; height: 46px; padding: 0 18px; }
	.tp8s-langbtn { display: inline-flex !important; }
	.tp8s-nav { display: block; }
	.tp8s-drawer { display: none !important; }
	.tp8s-fcols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 40px 0 34px; }
	.tp8s-news { padding: 34px 0 30px; }
}
@media (min-width: 1280px) {
	.tp8s-navlist { gap: 28px; }
	.tp8s-mega-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.tp8s-drawer-panel, .tp8s-header { animation: none !important; transition: none !important; }
}
