/* ===== Shared building blocks (home slider, catalog, product) ===== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.hp-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.eyebrow{display:block;font-size:14px;font-weight:600;letter-spacing:3px;color:#B3161A;margin-bottom:12px}
.h1{margin:0;font-family:Oswald,sans-serif;font-weight:700;font-size:clamp(40px,6vw,76px);line-height:1;text-transform:uppercase;letter-spacing:-.5px}
.h2{margin:0;font-family:Oswald,sans-serif;font-weight:700;font-size:clamp(32px,4.4vw,54px);line-height:1.05;text-transform:uppercase}
.h3{margin:0;font-family:Oswald,sans-serif;font-weight:700;font-size:clamp(24px,2.6vw,32px);text-transform:uppercase}
.lead{margin:12px 0 0;font-size:17px;line-height:1.6;color:#4E463D;max-width:620px}
.muted{color:#6E655A;font-size:15px;line-height:1.6}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:10px;font:600 16px Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;border:0}
.btn-red{background:#C8191C;color:#fff !important}
.btn-red:hover{background:#A51417}
.btn-green{background:#1F8A4C;color:#fff !important}
.btn-green:hover{background:#18723E;box-shadow:0 12px 26px rgba(31,138,76,.28)}
.btn-ghost{background:transparent;border:2px solid #1A1714;color:#1A1714 !important}
.btn-ghost:hover{background:#1A1714;color:#fff !important}
.navlink.is-active{color:#C8191C !important}
.navlink.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:#C8191C}

/* ===== Product card ===== */
.p-card{display:flex;flex-direction:column;background:#fff;border:1px solid #EFE8DE;border-radius:18px;overflow:hidden;text-decoration:none;color:#1A1714;transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s ease,border-color .4s ease}
.p-card:hover{transform:translateY(-8px);box-shadow:0 26px 50px rgba(60,40,20,.12);border-color:#E9B8B9;color:#1A1714}
.p-img{position:relative;display:block;aspect-ratio:4/3;background:#F8F4EE;overflow:hidden}
.p-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.p-card:hover .p-img img{transform:scale(1.07)}
.p-noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#A89C8C;font-size:14px}
.p-body{display:flex;flex-direction:column;gap:8px;padding:20px 22px 22px;flex:1}
.p-cat{display:inline-block;align-self:flex-start;font-size:11.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#B3161A;background:#FCEBEC;padding:5px 10px;border-radius:999px}
.p-name{font-family:Oswald,sans-serif;font-size:22px;font-weight:600;text-transform:uppercase;line-height:1.15}
.p-desc{font-size:14.5px;line-height:1.55;color:#5C534A;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.p-more{margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:#C8191C}
.p-more svg{transition:transform .25s ease}
.p-card:hover .p-more svg{transform:translateX(4px)}

/* ===== Home: products slider ===== */
.hp-section{padding:100px 0;background:linear-gradient(180deg,#FFFFFF 0%,#FBF6EE 100%);overflow:hidden}
.hp-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:34px}
.hp-ctrl{display:flex;gap:10px}
.round-btn{width:54px;height:54px;border-radius:50%;border:1.5px solid #1A1714;background:#fff;color:#1A1714;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .25s ease}
.round-btn:hover{background:#C8191C;border-color:#C8191C;color:#fff;transform:scale(1.06)}
.hp-track{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:6px 4px 30px;margin:0 -4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hp-track::-webkit-scrollbar{display:none}
.hp-track:focus-visible{outline:2px solid #C8191C;outline-offset:4px;border-radius:12px}
.hp-slide{flex:0 0 calc((100% - 66px)/4);scroll-snap-align:start}
.hp-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;margin-top:6px}
.hp-progress{flex:1 1 200px;max-width:420px;height:4px;border-radius:4px;background:#EADFD0;overflow:hidden}
.hp-progress span{display:block;height:100%;width:25%;background:linear-gradient(90deg,#C8191C,#E8A04C);border-radius:4px;transition:width .4s ease,transform .4s ease}
@media (max-width:1024px){.hp-slide{flex-basis:calc((100% - 44px)/3)}}
@media (max-width:760px){.hp-slide{flex-basis:calc((100% - 22px)/2)}}
@media (max-width:520px){.hp-slide{flex-basis:78%}.hp-ctrl{display:none}.hp-section{padding:70px 0}}

/* ===== Inner pages ===== */
.page{min-height:60vh}
.page-top{padding-top:36px;padding-bottom:90px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14.5px;color:#6E655A;margin-bottom:26px}
.crumbs a{color:#1A1714;text-decoration:none}
.crumbs a:hover{color:#C8191C}
.crumbs b{font-weight:500;color:#8A8074}
.cat-hero{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}
.cat-search{position:relative;flex:0 1 340px;display:flex;align-items:center}
.cat-search svg{position:absolute;left:16px;color:#8A8074;pointer-events:none}
.cat-search input{width:100%;height:52px;padding:0 18px 0 46px;border:1.5px solid #E2D8C9;border-radius:999px;background:rgba(255,255,255,.85);font:500 15.5px Inter,sans-serif;color:#1A1714;outline:none;transition:border-color .2s,box-shadow .2s}
.cat-search input:focus{border-color:#C8191C;box-shadow:0 0 0 4px rgba(200,25,28,.12)}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid #E2D8C9;background:rgba(255,255,255,.8);color:#1A1714;text-decoration:none;font-weight:600;font-size:15px;transition:all .25s ease}
.chip small{font-size:12px;font-weight:700;color:#8A8074;background:#F3ECE1;border-radius:999px;padding:2px 8px}
.chip:hover{border-color:#C8191C;color:#C8191C}
.chip.on{background:#C8191C;border-color:#C8191C;color:#fff;box-shadow:0 10px 22px rgba(200,25,28,.22)}
.chip.on small{background:rgba(255,255,255,.22);color:#fff}
.result-note{margin:-14px 0 24px;color:#5C534A}
.p-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:70px 20px;background:rgba(255,255,255,.75);border:1px dashed #DCCFBD;border-radius:20px}
.empty h2{margin:0;font-family:Oswald,sans-serif;text-transform:uppercase}
.empty p{margin:0;color:#5C534A}
.cta-band{background:#fff;border-top:1px solid #EFE8DE;padding:70px 0}
.cta-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:28px}
.cta-btns{display:flex;flex-wrap:wrap;gap:12px}

/* ===== Product page ===== */
.prod-title{margin-bottom:34px}
.prod-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:36px;align-items:start}
.pv-main{position:relative;background:#fff;border:1px solid #EFE8DE;border-radius:22px;overflow:hidden;aspect-ratio:4/3;box-shadow:0 24px 50px rgba(60,40,20,.08)}
.pv-empty{display:flex;align-items:center;justify-content:center;color:#A89C8C}
.pv-slides{position:absolute;inset:0}
.pv-slide{position:absolute;inset:0;margin:0;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:scale(1.03);transition:opacity .55s ease,transform .8s cubic-bezier(.2,.7,.2,1),visibility .55s}
.pv-slide.on{opacity:1;visibility:visible;transform:none}
.pv-zoom{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:zoom-in}
.pv-zoom img{width:100%;height:100%;object-fit:contain}
.pv-slide figcaption{text-align:center;font-size:18px;font-weight:500;padding:14px 16px 18px;color:#1A1714}
.pv-arrow{position:absolute;top:50%;margin-top:-26px;width:52px;height:52px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#1A1714;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.12);transition:all .25s ease;z-index:2}
.pv-arrow:hover{background:#C8191C;color:#fff;transform:scale(1.07)}
.pv-prev{left:16px}.pv-next{right:16px}
.pv-count{position:absolute;top:16px;right:16px;background:rgba(26,23,20,.72);color:#fff;font-size:13px;padding:6px 12px;border-radius:999px;z-index:2}
.pv-thumbs{display:flex;gap:12px;overflow-x:auto;padding:16px 2px 4px;scrollbar-width:thin}
.pv-thumb{flex:0 0 116px;height:88px;padding:0;border:2px solid transparent;border-radius:12px;background:#fff;overflow:hidden;cursor:pointer;opacity:.7;transition:all .25s ease}
.pv-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pv-thumb:hover{opacity:1}
.pv-thumb.on{border-color:#C8191C;opacity:1;box-shadow:0 8px 18px rgba(200,25,28,.18)}
.prod-info{background:rgba(255,255,255,.88);border:1px solid #EFE8DE;border-radius:22px;padding:30px;display:flex;flex-direction:column;gap:16px;position:sticky;top:96px}
.spec-title{margin:0;font-family:Oswald,sans-serif;font-size:28px;font-weight:700;text-transform:uppercase}
.spec-table{width:100%;border-collapse:collapse;font-size:15.5px}
.spec-table thead th{text-align:left;font-weight:700;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:#6E655A;padding:0 10px 10px 0;border-bottom:2px solid #1A1714}
.spec-table tbody th{text-align:left;font-weight:500;color:#4E463D;padding:13px 12px 13px 0;border-bottom:1px solid #EAE2D6;width:52%;vertical-align:top}
.spec-table td{padding:13px 0;border-bottom:1px solid #EAE2D6;font-weight:600;color:#1A1714;vertical-align:top}
.spec-table tbody tr{transition:background .2s}
.spec-table tbody tr:hover{background:#FBF6EE}
.prod-short{margin:4px 0 0;font-size:15.5px;line-height:1.65;color:#4E463D}
.prod-cta{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.prod-desc{margin-top:60px;max-width:860px}
.prod-desc-text{margin-top:16px;font-size:16.5px;line-height:1.75;color:#3A332B}
.related{margin-top:80px}
.related .hp-slide{flex-basis:calc((100% - 66px)/4)}
.link-arrow{font-weight:600;text-decoration:none}
@media (max-width:960px){.prod-layout{grid-template-columns:1fr}.prod-info{position:static}}
@media (max-width:640px){
.page-top{padding-top:20px;padding-bottom:60px}
.pv-main{aspect-ratio:1/1;border-radius:16px}
.pv-arrow{width:44px;height:44px;margin-top:-22px}.pv-prev{left:8px}.pv-next{right:8px}
.pv-thumb{flex-basis:84px;height:66px}
.prod-info{padding:22px}
.spec-table{font-size:14.5px}
.related .hp-slide{flex-basis:78%}
.cat-search{flex-basis:100%}
}

/* ===== Language switcher ===== */
.lang-sw{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #E6DCCD;border-radius:999px;background:#fff}
.lang-sw a{min-width:38px;height:34px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font:700 13px Inter,'Cairo',sans-serif;color:#1A1714;text-decoration:none;transition:all .2s ease}
.lang-sw a:hover{color:#C8191C}
.lang-sw a.on{background:#C8191C;color:#fff}
.lang-sw-panel{margin-top:16px;justify-content:space-between}
.lang-sw-panel a{flex:1;height:44px;font-size:15px}
.lang-sw-top{margin-inline-start:6px}
@media (max-width:640px){.lang-sw-top{display:none}}
.arr{display:inline-block}

/* ===== Arabic (right-to-left) ===== */
html[lang=ar] body,
html[lang=ar] #pw-root,
html[lang=ar] #pw-root *:not(svg):not(path):not(circle):not(rect):not(i){font-family:'Cairo',Tahoma,'Segoe UI',sans-serif !important;letter-spacing:0 !important}
html[lang=ar] .h1,html[lang=ar] .h2,html[lang=ar] h1,html[lang=ar] h2{line-height:1.25 !important}
html[dir=rtl] .p-more svg,html[dir=rtl] .arrow-link svg,html[dir=rtl] [data-slide] svg,html[dir=rtl] .pv-arrow svg,html[dir=rtl] .lb-prev svg,html[dir=rtl] .lb-next svg,html[dir=rtl] .arr{transform:scaleX(-1)}
html[dir=rtl] .p-card:hover .p-more svg{transform:scaleX(-1) translateX(4px)}
html[dir=rtl] .pv-prev{left:auto;right:16px}
html[dir=rtl] .pv-next{right:auto;left:16px}
html[dir=rtl] .lb-prev{left:auto;right:22px}
html[dir=rtl] .lb-next{right:auto;left:22px}
html[dir=rtl] .pv-count{right:auto;left:16px}
html[dir=rtl] .spec-table th,html[dir=rtl] .spec-table thead th{text-align:right}
html[dir=rtl] .spec-table thead th{padding:0 0 10px 10px}
html[dir=rtl] .spec-table tbody th{padding:13px 0 13px 12px}
html[dir=rtl] .pg-cap{text-align:right}
html[dir=rtl] .pg-tag{left:auto;right:12px}
html[dir=rtl] .cat-search svg{left:auto;right:16px}
html[dir=rtl] .cat-search input{padding:0 46px 0 18px}
html[dir=rtl] .oc-panel{right:auto;left:0;transform:translateX(-105%);box-shadow:20px 0 50px rgba(60,40,20,.18)}
html[dir=rtl] .oc-open .oc-panel{transform:none}
html[dir=rtl] .to-top{right:auto;left:20px}
html[dir=rtl] .marquee{direction:ltr}
html[dir=rtl] .marquee span{direction:rtl;unicode-bidi:isolate}
html[dir=rtl] .navlink::after{transform-origin:100% 50%}
@media (max-width:640px){html[dir=rtl] .pv-prev{right:8px}html[dir=rtl] .pv-next{left:8px}html[dir=rtl] .lb-prev{right:16px;left:auto}html[dir=rtl] .lb-next{left:16px;right:auto}html[dir=rtl] .to-top{left:16px}}
html[dir=rtl] .pv-count{direction:ltr}
