/* =====================================================================
   product.css — صفحة معاينة المنتج فقط  •  بعد site.css
   التبويبات/العرض المكبّر/الإشعار من site.css (q-tabs / q-lightbox / q-toast).
   ===================================================================== */

/* ===== المعرض ===== */
.prod-gallery { background: #fff; border-radius: 26px; height: 440px; box-shadow: var(--sh-card); position: relative; overflow: hidden; }
.prod-gallery__zone { position: absolute; inset: 0; cursor: zoom-in; }
.prod-gallery__zone img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.prod-gallery:hover .prod-gallery__zone img { transform: scale(1.05); }
.prod-stock { position: absolute; top: 18px; right: 18px; background: var(--bg-soft-lime); color: var(--c-lime-d); font-weight: 800; font-size: 12.5px; padding: 6px 14px; border-radius: 16px; z-index: 2; box-shadow: 0 4px 12px rgba(8,46,42,.12); }
.prod-zoomhint { position: absolute; top: 18px; left: 18px; z-index: 2; background: rgba(8,46,42,.66); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 16px; display: flex; align-items: center; gap: 6px; pointer-events: none; backdrop-filter: blur(4px); }
.prod-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 576px) { .prod-thumbs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .prod-thumbs { grid-template-columns: repeat(5, 1fr); } }
.prod-thumb { aspect-ratio: 1; border-radius: 16px; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 8px; cursor: pointer; transition: border-color .15s; overflow: hidden; }
.prod-thumb.is-active { border-color: var(--c-teal); }

/* ===== المعلومات ===== */
.prod-cat { background: var(--bg-soft-teal); color: var(--c-teal-d); font-weight: 800; font-size: 12.5px; padding: 6px 14px; border-radius: 16px; }
.prod-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px,4vw,34px); line-height: 1.4; margin: 0 0 16px; color: var(--c-ink); }
.prod-desc { font-size: 16px; line-height: 1.95; color: var(--c-muted); font-weight: 500; margin: 0 0 26px; }
.prod-priceblock { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.prod-price { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--c-teal); }
.prod-price-unit { font-size: 18px; color: var(--c-muted-2); font-weight: 700; }
.prod-tax { font-size: 13px; color: var(--c-lime-d); font-weight: 700; background: var(--bg-soft-lime); padding: 5px 12px; border-radius: 14px; }

/* المميّزات */
.prod-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.prod-feature { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; color: #3C5754; }
.prod-feature .chk { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft-lime); color: var(--c-lime-d); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* الكمية + الإضافة */
.prod-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.prod-qty { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 6px 16px rgba(20,90,84,.06); }
.prod-qty button { width: 42px; height: 42px; border: none; border-radius: 11px; background: var(--bg-page); cursor: pointer; font-size: 22px; font-weight: 800; color: var(--c-teal-d); }
.prod-qty button:hover { background: var(--bg-soft-teal); }
.prod-qty span { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--c-ink); min-width: 30px; text-align: center; }
.prod-add { flex: 1; min-width: 200px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--c-teal); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 17px; padding: 16px 28px; border-radius: 14px; box-shadow: 0 10px 24px rgba(21,169,159,.3); }
.prod-add:hover { background: var(--c-teal-d); }
.prod-wish { width: 54px; height: 54px; border: 2px solid #E1EBE3; border-radius: 14px; background: #fff; cursor: pointer; font-size: 20px; color: var(--c-accent); }
.prod-wish:hover { background: var(--bg-soft-sand); border-color: var(--c-accent); }

/* ضمانات */
.prod-assure { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #E1EBE3; }
.prod-assure > div { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--c-muted); }

/* ===== التقييمات ===== */
.prod-rev-summary { background: var(--bg-page); border-radius: 20px; padding: 24px; text-align: center; margin-bottom: 24px; }
.prod-rev-avg { font-family: var(--font-head); font-weight: 800; font-size: 48px; color: var(--c-teal); line-height: 1; }
.prod-rev-form { background: #fff; border: 2px solid var(--line-2); border-radius: 20px; padding: 22px; }
.prod-rev-form h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0 0 14px; color: var(--c-ink); }
.prod-review { background: var(--bg-panel); border-radius: 18px; padding: 22px 24px; }
.prod-review__head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.prod-review__avatar { width: 46px; height: 46px; border-radius: 50%; background: #D9EBE7; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--c-teal-d); }
.prod-review__name { font-weight: 800; font-size: 15px; color: var(--c-ink); }
.prod-review__date { font-size: 12.5px; color: #9BB0AC; font-weight: 600; }
.prod-review__text { font-size: 15px; line-height: 1.85; color: #4F6B68; font-weight: 500; margin: 0; }

/* ===== منتجات مقترحة ===== */
.prod-related { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-card-sm); display: flex; flex-direction: column; height: 100%; transition: transform .2s, box-shadow .2s; }
.prod-related:hover { transform: translateY(-5px); box-shadow: var(--sh-card-hov2); }
.prod-related__media { height: 180px; position: relative; overflow: hidden; }
.prod-related__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.prod-related:hover .prod-related__media img { transform: scale(1.06); }
.prod-related__add { width: 40px; height: 40px; border: none; border-radius: 11px; background: var(--bg-soft-teal); color: var(--c-teal-d); cursor: pointer; font-size: 20px; font-weight: 800; }
.prod-related__add:hover { background: var(--c-teal); color: #fff; }
