/* ============================================================================
   PRODUCT DETAIL — 2026
   ----------------------------------------------------------------------------
   The dish page, rebuilt. Scoped entirely under .pd-page so it cannot reach
   the QR menu's product page or the kiosk, which still run on the older
   .m-product component in modern-2026-product.css.

   Shape of the page:

       ┌──────────────┬───────────────────────┐
       │              │  category · title     │
       │   gallery    │  rating · facts       │
       │  (sticky on  │  ALLERGENS            │
       │   desktop)   │  price · qty · CTA    │
       └──────────────┴───────────────────────┘
       tabs (description / reviews)
       related dishes

   Two decisions worth naming:

   • The gallery sticks while the right column scrolls. A guest deciding on
     food should not lose sight of it while reading the description.
   • Allergens sit ABOVE the price, not in a tab. Someone with an allergy
     needs that answer before they need the number, and anything behind a
     tab is, in practice, unread.

   Colours come from the --m-* tokens in modern-2026.css, so the page follows
   the active site theme. Logical properties throughout — RTL needs no
   override block.
   ========================================================================= */

.pd-page {
    --pd-gap: 44px;
    background: var(--m-bg, #FBF7EE);
    padding-block: 26px 60px;
}

.pd-page *,
.pd-page *::before,
.pd-page *::after { box-sizing: border-box; }

.pd-container {
    width: 100%;
    max-width: var(--m-container, 1240px);
    margin-inline: auto;
    padding-inline: 16px;
}

/* ========================================================== 1. BREADCRUMB */

.pd-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--m-text-mute, #8C7A66);
}
.pd-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.pd-crumbs a { color: var(--m-text-mute, #8C7A66); text-decoration: none; transition: color .2s; }
.pd-crumbs a:hover { color: var(--m-brand, #B8541A); }
.pd-crumbs [aria-current] { color: var(--m-text, #2A1F17); font-weight: 700; }
/* The separator flips with the writing direction on its own. */
.pd-crumbs li + li::before {
    content: "/";
    color: var(--m-line-2, rgba(60, 40, 20, .3));
    margin-inline-end: 2px;
}

/* =============================================================== 2. LAYOUT */

.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
@media (min-width: 992px) {
    .pd-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--pd-gap); }
}

/* ============================================================== 3. GALLERY */

@media (min-width: 992px) {
    .pd-gallery { position: sticky; top: 96px; }
}

.pd-gallery__stage {
    position: relative;
    border-radius: var(--m-r-xl, 28px);
    overflow: hidden;
    background: var(--m-surface, #fff);
    border: 1px solid var(--m-line, rgba(60, 40, 20, .08));
    box-shadow: var(--m-shadow, 0 8px 24px -6px rgba(42, 31, 23, .12));
    aspect-ratio: 4 / 3;
}

.pd-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--m-ease-out, cubic-bezier(.16, 1, .3, 1));
}
.pd-gallery__stage:hover .pd-gallery__img { transform: scale(1.04); }

/* Badge column, top-start corner. */
.pd-gallery__badges {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--m-r-pill, 999px);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
}
.pd-badge--offer   { background: var(--m-danger, #C73E3E); }
.pd-badge--special { background: var(--m-amber, #E0A82E); color: #2A1F17; }
.pd-badge--out     { background: rgba(42, 31, 23, .82); }

.pd-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-block-start: 12px;
    overflow-x: auto;
    padding-block-end: 4px;
    scrollbar-width: thin;
}
.pd-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.pd-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--m-line-2, rgba(60, 40, 20, .14));
    border-radius: 999px;
}

.pd-thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--m-r, 14px);
    overflow: hidden;
    background: var(--m-surface, #fff);
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--m-brand, #B8541A); }
.pd-thumb:focus-visible { outline: 2px solid var(--m-brand, #B8541A); outline-offset: 2px; }

/* ================================================================= 4. INFO */

.pd-info { min-width: 0; }

.pd-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--m-r-pill, 999px);
    background: var(--m-brand-soft, rgba(184, 84, 26, .10));
    color: var(--m-brand, #B8541A);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.pd-cat:hover { background: var(--m-brand, #B8541A); color: #fff; }

.pd-title {
    margin: 12px 0 8px;
    font-family: var(--m-font-display, serif);
    font-size: clamp(26px, 4.4vw, 40px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--m-text, #2A1F17);
}

.pd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-block-end: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--m-text-mute, #8C7A66);
}
.pd-stars { display: inline-flex; align-items: center; gap: 3px; color: var(--m-amber, #E0A82E); font-size: 12.5px; }
.pd-stars + span { color: var(--m-text-mute, #8C7A66); }
.pd-meta__sku { display: inline-flex; align-items: center; gap: 5px; }

.pd-lede {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--m-text-soft, #5C4938);
}

/* ------------------------------------------------------------ fact tiles */

.pd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
    margin-block-end: 20px;
}

.pd-fact {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid var(--m-line, rgba(60, 40, 20, .08));
    border-radius: var(--m-r, 14px);
    background: var(--m-surface, #fff);
}
.pd-fact__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 13px;
    background: var(--m-brand-soft, rgba(184, 84, 26, .10));
    color: var(--m-brand, #B8541A);
}
.pd-fact--cal    .pd-fact__icon { background: var(--m-warning-soft, rgba(216, 155, 31, .14)); color: var(--m-warning, #D89B1F); }
.pd-fact--spicy  .pd-fact__icon { background: var(--m-danger-soft,  rgba(199, 62, 62, .10));  color: var(--m-danger,  #C73E3E); }
.pd-fact--veg    .pd-fact__icon { background: var(--m-success-soft, rgba(45, 134, 89, .12));  color: var(--m-success, #2D8659); }
.pd-fact__body { min-width: 0; }
.pd-fact__label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--m-text-mute, #8C7A66);
}
.pd-fact__value {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--m-text, #2A1F17);
    overflow-wrap: anywhere;
}

/* -------------------------------------------------------- allergen block */

/* The page's own framing of the shared .alg-* component: a bordered card
   that names the status in words, lists the allergens as chips, and keeps
   the button that opens the full panel. It sits above the price on purpose. */
.pd-allergens {
    border: 1px solid var(--m-line-2, rgba(60, 40, 20, .14));
    border-radius: var(--m-r-lg, 20px);
    padding: 15px 16px;
    margin-block-end: 20px;
    background: var(--m-surface, #fff);
}
.pd-allergens--has   { border-color: rgba(216, 155, 31, .38); background: rgba(216, 155, 31, .06); }
.pd-allergens--clean { border-color: rgba(45, 134, 89, .30);  background: rgba(45, 134, 89, .05); }

.pd-allergens__head { display: flex; align-items: flex-start; gap: 11px; }
.pd-allergens__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 15px;
}
.pd-allergens--has   .pd-allergens__icon { background: rgba(216, 155, 31, .18); color: var(--m-warning, #D89B1F); }
.pd-allergens--clean .pd-allergens__icon { background: rgba(45, 134, 89, .16);  color: var(--m-success, #2D8659); }

.pd-allergens__title {
    margin: 0 0 2px;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--m-text, #2A1F17);
}
.pd-allergens__sub {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--m-text-mute, #8C7A66);
}

.pd-allergens__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-block-start: 12px;
}
.pd-achip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--m-r-pill, 999px);
    background: var(--m-surface, #fff);
    border: 1px solid var(--m-line-2, rgba(60, 40, 20, .14));
    font-size: 12px;
    font-weight: 700;
    color: var(--m-text, #2A1F17);
}
.pd-achip[data-color="warning"]   { color: var(--m-warning, #D89B1F); }
.pd-achip[data-color="info"]      { color: var(--m-info,    #2B7AB8); }
.pd-achip[data-color="danger"]    { color: var(--m-danger,  #C73E3E); }
.pd-achip[data-color="success"]   { color: var(--m-success, #2D8659); }
.pd-achip[data-color="secondary"] { color: var(--m-text-mute, #8C7A66); }
.pd-achip span { color: var(--m-text, #2A1F17); }

.pd-allergens__more { margin-block-start: 12px; }

/* ---------------------------------------------------------- price + order */

.pd-order {
    border: 1px solid var(--m-line, rgba(60, 40, 20, .08));
    border-radius: var(--m-r-lg, 20px);
    background: var(--m-surface, #fff);
    box-shadow: var(--m-shadow-sm, 0 1px 3px rgba(42, 31, 23, .06));
    padding: 18px;
}

.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-block-end: 4px; }
.pd-price__now {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    line-height: 1;
    color: var(--m-brand, #B8541A);
}
.pd-price__now .Saudi_Riyal { width: 1em; height: 1em; }
.pd-price__was { font-size: 16px; font-weight: 600; color: var(--m-text-mute, #8C7A66); text-decoration: line-through; }
.pd-price__save {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--m-r-pill, 999px);
    background: var(--m-success-soft, rgba(45, 134, 89, .12));
    color: var(--m-success, #2D8659);
    font-size: 12px;
    font-weight: 800;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-block-end: 14px;
    padding: 4px 12px;
    border-radius: var(--m-r-pill, 999px);
    font-size: 12.5px;
    font-weight: 700;
}
.pd-stock--in  { background: var(--m-success-soft, rgba(45, 134, 89, .12)); color: var(--m-success, #2D8659); }
.pd-stock--out { background: var(--m-danger-soft,  rgba(199, 62, 62, .10)); color: var(--m-danger,  #C73E3E); }

.pd-order__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-block: 14px;
    margin-block: 4px 14px;
    border-block: 1px solid var(--m-line, rgba(60, 40, 20, .08));
}

.pd-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--m-text-soft, #5C4938);
}

.pd-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--m-line-2, rgba(60, 40, 20, .14));
    border-radius: var(--m-r-pill, 999px);
    background: var(--m-surface-2, #FAF6EB);
    overflow: hidden;
}
.pd-stepper button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--m-text, #2A1F17);
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.pd-stepper button:hover { background: var(--m-brand, #B8541A); color: #fff; }
.pd-stepper button:focus-visible { outline: 2px solid var(--m-brand, #B8541A); outline-offset: -2px; }
.pd-stepper input {
    width: 48px;
    height: 40px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--m-text, #2A1F17);
    -moz-appearance: textfield;
}
.pd-stepper input::-webkit-outer-spin-button,
.pd-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-total { text-align: end; }
.pd-total small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--m-text-mute, #8C7A66);
}
.pd-total strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--m-text, #2A1F17);
}
.pd-total .Saudi_Riyal { width: .85em; height: .85em; }

.pd-actions { display: flex; gap: 10px; }

.pd-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding-inline: 22px;
    border: 0;
    border-radius: var(--m-r-pill, 999px);
    background: linear-gradient(135deg, var(--m-brand, #B8541A), var(--m-brand-2, #D77A3A));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--m-shadow-brand, 0 14px 30px -8px rgba(184, 84, 26, .35));
    transition: transform .2s var(--m-ease, ease), box-shadow .2s var(--m-ease, ease), filter .2s;
}
.pd-cta:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.05); }
.pd-cta:active { transform: translateY(0); }
.pd-cta:focus-visible { outline: 2px solid var(--m-text, #2A1F17); outline-offset: 3px; }
.pd-cta[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }

.pd-icon-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--m-line-2, rgba(60, 40, 20, .14));
    border-radius: 50%;
    background: var(--m-surface, #fff);
    color: var(--m-text-soft, #5C4938);
    font-size: 16px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.pd-icon-btn:hover {
    background: var(--m-danger, #C73E3E);
    border-color: var(--m-danger, #C73E3E);
    color: #fff;
    transform: translateY(-2px);
}
.pd-icon-btn:focus-visible { outline: 2px solid var(--m-brand, #B8541A); outline-offset: 2px; }

/* ------------------------------------------------------------- assurances */

.pd-assure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-block-start: 16px;
}
.pd-assure__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-text-soft, #5C4938);
}
.pd-assure__item i { color: var(--m-brand, #B8541A); font-size: 13px; flex-shrink: 0; }

/* ================================================================= 5. TABS */

.pd-tabs { margin-block-start: 52px; }

.pd-tabs__nav {
    display: flex;
    gap: 6px;
    margin: 0 0 18px;
    padding: 5px;
    list-style: none;
    border-radius: var(--m-r-pill, 999px);
    background: var(--m-bg-2, #F5EFDF);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}
.pd-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--m-r-pill, 999px);
    background: transparent;
    color: var(--m-text-soft, #5C4938);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.pd-tab:hover { color: var(--m-brand, #B8541A); }
.pd-tab[aria-selected="true"] {
    background: var(--m-surface, #fff);
    color: var(--m-brand, #B8541A);
    box-shadow: var(--m-shadow-sm, 0 1px 3px rgba(42, 31, 23, .06));
}
.pd-tab:focus-visible { outline: 2px solid var(--m-brand, #B8541A); outline-offset: 2px; }

.pd-panel {
    border: 1px solid var(--m-line, rgba(60, 40, 20, .08));
    border-radius: var(--m-r-lg, 20px);
    background: var(--m-surface, #fff);
    padding: 24px;
}
.pd-panel[hidden] { display: none; }
.pd-prose { font-size: 14.5px; line-height: 1.85; color: var(--m-text-soft, #5C4938); }
.pd-prose :where(h1, h2, h3, h4) { color: var(--m-text, #2A1F17); font-weight: 800; margin-block: 1.2em .5em; }
.pd-prose :where(p, ul, ol) { margin-block: 0 1em; }
.pd-prose :where(ul, ol) { padding-inline-start: 1.35em; }
.pd-prose img { max-width: 100%; height: auto; border-radius: var(--m-r, 14px); }

.pd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 20px;
    text-align: center;
    color: var(--m-text-mute, #8C7A66);
}
.pd-empty i { font-size: 30px; opacity: .45; }
.pd-empty p { margin: 0; font-size: 13.5px; font-weight: 600; }

/* -------------------------------------------------------------- reviews */

.pd-reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
@media (min-width: 992px) { .pd-reviews { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

.pd-sub {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--m-text, #2A1F17);
}

.pd-review {
    display: flex;
    gap: 12px;
    padding-block: 14px;
    border-block-end: 1px solid var(--m-line, rgba(60, 40, 20, .08));
}
.pd-review:last-child { border-block-end: 0; }
.pd-review__ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pd-review__body { min-width: 0; flex: 1; }
.pd-review__name { margin: 0 0 2px; font-size: 13.5px; font-weight: 800; color: var(--m-text, #2A1F17); }
.pd-review__date { font-size: 11.5px; font-weight: 600; color: var(--m-text-mute, #8C7A66); }
.pd-review__stars { color: var(--m-amber, #E0A82E); font-size: 11.5px; margin-block: 3px 5px; display: block; }
.pd-review__text { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--m-text-soft, #5C4938); }

.pd-form { border: 1px solid var(--m-line, rgba(60, 40, 20, .08)); border-radius: var(--m-r, 14px); background: var(--m-surface-2, #FAF6EB); padding: 18px; }
.pd-form__stars { display: flex; align-items: center; gap: 5px; margin-block-end: 12px; font-size: 13px; font-weight: 700; color: var(--m-text-soft, #5C4938); }
.pd-form__stars i { color: var(--m-amber, #E0A82E); cursor: pointer; font-size: 16px; }
.pd-form textarea {
    width: 100%;
    border: 1px solid var(--m-line-2, rgba(60, 40, 20, .14));
    border-radius: var(--m-r-sm, 10px);
    background: var(--m-surface, #fff);
    padding: 11px 13px;
    font: inherit;
    font-size: 13.5px;
    color: var(--m-text, #2A1F17);
    resize: vertical;
}
.pd-form textarea:focus { outline: 2px solid var(--m-brand, #B8541A); outline-offset: 0; border-color: transparent; }
.pd-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 12px;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--m-r-pill, 999px);
    background: var(--m-brand, #B8541A);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}
.pd-form__submit:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }

.pd-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-block-start: 14px;
    padding: 9px 18px;
    border-radius: var(--m-r-pill, 999px);
    border: 1px solid var(--m-line-2, rgba(60, 40, 20, .14));
    background: var(--m-surface, #fff);
    color: var(--m-text-soft, #5C4938);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.pd-loadmore:hover { border-color: var(--m-brand, #B8541A); color: var(--m-brand, #B8541A); }

/* ============================================================== 6. RELATED */

.pd-related { margin-block-start: 52px; }

.pd-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-block-end: 18px;
}
.pd-related__title {
    margin: 0;
    font-family: var(--m-font-display, serif);
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 800;
    color: var(--m-text, #2A1F17);
}
.pd-related__link { font-size: 13px; font-weight: 700; color: var(--m-brand, #B8541A); text-decoration: none; white-space: nowrap; }
.pd-related__link:hover { text-decoration: underline; }

.pd-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
@media (max-width: 575.98px) {
    .pd-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.pd-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--m-line, rgba(60, 40, 20, .08));
    border-radius: var(--m-r-lg, 20px);
    background: var(--m-surface, #fff);
    overflow: hidden;
    transition: transform .25s var(--m-ease, ease), box-shadow .25s var(--m-ease, ease), border-color .25s;
}
.pd-card:hover {
    transform: translateY(-4px);
    border-color: var(--m-brand-soft, rgba(184, 84, 26, .10));
    box-shadow: var(--m-shadow, 0 8px 24px -6px rgba(42, 31, 23, .12));
}

.pd-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--m-ease-out, ease); }
.pd-card:hover .pd-card__media img { transform: scale(1.07); }

.pd-card__add {
    position: absolute;
    inset-block-end: 10px;
    inset-inline-end: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--m-brand, #B8541A);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
    transition: transform .2s, filter .2s;
}
.pd-card__add:hover { transform: scale(1.1); filter: brightness(1.1); color: #fff; }

.pd-card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pd-card__name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--m-text, #2A1F17);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-card__name:hover { color: var(--m-brand, #B8541A); }
.pd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: auto; }
.pd-card__price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--m-brand, #B8541A);
}
.pd-card__price .Saudi_Riyal { width: .8em; height: .8em; }
.pd-card__price del { font-size: 11.5px; font-weight: 600; color: var(--m-text-mute, #8C7A66); }

/* ========================================================= 7. STICKY MOBILE */

.pd-sticky {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--m-surface, #fff);
    border-block-start: 1px solid var(--m-line, rgba(60, 40, 20, .08));
    box-shadow: 0 -8px 24px -12px rgba(42, 31, 23, .3);
    transform: translateY(110%);
    transition: transform .3s var(--m-ease-out, cubic-bezier(.16, 1, .3, 1));
}
.pd-sticky.is-visible { transform: translateY(0); }
@media (min-width: 992px) { .pd-sticky { display: none; } }

.pd-sticky__info { min-width: 0; }
.pd-sticky__info small { display: block; font-size: 10.5px; font-weight: 600; color: var(--m-text-mute, #8C7A66); }
.pd-sticky__info strong { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 800; color: var(--m-text, #2A1F17); }
.pd-sticky__info .Saudi_Riyal { width: .8em; height: .8em; }
.pd-sticky .pd-cta { min-height: 46px; font-size: 14px; }

/* The site already pins a bottom tab dock on phones; the sticky CTA parks
   flush on top of it (`--m-tabbar-h` is the dock's exact height) so the two
   never stack on top of each other. */
body:has(.m-bottom-tabs) .pd-sticky {
    inset-block-end: var(--m-tabbar-h, 0px);
    border-radius: 20px 20px 0 0;
    /* The dock underneath already carries the safe-area inset. */
    padding-block-end: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .pd-page * { transition: none !important; }
}
