/* TOP AKCIJOS! — shared by every page.
   Measurements follow the Figma file "Top Akcija!" (1728 wide, 1020 content column). */
:root {
    --red: #D31510;
    --yellow: #FEF102;
    --bg: #F8F8F8;
    --ink: #1D1D1B;
    --col: 1020px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[id] { scroll-margin-top: 20px; }
[hidden] { display: none !important; }
.col { max-width: var(--col); margin: 0 auto; }
h1, h2 { font-weight: 900; letter-spacing: -0.045em; color: var(--red); margin: 0; }
h2 { font-size: 1.55rem; }

/* --- HEADER --- */
.banner { display: block; background: var(--red); }
.banner img { width: 100%; }
.banner-mobile, .burger, #menu { display: none; }
.nav { background: var(--yellow); }
.nav .col { display: flex; align-items: center; justify-content: flex-end; gap: 30px; min-height: 58px; padding-left: 28px; }
.nav a { font-weight: 900; font-style: italic; font-size: 1.05rem; letter-spacing: -0.04em; color: var(--red); }
.nav a:hover, .nav a.active { color: #000; }
.search { margin-right: auto; }
.search input { border: 2px solid var(--red); border-radius: 50px; padding: 7px 16px; font: inherit; font-size: 0.9rem; width: 220px; background: #fff; }
.search input:focus { outline: 3px solid var(--ink); }

/* --- PAGE COLUMN --- */
main.col { background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.04); }
.section { padding: 40px 44px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.more { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; color: var(--red); }
.empty { padding: 20px 0; color: #666; }
.button { display: inline-block; background: #fff; color: var(--red); border: 1.5px solid var(--red); border-radius: 50px; padding: 12px 28px; font-size: 0.9rem; font-weight: 500; }
.button:hover { background: var(--red); color: #fff; }
.center { text-align: center; }

/* --- HERO --- */
.hero { position: relative; overflow: hidden; height: 550px; padding: 70px 36px; }
.hero h1 { position: relative; font-size: 5.6rem; line-height: 1.02; color: var(--yellow); -webkit-text-stroke: 2.5px var(--red); paint-order: stroke fill; }
.bang { position: absolute; font-weight: 900; color: var(--red); line-height: 1; filter: blur(9px); user-select: none; }
.bang:nth-child(1) { font-size: 520px; left: 2%; top: -40px; transform: rotate(-14deg); opacity: 0.85; }
.bang:nth-child(2) { font-size: 460px; left: 26%; top: 0; transform: rotate(4deg); opacity: 0.6; filter: blur(14px); }
.bang:nth-child(3) { font-size: 600px; left: 50%; top: -80px; transform: rotate(10deg); }
.bang:nth-child(4) { font-size: 520px; left: 72%; top: -120px; transform: rotate(-2deg); opacity: 0.9; }
.bang:nth-child(5) { font-size: 380px; left: 82%; top: 180px; transform: rotate(16deg); opacity: 0.7; filter: blur(12px); }

/* --- BROCHURE CARD (shared) --- */
.card { display: block; text-align: center; font-size: 0.85rem; line-height: 1.4; }
.card .cover { display: block; position: relative; margin-bottom: 14px; }
.card .cover img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; transition: transform 0.2s; }
.card:hover .cover img { transform: translateY(-4px); }
.card strong { display: block; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.card span { display: block; }
.card .title { font-weight: 500; }
.card .tag { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 4px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; background: var(--red); color: var(--yellow); }
.card .tag.soon { background: var(--ink); color: #fff; }

/* --- HORIZONTAL ROWS, ARROWS, DOTS --- */
.row-wrap { position: relative; }
.row { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .card { scroll-snap-align: start; }
.arrow { position: absolute; top: 84px; width: 46px; height: 46px; border: 0; padding: 0; background: url(img/arrow.svg) center / contain no-repeat; cursor: pointer; z-index: 2; transition: transform 0.15s; }
.arrow:hover { transform: scale(1.12); }
.arrow.next { right: -66px; }
.arrow.prev { left: -66px; transform: scaleX(-1); display: none; }
.arrow.prev:hover { transform: scaleX(-1) scale(1.12); }
.dots { display: flex; justify-content: center; gap: 16px; margin-top: 36px; }
.dots button { width: 26px; height: 26px; border: 0; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.72); cursor: pointer; }
.dots button.active { background: #F2B705; }

/* --- NAUJI LEIDINIAI --- */
.new .row { gap: 0; padding: 4px 6px 12px; }
.new .card { flex: 0 0 20%; padding: 0 34px; }
.new .card .tag { display: none; }
.new .cover::after { content: ''; position: absolute; left: -5px; right: -5px; bottom: -7px; height: 7px; background: var(--red); } /* red shelf under each cover */
.new .cover { margin-bottom: 26px; }
.dashes { display: none; }

/* --- TOP 10 --- */
.top10 { background: var(--red); color: #fff; padding-bottom: 46px; }
.top10 h2, .top10 .more { color: #fff; }
.top10 .card { flex: 0 0 420px; font-size: 1.05rem; line-height: 1.3; }
.top10 .cover { width: 420px; height: 420px; padding: 95px 126px 0; background: url(img/star-yellow.png) center / contain no-repeat; margin-bottom: 20px; }
.top10 .card:nth-child(even) .cover { background-image: url(img/star-black.png); }
.top10 .cover img { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.top10 .card .tag { display: none; }
.rank { position: absolute; right: 92px; top: 66px; z-index: 1; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
        font-weight: 900; font-size: 2.3rem; letter-spacing: -0.04em; background: var(--red); color: #fff; border: 1.5px solid #fff; }
.top10 .card:nth-child(even) .rank { background: var(--yellow); color: #000; border-color: #000; }

/* --- BRANDS --- */
.brands { background: var(--yellow); padding-bottom: 80px; }
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 20px; justify-items: center; margin-top: 44px; }
.brand { width: 150px; height: 150px; display: grid; place-items: center; background: url(img/badge.png) center / contain no-repeat; transition: transform 0.2s; }
.brand:hover { transform: scale(1.08); }
.brand img { max-width: 56%; max-height: 40%; }
.brand.all { background: var(--red); border-radius: 50%; width: 128px; height: 128px; align-self: center; color: #fff; font-size: 2.4rem; letter-spacing: 0.12em; line-height: 1; }

/* --- NEWS --- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 30px; margin-bottom: 40px; }
.news-grid.small { grid-template-columns: repeat(3, 1fr); gap: 50px 54px; }
.news-card { display: block; }
.news-photo { position: relative; display: block; }
.news-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14); }
.news-date { position: absolute; left: 26px; top: 0; background: #fff; border-radius: 0 0 8px 8px; padding: 4px 9px 6px; text-align: center; font-size: 0.85rem; line-height: 1.05; }
.news-date small { display: block; font-size: 0.78rem; color: #666; }
.news-card h3 { margin: 18px 0 4px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.news-card p { margin: 0; font-size: 0.85rem; line-height: 1.4; }
.news-card .read { font-size: 0.72rem; margin-bottom: 20px; }
.blog h1 { font-size: 2.9rem; margin-bottom: 50px; }
.blog .news-grid:not(.small) { padding: 0 30px; }
.blog .news-card h3 { font-size: 1.9rem; color: #3d4450; margin-top: 30px; }
.blog .news-grid.small .news-card h3 { font-size: 1.35rem; margin-top: 22px; }
.blog .news-card p:not(.read) { font-size: 0.95rem; line-height: 1.7; color: #555; }

/* --- ARTICLE --- */
.article { padding: 60px 0 40px; }
.article h1 { font-size: 2.9rem; line-height: 1.15; text-align: center; max-width: 620px; margin: 0 auto 26px; }
.article .meta { text-align: center; font-size: 0.75rem; margin-bottom: 44px; }
.article .meta span { color: #aaa; margin: 0 6px; }
.article > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.article-body { max-width: 600px; margin: 0 auto; padding: 56px 20px 40px; font-size: 0.9rem; line-height: 1.75; color: #444; }
.article-body:first-of-type p:first-child { font-weight: 700; color: var(--ink); margin-bottom: 44px; }

/* --- AD SLOT (grey placeholder from the design; put the ad network's code inside) --- */
.ad-slot { background: #D8D8D8; color: var(--ink); font-weight: 900; letter-spacing: -0.04em; font-size: 2.8rem; height: 190px; display: grid; place-items: center; }
.ad-slot.filled { background: none; height: auto; display: block; }
.ad-slot.filled img { width: 100%; }

/* --- CATEGORY PILL BAR --- */
.pillbar { background: var(--red); color: #fff; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px 20px; }
.pills { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { border: 1.5px solid currentColor; border-radius: 50px; background: transparent; color: inherit; font-size: 0.8rem; padding: 7px 16px; white-space: nowrap; cursor: pointer; }
.pill.active, .pill:hover { background: #fff; border-color: #fff; color: var(--red); font-weight: 700; }
.pill-arrow { border: 0; background: none; color: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0 8px 3px; }
.pillbar.light { background: #fff; color: var(--red); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); position: relative; }
.pillbar.light .pill.active, .pillbar.light .pill:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* --- ALL BROCHURES / BRAND PAGE --- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 30px; }
.grid .card { font-size: 1rem; }
.brand-page .grid { grid-template-columns: repeat(3, 1fr); }
.brand-logo { height: 70px; margin-bottom: 50px; }

/* --- VIEWER and BRAND PAGE: main column under the header, red sidebar in the right gutter --- */
.toolbar { background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); position: relative; }
.toolbar .col { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.toolbar button, .toolbar a { border: 0; background: none; color: var(--red); cursor: pointer; padding: 4px; display: grid; }
.toolbar h1 { font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); margin-left: 10px; }
.toolbar small { color: #666; }
.toolbar button:disabled { opacity: 0.4; cursor: progress; }
.viewer { display: flex; align-items: flex-start; padding-left: max(0px, calc((100vw - var(--col)) / 2)); }
.viewer.solo { padding-left: 0; justify-content: center; }
.pages { flex: 1 1 0; max-width: var(--col); min-width: 0; background: #fff; }
.pages > img { width: 100%; aspect-ratio: 1 / 1.414; } /* placeholder height so lazy loading works; cleared on load */
.side { flex: 0 0 clamp(300px, calc((100vw - var(--col)) / 2), 354px); background: var(--red); color: #fff; padding: 44px 36px 50px; text-align: center; }
.side h2 { color: #fff; font-size: 1.35rem; text-align: left; margin-bottom: 26px; }
.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; margin-bottom: 36px; }
.side .card { font-size: 0.75rem; }
.side .card .tag { background: var(--yellow); color: var(--red); }
.side .card .tag.soon { background: var(--ink); color: #fff; }
.side .button { border-color: #fff; }
/* zoom button cycles: normal -> fit the window (zoom-1) -> 170% with sideways scrolling (zoom-2) */
.zoom-1 .viewer, .zoom-2 .viewer { padding-left: 0; }
.zoom-1 .pages, .zoom-2 .pages { max-width: none; }
.zoom-1 .side, .zoom-2 .side { display: none; }
.zoom-2 .viewer { overflow-x: auto; }
.zoom-2 .pages { flex: 0 0 170vw; }
.pages > img { cursor: zoom-in; }
.zoom-2 .pages > img { cursor: zoom-out; }

/* --- PRODUCT SEARCH ("Kur pigiausia?") --- */
.finder h1 { font-size: 2.6rem; margin-bottom: 24px; }
.finder-box { display: flex; gap: 10px; margin-bottom: 18px; }
.finder-box input { flex: 1; min-width: 0; border: 2px solid var(--red); border-radius: 50px; padding: 14px 22px; font: inherit; font-size: 1.05rem; }
.finder-box input:focus { outline: 3px solid var(--ink); }
.finder-box button { border: 0; border-radius: 50px; background: var(--red); color: #fff; font-weight: 700; padding: 0 28px; cursor: pointer; }
.finder-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.finder-controls .pill { color: var(--red); }
.finder-controls .pill.active, .finder-controls .pill:hover { background: var(--red); border-color: var(--red); color: #fff; }
.finder-controls select { margin-left: auto; border: 1.5px solid var(--red); border-radius: 50px; padding: 8px 14px; font: inherit; font-size: 0.85rem; background: #fff; color: var(--ink); }
.finder-count { font-size: 0.85rem; color: #666; margin-bottom: 18px; }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.offer { position: relative; display: flex; flex-direction: column; border: 1px solid #eee; border-radius: 12px; padding: 14px; font-size: 0.85rem; line-height: 1.35; background: #fff; }
.offer:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.offer img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; }
.offer .store { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; color: var(--red); font-size: 0.75rem; }
.offer .name { font-weight: 600; margin: 2px 0 10px; flex: 1; }
.offer .price { font-weight: 900; font-size: 1.6rem; letter-spacing: -0.04em; }
.offer .was { color: #888; text-decoration: line-through; margin-left: 8px; font-size: 0.85rem; }
.offer .meta { color: #666; font-size: 0.75rem; margin-top: 2px; }
.offer .off { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: var(--red); font-weight: 900; border-radius: 50px; padding: 4px 9px; font-size: 0.8rem; }

/* --- FOOTER --- */
.site-footer { background: var(--red); color: #fff; font-size: 0.75rem; }
.site-footer .col { padding: 44px 30px 50px; }
.site-footer img { width: 62px; margin-bottom: 26px; }

@media (max-width: 1180px) {
    .arrow.next { right: 0; }
    .arrow.prev { left: 0; }
    .viewer { padding-left: 0; flex-wrap: wrap; }
    .pages, .side { flex: 1 1 100%; max-width: none; }
    .side-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* --- MOBILE (frame "Mobile" in Figma) --- */
@media (max-width: 600px) {
    .site-header { position: relative; }
    .banner { display: none; }
    .banner-mobile { display: block; }
    .banner-mobile img { width: 100%; }
    .burger { display: block; position: absolute; right: 0; top: 0; width: 26%; aspect-ratio: 1; cursor: pointer; } /* over the icon drawn in the banner */
    .nav { display: none; }
    #menu:checked ~ .nav { display: block; }
    .nav .col { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 28px; }
    .search { margin: 0; }
    .search input { width: 100%; }

    .section { padding: 30px 28px 38px; }
    .section-head { margin-bottom: 24px; }
    .hero { height: auto; padding: 40px 28px 60px; }
    .hero h1 { font-size: 2.7rem; -webkit-text-stroke-width: 1.5px; }
    .bang { transform-origin: top left; scale: 0.55; }

    /* one brochure at a time on a yellow card, scalloped arrows either side, dashes below */
    .new .row { gap: 14px; scroll-snap-type: x mandatory; padding: 0 0 20px; }
    .new .card { flex: 0 0 100%; background: var(--yellow); border-radius: 26px; padding: 36px 20px 24px; font-size: 1rem; scroll-snap-align: center; box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1); }
    .new .cover { width: 52%; margin: 0 auto 16px; }
    .new .cover::after { display: none; }
    .arrow { top: 150px; width: 44px; height: 44px; }
    .arrow.next { right: 2px; }
    .arrow.prev { left: 2px; display: block; }
    .dashes { display: flex; gap: 5px; padding: 0 18px; }
    .dashes button { flex: 1; height: 4px; border: 0; padding: 0; border-radius: 2px; background: var(--red); }
    .dashes button.active { background: var(--yellow); }
    .section-head .more { display: none; }
    .more-mobile { display: block; text-align: center; margin-top: 34px; }

    .top10 .row { scroll-snap-type: x mandatory; }
    .top10 .card { flex: 0 0 100%; scroll-snap-align: center; }
    .top10 .cover { width: 100%; height: auto; aspect-ratio: 1; padding: 23% 30% 0; }
    .rank { right: 21%; top: 16%; width: 54px; height: 54px; font-size: 1.9rem; }
    .dots { gap: 9px; }
    .dots button { width: 19px; height: 19px; }

    .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .brand { width: 100%; height: auto; aspect-ratio: 1; }
    .brand.all { width: 84%; height: auto; aspect-ratio: 1; font-size: 1.7rem; }
    .ad-slot:not(.filled) { height: 110px; font-size: 2rem; }

    .news-grid, .news-grid.small { grid-template-columns: 1fr; gap: 34px; }
    .news-card h3 { font-size: 1.15rem; }
    .blog h1, .article h1 { font-size: 2rem; }
    .blog .news-grid:not(.small) { padding: 0; }
    .blog .news-card h3, .blog .news-grid.small .news-card h3 { font-size: 1.35rem; }
    .article { padding: 36px 20px 20px; }

    .pillbar { justify-content: flex-start; padding: 14px 8px; }
    .pills { gap: 10px; }
    .grid, .brand-page .grid { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
    .grid .card { font-size: 0.82rem; }
    .brand-logo { height: 44px; margin-bottom: 30px; }
    .toolbar .col { padding: 10px 16px; }
    .side { padding: 28px 20px 36px; }

    .finder h1 { font-size: 2rem; }
    .finder-controls select { margin-left: 0; width: 100%; }
    .offers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .offer { padding: 10px; }
    .offer .price { font-size: 1.3rem; }
    .site-footer .col { text-align: center; padding: 34px 20px 40px; }
    .site-footer img { margin: 0 auto 18px; }
}
@media (min-width: 601px) { .more-mobile { display: none; } }
