.product-page { padding-block: 28px 64px; }
.product-page [hidden] { display: none !important; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.product-gallery { position: sticky; top: 24px; min-width: 0; width: 100%; max-width: 420px; margin-inline: auto; }
.product-main-image { display: block; position: relative; width: 100%; aspect-ratio: 1; height: auto; max-height: 420px; padding: 8px; overflow: hidden; border: 1px solid #eee; border-radius: 8px; background: #fff; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.product-main-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-main-image > span { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; padding: 5px 9px; border-radius: 4px; background: #fffffff0; color: #555; font-size: 11px; pointer-events: none; }
.product-thumbnails { display: flex; gap: 8px; margin-block-start: 10px; overflow-x: auto; padding: 3px; }
.product-thumbnails button { width: 64px; height: 64px; flex: 0 0 auto; padding: 4px; border-radius: 5px; background: #fff; border: 1px solid #e1e1e1; cursor: pointer; }
.product-thumbnails button[aria-pressed='true'] { border: 2px solid #222; }
.product-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-information { min-width: 0; }
.product-vendor { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #777; margin-block-end: 12px; }
.product-information h1 { font: 400 34px/1.2 Assistant, Arial, sans-serif; letter-spacing: -.015em; margin-block-end: 18px; overflow-wrap: anywhere; }
.product-arabic-title { margin-block: -4px 20px; color: #666; font-size: 16px; }
.product-description summary { cursor: pointer; color: #222; }
.product-description-content { text-align: start; min-width: 0; overflow-x: auto; }
.source-description-note { padding: 10px 12px; border-inline-start: 2px solid #bbb; background: #fafafa; font-size: 12px; }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 34px; }
.detail-price { font-size: 24px; font-weight: 600; }
.detail-price-row del { font-size: 15px; color: #888; }
.detail-sale { background: #222; color: white; border-radius: 30px; font-size: 11px; padding: 3px 11px; }
.price-context { color: #777; font-size: 12px; margin-block-start: 5px; }
.product-preview-notice { padding: 12px 14px; border: 1px solid #e8e8e8; background: #fafafa; color: #666; font-size: 12px; line-height: 1.6; margin-block: 20px 24px; }
.product-options { display: grid; gap: 20px; margin-block-end: 24px; }
.product-options fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.product-options legend, .quantity-row > label, .variant-fallback > label { display: block; font-size: 13px; margin-block-end: 10px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.product-choice { position: relative; cursor: pointer; }
.product-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-choice > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 16px; border: 1px solid #ccc; border-radius: 22px; font-size: 13px; line-height: 1.5; }
.product-choice input:checked + span { border-color: #222; background: #222; color: #fff; }
.product-choice input:focus-visible + span { outline: 2px solid #555; outline-offset: 3px; }
.product-choice input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.option-color { display: inline-block; width: 14px; height: 14px; border: 1px solid #b5b5b5; border-radius: 50%; }
.option-color[data-color='black'] { background: #202020; }
.option-color[data-color='white'] { background: #fff; }
.option-color[data-color='silver'] { background: #b5b5b5; }
.option-color[data-color='gold'] { background: #c3a15b; }
.option-color[data-color='gray'] { background: #777; }
.option-color[data-color='rose-gold'] { background: #bc8b7d; }
.variant-fallback { margin-block-end: 24px; }
.variant-fallback > div { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-fallback select { min-height: 44px; padding: 8px; border: 1px solid #bbb; max-width: 100%; background: #fff; }
.quantity-row { margin-block: 22px; }
.quantity-control { display: inline-flex; height: 44px; border: 1px solid #bbb; }
.quantity-control button { border: 0; background: transparent; width: 42px; font-size: 20px; cursor: pointer; }
.quantity-control input { width: 48px; border: 0; border-inline: 1px solid #eee; padding: 4px; text-align: center; color: #222; background: white; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quantity-row > span { display: block; font-size: 11px; color: #888; margin-block-start: 6px; }
.product-purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-purchase-actions .button { min-height: 48px; font-size: 14px; }
.product-purchase-actions .detail-add { background: white; color: #222; }
.product-purchase-actions .button:disabled { opacity: .5; }
.purchase-context { color: #777; font-size: 11px; margin-block-start: 10px; }
.selected-option { font-size: 12px; color: #666; margin-block: 16px 28px; }
.product-description, .product-specifications { border-block-start: 1px solid #e8e8e8; padding-block-start: 24px; margin-block-start: 24px; font-size: 14px; color: #555; line-height: 1.85; overflow-wrap: anywhere; }
.product-description > h2, .product-specifications > h2 { font-size: 20px; color: #222; margin-block-end: 18px; }
.product-description h3 { font: 400 17px/1.5 Assistant, Arial, sans-serif; color: #222; margin-block: 24px 12px; }
.product-description h4 { font-size: 15px; margin-block: 16px 8px; }
.product-description p, .product-description ul, .product-description ol { margin-block: 10px; }
.product-description ul, .product-description ol { padding-inline-start: 22px; }
.product-description li { margin-block: 4px; }
.product-description table, .product-specifications table { width: 100%; border-collapse: collapse; font-size: 13px; }
.product-description td, .product-description th, .product-specifications td, .product-specifications th { padding: 12px 14px; border: 1px solid #e5e5e5; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.product-specifications th { font-weight: 400; background: #fafafa; width: 34%; color: #666; }
.product-back { display: inline-block; font-size: 13px; margin-block-start: 28px; }
.related-products { margin-block-start: 72px; padding-block-start: 32px; border-block-start: 1px solid #e5e5e5; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block-end: 24px; }
.related-heading h2 { font-size: 27px; }
.related-heading a { font-size: 13px; }
.related-products .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.related-products .category-image { display: block; border: 1px solid #eee; }
.related-products .product-card h3 { line-height: 1.5; }
.product-lightbox { width: min(720px, calc(100% - 32px)); max-height: 82svh; padding: 16px; border: 0; background: white; }
.product-lightbox::backdrop { background: #000b; }
.product-lightbox form { display: flex; justify-content: flex-end; }
.product-lightbox > img { display: block; width: 100%; height: auto; max-height: 68svh; object-fit: contain; }
@media (max-width: 1000px) { .product-detail-layout { gap: 32px; } .product-information h1 { font-size: 29px; } }
@media (max-width: 760px) {
  .product-page { padding-block: 20px 40px; }
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-gallery { position: static; max-width: 380px; }
  .product-main-image { max-height: 500px; padding: 6px; }
  .product-thumbnails button { width: 56px; height: 56px; }
  .product-lightbox > img { max-height: 60svh; }
  .product-information h1 { font-size: 28px; }
  .detail-price { font-size: 22px; }
  .product-purchase-actions { grid-template-columns: 1fr; }
  .related-products { margin-block-start: 44px; }
  .related-heading { align-items: flex-start; }
  .related-heading h2 { font-size: 24px; }
  .related-products .product-grid { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 12px; }
  .related-products .product-grid > .product-card { flex: 0 0 min(82vw, 280px); min-width: 0; scroll-snap-align: start; }
  .related-products .product-card select { width: 100%; min-width: 0; min-height: 44px; }
  .product-description td, .product-description th, .product-specifications td, .product-specifications th { padding: 10px; }
}
