/* Rawaa product and checkout interfaces — uses existing theme tokens. */
.commerce-page{background:var(--c-bg)}
.commerce-page [hidden]{display:none!important}
.commerce-top{padding:96px 0 24px;color:var(--c-cream);background:radial-gradient(ellipse at 75% 20%,#45243a,var(--c-fig) 72%)}
.commerce-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:var(--fs-sm);color:var(--c-cream-2)}
.commerce-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.commerce-breadcrumb [aria-current]{color:var(--c-cream)}
.commerce-eyebrow{color:#9b4828;font-size:var(--fs-xs);font-weight:600;text-transform:uppercase;letter-spacing:.12em;margin-bottom:10px}
.commerce-eyebrow span{margin-inline-end:5px}
.product-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(28px,5vw,78px);align-items:start;padding-block:clamp(26px,4vw,56px)}
.product-gallery{min-width:0}
.product-gallery__stage{position:relative;aspect-ratio:1;background:var(--c-sand);border:1px solid var(--c-line);border-radius:var(--r-lg);overflow:hidden;isolation:isolate;display:grid;place-items:center;touch-action:pan-y}
.product-gallery__stage>img,.product-gallery__stage>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.product-gallery__stage>img{user-select:none;-webkit-user-drag:none}
.product-gallery__stage>video{background:var(--c-fig);z-index:2;touch-action:auto}
.product-gallery__tag{position:absolute;inset-inline-start:16px;top:16px;border:1px solid var(--c-line);background:#fbf6f0e8;color:var(--c-ink);font-size:var(--fs-sm);border-radius:99px;padding:6px 13px;z-index:1}
.media-round{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--c-line);border-radius:50%;background:#fbf6f0ed;color:var(--c-fig);transition:background .25s,color .25s,transform .25s;box-shadow:0 4px 16px #2a15200c;flex:0 0 auto}
.media-round svg{width:20px;height:20px}
.media-round:focus-visible{border-radius:50%}
.media-round--zoom{position:absolute;top:16px;inset-inline-end:16px;z-index:3}
.product-gallery__arrows{position:absolute;inset-inline:16px;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;z-index:3}
.product-gallery__arrows>button{pointer-events:auto}
.product-gallery__counter{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);background:#2a1520bc;color:var(--c-cream);border:1px solid #fbf3ea47;border-radius:99px;padding:6px 12px;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;z-index:3}
.product-gallery__rail{display:flex;gap:10px;padding:5px 4px 8px;margin:10px -4px 0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.product-gallery__thumb{width:clamp(66px,7vw,88px);aspect-ratio:1;flex:0 0 auto;border:1px solid var(--c-line);border-radius:14px;padding:3px;background:var(--c-paper);overflow:hidden;transition:border-color .2s,box-shadow .2s}
.product-gallery__thumb img{width:100%;height:100%;object-fit:contain;border-radius:10px;background:var(--c-sand)}
.product-gallery__thumb[aria-pressed="true"]{border-color:var(--c-fig);box-shadow:0 0 0 1px var(--c-fig)}
.product-gallery__video{display:grid;place-content:center;justify-items:center;gap:4px;background:var(--c-fig);color:var(--c-cream);font-size:var(--fs-xs)}
.product-gallery__video svg{width:27px;height:27px}
.product-gallery__video[aria-pressed="true"]{box-shadow:0 0 0 2px var(--c-apricot)}
.product-gallery__video:disabled{background:var(--c-sand);color:var(--c-muted);cursor:not-allowed}
.product-gallery__hint{color:var(--c-muted);font-size:var(--fs-sm);margin-top:7px}
.product-gallery.is-video .product-gallery__arrows,.product-gallery.is-video .product-gallery__counter,.product-gallery.is-video .media-round--zoom{display:none}
.product-lightbox{width:min(94vw,900px);max-width:none;max-height:94dvh;margin:auto;border:1px solid var(--c-line);padding:0;border-radius:24px;background:var(--c-paper);color:var(--c-ink);overflow:auto}
.product-lightbox::backdrop{background:#2a1520cc}
.product-lightbox__inner{position:relative;padding:14px;display:grid;justify-items:center;gap:12px}
.product-lightbox__inner>img{width:100%;max-height:72dvh;height:auto;object-fit:contain;border-radius:16px;background:var(--c-sand)}
.product-lightbox__close{position:absolute;top:24px;inset-inline-end:24px}
.product-lightbox__nav{display:flex;align-items:center;justify-content:center;gap:20px;font-size:var(--fs-sm)}
.product-info{padding-top:5px;min-width:0}
.product-info__categories{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}
.product-info__categories a{padding:5px 10px;border-radius:99px;border:1px solid var(--c-line);background:var(--c-paper);color:var(--c-muted);font-size:var(--fs-xs)}
.product-info h1{font:500 clamp(2.1rem,3.7vw,4rem)/1.08 var(--font-body);letter-spacing:-.035em;overflow-wrap:anywhere}
.product-info__price{color:var(--c-fig);font-size:clamp(1.45rem,2vw,2rem);font-weight:600;font-variant-numeric:tabular-nums;margin-top:16px;text-align:start}
.product-info__description{color:var(--c-muted);line-height:1.7;margin-top:18px}
.product-specs{display:grid;gap:0;margin:22px 0 0;border-top:1px solid var(--c-line)}
.product-specs>div{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(0,1fr);gap:15px;padding-block:11px;border-bottom:1px solid var(--c-line);font-size:var(--fs-sm)}
.product-specs dt{color:var(--c-muted)}
.product-specs dd{margin:0;font-weight:500}
.product-buy{display:grid;gap:10px;margin-top:24px}
.product-buy__label{font-size:var(--fs-sm);font-weight:600}
.product-buy__controls{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
.commerce-qty{display:flex;align-items:center;justify-content:center;height:52px;border:1px solid var(--c-line);border-radius:99px;background:var(--c-paper);direction:ltr;overflow:hidden}
.commerce-qty button{width:40px;height:100%;font-size:1.2rem}
.commerce-qty input{border:0;outline:0;background:transparent;width:42px;min-width:0;text-align:center;font-size:1rem;font-variant-numeric:tabular-nums;appearance:textfield}
.commerce-qty input::-webkit-inner-spin-button,.commerce-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.product-buy .btn,.commerce-outline{min-height:52px;justify-content:center}
.product-buy__add svg{width:20px;height:20px}
.commerce-outline{display:flex;align-items:center;gap:9px;justify-content:center;border:1px solid var(--c-fig);border-radius:99px;padding:12px 20px;color:var(--c-fig);font-weight:600;font-size:var(--fs-sm);transition:background .25s,color .25s}
.commerce-outline svg{width:18px;height:18px}
.commerce-page button:disabled:not(.product-gallery__video){cursor:not-allowed;opacity:.5}
.product-info__checkout,.checkout-login a,.checkout-policy a{text-decoration:underline;text-underline-offset:4px}
.product-info__checkout{text-align:center;font-size:var(--fs-sm);color:var(--c-muted);padding:7px}
.product-info__service{margin-top:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.product-info__service a{display:flex;align-items:center;gap:9px;border:1px solid var(--c-line);border-radius:14px;padding:12px;font-size:var(--fs-xs);background:var(--c-paper)}
.product-info__service svg{width:21px;height:21px;flex:0 0 21px}
.product-details{padding-block:clamp(24px,4vw,52px) clamp(44px,7vw,88px);border-top:1px solid var(--c-line)}
.product-details__heading{max-width:760px;margin-bottom:24px}
.product-details__heading>p:last-child{margin-top:12px;color:var(--c-muted)}
.product-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.product-detail-card{border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-paper);padding:clamp(20px,2.8vw,34px)}
.product-detail-card h3{font-size:var(--fs-lg);font-weight:500;margin-bottom:12px}
.product-detail-card p{color:var(--c-muted);line-height:1.7}
.commerce-notice{display:flex;align-items:flex-start;gap:12px;padding:17px 19px;background:var(--c-sand);border:1px solid var(--c-line);border-radius:16px;margin-top:20px;font-size:var(--fs-sm)}
.commerce-notice>svg{width:21px;height:21px;flex:0 0 21px;margin-top:2px}
.commerce-notice p{color:var(--c-muted);margin-top:5px;line-height:1.6}
.product-reference{margin-top:20px;background:var(--c-paper);border:1px solid var(--c-line);border-radius:var(--r-lg);padding:20px}
.product-reference summary{font-weight:600;cursor:pointer}
.product-reference p{margin:12px 0;color:var(--c-muted);font-size:var(--fs-sm)}
.product-reference img{width:min(100%,760px);height:auto;margin-inline:auto;border-radius:14px}
.product-details__action{margin-top:26px;padding:clamp(20px,3vw,36px);background:var(--c-sand);border-radius:var(--r-lg);display:flex;align-items:center;justify-content:space-between;gap:20px}
.product-details__action h2{font-size:clamp(1.5rem,3vw,2.65rem)}
.product-details__action .btn{flex:0 0 auto;min-height:48px}
.commerce-status{background:var(--c-sand);color:var(--c-ink);border:1px solid var(--c-line);border-radius:12px;padding:12px 14px;font-size:var(--fs-sm);line-height:1.6}
.checkout-top{padding-bottom:30px}
.checkout-top h1{margin-top:20px;color:var(--c-cream);font:500 clamp(2.2rem,4.7vw,4.5rem)/1.08 var(--font-body);letter-spacing:-.035em}
.checkout-top h1 em{color:var(--c-apricot)}
.checkout-content{padding-block:26px clamp(46px,6vw,80px)}
.checkout-progress{display:flex;align-items:center;gap:12px;margin-bottom:26px;font-size:var(--fs-sm);color:var(--c-muted)}
.checkout-progress>a,.checkout-progress>span[aria-current],.checkout-progress__pending{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.checkout-progress>a>span,.checkout-progress>span>span{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--c-line);border-radius:50%;background:var(--c-paper);font-size:var(--fs-xs)}
.checkout-progress [aria-current]{color:var(--c-fig);font-weight:600}
.checkout-progress [aria-current]>span{color:var(--c-cream);background:var(--c-fig)}
.checkout-progress__line{height:1px;width:clamp(12px,4vw,64px);background:var(--c-line)}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:clamp(18px,3vw,42px);align-items:start}
.checkout-form{display:grid;gap:15px;min-width:0}
.checkout-preview-notice{margin-top:0}
.checkout-card,.checkout-summary{background:var(--c-paper);border:1px solid var(--c-line);border-radius:var(--r-lg);padding:clamp(19px,2.5vw,32px);min-width:0}
.checkout-card__heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
.checkout-step{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:var(--c-sand);border:1px solid var(--c-line);border-radius:50%;color:var(--c-fig);font-size:var(--fs-sm)}
.checkout-card h2,.checkout-summary h2{font-size:clamp(1.3rem,2vw,1.9rem);line-height:1.2;font-weight:500}
.checkout-card__heading p{color:var(--c-muted);font-size:var(--fs-sm);margin-top:6px}
.checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.checkout-fields label{display:grid;gap:7px;font-size:var(--fs-sm);font-weight:500;min-width:0}
.checkout-fields input,.checkout-fields select,.checkout-fields textarea{width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid var(--c-line);border-radius:13px;font:400 1rem/1.5 var(--font-body);background:var(--c-bg);color:var(--c-ink)}
.checkout-fields textarea{resize:vertical;min-height:86px}
.checkout-fields input:read-only{color:var(--c-muted)}
.checkout-fields input[type="email"],.checkout-fields input[type="tel"]{direction:ltr;text-align:start}
.checkout-full{grid-column:1/-1}
.checkout-login,.checkout-policy{color:var(--c-muted);font-size:var(--fs-sm);margin-top:18px}
.checkout-payment{display:flex;align-items:center;gap:12px;border:1px solid var(--c-fig);border-radius:15px;background:var(--c-bg);padding:15px}
.checkout-payment__icon{display:grid;place-items:center;width:41px;height:41px;border-radius:50%;background:var(--c-sand);flex:0 0 41px}
.checkout-payment__icon svg{width:22px;height:22px}
.checkout-payment>div{flex:1}
.checkout-payment p{color:var(--c-muted);font-size:var(--fs-xs);margin-top:5px}
.checkout-payment__radio{width:19px;height:19px;border-radius:50%;border:1px solid var(--c-fig);background:var(--c-fig);box-shadow:inset 0 0 0 4px var(--c-paper);flex:0 0 19px}
.checkout-submit{min-height:52px;justify-content:center}
.checkout-summary{position:sticky;top:90px}
.checkout-summary__heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:18px;border-bottom:1px solid var(--c-line)}
.checkout-summary__heading>span{display:grid;place-items:center;min-width:30px;height:30px;padding-inline:7px;background:var(--c-fig);color:var(--c-cream);border-radius:99px;font-size:var(--fs-xs)}
.checkout-items{display:grid}
.checkout-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:start;padding-block:17px;border-bottom:1px solid var(--c-line)}
.checkout-item>a,.checkout-item>img{display:block;width:72px;aspect-ratio:1;background:var(--c-sand);border-radius:12px;overflow:hidden}
.checkout-item img{width:100%;height:100%;object-fit:contain}
.checkout-item__name{display:block;font-size:var(--fs-sm);font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.checkout-item__unit{display:block;color:var(--c-muted);font-size:var(--fs-xs);margin:5px 0 8px}
.checkout-item__price{font-variant-numeric:tabular-nums;font-weight:600;font-size:var(--fs-sm);white-space:nowrap}
.checkout-item__controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.checkout-item__qty{display:inline-flex;align-items:center;border:1px solid var(--c-line);border-radius:99px;overflow:hidden;direction:ltr}
.checkout-item__qty button{width:30px;height:30px}
.checkout-item__qty span{min-width:25px;text-align:center;font-size:var(--fs-xs)}
.checkout-item__remove{color:var(--c-muted);font-size:var(--fs-xs);text-decoration:underline;text-underline-offset:3px}
.checkout-totals{margin:17px 0 0;display:grid;gap:13px;font-size:var(--fs-sm)}
.checkout-totals>div{display:flex;justify-content:space-between;align-items:center;gap:10px}
.checkout-totals dt{color:var(--c-muted)}
.checkout-totals dd{margin:0;font-weight:500;text-align:end}
.checkout-totals .checkout-total{border-top:1px solid var(--c-line);padding-top:16px;margin-top:3px;font-size:var(--fs-md)}
.checkout-total dt,.checkout-total dd{color:var(--c-fig);font-weight:600}
.checkout-summary__note{color:var(--c-muted);font-size:var(--fs-xs);line-height:1.6;margin-block:14px 18px}
.checkout-empty{display:grid;justify-items:center;text-align:center;gap:14px;padding:clamp(40px,8vw,88px) 20px;background:var(--c-paper);border:1px solid var(--c-line);border-radius:var(--r-lg)}
.checkout-empty__icon{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:var(--c-sand)}
.checkout-empty__icon svg{width:29px;height:29px}
.checkout-empty p{color:var(--c-muted)}
@media (hover:hover){.media-round:not(:disabled):hover,.commerce-outline:not(:disabled):hover{background:var(--c-fig);color:var(--c-cream)}.commerce-qty button:hover,.checkout-item__qty button:hover{background:var(--c-sand)}.product-info__categories a:hover,.product-info__service a:hover{background:var(--c-sand)}.checkout-item__name:hover{text-decoration:underline}}
html[lang="ar"] .commerce-eyebrow,html[lang="ar"] .product-info h1,html[lang="ar"] .checkout-top h1{letter-spacing:normal;line-height:1.3}
html[lang="ar"] .commerce-outline svg{transform:scaleX(-1)}
html[lang="ar"] .product-info__price{text-align:right}
@media(max-width:920px){
.product-layout{grid-template-columns:minmax(0,1fr);gap:25px;max-width:720px}
.checkout-layout{grid-template-columns:minmax(0,1fr)}
.checkout-summary{position:static;grid-row:1}
}
@media(max-width:820px){
.commerce-top{padding:86px 0 20px}
.product-layout{padding-block:18px 30px}
.product-gallery__thumb{width:65px}
.product-gallery__rail{gap:8px}
.product-info h1{font-size:clamp(1.9rem,7.8vw,3rem);line-height:1.18}
.product-info__price{margin-top:12px}
.product-info__description{margin-top:13px}
.product-details__action{align-items:flex-start;flex-direction:column}
.product-details__action .btn{width:100%;justify-content:center}
.media-round{width:38px;height:38px}
.media-round svg{width:18px;height:18px}
.product-gallery__arrows{inset-inline:10px}
.media-round--zoom{top:10px;inset-inline-end:10px}
.product-gallery__tag{top:10px;inset-inline-start:10px}
.checkout-content{padding-top:19px}
.checkout-top h1{margin-top:14px;font-size:clamp(2rem,8vw,3rem)}
.checkout-progress{gap:7px;font-size:.78rem;margin-bottom:18px}
.checkout-progress>a,.checkout-progress>span[aria-current],.checkout-progress__pending{gap:5px}
.checkout-progress>a>span,.checkout-progress>span>span{width:24px;height:24px}
.checkout-progress__line{flex:1;min-width:5px}
.checkout-card,.checkout-summary{padding:17px}
}
@media(max-width:480px){
.checkout-fields{grid-template-columns:minmax(0,1fr)}
.checkout-item{grid-template-columns:56px minmax(0,1fr) auto;gap:9px}
.checkout-item>a,.checkout-item>img{width:56px}
.checkout-item__price{font-size:.8rem}
.product-buy__controls{grid-template-columns:118px minmax(0,1fr)}
.commerce-qty button{width:38px}
.commerce-qty input{width:36px}
.product-info__service a{padding:10px}
.checkout-progress__pending{white-space:normal}
}
@media(prefers-reduced-motion:no-preference){.product-info,.product-gallery,.checkout-content{animation:commerce-enter .55s var(--ease-out) backwards}}
@keyframes commerce-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.media-round,.commerce-outline,.product-gallery__thumb{transition:none}}
