:root {
    --bg: #f5f6f8;
    --panel: #fff;
    --line: #e1e1e1;
    --text: #333;
    --muted: #717171;
    --blue: #234a8f;
    --badge: #c54d4f;
    --shadow: 0 1px 3px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
   /* font-family: Arial, Helvetica, sans-serif;*/
    font-size: 14px;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 10;
}
.nav-shell {
    min-height: 50px;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) minmax(240px, 410px) 34px;
    gap: 10px;
    align-items: center;
    padding: 0 16px;
    max-width: 100vw;
    overflow: hidden;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #333;
}
.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid #263846;
    background: #f6fbff;
    color: #29527a;
    font-weight: 900;
    box-shadow: inset 0 0 0 2px #9db5c7;
}
.brand-name {
    font-size: 22px;
    line-height: 1;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.main-nav a {
    min-width: 0;
    padding: 9px 12px;
    border-radius: 4px;
    color: #3a3a3a;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}
.main-nav a.active {
    background: #f1f1f1;
    color: var(--blue);
}
.main-nav span {
    display: inline-block;
    margin-left: 3px;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--badge);
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
}
.search {
    height: 38px;
    display: grid;
    grid-template-columns: 1fr 46px;
    background: #f1f1f1;
    border-radius: 6px;
    overflow: hidden;
    justify-self: end;
    width: min(410px, 100%);
    max-width: 100%;
    min-width: 0;
}
.search input {
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 16px;
    color: #555;
    font-size: 18px;
    outline: none;
}
.search button {
    border: 0;
    background: transparent;
    color: #333;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.refresh-link {
    color: #333;
    font-size: 28px;
    text-align: center;
    transform-origin: center;
}
.refresh-link.is-refreshing {
    animation: refreshSpin .55s linear infinite;
}
@keyframes refreshSpin {
    to { transform: rotate(360deg); }
}

.page {
    padding: 8px 12px;
    max-width: 100vw;
    overflow-x: hidden;
}
.flash {
    max-width: 1400px;
    margin: 0 auto 14px;
    background: #eef7ff;
    border: 1px solid #c7dff4;
    border-radius: 3px;
    padding: 10px 14px;
    color: #245078;
    font-weight: 700;
}
.site-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    gap: 9px;
    max-width: 100%;
    overflow: hidden;
}
.primary-column, .right-rail {
    min-width: 0;
}
.feed-toolbar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 7px;
    padding: 0 16px;
}
.feed-toolbar h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 400;
}
.view-switch {
    display: flex;
    gap: 6px;
}
.view-switch a,
.view-switch button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #6a6d72;
    font-size: 22px;
    cursor: pointer;
}
.view-switch a.active, .view-switch a:hover,
.view-switch button.active, .view-switch button:hover {
    background: #eeeeee;
}
.filter-strip {
    margin: 0 0 12px;
    padding: 12px 16px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
    color: #555;
}

.deal-feed.wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.deal-feed.tile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.deal-card {
    min-height: 104px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 9px;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 8px 10px;
    overflow: visible;
    min-width: 0;
    position: relative;
}
.deal-card.is-newly-loaded {
    animation: newDealFlash 2.2s ease-out;
}
@keyframes newDealFlash {
    0% { box-shadow: 0 0 0 2px rgba(35,74,143,.35), var(--shadow); }
    100% { box-shadow: var(--shadow); }
}
.product-media {
    position: relative;
    display: grid;
    grid-template-rows: 70px 24px;
    align-content: start;
}
.new-badge {
    position: absolute;
    top: -7px;
    left: 10px;
    z-index: 1;
    background: #d9d9d9;
    border-radius: 3px;
    color: #777;
    font-size: 10px;
    letter-spacing: 3px;
    padding: 3px 7px 2px;
}
.product-image-link,
.product-media img, .fallback-image {
    width: 92px;
    height: 70px;
}
.product-image-link {
    display: block;
}
.product-media img, .fallback-image {
    display: grid;
    place-items: center;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}
