/* RELiCON mobile homepage. Loaded only at widths up to 700px (see index.html).
   Desktop styles in styles.css are not changed by this file. */

/* Light theme on phones: the same oyster white as desktop (--bg and --bg2 come from styles.css). Dark keeps the navy tokens. */
:root:not([data-theme=dark]){--surface:#ffffff;--line:#e6e1d4;--muted:#56544e;--price:var(--green)}
:root[data-theme=dark]{--price:var(--green)}
:root:not([data-theme=dark]) body{background:var(--bg)}
:root:not([data-theme=dark]) body:before{display:none}

body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}

/* Hidden on phones */
.desktop-only,.hide-mobile,#mobileNav,.main-nav,.signin,.hero-visual,.value-list,.phone-alert{display:none!important}

/* Header: R mark, wordmark and tagline on the left; heart, bell, hamburger on the right */
.site-header{height:calc(66px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;gap:8px}
.brand{gap:9px;min-width:0}
.brand-mark{width:40px;height:40px;flex:0 0 auto}
.brand-mark img{width:100%;height:100%;object-fit:contain}
.brand-word{font-size:25px;font-weight:900;letter-spacing:-1px}
.brand small{font-size:16px;white-space:nowrap}
.header-actions{gap:0}
.header-icon{font-size:22px;padding:8px 6px}
.menu-btn{display:block}
.site-header .menu-btn[data-action="open-options"]{display:none!important}
.bell-btn.m-only{display:flex;align-items:center;justify-content:center}
.bell-btn svg,.tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Hero: text on the left, phone photo on the right, search full width below */
.hero{position:relative;display:block;min-height:0;padding:14px 16px 16px;background:none}
.hero-copy{position:static;width:100%}
.hero-copy .hero-badge{display:inline-block;margin-top:4px;font-size:16px;letter-spacing:.25px}
.hero h1{max-width:56%;font-size:26px;line-height:1.02;letter-spacing:-1.1px;margin:14px 0 10px}
.hero-copy>p:not(.hero-badge){max-width:56%;font-size:16px;line-height:1.45;margin:0}
.hero-photo.m-only{display:block;position:absolute;right:4px;top:46px;width:44%;max-width:190px;pointer-events:none}
.hero-photo img{display:block;width:100%;height:auto;-webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 68%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 68%,transparent 100%)}
.hp-light{mix-blend-mode:multiply}
.hp-dark{mix-blend-mode:screen}
:root[data-theme=dark] .hp-light{display:none}
:root:not([data-theme=dark]) .hp-dark{display:none}

