/*
 * @almadah-clean-room — كُتب من الصفر من وصف السلوك، لا نسخًا من كود المورّد (09/11/2026)
 *
 * تنسيق صفحة المنتج الجديدة (resources/views/almadah/product). كل الأصناف بالبادئة am- ولا تعتمد على
 * ملفات المورّد. الألوان من tokens طبقة almadah-clean.css (--c-*) مع قيم احتياطية — لا تركواز هنا
 * (قاعدة المالك 25/10: التركواز للهيدر والفوتر فقط).
 */

.am-pdp, .am-sticky, .am-dialog {
    --am-ink: var(--c-ink, #0f1111);
    --am-ink-2: var(--c-ink-2, #565959);
    --am-line: var(--c-line, #d5d9d9);
    --am-line-soft: var(--c-line-soft, #e7e7e7);
    --am-band: var(--c-band, #f7f7f7);
    --am-link: var(--c-link, #0b5cad);
    --am-link-h: var(--c-link-h, #c7511f);
    --am-sale: var(--c-sale, #cc0c39);
    --am-ok: var(--c-ok, #007600);
    --am-yellow: var(--c-yellow, #ffd814);
    --am-yellow-h: var(--c-yellow-h, #f7ca00);
    --am-orange: var(--c-orange, #ffa41c);
    --am-orange-h: var(--c-orange-h, #fa8900);
    --am-radius: var(--r-box, 8px);
}
.am-pdp {
    color: var(--am-ink);
    font-size: 14px;
    line-height: 1.5;
}
.am-pdp *, .am-pdp *::before, .am-pdp *::after { box-sizing: border-box; }
.am-pdp p { margin: 0; }
.am-pdp h1, .am-pdp h2, .am-pdp h3 { margin: 0; color: var(--am-ink); }
.am-pdp button { font: inherit; color: inherit; cursor: pointer; }
.am-pdp img { max-width: 100%; }

.am-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ───────── الجزء العلوي: معرض + معلومات ───────── */
.am-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding-top: 30px; padding-bottom: 24px; }
.am-top__media, .am-top__info { min-width: 0; }
.am-top__media { padding-top: 36px; }

.am-crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; }
.am-crumbs li { color: var(--am-ink-2); }
.am-crumbs li + li::before { content: "\203A"; margin-inline-end: 4px; color: var(--am-ink-2); }
.am-crumbs a { color: var(--am-ink-2); text-decoration: none; }
.am-crumbs a:hover { color: var(--am-ink); text-decoration: underline; }
.am-crumbs [aria-current] { color: var(--am-ink); }

/* المعرض */
.am-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
.am-gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; max-height: 527px; overflow-y: auto; scrollbar-width: none; padding: 2px; }
.am-gallery__thumbs::-webkit-scrollbar { display: none; }
.am-gallery__stage { grid-column: 2; grid-row: 1; position: relative; }
.am-gallery__thumb { position: relative; flex: 0 0 auto; width: 66px; height: 66px; padding: 4px; border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.am-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.am-gallery__thumb.is-on { border: 2px solid var(--am-ink); }
.am-gallery__play { position: absolute; font-size: 28px; color: var(--am-ink-2); }
.am-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); background: #fff; aspect-ratio: 475 / 527; outline: none; }
.am-gallery__track::-webkit-scrollbar { display: none; }
.am-gallery__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.am-gallery__slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.am-gallery__slide video, .am-gallery__slide iframe { width: 100%; height: 100%; border: 0; background: #000; }
.am-gallery__enlarge { position: absolute; bottom: 24px; inset-inline-end: 24px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.am-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--am-ink-2); font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: .8; }
.am-gallery__nav:hover { opacity: 1; }
.am-gallery__nav--prev { inset-inline-start: 8px; }
.am-gallery__nav--next { inset-inline-end: 8px; }

/* أدوات أعلى المعلومات */
.am-tools { display: flex; justify-content: flex-end; gap: 22px; padding-bottom: 20px; }
.am-tool { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--am-ink-2) !important; }
.am-tool i { font-size: 16px; }
.am-tool:hover, .am-tool.is-on { color: var(--am-ink) !important; }
.am-tool.is-on i { color: var(--am-sale); }

.am-title { font-size: 20px !important; font-weight: 600; line-height: 1.35; margin-bottom: 16px !important; overflow-wrap: anywhere; }

.am-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.am-brandline { display: flex; gap: 8px; }
.am-brandline a, .am-pdp .am-link, .am-link, .am-pdp .am-ask { color: var(--am-link); text-decoration: none; background: none; border: 0; padding: 0; }
.am-brandline a:hover, .am-link:hover, .am-ask:hover { color: var(--am-link-h); text-decoration: underline; }
.am-ask { display: inline-flex; align-items: center; gap: 6px; }
.am-ask i { font-size: 18px; color: #0080fe; }

.am-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; color: var(--am-ink-2); }
.am-rating-row__num b { color: var(--am-ink); }
.am-stars { display: inline-flex; gap: 2px; margin-inline-end: 8px; font-size: 18px; color: #c9cdd2; direction: ltr; }
.am-stars .is-full { color: #ffa41c; }
.am-stars .is-half { background: linear-gradient(90deg, #ffa41c 50%, #c9cdd2 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.am-deals { margin-top: 24px; display: grid; gap: 8px; }
.am-deal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 20px; border-radius: var(--am-radius); font-weight: 700; }
.am-deal--today { background: var(--am-ink); color: var(--am-orange); }
.am-deal--flash { background: var(--am-sale); color: #fff; }
.am-deal--flash.is-over { opacity: .6; }

/* التسعير */
.am-label { font-size: 16px !important; font-weight: 600; color: var(--am-ink-2) !important; margin: 50px 0 16px !important; }
.am-deals + .am-buy-form .am-label { margin-top: 24px !important; }
.am-pricebox { background: var(--am-band); border-radius: var(--am-radius); padding: 20px; }
.am-pricebox__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.am-price { font-size: 20px; font-weight: 600; color: var(--am-ink); }
.am-price__from { font-size: 14px; color: var(--am-ink-2); margin-inline-end: 4px; }
.am-price__unit { font-size: 16px; font-weight: 400; opacity: .7; }
.am-price__old { display: block; font-size: 14px; color: var(--am-ink-2); }
.am-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.am-badge { display: inline-block; padding: 6px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.am-badge--sale { background: var(--am-sale); color: #fff; }
.am-badge--points { background: rgba(255, 164, 28, .08); }
.am-note { font-size: 12px; color: var(--am-ink-2); margin-top: 12px !important; }

.am-wholesale { width: 100%; margin-top: 24px; border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); border-collapse: separate; border-spacing: 0; }
.am-wholesale th, .am-wholesale td { padding: 8px 14px; text-align: start; border-top: 1px solid var(--am-line-soft); }
.am-wholesale thead th { border-top: 0; font-weight: 700; }

/* المتغيّرات */
.am-options-head { display: flex; justify-content: space-between; align-items: flex-end; }
.am-options-head .am-label { margin: 24px 0 8px !important; }
.am-options { border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); padding: 10px 20px; position: relative; }
.am-options.is-folded { max-height: 260px; overflow: hidden; }
.am-optgroup { border: 0; margin: 0; padding: 10px 0; min-width: 0; }
.am-optgroup legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; float: none; width: auto; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.am-chip { position: relative; margin: 0; cursor: pointer; }
.am-chip input { position: absolute; opacity: 0; pointer-events: none; }
.am-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 15px; border: 1px solid var(--am-line); border-radius: 4px; background: #fff; }
.am-chip input:checked + span, .am-chip.is-on span { border-color: var(--am-ink); box-shadow: inset 0 0 0 1px var(--am-ink); }
.am-chip input:focus-visible + span { outline: 2px solid var(--am-link); outline-offset: 2px; }
.am-swatch { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.am-options__more { position: absolute; inset-inline: 0; bottom: 0; width: 100%; padding: 10px; border: 0; background: linear-gradient(transparent, #fff 40%); color: var(--am-link); font-size: 12px; }
.am-options:not(.is-folded) .am-options__more { position: static; background: none; }

/* صندوق الشراء */
.am-buybox { margin-top: 24px; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 15px 20px 20px; }
.am-buybox__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; padding-bottom: 10px; }
.am-buybox__total { display: block; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.am-avail { font-weight: 600; color: var(--am-ok); }
.am-minqty { color: var(--am-ink-2); }
.am-minqty b { color: var(--am-ink); }
.am-qty { display: flex; align-items: center; gap: 0; margin-inline-start: auto; }
.am-buybox__top > #other-offers, .am-buybox__top > .am-wa-order { flex: 0 0 100%; margin-bottom: 0 !important; }
.am-qty__label { color: var(--am-ink-2); padding-inline-end: 0; }
.am-stepper { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--am-line-soft); border-radius: 4px; margin-inline-start: 0; }
.am-stepper button { width: 38px; height: 100%; border: 0; background: none; color: #9d9da6; font-size: 14px; }
.am-stepper button:disabled { opacity: .45; cursor: default; }
.am-stepper input { width: 70px; height: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--am-ink); -moz-appearance: textfield; appearance: textfield; background: transparent; }
.am-stepper input::-webkit-outer-spin-button, .am-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.am-picked { border-top: 1px dashed var(--am-line); padding: 10px 0 20px; color: var(--am-ink-2); }
.am-picked p { font-weight: 600; color: var(--am-ink); margin-bottom: 6px; }
.am-picked i { color: #007bff; }
.am-wa-order { display: inline-flex; gap: 4px; align-items: center; margin-bottom: 10px; }

.am-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-actions .am-btn--oos, .am-actions .am-btn--wa { display: none; grid-column: 1 / -1; border-radius: 4px; min-height: 56px; }
.am-actions.is-oos .am-btn--buy, .am-actions.is-oos .am-btn--cart { display: none; }
.am-actions.is-oos .am-btn--oos, .am-actions.is-oos .am-btn--wa { display: flex; }

.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-btn, 999px); font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background-color .15s ease, filter .15s ease; }
.am-btn--buy { background: var(--am-orange); border-color: var(--c-orange-bd, #ff8f00); color: var(--am-ink) !important; }
.am-btn--buy:hover { background: var(--am-orange-h); }
.am-btn--cart { background: var(--am-yellow); border-color: var(--c-yellow-bd, #fcd200); color: var(--am-ink) !important; }
.am-btn--cart:hover { background: var(--am-yellow-h); }
.am-btn--oos { background: var(--am-band); color: var(--am-ink-2) !important; border-color: var(--am-line-soft); cursor: not-allowed; }
.am-btn--wa { background: #1fa855; color: #fff !important; }
.am-btn--wa i { font-size: 20px; }
.am-btn--dark { background: var(--am-ink); color: #fff !important; }
.am-btn--muted { background: var(--am-ink-2); color: #fff !important; }
.am-btn--block { display: flex; width: 100%; margin-top: 16px; }
.am-btn--sm { min-height: 38px; padding: 7px 18px; }
.am-btn.is-busy { filter: saturate(.6); cursor: progress; }

/* التقسيط والشحن */
.am-bnpl { margin-top: 8px; }
.am-bnpl-off { margin-top: 8px !important; }
.am-buy-form .nsbh-widget { margin-top: 8px; }
.am-ship { margin-top: 16px !important; }
.am-ship b { margin-inline-start: 8px; }
.am-info { border: 0; background: none; padding: 0 4px; color: var(--am-ink-2); }

/* البائع والعلامة */
.am-parties { display: flex; gap: 10px; padding: 20px 0; }
.am-party { flex: 1 1 0; display: flex; align-items: center; gap: 16px; background: var(--am-band); border-radius: var(--am-radius); padding: 20px; min-width: 0; }
.am-party__logo { flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--am-line-soft); border-radius: 4px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.am-party__logo img { width: 100%; height: 100%; object-fit: contain; }
.am-party__name { font-weight: 700; color: var(--am-link); margin-inline-start: 6px; text-decoration: none; }
.am-muted { color: var(--am-ink-2); }

.am-assure { padding-bottom: 20px; }
.am-assure__warranty { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px dashed var(--am-line); }
.am-assure__title { font-weight: 700; margin-bottom: 8px !important; }
.am-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 25px; }
.am-checks li { display: flex; align-items: center; gap: 8px; }
.am-checks i { color: var(--am-ok); font-size: 18px; }

.am-refund { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--am-band); border-radius: var(--am-radius); padding: 15px 20px; }
.am-refund__sticker { border: 0; background: none; padding: 0; height: 40px; }
.am-refund__sticker img { height: 40px; width: auto; }
.am-refund__links { display: flex; gap: 8px; align-items: center; }
.am-returns { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 16px; font-size: 13px; color: var(--am-ink-2); }
.am-returns i { font-size: 18px; }

/* ───────── الأقسام ───────── */
.am-tabs { background: #fff; margin-top: 8px; }
.am-tabs__list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--am-line-soft); }
.am-tabs__list::-webkit-scrollbar { display: none; }
.am-tabs__list li { flex: 0 0 auto; }
.am-tabs__list a { display: inline-block; padding: 20px 0; font-size: 16px; font-weight: 700; color: var(--am-ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.am-tabs__list a:hover { color: var(--am-ink); }
.am-tabs__list a.is-on { color: var(--am-ink); border-bottom-color: var(--am-ink); }

.am-sections { display: flex; flex-direction: column; gap: 32px; padding-bottom: 48px; }
.am-card { background: #fff; border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); padding: 20px 30px; scroll-margin-top: 150px; min-width: 0; }
#description.am-card { padding: 30px; }
.am-card__title { font-size: 20px !important; font-weight: 700; margin-bottom: 16px !important; }
.am-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.am-card__head .am-card__title { margin: 0 !important; }
.am-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--am-ink); color: #fff !important; font-size: 12px; text-decoration: none !important; border: 1px solid transparent; }
.am-pill--line { background: #fff; color: var(--am-ink) !important; border-color: var(--am-line); }
.am-empty { text-align: center; padding: 8px 0; color: var(--am-ink-2); }
.am-empty b { color: var(--am-ink); font-size: 16px; }

.am-richtext { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; text-align: start; }
.am-richtext img { height: auto; }
.am-richtext table { border-collapse: collapse; max-width: 100%; }
.am-richtext td, .am-richtext th { padding: 4px 8px; vertical-align: top; }
.am-richtext h1, .am-richtext h2, .am-richtext h3 { margin: 16px 0 8px; font-weight: 700; }
.am-richtext h2 { font-size: 24px; }
.am-richtext h3 { font-size: 20px; }
.am-richtext p { margin: 0 0 8px; }
.am-richtext ul, .am-richtext ol { padding-inline-start: 22px; }

/* صف البطاقات */
.am-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.am-mini { flex: 0 0 170px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; color: var(--am-ink) !important; text-decoration: none !important; }
.am-mini__img { display: block; width: 170px; height: 170px; border-radius: var(--am-radius); background: var(--am-band); overflow: hidden; }
.am-mini__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.am-mini:hover .am-mini__img img { transform: scale(1.04); }
.am-mini__name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 4px; }
.am-mini:hover .am-mini__name { color: var(--am-link-h); }
.am-mini__sub { font-size: 12px; color: var(--am-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-mini__price { font-size: 14px; font-weight: 700; }
.am-mini__price del { font-weight: 700; opacity: .6; margin-inline-start: 4px; }

/* التقييمات */
.am-rv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.am-rv-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.am-rv-score strong { font-size: 48px; font-weight: 700; line-height: 1; }
.am-rv-score span { font-weight: 700; }
.am-rv-rate { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); background: #fff; font-weight: 700; }
.am-rv-rate:hover { color: var(--am-orange-h); }
.am-rv-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.am-rv-stars { display: flex; gap: 6px; margin-top: 8px; }
.am-rv-stars button { width: 44px; height: 40px; border: 1px solid var(--am-line); border-radius: 4px; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.am-rv-stars button.is-on { border-color: var(--am-ink); box-shadow: inset 0 0 0 1px var(--am-ink); }
.am-rv-sort { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.am-rv-sort label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.am-rv-sort select { padding: 8px 12px; border: 1px solid var(--am-line); border-radius: 4px; background: #fff; }
.am-rv-list { list-style: none; margin: 16px 0 0; padding: 0; }
.am-rv { display: grid; grid-template-columns: minmax(180px, 25%) 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--am-line-soft); }
.am-rv__who { display: flex; gap: 16px; }
.am-rv__who img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; flex: 0 0 64px; }
.am-rv__who div { display: flex; flex-direction: column; }
.am-rv__who .am-stars { font-size: 14px; }
.am-rv__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.am-rv__photos button { width: 64px; height: 64px; padding: 0; border: 1px solid var(--am-line-soft); border-radius: 4px; overflow: hidden; background: #fff; }
.am-rv__photos img { width: 100%; height: 100%; object-fit: cover; }
.am-more { display: flex; margin: 12px 0 0 auto; margin-inline-start: auto; align-items: center; gap: 6px; padding: 10px 30px; border: 0; border-radius: 999px; background: #fff; color: var(--am-link); }
.am-more:hover { background: var(--am-link); color: #fff; }

/* الأسئلة */
.am-q-login { margin-top: 12px !important; }
.am-q-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; border: 1px solid var(--am-line-soft); border-radius: var(--am-radius); padding: 12px 16px; margin-top: 12px; }
.am-q-form textarea { width: 100%; border: 0; resize: vertical; outline: none; font: inherit; }
.am-subtitle { font-size: 16px !important; font-weight: 700; margin: 24px 0 12px !important; }
.am-qa { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.am-qa p { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.am-qa__a { margin-top: 8px !important; }
.am-qa__tag { flex: 0 0 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: #363636; color: #fff; font-weight: 700; font-size: 13px; }
.am-qa__tag--a { background: #1592e6; }
.am-qa small { flex-basis: 100%; padding-inline-start: 34px; font-size: 12px; }
.am-alert { color: var(--am-sale); padding-inline-start: 18px; }
.am-pager { display: flex; gap: 8px; margin-top: 16px; }

/* ───────── الشريط السفلي اللاصق ───────── */
.am-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 1030; background: #fff; box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); padding: 12px 0; color: var(--c-ink, #0f1111); font-size: 14px; }
.am-sticky[hidden] { display: none; }
.am-sticky__row { display: flex; align-items: center; gap: 10px; }
.am-sticky__img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; flex: 0 0 auto; }
.am-sticky__name { flex: 1 1 auto; min-width: 0; margin: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-sticky__price { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.am-sticky__price b { font-size: 20px; }
.am-sticky__old { font-size: 14px; }
.am-sticky__old del { opacity: .7; }
.am-sticky .am-btn { white-space: nowrap; }
.am-sticky__oos { display: none !important; }
.am-sticky.is-oos .am-sticky__cart { display: none !important; }
.am-sticky.is-oos .am-sticky__oos { display: inline-flex !important; }
.am-sticky__close { border: 0; background: none; font-size: 26px; color: var(--c-ink-2, #565959); padding: 0 4px; }

/* ───────── النوافذ ───────── */
.am-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 12px; padding: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); color: var(--c-ink, #0f1111); }
.am-dialog::backdrop { background: rgba(15, 17, 17, .5); }
.am-dialog h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; padding-inline-end: 32px; }
.am-dialog__x { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2f2f2; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.am-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.am-share { text-align: center; }
.am-share__icon { display: inline-flex; width: 80px; height: 80px; border-radius: 50%; background: #f2f2f2; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 12px; }
.am-share h2 { padding: 0; font-size: 20px; }
.am-share h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; text-align: start; }
.am-share__link { display: flex; align-items: center; gap: 10px; background: #f2f2f2; border-radius: 8px; padding: 12px 14px; }
.am-share__link span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; color: #565959; }
.am-share__link button { border: 0; background: none; font-size: 20px; cursor: pointer; }
.am-share__nets { display: flex; justify-content: center; gap: 12px; }
.am-share__nets a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d5d9d9; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #0f1111; text-decoration: none; }
.am-chat-form { display: grid; gap: 10px; }
.am-chat-form input, .am-chat-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d5d9d9; border-radius: 6px; font: inherit; }
.am-lightbox { width: min(960px, calc(100vw - 24px)); padding: 48px 56px 24px; text-align: center; }
.am-lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.am-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2f2f2; font-size: 20px; cursor: pointer; }
.am-lightbox__nav[data-am-lb="-1"] { inset-inline-start: 8px; }
.am-lightbox__nav[data-am-lb="1"] { inset-inline-end: 8px; }
.am-lightbox.is-single .am-lightbox__nav { display: none; }
.am-spinner { width: 36px; height: 36px; margin: 48px auto; border: 3px solid #e7e7e7; border-top-color: #0f1111; border-radius: 50%; animation: am-spin .8s linear infinite; }
@keyframes am-spin { to { transform: rotate(360deg); } }

/* ───────── الشاشات ───────── */
@media (min-width: 1400px) {
    .am-mini { flex-basis: 190px; }
    .am-mini__img { width: 190px; height: 190px; }
}
@media (max-width: 1199.98px) {
    .am-sticky { bottom: var(--am-dock, 62px); border-radius: 16px 16px 0 0; }
    /* زر واتساب العائم يُخفى ما دام الشريط ظاهرًا (يحمل زر الشراء) */
    body.am-sticky-on .sc-q8c6tt-3, body.am-sticky-on [class*="sc-q8c6tt"], body.am-sticky-on .wa-float { opacity: 0 !important; pointer-events: none !important; }
}
@media (max-width: 991.98px) {
    .am-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 16px; }
    .am-top__media { padding-top: 0; }
    .am-sticky__name { display: none; }
    .am-sticky__row { justify-content: space-between; }
}
@media (max-width: 767.98px) {
    .am-gallery { grid-template-columns: minmax(0, 1fr); }
    .am-gallery__stage { grid-column: 1; grid-row: 1; }
    .am-gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .am-gallery__thumb { width: 96px; height: 96px; }
    .am-gallery__track { aspect-ratio: 1 / 1; }
    .am-mini { flex-basis: 150px; }
    .am-mini__img { width: 150px; height: 150px; }
    .am-rv { grid-template-columns: minmax(0, 1fr); }
    .am-card { padding: 20px 16px; }
    #description.am-card { padding: 20px 16px; }
}
@media (max-width: 575.98px) {
    .am-title { font-size: 20px !important; }
    .am-meta-row { flex-direction: column; align-items: flex-start; }
    .am-label { margin-top: 40px !important; }
    .am-actions { grid-template-columns: minmax(0, 1fr); }
    .am-parties { flex-direction: column; }
    .am-buybox__top { flex-direction: column; align-items: flex-start; }
    .am-mini { flex-basis: 100px; }
    .am-mini__img { width: 100px; height: 100px; }
    .am-sticky__img { width: 50px; height: 50px; }
    .am-sticky__price b { font-size: 16px; }
    .am-sticky__old { display: none; }
    .am-q-form { grid-template-columns: minmax(0, 1fr); }
}
