/* =====================================================================
   Gallery page — luxury ink+gold MASONRY gallery. Photos keep their
   natural shape (no cropping — guests see the whole dish), sit in a
   gold-framed card with a hover "View" action, an always-visible name
   plate (when named) and a category chip. Magnific Popup lightbox.
   Rendered by Views/Home/_GalleryImages.cshtml (dbo.GalleryImages,
   managed on the Admin project's Restaurant Gallery page).
   Gold = var(--theme-color) so it always tracks the theme.

   Loaded UNCONDITIONALLY from _Layout (was inside VideoCustom.css, which
   only loads when welcome-popup media exists — so the gallery lost its
   styling on sessions without popup media). Keep this file always-on.
   ===================================================================== */

/* ---- filter tab bar: gold pill tabs ---- */
.rgal-filterbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }
.rgal-filterbar .th-btn {
    border-radius: 999px;
    padding: 11px 26px;
    font-weight: 600;
    letter-spacing: .4px;
    border: 1.5px solid rgba(197, 157, 95, .55);
    background: transparent;
    color: var(--title-color, #1f1f1f);
    box-shadow: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.rgal-filterbar .th-btn:before, .rgal-filterbar .th-btn:after { display: none !important; }
.rgal-filterbar .th-btn:hover { border-color: var(--theme-color, #C59D5F); color: var(--theme-color, #C59D5F); transform: translateY(-2px); }
.rgal-filterbar .th-btn.active {
    background: linear-gradient(135deg, #d8b877 0%, var(--theme-color, #C59D5F) 55%, #b98f4f 100%);
    border-color: transparent;
    color: #1c1c1c;
    box-shadow: 0 10px 22px rgba(197, 157, 95, .34);
}

/* ---- masonry card ---- */
.rgal-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #14110d;
    box-shadow: 0 8px 22px rgba(20, 17, 13, .14);
    transform: translateY(0);
    transition: transform .35s ease, box-shadow .35s ease;
    isolation: isolate;
}
.rgal-card:before {   /* gold frame that lights up on hover */
    content: "";
    position: absolute; inset: 0;
    border: 1.5px solid transparent;
    border-radius: 16px;
    pointer-events: none;
    z-index: 3;
    transition: border-color .35s ease, box-shadow .35s ease;
}
.rgal-card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(20, 17, 13, .3); }
.rgal-card:hover:before { border-color: rgba(197, 157, 95, .85); box-shadow: inset 0 0 0 3px rgba(197, 157, 95, .16); }

.rgal-media { position: relative; display: block; overflow: hidden; }
.rgal-media img {
    width: 100%;
    height: auto;              /* NATURAL ratio → masonry, no crop */
    display: block;
    transition: transform .7s cubic-bezier(.2, .6, .2, 1), filter .4s ease;
}
.rgal-card:hover .rgal-media img { transform: scale(1.07); filter: brightness(.72); }

/* category chip */
.rgal-chip {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    color: #1c1c1c;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    transition: background-color .3s ease, color .3s ease;
}
.rgal-card:hover .rgal-chip { background: var(--theme-color, #C59D5F); color: #1c1c1c; }

/* hover overlay + centered view button */
.rgal-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, rgba(28, 24, 18, .1) 0%, rgba(20, 17, 13, .55) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.rgal-card:hover .rgal-overlay { opacity: 1; }
.rgal-view {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    color: #1c1c1c;
    transform: scale(.6) translateY(8px);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.rgal-card:hover .rgal-view { transform: scale(1) translateY(0); }
.rgal-view i {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.rgal-view-txt { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* always-visible name plate (from the Admin "Food / Photo name") */
.rgal-plate {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 14px 12px 16px;
    background: linear-gradient(180deg, #1c1811 0%, #14110d 100%);
    text-align: center;
    position: relative; z-index: 1;
}
.rgal-orn { position: relative; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--theme-color, #C59D5F), transparent); }
.rgal-orn:after { content: "\2666"; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); color: var(--theme-color, #C59D5F); font-size: 10px; line-height: 1; }
.rgal-name {
    font-family: var(--title-font, "ZCOOL XiaoWei", serif);
    color: #f4e7cb;
    font-size: 17px; line-height: 1.3; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .3s ease;
}
.rgal-card:hover .rgal-name { color: #ffe9b8; }
.rgal-price { margin-top: 3px; color: var(--theme-color, #C59D5F); font-weight: 700; font-size: 14px; letter-spacing: .3px; }

/* =====================================================================
   "Our Kitchen Promise" — food quality / origin / allergy / vegan
   declarations (_FoodOriginDeclaration.cshtml, on Home + Menu). Ink+gold,
   trust-building cards + traceable-origin tiles. Multi-device.
   ===================================================================== */
.fod-section { padding: clamp(34px, 5vw, 64px) 0; background: linear-gradient(180deg, #faf6ee 0%, #f4ede0 100%); }
.fod-head { max-width: 780px; margin: 0 auto clamp(20px, 3vw, 32px); }
.fod-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
    padding: 5px 15px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: #1c1c1c; background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 5px 13px rgba(197, 157, 95, .3);
}
.fod-maintitle { font-family: var(--title-font, "ZCOOL XiaoWei", serif); color: #1c1c1c; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.22; margin: 0 0 8px; }
.fod-lead { color: #5c5346; font-size: clamp(13px, 1.3vw, 15px); line-height: 1.6; margin: 0; }

.fod-card {
    position: relative; height: 100%; background: #fff; border-radius: 14px;
    padding: 16px 18px 17px; box-shadow: 0 8px 22px rgba(28, 24, 18, .07);
    border: 1px solid rgba(197, 157, 95, .18); overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.fod-card:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #e6cd97, var(--theme-color, #C59D5F), #b98f4f); }
.fod-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28, 24, 18, .12); }
.fod-cardhead { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.fod-ic {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #1c1c1c;
    background: linear-gradient(135deg, #f3e4bf 0%, #e6cd97 100%); box-shadow: 0 5px 12px rgba(197, 157, 95, .26);
}
.fod-title { font-family: var(--title-font, "ZCOOL XiaoWei", serif); color: #1c1c1c; font-size: 17px; line-height: 1.25; margin: 0; }
.fod-text { color: #5c5346; font-size: 13.5px; line-height: 1.6; margin: 0; }

/* per-declaration accent (top bar + icon tint) */
.fod-card--warn:before { background: linear-gradient(90deg, #f0b429, #d97706); }
.fod-card--warn .fod-ic { background: linear-gradient(135deg, #fde9c8, #f7c873); color: #8a5a00; }
.fod-card--bread:before { background: linear-gradient(90deg, #e6cd97, #b98f4f); }
.fod-card--bread .fod-ic { background: linear-gradient(135deg, #f3e4bf, #d9b877); color: #7a5c17; }
.fod-card--vegan:before { background: linear-gradient(90deg, #4caf50, #2e7d32); }
.fod-card--vegan .fod-ic { background: linear-gradient(135deg, #d6f0d8, #a9dcae); color: #1e6023; }
.fod-card--origin:before { background: linear-gradient(90deg, #14b8a6, var(--theme-color, #C59D5F)); }
.fod-card--origin .fod-ic { background: linear-gradient(135deg, #cdeeea, #9fddd5); color: #0b6b60; }

/* Ingredient Origins card */
.fod-origin-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fod-origin-head .fod-ic { flex-shrink: 0; }
.fod-origins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fod-origin {
    position: relative; background: #faf6ee; border-radius: 11px; padding: 12px 10px 11px; text-align: center;
    border: 1px solid rgba(197, 157, 95, .2); transition: transform .25s ease, box-shadow .25s ease;
}
.fod-origin:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(28, 24, 18, .12); }
.fod-origin:after { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 3px; border-radius: 3px; }
.fod-origin--teal:after { background: #14b8a6; }
.fod-origin--red:after { background: #e05656; }
.fod-origin-imgs { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.fod-origin-imgs img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 3px 9px rgba(0, 0, 0, .16); }
.fod-origin-name { font-weight: 700; color: #1c1c1c; font-size: 13.5px; margin-bottom: 6px; }
.fod-origin-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; color: #1e6023; background: rgba(76, 175, 80, .14); border: 1px solid rgba(76, 175, 80, .4);
}
.fod-origin-badge i { color: #2e7d32; font-size: 11px; }
.fod-note {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; color: #8a5a00; font-size: 12.5px; line-height: 1.5;
    background: rgba(240, 180, 41, .12); border: 1px solid rgba(240, 180, 41, .35);
}
.fod-note i { color: #d97706; margin-right: 5px; }

@media (max-width: 991.98px) { .fod-origins { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
    .fod-card { padding: 14px 15px; border-radius: 13px; }
    .fod-cardhead { gap: 10px; margin-bottom: 7px; }
    .fod-ic { width: 36px; height: 36px; font-size: 16px; }
    .fod-title { font-size: 15.5px; }
    .fod-text { font-size: 13px; }
    .fod-origins { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .fod-origin-imgs img { width: 42px; height: 42px; }
}

/* =====================================================================
   Signature Dish carousel cards (Home/Index) — ink+gold hero cards.
   Data: dbo.GalleryImages IsSignatureDish (Admin-curated). Swiper unchanged.
   ===================================================================== */
.sig-card {
    position: relative; display: block; border-radius: 18px; overflow: hidden;
    background: #14110d; box-shadow: 0 10px 26px rgba(20, 17, 13, .18);
    transform: translateY(0); transition: transform .4s ease, box-shadow .4s ease; isolation: isolate;
}
.sig-card:before {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    border: 1.5px solid transparent; border-radius: 18px; transition: border-color .4s ease, box-shadow .4s ease;
}
.sig-card:hover { transform: translateY(-8px); box-shadow: 0 24px 46px rgba(20, 17, 13, .32); }
.sig-card:hover:before { border-color: rgba(197, 157, 95, .9); box-shadow: inset 0 0 0 4px rgba(197, 157, 95, .14); }

.sig-img { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #0e0b07; }
.sig-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .4s ease; }
.sig-card:hover .sig-img img { transform: scale(1.08); filter: brightness(.72); }

.sig-ribbon {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: #1c1c1c; background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.sig-ribbon i { font-size: 11px; }

.sig-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(20,17,13,0) 0%, rgba(20,17,13,.6) 45%, rgba(14,11,7,.96) 100%);
    text-align: center;
}
.sig-name {
    font-family: var(--title-font, "ZCOOL XiaoWei", serif); color: #fff; font-size: 21px; line-height: 1.25; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sig-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sig-btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    padding: 10px 22px; border-radius: 999px; font-weight: 700; color: #1c1c1c;
    background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 8px 20px rgba(197, 157, 95, .3); transition: transform .2s ease, box-shadow .2s ease;
}
.sig-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(197, 157, 95, .42); color: #1c1c1c; }
.sig-btn i { font-size: 13px; }
.sig-link { color: #e9d9b6; font-size: 12.5px; font-weight: 600; letter-spacing: .5px; text-decoration: none; text-transform: uppercase; opacity: .9; }
.sig-link:hover { color: var(--theme-color, #C59D5F); text-decoration: underline; }

@media (max-width: 991.98px) { .sig-name { font-size: 19px; } .sig-img { aspect-ratio: 4 / 5; } }
@media (max-width: 575.98px) {
    .sig-card { border-radius: 14px; }
    .sig-card:hover { transform: none; }
    .sig-card:hover .sig-img img { transform: none; filter: none; }
    .sig-name { font-size: 18px; }
    .sig-body { padding: 18px 12px 14px; }
    .sig-ribbon { top: 10px; left: 10px; padding: 5px 11px; font-size: 10.5px; }
}

/* immersive info overlay on the photo — icons + name + price over a gradient */
.rgal-imginfo {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 46px 12px 14px; text-align: center;
    background: linear-gradient(180deg, rgba(14,11,7,0) 0%, rgba(14,11,7,.12) 26%, rgba(14,11,7,.72) 68%, rgba(14,11,7,.94) 100%);
}
/* dietary/attribute icons — a VERTICAL column of circular white badges down the
   LEFT side of the photo (always visible) */
.rgal-sideicons {
    position: absolute; left: 10px; top: 10px; z-index: 3;
    display: flex; flex-direction: column; gap: 7px;
}
.rgal-sideicons img {
    width: 44px; height: 44px; object-fit: contain; display: block;
    border-radius: 50%; background: #fff; padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.rgal-imgcat {
    display: inline-block; margin-bottom: 5px; color: var(--theme-color, #C59D5F);
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
}
.rgal-imginfo .rgal-name {
    font-family: var(--title-font, "ZCOOL XiaoWei", serif); color: #fff; font-size: 18px; line-height: 1.25; margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* price = clean gold text on the photo (NOT a button/pill) */
.rgal-imginfo .rgal-price {
    display: inline-block; margin-top: 5px; padding: 0; background: none; box-shadow: none; border-radius: 0;
    color: var(--theme-color, #C59D5F); font-weight: 800; font-size: 18px; letter-spacing: .4px;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .8);
}

/* dish CATEGORY badge (Starter / Vegetarian Main Dishes / Main Dishes with Meat …) */
.rgal-type {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
    padding: 3px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
    color: #1c1c1c; line-height: 1.3;
    background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .32);
}
.rgal-type i { font-size: 10px; }

/* "View Menu" link on the photo */
.rgal-viewmenu { display: inline-block; margin-top: 7px; color: #e9d9b6; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.rgal-viewmenu:hover { color: var(--theme-color, #C59D5F); text-decoration: underline; }
.rgal-viewmenu i { font-size: 10px; margin-left: 3px; }

/* Signature Dish card = the gallery immersive card at a fixed photo ratio (for the
   carousel/grid), with the "Signature" ribbon; icons start below the ribbon. */
.sig-card-v2 .rgal-media { aspect-ratio: 3 / 4; }
.sig-card-v2 .rgal-media img { height: 100%; object-fit: cover; }
.sig-card-v2 .rgal-sideicons { top: 48px; }
.sig-card-v2 .sig-ribbon { top: 12px; left: 12px; }

/* small circular "add to cart" icon button floating on the photo (top-right) */
.rgal-media.rgal-openmodal { cursor: pointer; }
.rgal-add-fab {
    position: absolute; top: 12px; right: 12px; z-index: 4;
    width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
    color: #1c1c1c; font-size: 16px;
    background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .32);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.rgal-add-fab:hover { transform: scale(1.1); box-shadow: 0 9px 20px rgba(0, 0, 0, .42); }
.rgal-add-fab:active { transform: scale(.96); }
.rgal-add-fab.is-done { background: #2e7d32; color: #fff; }

/* the plate sits under the photo on dish cards (name + price only) */
.rgal-card-dish { display: flex; flex-direction: column; }
.rgal-card-dish .rgal-plate { padding: 13px 12px 15px; }

@media (max-width: 575.98px) {
    .rgal-sideicons { gap: 5px; left: 7px; }
    .rgal-sideicons img { width: 37px; height: 37px; padding: 5px; }
    .rgal-add-fab { width: 38px; height: 38px; font-size: 15px; top: 9px; right: 9px; }
    .rgal-imginfo .rgal-name { font-size: 16px; }
}

/* =====================================================================
   Dish-detail modal (opened from a dish card) + shared-cart floating pill
   ===================================================================== */
.rgal-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.rgal-modal.is-open { display: block; }
.rgal-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 8, .72); backdrop-filter: blur(3px); animation: rgalFade .25s ease; }
@keyframes rgalFade { from { opacity: 0; } to { opacity: 1; } }
.rgal-modal-card {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(920px, 94vw); max-height: 92vh; overflow: hidden;
    display: grid; grid-template-columns: 1.05fr 1fr;
    background: #17130d; color: #f3e7cd;
    border: 1px solid rgba(197, 157, 95, .4);
    border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
    animation: rgalPop .32s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes rgalPop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.rgal-modal-x {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; cursor: pointer; color: #1c1c1c;
    background: rgba(255, 255, 255, .92);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: background-color .25s ease, transform .25s ease;
}
.rgal-modal-x:hover { background: var(--theme-color, #C59D5F); transform: rotate(90deg); }

.rgal-modal-media { position: relative; background: #0e0b07; min-height: 260px; }
.rgal-modal-media img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; display: block; }
.rgal-md-cat { top: 14px; left: 14px; }

.rgal-modal-body { padding: 26px 28px; overflow-y: auto; display: flex; flex-direction: column; }
.rgal-md-eyebrow { color: var(--theme-color, #C59D5F); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.rgal-md-name { font-family: var(--title-font, "ZCOOL XiaoWei", serif); color: #fff; font-size: 27px; line-height: 1.2; margin: 6px 0 12px; }
.rgal-md-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.rgal-md-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 16px 6px 7px; border-radius: 999px; font-size: 14px; font-weight: 600;
    color: #f3e7cd;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(197, 157, 95, .45);
}
/* dietary icons DOUBLE size inside the dish-detail popup */
.rgal-md-tag img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.rgal-md-desc { color: #d8cbb2; font-size: 14.5px; line-height: 1.65; margin: 0 0 16px; }
.rgal-md-pricewrap { display: flex; align-items: baseline; gap: 10px; padding-top: 6px; border-top: 1px solid rgba(197, 157, 95, .22); }
.rgal-md-pricelbl { color: #b7a888; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.rgal-md-price { color: var(--theme-color, #C59D5F); font-size: 26px; font-weight: 800; }
.rgal-md-orderrow { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.rgal-md-stepper { display: inline-flex; align-items: center; gap: 4px; background: #221b12; border: 1px solid rgba(197, 157, 95, .4); border-radius: 999px; padding: 4px; }
.rgal-md-stepper button {
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: transparent; color: var(--theme-color, #C59D5F); font-size: 13px;
    display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease;
}
.rgal-md-stepper button:hover { background: var(--theme-color, #C59D5F); color: #1c1c1c; }
.rgal-md-stepper span { min-width: 30px; text-align: center; font-weight: 700; color: #fff; font-size: 16px; }
.rgal-md-add {
    flex: 1 1 auto; border: none; cursor: pointer; border-radius: 999px; padding: 13px 20px;
    font-weight: 700; letter-spacing: .4px; color: #1c1c1c;
    background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 10px 24px rgba(197, 157, 95, .34);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.rgal-md-add:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(197, 157, 95, .45); }
.rgal-md-add.is-done { background: #2e7d32; color: #fff; }
.rgal-md-note { min-height: 20px; font-size: 13px; margin: 10px 0 4px; color: #d8cbb2; }
.rgal-md-note.is-ok { color: #8ce49a; font-weight: 600; }
.rgal-md-note i { margin-right: 5px; }
.rgal-md-go { display: inline-flex; align-items: center; gap: 8px; color: var(--theme-color, #C59D5F); font-weight: 700; text-decoration: none; font-size: 14px; margin-top: 2px; }
.rgal-md-go:hover { color: #ffe9b8; text-decoration: underline; }
.rgal-md-fineprint { margin-top: 14px; color: #9a8c72; font-size: 11.5px; line-height: 1.5; }
.rgal-md-fineprint i { color: var(--theme-color, #C59D5F); }

/* floating "view cart" pill (persists across pages while the cart has items) */
.rgal-cartfab {
    position: fixed; right: 18px; bottom: 18px; z-index: 99990;
    display: none; align-items: center; gap: 9px;
    padding: 12px 18px; border-radius: 999px; text-decoration: none;
    color: #1c1c1c; font-weight: 700;
    background: linear-gradient(135deg, #e6cd97 0%, var(--theme-color, #C59D5F) 60%, #b98f4f 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.rgal-cartfab.is-visible { display: inline-flex; }
.rgal-cartfab:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); color: #1c1c1c; }
.rgal-cartfab i { font-size: 16px; }
.rgal-cartfab-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #1c1c1c; color: var(--theme-color, #C59D5F); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---- modal responsive ---- */
@media (max-width: 767.98px) {
    .rgal-modal-card { grid-template-columns: 1fr; width: 94vw; max-height: 90vh; overflow-y: auto; }
    .rgal-modal-media { min-height: 0; }
    .rgal-modal-media img { max-height: 40vh; }
    .rgal-md-name { font-size: 23px; }
    .rgal-md-price { font-size: 23px; }
    .rgal-modal-body { padding: 20px; }
    .rgal-cartfab-txt { display: none; }
    .rgal-cartfab { right: 14px; bottom: 14px; padding: 12px 14px; }
}

/* masonry vertical gutter (horizontal spacing comes from the Bootstrap col
   padding, same as the original layout; isotope masonry stacks by height) */
.filter-active .filter-item { margin-bottom: 26px; }

/* ---- responsive ---- */
@media (max-width: 991.98px) {
    .rgal-card { border-radius: 14px; }
    .rgal-name { font-size: 15px; }
    .filter-active .filter-item { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
    .rgal-filterbar { gap: 8px; }
    .rgal-filterbar .th-btn { padding: 9px 18px; font-size: 13px; }
    .rgal-card { border-radius: 12px; box-shadow: 0 5px 14px rgba(20, 17, 13, .16); }
    .rgal-card:hover { transform: none; }                 /* no lift on touch */
    .rgal-card:hover .rgal-media img { transform: none; filter: none; }
    .rgal-overlay { display: none; }                      /* no hover hint on touch */
    .rgal-chip { top: 8px; left: 8px; padding: 4px 9px; font-size: 10px; }
    .rgal-plate { padding: 11px 8px 12px; }
    .rgal-name { font-size: 13.5px; }
    .filter-active .filter-item { margin-bottom: 14px; }
}
