/* Kitchanova: suppress unused SouqStar demonstration content, both locales. */
.sob-top-bar__message,
.sob-footer .sob-store-badges,
.sob-footer-link-column:has(a[href="/contact?topic=startSelling"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=careers"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=press"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=investors"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=sustainability"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=installments"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=loyalty"]),
.sob-footer-link-column__item:has(a[href="/contact?topic=giftCards"]),
.sob-footer-link-column:last-child .sob-footer-link-column__item:nth-child(3) { display:none !important; }
@media (min-width:1024px) {
.sob-footer .grid:has(> .sob-footer-link-column) { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767px) {
html, body { max-inline-size:100%; overflow-x:clip; }
main, main > section { min-inline-size:0; max-inline-size:100%; }
.sob-navbar .sob-navbar__top-row { grid-template-rows:1fr !important; opacity:1 !important; visibility:visible !important; }
.sob-navbar .sob-navbar-logo img { height:36px; max-width:clamp(88px,25vw,100px); }
}
/* Hold this store's header height while the header loads (2026-11-29): the loading stand-in is 132px,
   the header with the rules above is 145px on phones and 144px from 768px, so every page moved down
   when the header arrived. Re-measure if the header changes. */
.sob-header-skeleton > :first-child { block-size:36px; }
.sob-header-skeleton { min-block-size:144px; }
@media (max-width:767px) { .sob-header-skeleton { min-block-size:145px; } }
aside div:has(> img[src*="product_policy"][src*="12923"][src*="7KqDx1zbFeHT8ZYd5ShJcxVuPq1E9Ha4I8ijGOnV"]) { display:none !important; }
.sob-product-card__delivery--free { font-size:0 !important; color:inherit !important; }
.sob-product-card__delivery--free::after { content:"🚚 Delivery available"; font-size:0.75rem; color:#6b7280; }
.sob-product-card__delivery--free:dir(rtl)::after { content:"🚚 التوصيل متاح"; }
body:has(.sob-checkout-details fieldset button.sob-select-trigger[data-placeholder]) #shipping-flatrate_flatrate-price,
body:has(.sob-checkout-details fieldset button.sob-select-trigger[data-placeholder]):has(#shipping-flatrate_flatrate[aria-checked="true"]) .sob-order-summary__totals > :nth-last-child(-n+2) > dd { display:none !important; }
body:has(.sob-checkout-details fieldset button.sob-select-trigger[data-placeholder]) .sob-choice-card:has(#shipping-flatrate_flatrate) label::before { content:none; }

/* Keep cart confirmation content inside the dialog in RTL and LTR. */
.sob-confirm-dialog {
  box-sizing: border-box;
  width: calc(100vw - 2rem) !important;
  max-width: 24rem !important;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}
.sob-confirm-dialog > *, .sob-confirm-dialog__body > * { min-width: 0; max-width: 100%; }
.sob-confirm-dialog__body .truncate { white-space: normal; overflow-wrap: anywhere; }
.sob-confirm-dialog__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sob-confirm-dialog__actions > button { min-width: 0; width: 100%; padding-inline: 0.75rem; }

/* Kitchanova product layout, rev 2 (2026-11-28). Scoped to product pages.
   Every layout rule here is keyed on the storefront's own markup (its sob-* hook
   classes and its structure), never on a class the script adds, so the page takes
   its final arrangement the moment this file applies instead of being rebuilt
   once the script has run. The script only fills space this file already holds:
   the breadcrumb line, the variation cards, the photo dots (which overlay the photo).
   Grid areas: .sob-product-details is the grid; its section, .sob-product-info and
   the wrappers between are display:contents so their parts become grid items. */

/* Breadcrumb: one line, held open before the script adds it. */
main.sob-product-page:has(> .sob-product-details > section > .sob-product-info)::before {content:"";display:block;flex:none;block-size:calc(12px * 1.7);}
main.sob-product-page:has(> .sob-product-details > section > .sob-product-info):has(> .kna-breadcrumb)::before {display:none;}
.sob-product-page .kna-breadcrumb {display:flex;flex-wrap:nowrap;align-items:center;gap:7px;margin:0;padding:0;color:#64748b;font-size:12px;line-height:1.7;block-size:calc(12px * 1.7);white-space:nowrap;overflow:hidden;min-inline-size:0;}
.kna-breadcrumb a {color:#475569;text-decoration:none;flex:none;}
.kna-breadcrumb a:hover {text-decoration:underline;}
.kna-breadcrumb [aria-current] {overflow:hidden;text-overflow:ellipsis;min-inline-size:0;}

.sob-product-page > .sob-product-details:has(> section > .sob-product-info) {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"title title" "rating rating" "gallery variants" "gallery price" "gallery stock" "gallery actions" "policy policy";gap:12px 28px;align-items:start;}
.sob-product-page > .sob-product-details:has(> section > .sob-product-info) > section:first-child,
.sob-product-page .sob-product-details .sob-product-info,
.sob-product-page .sob-product-details .sob-product-info > section,
.sob-product-page .sob-product-details .sob-product-info > section > header,
.sob-product-page .sob-product-details .sob-product-info > section > section:has(> header > .sob-price-display) {display:contents!important;}

/* Title */
.sob-product-page .sob-product-details .sob-product-info > section > header > h1 {grid-area:title;font-size:24px;line-height:1.5;margin:0;padding:0;font-weight:600;color:#111827;}

/* Rating, with "No reviews yet" beside the stars when the reviews section says so */
.sob-product-page .sob-product-details .sob-product-info > section > section > div:has(> .sob-rating-stars) {grid-area:rating;padding:0 0 10px!important;}
.sob-product-page .sob-product-details .sob-product-info .sob-rating-stars {display:flex;flex-direction:row;align-items:center;gap:9px;}
main.sob-product-page:has(.sob-product-reviews__empty) .sob-product-info .sob-rating-stars::after {content:"No reviews yet";font-size:12px;color:#64748b;}
html[dir="rtl"] main.sob-product-page:has(.sob-product-reviews__empty) .sob-product-info .sob-rating-stars::after {content:"لا توجد تقييمات بعد";}

/* Photo: the column (slider, or its loading stand-in), its frame, its thumbnail strip */
.sob-product-page > .sob-product-details:has(> section > .sob-product-info) > section:first-child > :first-child {grid-area:gallery;max-width:100%!important;min-width:0;width:100%;position:relative;}
.sob-product-page > .sob-product-details:has(> section > .sob-product-info) > section:first-child > :first-child > :first-child {position:relative;isolation:isolate;background:#fff;box-shadow:none;border:1px solid #f1f5f9;border-radius:12px;overflow:hidden;touch-action:pan-y pinch-zoom;}
.sob-product-page > .sob-product-details:has(> section > .sob-product-info) > section:first-child > :first-child > :first-child > img {padding:14px 14px 48px;box-sizing:border-box;user-select:none;-webkit-user-drag:none;}
.sob-product-page > .sob-product-details:has(> section > .sob-product-info) > section:first-child > :first-child > :not(:first-child) {position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);opacity:0;pointer-events:none;margin:0!important;}

/* Variations: the platform's buttons hold the cards' space until the script swaps the cards in.
   Below the legend the script adds its arrows (2+36+6) + the fieldset's 12px gap + the card row
   (4+12 padding + the card's min-height: 220px, 205px under 1024px). */
.sob-product-page .sob-product-details .sob-product-info > section > section:has(fieldset button[title]) {grid-area:variants;padding:12px 0!important;min-width:0;border-bottom:1px solid #e5e7eb;}
.sob-product-page .sob-product-details .sob-product-info fieldset:has(button[title]) {min-inline-size:0;inline-size:100%;max-inline-size:100%;}
.sob-product-page .sob-product-details .sob-product-info fieldset:has(button[title]) > legend {font-size:15px;font-weight:600;color:#111827;margin-bottom:8px;}
.sob-product-page .sob-product-details .sob-product-info fieldset > div:has(> button[title]) {box-sizing:border-box;min-block-size:calc(44px + 12px + 16px + 220px);align-content:flex-start;align-items:flex-start;}
.sob-product-page .sob-product-details .sob-product-info fieldset > div:has(> button[title]):has(~ .kna-variant-grid) {display:none!important;}

/* Price, stock, buttons, policy strip */
.sob-product-page .sob-product-details .sob-product-info > section > section > header:has(> .sob-price-display) {grid-area:price;padding:8px 0 0!important;}
.sob-product-page .sob-product-details .sob-product-info > section > header > section {grid-area:stock;padding:0!important;}
.sob-product-page .sob-product-details .sob-product-info > section > section:has(.sob-product-actions__buy-now) {grid-area:actions;min-width:0;padding-top:8px;}
.sob-product-page > .sob-product-details:has(> section > .sob-product-info) > aside {grid-area:policy;width:100%!important;}

/* Variation cards (the script's own elements) */
.kna-variant-grid {display:flex;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 2px 12px;scroll-snap-type:x proximity;scrollbar-width:thin;max-width:100%;min-width:0;}
.kna-variant-card {appearance:none;display:flex;flex-direction:column;align-items:stretch;gap:5px;flex:0 0 142px;box-sizing:border-box;min-width:0;min-height:220px;padding:10px;border:1px solid #cbd5e1;border-radius:12px;background:white;color:#111827;text-align:start;white-space:normal;cursor:pointer;scroll-snap-align:start;font:inherit;line-height:1.45;}
.kna-variant-card:hover {border-color:#64748b;}
.kna-variant-card[aria-pressed="true"] {border:2px solid #c8102e;padding:9px;background:#fff9fa;box-shadow:0 0 0 1px #c8102e;}
.kna-variant-card:focus-visible {outline:3px solid #c8102e;outline-offset:3px;}
.kna-variant-card:disabled {cursor:not-allowed;background:#f8fafc;color:#64748b;}
.kna-variant-image {width:100%;height:100px;object-fit:contain;background:#fff;border-radius:6px;}
.kna-variant-name {font-size:14px;font-weight:700;overflow-wrap:anywhere;}
.kna-variant-price {font-size:15px;font-weight:600;unicode-bidi:plaintext;}
.kna-variant-stock {font-size:12px;color:#047857;margin-top:auto;}
.kna-variant-card:disabled .kna-variant-stock {color:#b91c1c;}
@media (max-width:1023px) {
 .sob-product-page {padding-top:14px!important;gap:16px!important;}
 .sob-product-page > .sob-product-details:has(> section > .sob-product-info) {grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "rating" "gallery" "variants" "price" "stock" "actions" "policy";gap:8px;}
 .sob-product-page .sob-product-details .sob-product-info > section > header > h1 {font-size:20px;line-height:1.55;}
 .sob-product-page > .sob-product-details:has(> section > .sob-product-info) > section:first-child > :first-child {max-width:560px!important;margin-inline:auto;}
 .sob-product-page .sob-product-details .sob-product-info > section > section > div:has(> .sob-rating-stars) {padding-bottom:2px!important;}
 .sob-product-page .sob-product-details .sob-product-info > section > section:has(fieldset button[title]) {margin-top:6px;}
 .sob-product-page .sob-product-details .sob-product-info fieldset > div:has(> button[title]) {min-block-size:calc(44px + 12px + 16px + 205px);}
 .kna-variant-card {flex-basis:138px;}
}
.sob-product-page {background:#fff;}
@media (min-width:1024px) {.sob-product-page > .sob-product-details:has(> section > .sob-product-info) {grid-template-rows:max-content max-content max-content max-content max-content minmax(0,1fr) max-content;}}

/* Show every variation without a horizontal swipe. */
.kna-variant-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));overflow:visible;scroll-snap-type:none;}
.kna-variant-card {width:100%;min-width:0;flex:none;}
@media(max-width:1023px){.kna-variant-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.kna-variant-card {min-height:205px;}}
/* Restore horizontal variation cards with visible navigation. */
.kna-variant-grid {display:flex!important;grid-template-columns:none;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:3px;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:4px 3px 12px;}
.kna-variant-card {flex:0 0 44%;width:auto;max-width:170px;min-width:128px;scroll-snap-align:start;}
.kna-swipe-controls {display:flex;direction:ltr;align-items:center;gap:9px;margin:2px 0 6px;}
.kna-swipe-arrow {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:#111827;font-size:27px;line-height:1;cursor:pointer;}
.kna-swipe-arrow:disabled {opacity:0.3;cursor:default;}
.kna-swipe-arrow:focus-visible {outline:2px solid #c8102e;outline-offset:2px;}
.kna-swipe-hint {flex:1;font-size:12px;color:#64748b;text-align:center;}
.kna-variant-grid {box-sizing:border-box;width:100%;}

/* Photo dots and counter (the script's own elements, laid over the photo's bottom padding) */
.kna-gallery-pagination {position:absolute;z-index:10;bottom:9px;left:8px;right:8px;display:flex;direction:ltr;align-items:center;justify-content:center;gap:8px;min-height:28px;cursor:default;}
.kna-gallery-pagination[hidden] {display:none;}
.kna-gallery-dots {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;max-width:80%;}
.kna-gallery-dot {display:grid;place-items:center;flex:0 0 24px;width:24px;height:28px;padding:0;background:transparent;border:0;border-radius:50%;cursor:pointer;}
.kna-gallery-dot::after {content:"";display:block;width:7px;height:7px;border-radius:50%;background:#cbd5e1;}
.kna-gallery-dot[aria-pressed="true"]::after {width:9px;height:9px;background:#c8102e;}
.kna-gallery-dot:focus-visible {outline:2px solid #c8102e;outline-offset:1px;}
.kna-gallery-count {font-size:11px;color:#64748b;white-space:nowrap;font-variant-numeric:tabular-nums;}
/* Kitchanova search and image hint fixes */
.sob-mobile-search-bar input[type="search"],.sob-search-with-categories input[type="search"]{font-size:16px!important;line-height:1.5!important}
.kna-hide-zoom-hint{display:none!important}
.kna-predictive{position:fixed;z-index:10000;background:#fff;color:#202020;border:1px solid #e4e4e4;border-radius:12px;box-shadow:0 8px 28px #0002;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.kna-predictive[hidden]{display:none!important}
.kna-predictive a{display:flex;align-items:center;gap:12px;padding:10px 12px;color:inherit;text-decoration:none;border-bottom:1px solid #f1f1f1;font-size:14px;line-height:1.5;min-height:56px;box-sizing:border-box}
.kna-predictive a:hover,.kna-predictive a[aria-selected="true"]{background:#fff1f2}
.kna-predictive img{width:48px;height:48px;flex:none;object-fit:contain;border-radius:6px}
.kna-predictive .kna-search-all{justify-content:center;color:#c90020;font-weight:700}
.kna-search-empty{padding:16px;font-size:14px}
/* Kitchanova: empty ratings below product name; actual reviews take precedence. */
main.sob-product-page:has(.sob-product-reviews__empty):not(:has(.sob-rating-stars)) .sob-product-info h1::after {content:"☆☆☆☆☆  No reviews yet";display:block;margin-top:8px;margin-bottom:6px;color:#6b7280;font-size:15px;font-weight:400;line-height:1.7;letter-spacing:0;text-transform:none;}
html[dir="rtl"] main.sob-product-page:has(.sob-product-reviews__empty):not(:has(.sob-rating-stars)) .sob-product-info h1::after {content:"☆☆☆☆☆  لا توجد تقييمات بعد";}