.search{margin-top:24px;max-width:none;width:100%;padding:4px 4px 4px 14px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.search>span{padding:0 6px 0 0;font-size:20px}
.search input{font-size:16px;padding:9px 6px}
.search button{width:40px;height:40px;flex:0 0 auto}
:root[data-theme=dark] .search button{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#fff}

.quick-links.m-only,.quick-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;overflow:visible}
.quick-links::-webkit-scrollbar{display:none}
.quick-links button{flex:0 0 auto;padding:6px 10px;font-size:16px;background:var(--surface)}

/* Category strip: seven tiles in one row. Icon shows; a category photo fills the icon slot when its file exists. */
.categories{padding:16px 16px 2px}
.cat-row.m-only{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.cat-tile{appearance:none;margin:0;padding:9px 1px 8px;font:inherit;color:var(--ink);text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 4px 14px rgba(0,0,0,.04)}
.cat-ico{position:relative;width:100%;height:46px;display:grid;place-items:center;overflow:hidden;color:var(--gold)}
:root[data-theme=dark] .cat-ico{color:var(--gold)}
.cat-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cat-img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;background:var(--surface);border-radius:6px}
.cat-label{font-size:clamp(7.25px,2.1vw,8.5px);font-weight:700;line-height:1.15;color:var(--ink);letter-spacing:-.1px;white-space:normal}
.cat-tile:focus-visible,.tab:focus-visible,.header-icon:focus-visible,.search button:focus-visible,.quick-links button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* Homepage order: hero, categories, results, Trending Deals, Top Stores, Verified Coupons, then the rest */
main#home{display:flex;flex-direction:column}
main#home>*{order:20;width:100%;max-width:none;margin:0}
main#home>.hero{order:1}
main#home>#categories{order:2}
main#home>#results{order:3}
main#home>#deals{order:4}
main#home>#stores{order:5}
main#home>#coupons{order:6}
main#home>#how{order:7}
main#home>#intelligence{order:8}
main#home>#decision{order:9}
main#home>#platforms{order:10}

.section-wide{padding:18px 16px}
.section-title{flex-direction:column;align-items:flex-start;gap:3px;margin:0 0 12px}
.section-title h2{font-size:18px;letter-spacing:-.5px}
.section-title p{font-size:16px}
.intel-live{font-size:16px}

/* Trending Deals: cards with a neutral image slot (no fake product pictures) */
/* Deal cards: three across, as in the approved design. The description line is hidden on phones to keep cards compact. */
.deal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.deal{min-height:0;border-radius:14px;padding:8px;min-width:0}
.deal-visual{height:58px;font-size:0;margin-bottom:6px;border-radius:10px;background:linear-gradient(145deg,var(--bg2),var(--line))}
.deal h3{font-size:16px;line-height:1.2;margin:4px 0 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.deal p{display:none}
.deal-price strong{font-size:16px}
.deal button{border-radius:9px;padding:6px 4px;font-size:16px}

/* Top Stores: name tiles */
.store-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.store{min-height:50px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 5px;border-radius:12px;background:var(--surface);font-size:16px;line-height:1.15;text-align:center;overflow-wrap:anywhere;overflow:hidden}.store img.store-logo{display:block;max-width:100%;max-height:34px;width:auto;height:auto;object-fit:contain}.store img.store-logo[hidden],.store .store-name[hidden]{display:none}

/* Verified Coupons: three across, as in the approved design. The "Verified" line stays hidden until the backend confirms it. */
.coupon-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.coupon{min-height:0;border-radius:14px;padding:9px;min-width:0}
.coupon-top{font-size:16px}
.coupon h3{font-size:16px;line-height:1.2;margin:4px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.coupon strong{font-size:16px}
.coupon-code{padding:4px 5px;font-size:16px;margin-top:6px;gap:4px}
.verified{display:none}
.platform-grid{grid-template-columns:minmax(0,1fr)}
/* Prices and savings are neon green in both themes. In light mode they sit on a dark ink chip so they stay readable on oyster white. */
.deal-price strong,.coupon strong{color:var(--price)}
:root:not([data-theme=dark]) .deal-price strong,:root:not([data-theme=dark]) .coupon strong{display:inline-block;padding:2px 7px;border-radius:7px;background:var(--ink)}
.empty-note{margin:0;padding:18px 14px;border:1px dashed var(--line);border-radius:14px;background:var(--surface);color:var(--muted);font-size:16px;line-height:1.4;text-align:center}

/* Bottom bar: five destinations */
.tabbar.m-only{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:40;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:var(--bg2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--line)}
.tab{appearance:none;margin:0;border:0;background:none;color:var(--muted);font:inherit;font-size:10px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:50px;padding:0;cursor:pointer;min-width:0}
.tab span{white-space:nowrap}
.tab.active{color:var(--gold)}
.tab.active svg{stroke:var(--gold)}
:root[data-theme=dark] .tab.active{color:var(--gold)}
:root[data-theme=dark] .tab.active svg{stroke:var(--gold)}
:root[data-theme=dark] .hero h1 span{color:var(--gold)}

/* Overlays and feedback */
.options-panel{width:100%;border-left:0;padding:22px 16px 40px}
.options-section select{font-size:16px}.options-section{grid-template-columns:minmax(0,1fr)}.options-section select{min-width:0}
.toast{bottom:calc(84px + env(safe-area-inset-bottom))}

/* Ask AI: premium gold in both themes */
.copilot-input button{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#101114}
.store{min-height:0;height:auto;padding:4px 6px;background:transparent;border:0;box-shadow:none;gap:0}.store[hidden]{display:none}.store .store-name{display:block;font-size:12px;line-height:1.15;font-weight:700;color:var(--ink);text-align:center;overflow-wrap:anywhere;max-width:100%}.store[data-tone]{justify-self:center;width:max-content;max-width:100%}:root[data-theme=light] .store[data-tone=light]{background:var(--ink);border-radius:12px;padding:6px}:root[data-theme=dark] .store[data-tone=dark]{background:var(--oyster);border-radius:12px;padding:6px}

/* r19 v10: Top Stores More tile and the More list (stores for the user's market) */
.store.store-more{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;min-height:52px;width:100%;padding:4px 6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px;font-weight:700;cursor:pointer;box-shadow:none}
.store.store-more span{color:var(--gold)}
.stores-list{display:grid;gap:8px}
.stores-list .store-row{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-decoration:none;font-size:16px;font-weight:700;overflow-wrap:anywhere;text-align:left}
.stores-list .store-row span{margin:0;text-align:left}
.store-row img.store-logo{width:44px;height:44px;flex:none;object-fit:contain;border-radius:8px;box-sizing:border-box}
.store-row img.store-logo[hidden]{display:none}
:root[data-theme=light] .stores-list .store-row[data-tone=light] img.store-logo{background:var(--ink);padding:4px}
:root[data-theme=dark] .stores-list .store-row[data-tone=dark] img.store-logo{background:var(--oyster);padding:4px}

/* r20: Top Stores tiles are square cells that fill their grid column; the logo fills most of the tile */
.store-grid{gap:10px}
.store{aspect-ratio:1/1;width:100%;min-width:0;min-height:0;height:auto;padding:6px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:none;overflow:hidden;justify-self:stretch}
.store.store-more{flex-direction:row;min-height:0;height:auto;font-size:16px;font-weight:700}
.store img.store-logo{display:block;width:92%;max-width:92%;height:auto;max-height:none;margin:0 auto;object-fit:contain}
.store .store-name{display:block;max-width:100%;font-size:13px;line-height:1.15;font-weight:700;color:var(--ink);text-align:center;overflow-wrap:anywhere}
:root[data-theme=light] .store[data-tone=light]{background:var(--ink);border-color:var(--ink);padding:6px}
:root[data-theme=dark] .store[data-tone=dark]{background:var(--oyster);border-color:var(--oyster);padding:6px}

/* r21: "View All" sits at the right of each section title on phones too */
.section-title{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:12px}
.section-title>a{flex:none;display:inline-block!important;white-space:nowrap;font-size:16px;font-weight:700;color:var(--gold);text-decoration:none}
/* r21: footer on phones: brand, legal links, Email, Instagram, X and language */
footer{display:flex!important;flex-direction:column;align-items:flex-start;gap:14px;padding:22px 16px 104px;font-size:16px}
footer .footer-links{display:flex!important;flex-wrap:wrap;gap:10px 14px}
footer .footer-right{margin-left:0;flex-wrap:wrap;gap:12px 14px;align-items:center}
footer .footer-right a{font-size:16px}
footer .footer-right select{max-width:100%}

/* r40: phone category photos a little larger */
.cat-ico img.cat-photo{width:42px;height:42px;object-fit:contain}

/* r45: phone category tiles: the photo fills a square tile, the name sits on the photo */
.cat-row.m-only .cat-tile:has(.cat-img){position:relative;padding:0;aspect-ratio:1 / 1;overflow:hidden;border-radius:12px;gap:0;justify-content:flex-end}.cat-row.m-only .cat-tile.cl-hasimg{position:relative;padding:0;aspect-ratio:1 / 1;overflow:hidden;border-radius:12px;gap:0;justify-content:flex-end}
.cat-row.m-only .cat-tile:has(.cat-img) .cat-ico{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;overflow:hidden}.cat-row.m-only .cat-tile.cl-hasimg .cat-ico{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;overflow:hidden}
.cat-row.m-only .cat-tile:has(.cat-img) .cat-ico svg{display:none}.cat-row.m-only .cat-tile.cl-hasimg .cat-ico svg{display:none}
.cat-row.m-only .cat-tile:has(.cat-img) .cat-img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.cat-row.m-only .cat-tile.cl-hasimg .cat-img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;display:block}
.cat-row.m-only .cat-tile:has(.cat-img) .cat-label{position:absolute;left:0;right:0;bottom:0;padding:14px 2px 4px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;font-size:10px;font-weight:700;line-height:1.1;text-align:center}.cat-row.m-only .cat-tile.cl-hasimg .cat-label{position:absolute;left:0;right:0;bottom:0;padding:14px 2px 4px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;font-size:10px;font-weight:700;line-height:1.1;text-align:center}

/* r46: phone photo tiles match the height of the More tile (grid stretch, no fixed square) */
.cat-row.m-only .cat-tile:has(.cat-img){aspect-ratio:auto;height:auto;min-height:0}.cat-row.m-only .cat-tile.cl-hasimg{aspect-ratio:auto;height:auto;min-height:0}

/* r67: phone hero tighter, wordmark coloured by theme, tagline fits header (18 Oct 2026) */
.hero{padding:8px 16px 12px}
.hero-copy .hero-badge{margin-top:0}
.hero h1{font-size:22px;line-height:1.02;margin:8px 0 6px}
.hero-copy>p:not(.hero-badge){font-size:14px;line-height:1.35}
.hero-photo.m-only{top:30px;width:40%}
.search{margin-top:12px}
.brand-word .rw-r{color:var(--gold)}
.brand-word .rw-i{color:var(--green2)}
:root[data-theme=dark] .brand-word .rw-i{color:var(--green)}
.brand-word{color:var(--ink)}
.brand small{font-size:11px;letter-spacing:.2px;font-weight:500;color:var(--muted);white-space:nowrap}
footer .footer-brand small{font-size:12px;color:var(--muted)}

/* r34 logo tiles: tile colour follows the logo, in both themes. Light logo = dark tile; dark logo = light tile. */
#storeGrid>.store[data-tone=light],.store[data-tone=light]{background:#0f1c2f!important;border-color:#0f1c2f!important;color:#f8f5ee}
#storeGrid>.store[data-tone=dark],.store[data-tone=dark]{background:#f8f5ee!important;border-color:#e4dccb!important;color:#091124}
.store-row[data-tone=light] img.store-logo{background:#0f1c2f!important;padding:4px;border-radius:8px}
.store-row[data-tone=dark] img.store-logo{background:#f8f5ee!important;padding:4px;border-radius:8px}

/* r39 home Top Stores: plain white rectangle with gold outline; logos fit inside; grid columns and tiles match so nothing overlaps. */
#storeGrid{grid-auto-columns:116px;gap:12px}
#storeGrid>.store{width:100%;min-width:0;height:72px;padding:6px;box-sizing:border-box;border-radius:0;display:flex;align-items:center;justify-content:center}
#storeGrid>.store[data-tone],#storeGrid>.store:not([data-tone]){background:#ffffff!important;border:2px solid #b8862b!important}
#storeGrid>.store img.store-logo{width:auto;max-width:88%;max-height:56px;height:auto;margin:0 auto;object-fit:contain}

/* r40 home Top Stores: rounded corners; larger logos; taller tiles to fit them. */
#storeGrid>.store{height:76px;border-radius:12px}
#storeGrid>.store img.store-logo{max-width:96%;max-height:64px}

/* r41 store list: bigger logos, smaller names. */
.stores-list .store-row img.store-logo{width:64px;height:64px;flex:none}
.stores-list .store-row span{font-size:15px}

/* r42 store search box and smoother side-scroll for Top Stores */
.store-search{width:100%;box-sizing:border-box;font-size:16px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:inherit;margin:0 0 12px}
#storeGrid{scroll-snap-type:x proximity;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}

/* r43 home Top Stores: bigger tiles, rounded corners on every tile. Store list: no gold outline, bigger logo, name further right. */
#storeGrid{grid-auto-columns:150px;gap:12px}
#storeGrid>.store,#storeGrid>.store[data-tone],#storeGrid>.store:not([data-tone]){height:92px;border-radius:12px!important}
#storeGrid>.store img.store-logo{width:auto;max-width:94%;max-height:76px;height:auto}
.stores-list .store-row,.stores-list .store-row[data-tone],.stores-list .store-row:not([data-tone]){border:1px solid var(--line)!important;background:var(--surface)!important;gap:24px}
.stores-list .store-row img.store-logo{width:120px;height:60px;object-fit:contain}
.stores-list .store-row[data-tone=light] img.store-logo{background:transparent!important;padding:0}

/* r44 smooth side-scroll: no snapping on Top Stores, deals and coupons rows. */
#storeGrid,#dealGrid,#couponGrid,#intelligenceGrid{scroll-snap-type:none!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#storeGrid>*,#dealGrid>*,#couponGrid>*,#intelligenceGrid>*{scroll-snap-align:none!important}
#storeGrid::-webkit-scrollbar,#dealGrid::-webkit-scrollbar,#couponGrid::-webkit-scrollbar,#intelligenceGrid::-webkit-scrollbar{display:none}

/* r58 product cards (mockup 23 Oct) */
#productGrid,.list-products .product-row{display:grid;grid-auto-flow:column;grid-auto-columns:168px;gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 2px 10px}
#productGrid::-webkit-scrollbar,.list-products .product-row::-webkit-scrollbar{display:none}
.product-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.tile-deal.tile-product{aspect-ratio:auto;width:100%;max-width:none;margin:0;padding:10px;border-radius:16px;background:var(--surface,#fff);border:1px solid var(--line,#eee);box-shadow:0 2px 12px rgba(0,0,0,.06)}
.tile-product .tile-media{flex:none;aspect-ratio:4/3;background:#fff!important;border-radius:12px}
.tile-product .tile-media img{max-width:92%;max-height:92%;object-fit:contain}
.tile-product .tile-media img.p-logo{max-width:70%;max-height:60%}
.tile-product .tile-badge{background:#7be06a;color:#0b2a07;font-weight:800;font-size:11px;padding:3px 9px}
.tile-product .tile-info{gap:2px;justify-content:flex-start!important}
.tile-product .p-brand{margin:6px 0 0;font-size:12px;font-weight:700;color:var(--text,#111);opacity:.85}
.tile-product .tile-title{font-size:14px;font-weight:700;line-height:1.25;-webkit-line-clamp:2}
.tile-product .p-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:4px}
.tile-product .p-price strong{color:#1e9b3c;font-size:19px;font-weight:800;line-height:1.1}
.tile-product .p-price s{color:var(--muted,#888);font-size:12px}
.tile-product .own-price,.tile-product .p-store{display:block;margin:2px 0 0;font-size:11px;color:var(--muted,#888)}
.tile-product .deal-go{display:block;margin-top:8px;width:100%;text-align:center;text-decoration:none;box-sizing:border-box}
.list-products .list-sub{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 8px}
.list-products .list-sub h3{margin:0;font-size:17px}
/* r58 home Top Stores: white rounded tiles, soft shadow, no outline, large logo (mockup 23 Oct). */
#storeGrid{grid-auto-columns:128px;gap:12px;padding:4px 2px 12px}
#storeGrid>.store,#storeGrid>.store[data-tone],#storeGrid>.store:not([data-tone]){width:100%;height:100px;padding:12px;box-sizing:border-box;background:#ffffff!important;border:0!important;border-radius:16px!important;box-shadow:0 2px 12px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center}
#storeGrid>.store img.store-logo{width:auto;max-width:88%;max-height:64px;height:auto;margin:0 auto;object-fit:contain}

/* r58q card polish */
.tile-product .p-brand{color:inherit;opacity:.65}
.tile-product.p-cover .tile-media{background:transparent!important;overflow:hidden}
.tile-product.p-cover .tile-media img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:12px}

/* r58s: Top Products sits just above Trending Deals on phones (same order number; it comes first in the page). */
#products{order:4}
/* r58s fix: same selector style as the other homepage sections */
main#home>#products{order:4}

/* r58t product cards: bigger photo that blends with the tile, smaller text */
.tile-product .tile-media,.tile-product.p-cover .tile-media{aspect-ratio:1/1;background:transparent!important;border-radius:12px;overflow:hidden}
.tile-product .tile-media img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:12px}
.tile-product.p-cover .tile-media img{object-fit:cover}
.tile-product .tile-media img.p-logo{width:auto;height:auto;max-width:70%;max-height:60%}
.tile-product .p-brand{font-size:10px;margin-top:6px}
.tile-product .tile-title{font-size:12px;line-height:1.25}
.tile-product .p-price strong{font-size:16px}
.tile-product .p-price s{font-size:10px}
.tile-product .own-price,.tile-product .p-store{font-size:10px}
.tile-product .deal-go{margin-top:6px;padding:7px 8px;font-size:12px;min-height:0}

/* r58u product cards: edge-to-edge photo down to the title, no background, smaller text */
.tile-deal.tile-product{padding:0;overflow:hidden}
.tile-product .tile-media,.tile-product.p-cover .tile-media{flex:none;width:100%;aspect-ratio:5/4;margin:0;padding:0;background:transparent!important;border-radius:16px 16px 0 0;overflow:hidden}
.tile-product .tile-media img,.tile-product.p-cover .tile-media img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:0}
.tile-product .tile-media img.p-logo{width:auto;height:auto;max-width:70%;max-height:60%;object-fit:contain;margin:auto}
.tile-product .tile-badge{top:8px;left:8px}
.tile-product .p-brand{display:none}
.tile-product .tile-info{padding:8px 10px 10px;gap:2px}
.tile-product .tile-title{font-size:12px;line-height:1.25}
.tile-product .p-price{margin-top:2px}
.tile-product .p-price strong{font-size:16px}
.tile-product .p-price s{font-size:10px}
.tile-product .own-price,.tile-product .p-store{font-size:10px;margin-top:1px}
.tile-product .deal-go{margin-top:6px;padding:7px 8px;font-size:12px;min-height:0}

/* r58v Top Stores: shorter tiles (bottom space removed), logo kept large */
#storeGrid{grid-auto-columns:120px;gap:10px;padding:2px 2px 8px}
#storeGrid>.store,#storeGrid>.store[data-tone],#storeGrid>.store:not([data-tone]){height:64px;padding:6px 8px;border-radius:14px!important}
#storeGrid>.store img.store-logo{max-width:92%;max-height:46px}
/* r94 category photos: whole picture */
.cat-row.m-only .cat-tile:has(.cat-img) .cat-img{object-fit:contain!important;background:#f8f0e5}.cat-row.m-only .cat-tile.cl-hasimg .cat-img{object-fit:contain!important;background:#f8f0e5}
/* r94b category tiles white */
.cat-row.m-only .cat-tile:has(.cat-img),.cat-row.m-only .cat-tile:has(.cat-img) .cat-img{background:#fff!important}.cat-row.m-only .cat-tile.cl-hasimg,.cat-row.m-only .cat-tile.cl-hasimg .cat-img{background:#fff!important}
/* r94c category row (phones): name below the picture; white box in both themes */
.cat-row.m-only .cat-tile{position:relative!important;padding:0!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:6px!important}
.cat-row.m-only .cat-tile .cat-ico{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;width:100%!important;height:auto!important;aspect-ratio:1/1;display:flex!important;align-items:center;justify-content:center;overflow:hidden!important;border-radius:14px!important;background:#fff!important;border:1px solid rgba(184,134,43,.35)!important;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.cat-row.m-only .cat-tile .cat-ico svg{display:block;width:44%;height:44%;color:#b8862b}
.cat-row.m-only .cat-tile:has(.cat-img) .cat-ico svg{display:none!important}.cat-row.m-only .cat-tile.cl-hasimg .cat-ico svg{display:none!important}
.cat-row.m-only .cat-tile .cat-img{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important;border-radius:0!important}
.cat-row.m-only .cat-tile .cat-label{position:static!important;background:none!important;color:var(--ink)!important;text-shadow:none!important;padding:0 2px!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important;text-align:center!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* r94d: hidden phone tiles stay hidden (Gaming lives in More); names fit */
.cat-row.m-only .cat-tile[hidden]{display:none!important}
.cat-row.m-only .cat-tile .cat-label{font-size:11px!important;letter-spacing:-.2px}
/* r94e: only the picture box is white; names on the page background; Gaming only in More */
.cat-row.m-only .cat-tile,.cat-row.m-only .cat-tile:has(.cat-img){background:transparent!important}.cat-row.m-only .cat-tile,.cat-row.m-only .cat-tile.cl-hasimg{background:transparent!important}
.cat-row.m-only .cat-tile[hidden],.cat-row.m-only .cat-tile[data-cat="Gaming"]{display:none!important}
.cat-row.m-only .cat-tile .cat-label{font-size:11px!important;letter-spacing:-.2px}
/* r95: one arrow per row in the More category list */
button[data-m="pick-cat"][data-cat]:not(.cat-tile)>span{display:none!important}

/* fable-2: keep room for the "Earn with RELiCON" card (162 px + 12 px margins) until r190-home.js inserts it, so the categories do not jump */
main#home>#categories{margin-top:186px}
main#home>#r190Creator+#categories{margin-top:0}

/* relicon-menu-fix: a closed sheet is hidden, not just see-through, so no invisible full-screen layer sits over the header and tab bar; opening and closing only fade opacity */
.options-overlay,.saved-overlay{visibility:hidden;transition:opacity .2s,visibility 0s linear .2s}
.options-overlay.open,.saved-overlay.open{visibility:visible;transition:opacity .2s,visibility 0s}

/* relicon-panels: panel to panel is instant (the fade stays for homepage <-> first/last panel); no blur under an open panel (iPhone flash) */
.options-overlay.cl-sheet-instant,.saved-overlay.cl-sheet-instant{transition:none!important}
html.cl-sheet-open:root .site-header,html.cl-sheet-open:root .tabbar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* relicon-panels: heart and bell get 44x44 tap areas with more room between the icons; the count sits on the heart's top-right corner */
.site-header [data-action="open-watchlist"],.site-header .bell-btn.m-only{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0}
.site-header .bell-btn.m-only{margin-left:6px}
.site-header #watchCount{top:2px;right:0;min-width:18px;height:18px;padding:0 5px;font-size:11px;line-height:18px;font-weight:700;text-align:center;box-sizing:border-box}

/* relicon-scroll: the page behind an open panel does not scroll (on iPhone a swipe past the end of a panel list went to the page and the list then seemed stuck); html.cl-sheet-lock comes from mobile.js anyOpen() */
html.cl-sheet-lock,html.cl-sheet-lock body{overflow:hidden}

/* relicon-footcompact (18 Nov 2026): compact footer on phones. Only the footer with "Follow us" (index.html: home + results).
   About 40% less padding and gaps; logo 150px wide; links 14px; Follow us buttons 40px tall; smaller deal-news box.
   Bottom padding (104px, room for the tab bar) unchanged. Text, links, colours, themes and right-to-left layout unchanged.
   The deal-news box gets inline styles from cl-news-foot.js, hence !important there. */
footer:has(.follow-us){gap:8px;padding-top:13px}
footer:has(.follow-us) .footer-brand{margin:0}
footer:has(.follow-us) .footer-brand .wm{width:150px;height:auto}
footer:has(.follow-us) .footer-links{gap:4px 12px}
footer:has(.follow-us) .footer-links a{font-size:14px;line-height:1.5}
footer:has(.follow-us) .follow-us{gap:6px;margin:4px 0}
footer:has(.follow-us) .follow-us h3{font-size:13px}
footer:has(.follow-us) .follow-row{gap:8px}
footer:has(.follow-us) .follow-btn{min-height:40px;font-size:14px}
footer:has(.follow-us) .follow-btn.x svg{width:16px;height:16px}
footer:has(.follow-us) .footer-right{gap:8px 12px}
footer:has(.follow-us) .footer-right a{font-size:14px}
footer:has(.follow-us) .footer-right select{padding:6px 10px}
footer:has(.follow-us) .cl-news-foot{gap:4px!important;margin:0 auto 6px!important}
footer:has(.follow-us) .cl-news-foot label{font-size:12px!important}
footer:has(.follow-us) .cl-news-foot input,footer:has(.follow-us) .cl-news-foot button{padding:6px 10px!important}
/* relicon-lowend D (20 Nov 2026): rules using :has() have a twin right after them with a class (cl-hasimg, cl-cmpbar, cl-instock, cl-allout) that cl-old.js sets only in browsers without :has() (Chromium before 105); "inset" is written out as top/right/bottom/left (Chromium before 87). */
