:root {
    --berry: #821b28;
    --berry-dark: #590e1b;
    --gold: #e9c77c;
    --festive-panel: #fffaf0;
    --festive-line: #ddc6a1;
    --festive-shadow: 0 .3rem .9rem #59231112;
}

body { background: radial-gradient(ellipse at top, #fff5e1, #f7f1e7 65%); }
.strip { background: #5b101b; color: #ffdf9e; }
.site-header {
    background:
        radial-gradient(circle at 15% 0, #ffe4a4 0 .09rem, transparent .25rem) 0 0 / 3.75rem 1.2rem repeat-x,
        radial-gradient(ellipse at 20% 0%, #ad3543, transparent 55%),
        var(--berry);
    border-bottom: .25rem solid var(--gold);
    color: #fff5e6;
}
.site-header :is(.brand, .saved, .language, .nav:hover, .nav[aria-current]) { color: #fff5e6; }
.site-header .brand svg { filter: drop-shadow(0 0 .25rem #fff4bb90); }
.site-header :is(.nav:hover, .nav[aria-current], .saved:hover, .language:hover) { border-color: var(--gold); }
.site-header :focus-visible { outline-color: #ffdc94; }

.maker-workspace { padding-inline: clamp(.75rem, 2.6vw, 2.5rem); }
.maker-sidebar {
    align-self: start;
    margin-block: 1.15rem;
    padding: .65rem;
    border: 1px solid #51745a;
    border-radius: 1rem;
    background: linear-gradient(150deg, #245741, #12382b);
    color: #fff9e9;
    box-shadow: var(--festive-shadow);
}
.maker-sidebar nav { display: flex; flex-wrap: wrap; gap: .4rem; }
/* The maker menu is the only navigation of the maker area. On phones and tablets it is one
   compact row above the page instead of a column. */
@media (max-width: 1049px) {
    .maker-sidebar { padding: .45rem; }
    .maker-sidebar nav { flex-wrap: nowrap; overflow-x: auto; }
    .maker-sidebar a { flex: 0 0 auto; white-space: nowrap; }
}
.maker-sidebar a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: .5rem .65rem;
    border: 1px solid #c8ddc652;
    border-radius: .55rem;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
}
.maker-sidebar a:hover { background: #39644b; }
.maker-sidebar a[aria-current] { border-color: var(--gold); background: var(--berry); }
.maker-sidebar a:focus-visible { outline-color: var(--gold); }

.creator-dashboard, .creator-slip-shell { max-width: none; margin-block: 1.15rem 2rem; }
.dashboard-card, .creator-slip, .gift-layout, .card {
    border: 1px solid var(--festive-line);
    border-radius: 1rem;
    background: var(--festive-panel);
    box-shadow: var(--festive-shadow);
}
.dashboard-hero {
    min-height: unset;
    background: linear-gradient(130deg, #fff5de, #f8e0c1);
}
.dashboard-heading h1, .creator-slip h1, .gift-copy h1 { color: var(--berry-dark); }
.dashboard-heading form { margin-top: .85rem; }
.dashboard-guide .creator-bubble { background: #f1f3e5; }
.dashboard-add, .creator-slip-actions .primary, .hero-button {
    border: 2px solid var(--gold);
    border-radius: .65rem;
    background: linear-gradient(#a72939, var(--berry-dark));
    color: #fff9ed;
}
.dashboard-add:hover, .creator-slip-actions .primary:hover, .hero-button:hover {
    background: var(--berry-dark);
    color: white;
}

.dashboard-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: .85rem; }
.dashboard-counts > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    padding: .55rem .7rem;
    border: 1px solid var(--festive-line);
    border-radius: .65rem;
    background: #fff4d9;
}
.dashboard-counts dd { margin: 0; color: var(--berry-dark); font-size: 1.3rem; font-weight: 700; }

.product-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .65rem; }
.product-filters label { display: grid; gap: .25rem; font-weight: 700; }
.product-filters :is(input, select) { width: 100%; min-height: 46px; padding: .4rem .6rem; border: 1px solid #9f987e; border-radius: .5rem; background: white; }
.dashboard-product .secondary { background: #f1f5e7; }
.dashboard-photo { object-fit: cover; border-radius: .6rem; }
.dashboard-manage-actions form { max-width: 100%; }

.wizard-progress ol { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .75rem 0 1.1rem; list-style: none; }
.wizard-progress :is(a, span) {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 44px;
    padding: .3rem .55rem;
    border: 1px solid var(--festive-line);
    border-radius: .5rem;
    line-height: 1.25;
    background: #f6eee3;
}
.wizard-progress b { font-variant-numeric: tabular-nums; }
.wizard-progress .is-available a { color: var(--green-dark); background: #e8f0df; }
.wizard-progress .is-current span { background: var(--berry); border-color: var(--berry); color: white; font-weight: 700; }
.wizard-sheet .creator-slip-guide { padding: .75rem; border: 1px solid var(--festive-line); border-radius: .8rem; background: #f3f5e9; }
.wizard-sheet :is(input:not([type=checkbox]), select, textarea) { font-size: max(1rem, 16px); }
.creator-slip-actions .creator-back { display: inline-flex; min-height: 44px; align-items: center; }
.wizard-sheet .creator-photo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .55rem; }
.wizard-sheet .creator-photo-list li { display: grid; align-content: start; gap: .25rem; border: 1px solid var(--festive-line); border-radius: .55rem; padding: .55rem; }
.wizard-sheet .creator-photo-list img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hero { border: 1px solid var(--gold); border-radius: 1rem; background: #273e2b; box-shadow: var(--festive-shadow); }
.card { overflow: hidden; }
/* The photo stays edge to edge; the text gets room from the card border (Harro, 2026-11-30). */
.cardlink { padding-bottom: .9rem; }
.cardlink > :not(.picture) { margin-inline: clamp(.9rem, 3.5vw, 1.25rem); }
.gift-layout { padding: clamp(.85rem, 2.6vw, 2.5rem); }
.gift-lead { font-weight: 650; }
.gift-description h2 { margin-bottom: .55rem; font-size: 1.4rem; color: var(--berry-dark); }
.shopper-preview-notice { padding: .65rem .85rem; border: 1px solid var(--festive-line); border-radius: .5rem; background: #fff0c8; }

@media (min-width: 1050px) {
    .maker-workspace { display: grid; grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr); gap: 1.15rem; }
    .maker-sidebar nav { display: grid; }
    .dashboard-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 850px) {
    .wizard-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .36fr); column-gap: 1.1rem; }
    .wizard-sheet > :is(.creator-slip-step, h1, .wizard-progress) { grid-column: 1 / -1; }
    .wizard-sheet .creator-slip-guide { grid-area: 4 / 2; align-self: start; display: grid; justify-items: center; }
    .wizard-sheet .creator-slip-guide img { height: 7rem; }
    .wizard-sheet .creator-slip-form { grid-area: 4 / 1; }
}
@media (max-width: 650px) {
    .wizard-progress li:not(.is-current):not(.is-available) { display: none; }
}
.wizard-skip-step { margin-top: .65rem; }
.maker-workspace > .creator-shell { width: 100%; min-width: 0; }

.card-view {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: .5rem;
    margin-top: .45rem;
    color: var(--berry-dark);
    font-weight: 700;
}
#collection .sectionhead h2 { color: var(--berry-dark); }
.category-filters .filter-pill span { border-color: var(--festive-line); }
.category-filters .filter-pill input:checked + span { background: var(--berry); color: white; }
@media (max-width: 650px) {
    .maker-workspace:has(.wizard-sheet) .maker-sidebar { display: none; }
}


/* Homepage badges and the About page (Harro, 2026-11-30). */
.hero-more { color: #fff7e6; font-weight: 700; text-underline-offset: .2em; white-space: nowrap; }
.market-badges {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .6rem;
    margin: -1.2rem 0 2.2rem; padding: 0; list-style: none;
}
.market-badges li {
    display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem;
    border: 1px solid var(--festive-line); border-radius: .8rem; background: var(--festive-panel);
    color: var(--berry-dark); font-weight: 700; line-height: 1.3;
}
.market-badges li::before { content: "✦"; color: var(--gold); }
.about-page { max-inline-size: 43rem; margin-inline: auto; }
.about-page section { margin-top: 1.6rem; }
.about-page h2 { margin-bottom: .5rem; font-size: 1.45rem; color: var(--berry-dark); }
.about-lead { font-size: 1.15rem; font-weight: 650; }
.about-steps { display: grid; gap: .5rem; padding-inline-start: 1.4rem; }
.about-join { padding: 1rem 1.1rem; border: 1px solid var(--festive-line); border-radius: .8rem; background: #fff0c8; }
.about-join .hero-button { display: inline-flex; margin-top: .3rem; }
@media (max-width: 650px) { .market-badges { margin-top: -.6rem; grid-template-columns: 1fr 1fr; } }

/* "Kaip tai veikia?" walkthrough video (Harro, 2026-11-30): poster with a play button, the video in a tablet frame. */
.walkthrough { padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--festive-line); border-radius: .8rem; background: var(--festive-panel); }
.walkthrough-note { color: var(--muted); font-size: .95rem; }
.walkthrough-poster { position: relative; display: block; overflow: hidden; margin-top: .8rem; border: 1px solid var(--gold); border-radius: .7rem; background: #173d31; aspect-ratio: 16 / 9; }
.walkthrough-poster img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .4s ease; }
.walkthrough-poster:hover img, .walkthrough-poster:focus-visible img { transform: scale(1.025); }
.walkthrough-play {
    position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; inline-size: 4.6rem; block-size: 4.6rem;
    border: 3px solid var(--gold); border-radius: 50%; color: #fff; background: var(--berry); box-shadow: 0 .4rem 1.4rem #0006;
    transform: translate(-50%, -50%); transition: transform .2s ease;
}
.walkthrough-play svg { margin-inline-start: .25rem; }
.walkthrough-poster:hover .walkthrough-play, .walkthrough-poster:focus-visible .walkthrough-play { transform: translate(-50%, -50%) scale(1.08); }
.walkthrough-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.walkthrough-actions .hero-button { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.walkthrough-length { color: var(--muted); }
.walkthrough-transcript { margin-top: .8rem; }
.walkthrough-transcript summary { cursor: pointer; font-weight: 650; color: var(--berry-dark); }
.walkthrough-transcript div { margin-top: .5rem; }

.walkthrough-dialog { inline-size: min(70rem, 94vw); max-block-size: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.walkthrough-dialog::backdrop { background: #0b1712d9; }
.walkthrough-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; color: #fff7e6; }
.walkthrough-bar h2 { margin: 0; font-size: 1.35rem; color: #fff7e6; }
.walkthrough-close {
    display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; flex: none; border: 2px solid var(--gold);
    border-radius: 50%; color: #fff; background: var(--berry); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.walkthrough-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Desktop: a tablet in landscape — dark bezel, rounded corners, a small camera dot. */
.walkthrough-frame { position: relative; padding: 1.4rem 2.2rem; border-radius: 2rem; background: linear-gradient(145deg, #2b332e, #141a17); box-shadow: 0 1.5rem 3.5rem #000a, inset 0 0 0 2px #3a443e; }
.walkthrough-frame::before { content: ""; position: absolute; inset: 50% auto auto 1rem; inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: #0c100e; box-shadow: inset 0 0 0 1px #4a5650; transform: translateY(-50%); }
.walkthrough-frame video { display: block; inline-size: 100%; block-size: auto; max-block-size: calc(96vh - 7rem); border-radius: .6rem; background: #000; }
/* Phones: no bezel, the video uses the full width; landscape full screen comes from the player's own button. */
@media (max-width: 820px) {
    .walkthrough { padding: .9rem; }
    .walkthrough-dialog { inline-size: 100vw; max-inline-size: 100vw; margin: auto 0; }
    .walkthrough-bar { padding-inline: .8rem; }
    .walkthrough-bar h2 { font-size: 1.1rem; }
    .walkthrough-frame { padding: 0; border-radius: 0; background: #000; box-shadow: none; }
    .walkthrough-frame::before { display: none; }
    .walkthrough-frame video { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .walkthrough-poster img, .walkthrough-play { transition: none; }
}