.get-deal {
    width: 92px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #333;
    font-size: 12px;
    white-space: nowrap;
}
.deal-body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    position: relative;
}
.card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 8px;
    align-items: start;
}
.deal-body h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    max-height: 36px;
    overflow: hidden;
}
.expand-button {
    border: 0;
    background: transparent;
    color: #333;
    line-height: 1;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    font-size: 0;
    padding: 0;
}
.expand-button:before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg) translateY(-2px);
}
.expand-button:hover,
.deal-menu.is-open .expand-button {
    background: #eeeeee;
}
.deal-menu.is-open .expand-button:before {
    transform: rotate(225deg) translate(-1px, -1px);
}
.deal-menu {
    position: relative;
    justify-self: end;
}
.deal-menu-panel {
    display: none;
    position: absolute;
    top: 24px;
    right: -2px;
    z-index: 30;
    width: 170px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    padding: 14px 0;
}
.deal-menu.is-open .deal-menu-panel {
    display: block;
}
.deal-menu-panel form {
    margin: 0;
}
.deal-menu-panel button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #333;
    display: block;
    padding: 12px 22px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
}
.deal-menu-panel button:hover {
    background: #f3f3f3;
}
.compact-price-row {
    display: grid;
    grid-template-columns: 48px minmax(68px, 1fr) 70px;
    gap: 7px;
    align-items: center;
    color: #333;
    font-size: 13px;
}
.compact-price-row span,
.compact-price-row strong,
.compact-price-row del {
    white-space: nowrap;
}
.compact-price-row strong {
    color: var(--blue);
    font-size: 15px;
    justify-self: center;
}
.compact-price-row del {
    justify-self: end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-metrics {
    display: grid;
    grid-template-columns: 48px 48px minmax(58px, 1fr) 44px;
    gap: 5px;
    align-items: center;
    color: #6c7075;
    font-size: 12px;
}
.card-metrics > *,
.card-metrics button {
    min-width: 0;
    white-space: nowrap;
}
.card-metrics .is-zero {
    color: #9a9a9a;
}
.card-metrics form { margin: 0; }
.card-metrics button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
}
.store-mark {
    justify-self: end;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #fff5e0 !important;
    color: #111 !important;
    font-size: 16px;
    font-weight: 900;
    font-family: Georgia, serif;
    line-height: 1;
    text-align: center;
}
.store-mark-form {
    position: absolute;
    right: -2px;
    bottom: 22px;
    z-index: 2;
    margin: 0;
}
.list-extra {
    display: none;
}
.deal-feed.wide .deal-card {
    grid-template-columns: 100px minmax(0, 1fr);
    height: 104px;
}
.deal-feed.tile .deal-card {
    position: relative;
    min-height: 292px;
    height: 292px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 10px 8px;
}
.deal-feed.tile .product-media {
    grid-template-rows: 132px 24px;
    justify-items: center;
    border-bottom: 1px solid #eeeeee;
    margin: 0 -2px 8px;
}
.deal-feed.tile .new-badge {
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
}
.deal-feed.tile .product-image-link,
.deal-feed.tile .product-media img,
.deal-feed.tile .fallback-image {
    width: 132px;
    height: 132px;
    object-fit: contain;
}
.deal-feed.tile .get-deal {
    justify-self: start;
    width: 96px;
    margin-left: 0;
}
.deal-feed.tile .store-mark-form {
    right: 6px;
    bottom: 20px;
}
.deal-feed.tile .store-mark {
    width: 28px;
    height: 28px;
    box-shadow: 0 1px 5px rgba(0,0,0,.25);
    font-size: 20px;
}
.deal-feed.tile .deal-body {
    gap: 7px;
}
.deal-feed.tile .card-title-row {
    grid-template-columns: minmax(0, 1fr) 18px;
}
.deal-feed.tile .deal-body h2 {
    font-size: 15px;
    line-height: 1.35;
    max-height: 61px;
}
.deal-feed.wide .compact-price-row,
.deal-feed.wide .card-metrics {
    overflow: hidden;
}
.deal-feed.tile .deal-body {
    overflow: visible;
}
.deal-feed.tile .compact-price-row {
    grid-template-columns: 52px 1fr 70px;
    font-size: 13px;
}
.deal-feed.tile .compact-price-row strong {
    font-size: 15px;
}
.deal-feed.tile .card-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: auto;
}
.deal-feed.tile .list-extra {
    display: none;
}
.list-extra p {
    margin: 0 0 10px;
    color: #4b5563;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.actions form { margin: 0; }
.actions button, .actions a {
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    background: #f7f7f7;
    padding: 8px 10px;
    color: #333;
    cursor: pointer;
}
.comment-line {
    border-top: 1px solid #e5e5e5;
    padding-top: 8px;
    color: #3d4652;
}
.comment-line strong { color: #111; }
.comment-line small { margin-left: 8px; color: var(--muted); }

.right-rail {
    display: grid;
    gap: 9px;
    align-content: start;
}
.signin-panel, .rail-panel {
    background: #fff;
    border-radius: 3px;
    box-shadow: var(--shadow);
    padding: 10px;
}
.signin-panel {
    padding: 10px;
}
.signin-panel a {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #f1f1f1;
    color: #222;
    font-size: 16px;
}
.signin-panel strong {
    color: #4285f4;
    font-size: 28px;
}
.signed-in-panel {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.user-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0f6aa8;
    color: #fff;
    font-size: 28px;
}
.signed-in-panel small,
.signed-in-panel strong {
    display: block;
}
.signed-in-panel strong {
    color: #222;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.signed-in-panel a {
    display: inline-block;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 10px;
    background: #fafafa;
}
.rail-panel h2 {
    margin: 0 0 8px;
    padding: 9px 11px;
    background: #f1f1f1;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 400;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.chips a {
    border: 1px solid #d9dee5;
    border-radius: 999px;
    background: #fafafa;
    padding: 9px 14px;
}
.live-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 36px 48px 60px;
    gap: 5px;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding: 7px 0;
    min-width: 0;
}
.live-card small {
    grid-column: 1 / -1;
    justify-self: start;
    background: #f1f1f1;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 12px;
}
.mini-thumb {
    width: 46px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.live-card strong {
    font-size: 12px;
    line-height: 1.22;
    font-weight: 400;
    max-height: 32px;
    overflow: hidden;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: normal;
    word-break: normal;
}
.live-card em {
    font-style: normal;
    line-height: 1.15;
    font-size: 12px;
}
.live-card b {
    color: var(--blue);
    font-size: 12px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.live-card del {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    min-width: 0;
    font-size: 12px;
    justify-self: end;
}

@supports not (-webkit-line-clamp: 2) {
    .live-card strong {
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }
}
.latest a {
    display: block;
    border-top: 1px solid #e2e2e2;
    padding: 9px 0;
}
.latest strong, .latest span, .latest small {
    display: block;
}
.latest strong { font-size: 15px; }
.latest span { margin-top: 3px; line-height: 1.25; }
.latest small { color: var(--muted); margin-top: 6px; }

.empty, .detail-main, .static-page {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 24px;
}
.footer {
    border-top: 1px solid #ddd;
    background: #fff;
    color: var(--muted);
    padding: 18px 22px;
}
.footer div {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.site-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    border-top: 1px solid #e1e1e1;
    background: #fff;
    padding: 14px 16px;
    color: #555;
}
.site-links a {
    color: #333;
}

@media (min-width: 861px) {
    body {
        padding-bottom: 49px;
    }
    .site-links {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9;
        box-shadow: 0 -1px 5px rgba(0,0,0,.08);
    }
}

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.scroll-top.is-visible {
    display: grid;
}

.feed-loader {
    display: block;
    min-height: 1px;
    padding: 0;
    color: var(--muted);
    text-align: center;
}
.feed-loader.is-loading {
    min-height: 42px;
    padding: 14px;
}

.detail-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
}
.detail-hero {
    display: flex;
    gap: 20px;
    margin: 18px 0;
}
.thumb.large {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 4px;
    font-size: 78px;
    font-weight: 800;
    overflow: hidden;
}
.thumb.large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.store-line { color: var(--muted); text-transform: lowercase; margin: 0 0 8px; }
.detail-hero h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.25; }
.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.price-row strong { color: #e8513d; font-size: 30px; }
.old-price { color: var(--muted); text-decoration: line-through; }
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.detail-actions form { margin: 0; }
.detail-actions button, .detail-actions a, .comment-form button {
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    background: #f7f7f7;
    padding: 9px 12px;
    color: #333;
    cursor: pointer;
}
.note-box, .comments {
    border-top: 1px solid #e1e1e1;
    padding-top: 16px;
    margin-top: 16px;
}
.comment-form {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
}
.comment-form input, .comment-form textarea {
    width: 100%;
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    padding: 10px 11px;
}
.static-page {
    max-width: 780px;
    margin: 0 auto;
}
.static-page p, .static-page li { line-height: 1.7; color: #4b5563; }

.has-deal-modal {
    overflow: hidden;
}
.deal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 18px;
    background: rgba(0,0,0,.42);
    overflow: auto;
}
.deal-modal {
    width: min(720px, calc(100vw - 96px));
    min-height: 0;
    background: #fff;
    box-shadow: 0 3px 18px rgba(0,0,0,.24);
    position: relative;
}
.quick-deal {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    padding: 22px 22px 58px;
    color: #3a3a3a;
}
.quick-close {
    position: absolute;
    right: -48px;
    top: -28px;
    z-index: 101;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #222;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 1px 6px rgba(0,0,0,.16);
}
.quick-deal h1 {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}
.quick-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 18px;
    align-items: center;
}
.quick-image {
    height: 210px;
    display: grid;
    place-items: center;
    background: #fff !important;
    color: #fff;
    font-size: 54px;
    font-weight: 800;
}
.quick-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.quick-price {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}
.quick-price strong {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #102033;
    color: #fff;
    font-size: 25px;
}
.quick-price div {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 17px;
}
.quick-price del {
    font-size: 21px;
}
.quick-price b {
    font-size: 19px;
}
.quick-price small {
    color: #666;
    font-size: 14px;
}
.quick-buy {
    height: 48px;
    display: grid;
    place-items: center;
    margin: 24px 0 24px;
    background: #f1f1f1;
    color: #333;
    font-size: 16px;
    font-weight: 700;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    text-align: center;
}
.quick-actions form {
    margin: 0;
}
.quick-actions button {
    border: 0;
    background: transparent;
    color: #444;
    font-size: 23px;
    cursor: pointer;
}
.quick-actions span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}
.quick-comments header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quick-comments h2 {
    margin: 0 0 20px;
    font-size: 18px;
}
.quick-comments a,
.quick-comments p {
    color: #555;
    font-size: 15px;
}
.quick-comments p {
    text-align: center;
}
.quick-comment-form {
    height: 52px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 12px;
    align-items: center;
    margin: 26px -22px -58px;
    padding: 9px 16px;
    border-top: 1px solid #e9e9e9;
    background: #fff;
}
.quick-comment-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0f6aa8;
    color: #fff;
    font-weight: 700;
}
.quick-comment-form input[name="commentText"] {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #555;
    font-size: 15px;
}
.quick-comment-form button {
    border: 0;
    background: transparent;
    color: #8c8c8c;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1250px) {
    .nav-shell {
        grid-template-columns: 180px 1fr;
    }
    .search {
        justify-self: stretch;
        width: auto;
    }
    .search, .refresh-link {
        grid-column: span 1;
    }
    .site-grid {
        grid-template-columns: 1fr;
    }
    .right-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1500px) {
    .deal-feed.tile {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .right-rail, .deal-feed.wide, .deal-feed.tile, .detail-layout {
        grid-template-columns: 1fr;
    }
    .nav-shell {
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr) 46px 46px;
        gap: 8px;
        padding: 8px 24px;
        align-content: center;
    }
    .brand-icon {
        width: 42px;
        height: 42px;
        border-width: 2px;
    }
    .brand-name {
        font-size: 28px;
    }
    .main-nav {
        display: none;
    }
    .search {
        grid-column: 2;
        grid-row: 1;
        width: 46px;
        height: 46px;
        grid-template-columns: 46px;
        justify-self: end;
        background: transparent;
        border-radius: 0;
    }
    .search input {
        display: none;
        width: 0;
        padding: 0;
    }
    .search button {
        font-size: 25px;
        padding: 0;
    }
    .search.is-open {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 38px;
        grid-template-columns: 1fr 42px;
        justify-self: stretch;
        background: #f1f1f1;
        border-radius: 6px;
    }
    .search.is-open input {
        display: block;
        width: auto;
        padding: 0 12px;
        font-size: 16px;
    }
    .search.is-open button {
        font-size: 22px;
    }
    .refresh-link {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        font-size: 29px;
    }
    .deal-card, .deal-feed.wide .deal-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 132px;
        height: auto;
        gap: 12px;
        padding: 10px 16px 10px 13px;
    }
    .deal-body {
        grid-template-rows: auto auto 1fr auto;
        gap: 3px;
        height: 100%;
    }
    .deal-body h2 {
        font-size: 16px;
        line-height: 1.42;
        max-height: 46px;
    }
    .product-media {
        grid-template-rows: 78px 23px;
    }
    .product-image-link,
    .product-media img, .fallback-image {
        width: 104px;
        max-width: 100%;
        height: 78px;
    }
    .get-deal {
        width: 104px;
        max-width: 100%;
        height: 23px;
        font-size: 12px;
    }
    .new-badge {
        display: none;
    }
    .compact-price-row {
        grid-template-columns: 70px minmax(90px, 1fr) 88px;
        gap: 10px;
        font-size: 13px;
        margin-top: 2px;
    }
    .compact-price-row strong {
        font-size: 15px;
    }
    .card-metrics {
        grid-template-columns: 58px 66px minmax(96px, 1fr) 58px;
        gap: 8px;
        align-self: end;
        font-size: 12px;
    }
    .store-mark {
        font-size: 20px;
    }
    .feed-toolbar {
        height: 78px;
        padding: 0 31px;
        margin-bottom: 7px;
    }
    .feed-toolbar h1 {
        font-size: 25px;
    }
}

@media (max-width: 560px) {
    .deal-modal-backdrop {
        display: block;
        padding: 0;
        background: #fff;
    }
    .deal-modal {
        width: 100%;
        max-width: 100vw;
        min-height: 100vh;
        box-shadow: none;
        overflow-x: hidden;
    }
    .quick-close {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 10px;
        transform: translateX(-50%);
        width: 48px;
        height: 48px;
    }
    .quick-deal {
        max-width: 100%;
        padding: 20px 18px 62px;
        overflow-x: hidden;
    }
    .quick-deal h1 {
        font-size: 15px;
    }
    .quick-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
        gap: 12px;
    }
    .quick-image {
        height: 190px;
    }
    .quick-comment-form {
        margin: 22px -18px -62px;
    }
    .quick-price strong {
        width: 92px;
        height: 92px;
        font-size: 23px;
    }
    .page { padding: 8px; }
    .deal-card, .deal-feed.wide .deal-card {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 10px 8px 12px;
        min-height: 112px;
    }
    .product-media {
        grid-template-columns: 1fr;
        grid-template-rows: 74px 22px;
    }
    .product-image-link,
    .product-media img, .fallback-image {
        width: 98px;
        height: 74px;
    }
    .get-deal {
        width: 98px;
        height: 22px;
        font-size: 11px;
    }
    .get-deal {
        align-self: start;
    }
    .feed-toolbar {
        height: 44px;
        padding: 0 30px;
    }
    .feed-toolbar h1 {
        font-size: 18px;
    }
    .view-switch a {
        font-size: 21px;
    }
    .deal-body h2 {
        font-size: 15px;
        line-height: 1.38;
        max-height: 42px;
    }
    .compact-price-row {
        grid-template-columns: 58px minmax(70px, 1fr) 70px;
        font-size: 12px;
    }
    .compact-price-row strong {
        font-size: 14px;
    }
    .card-metrics {
        grid-template-columns: 48px 52px minmax(76px, 1fr) 44px 25px;
        gap: 4px;
        font-size: 11px;
    }
    .brand-name {
        font-size: 25px;
    }
    .brand-icon {
        width: 38px;
        height: 38px;
    }
    .nav-shell {
        min-height: 58px;
        padding: 0 22px;
    }
    .search.is-open {
        height: 36px;
    }
    .search.is-open input {
        font-size: 15px;
    }
    .scroll-top {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .deal-feed.tile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .deal-feed.tile .deal-card {
        min-height: 248px;
        height: 248px;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 10px 7px;
        overflow: hidden;
    }
    .deal-feed.tile .product-media {
        grid-template-rows: 96px 22px;
        justify-items: start;
        border-bottom: 1px solid #eeeeee;
        margin: 0 -2px 6px;
    }
    .deal-feed.tile .product-image-link,
    .deal-feed.tile .product-media img,
    .deal-feed.tile .fallback-image {
        width: 100%;
        height: 96px;
        border: 0;
        object-fit: contain;
    }
    .deal-feed.tile .get-deal {
        width: 94px;
        height: 22px;
        font-size: 12px;
        justify-self: start;
        margin: -1px 0 0 0;
    }
    .deal-feed.tile .deal-body {
        grid-template-rows: auto auto 1fr auto;
        gap: 5px;
    }
    .deal-feed.tile .deal-body h2 {
        font-size: 13px;
        line-height: 1.45;
        max-height: 58px;
    }
    .deal-feed.tile .compact-price-row {
        grid-template-columns: 45px minmax(48px, 1fr) 56px;
        gap: 6px;
        font-size: 12px;
    }
    .deal-feed.tile .compact-price-row strong {
        font-size: 14px;
    }
    .deal-feed.tile .card-metrics {
        display: flex;
        justify-content: space-between;
        gap: 4px;
        overflow: visible;
        font-size: 10px;
    }
    .deal-feed.tile .card-metrics > *,
    .deal-feed.tile .card-metrics button {
        flex: 0 0 auto;
    }
    .deal-feed.tile .store-mark-form {
        right: 8px;
        bottom: 18px;
    }
    .deal-feed.tile .store-mark {
        width: 31px;
        height: 31px;
        font-size: 21px;
        box-shadow: 0 1px 7px rgba(0,0,0,.22);
    }
}
