:root {
  color-scheme: light;
  --background: #f2f4f5;
  --paper: #fff;
  --ink: #1b2823;
  --green: #214e37;
  --deep-green: #153c28;
  --muted: #54615b;
  --line: #d7dfdc;
  --pale-green: #dcebe1;
  --red: #c62819;
  font: 16px/1.48 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid #337958; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap, .top-inner { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 13px; align-items: center; color: var(--deep-green); text-decoration: none; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 780; letter-spacing: -.055em; }
.brand svg { width: 43px; height: 43px; flex: none; }
.search { display: flex; align-items: center; gap: 12px; background: var(--background); border: 1px solid var(--line); border-radius: 10px; padding: 0 15px; width: min(420px, 48%); }
.search svg { width: 23px; height: 23px; flex: none; }
.search input { width: 100%; padding: 12px 0; background: transparent; border: 0; color: var(--ink); }
.search:focus-within { outline: 2px solid #337958; outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.action-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.action-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.cart-trigger { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font-size: .875rem; font-weight: 650; }
#cart-count { min-width: 1.35em; text-align: center; font-variant-numeric: tabular-nums; }
.cart-add { align-self: stretch; background: transparent; border: 0; border-radius: 6px; color: var(--deep-green); padding: 5px 2px 2px; font-size: .8rem; font-weight: 650; }
.cart-add:hover { text-decoration: underline; }
.intro { text-align: center; padding: 35px 0 27px; }
.intro h1 { font-size: clamp(2.1rem, 5vw, 3.65rem); line-height: 1.08; letter-spacing: -.065em; font-weight: 790; }
.intro p { margin-top: 11px; font-size: clamp(1rem, 2vw, 1.24rem); color: var(--muted); font-style: italic; }
.shipping { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 58px; padding: 10px; border-radius: 10px; background: var(--pale-green); color: var(--deep-green); font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.shipping svg { width: 32px; height: 28px; }
#categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 5px; min-width: 0; }
.category, .primary, .secondary { border-radius: 8px; padding: 9px 16px; min-height: 43px; border: 1px solid transparent; font-weight: 650; }
.category, .secondary { border-color: #b6c4be; color: var(--deep-green); background: var(--paper); }
.category:hover, .secondary:hover { background: #e9f1ed; }
.category[aria-pressed="true"], .primary { color: white; background: var(--green); }
#categories .category {
  display: grid;
  grid-template-rows: 40px auto;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 90px;
  max-width: 155px;
  padding: 7px 10px;
  border-color: transparent;
  background: var(--paper);
  color: var(--deep-green);
}
#categories .category[aria-pressed="true"] { border-color: var(--green); background: #e9f1ed; }
#categories .category:hover { background: #e9f1ed; }
.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  border-radius: 12px;
  background: var(--icon-bg, #e6ede8);
  color: var(--icon-ink, #275039);
}
.category-icon .action-icon { width: 25px; height: 25px; }
.category-icon--house { --icon-bg: #f6e5cb; --icon-ink: #795121; }
.category-icon--phone { --icon-bg: #dcebf7; --icon-ink: #254e6e; }
.category-icon--book { --icon-bg: #f1e4f4; --icon-ink: #694075; }
.category-icon--tools { --icon-bg: #f8e7da; --icon-ink: #814827; }
.category-icon--shirt { --icon-bg: #f8e1e9; --icon-ink: #7e3f56; }
.category-icon--desktop { --icon-bg: #e4e6f8; --icon-ink: #49487b; }
.category-icon--car { --icon-bg: #d9ede8; --icon-ink: #286558; }
.category-name { font-size: .82rem; line-height: 1.17; overflow-wrap: anywhere; }
.primary:hover:not(:disabled) { background: var(--deep-green); }
.primary:disabled { color: #48554e; background: #e5e9e7; }
.catalog-status { text-align: center; color: var(--muted); }
.catalog-status:empty { display: none; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 8px; }
.media { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; aspect-ratio: 1; background: #e3ebe6; border-radius: 8px; }
.media img, .demo-picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-picture { background-image: url("/demonstratie.png"); background-size: 200% 200%; }
.demo-1 { background-position: left top; }
.demo-2 { background-position: right top; }
.demo-3 { background-position: left bottom; }
.demo-4 { background-position: right bottom; }
.media.sold img, .media.sold .demo-picture { filter: grayscale(.35) brightness(.66); }
.sold-cross, .sold-label { position: absolute; }
.sold-cross { width: 77%; height: 8%; display: grid; place-items: center; }
.sold-cross::before, .sold-cross::after { content: ""; grid-area: 1/1; width: 100%; height: 74%; background: var(--red); border-radius: 20px; }
.sold-cross::before { transform: rotate(45deg); }
.sold-cross::after { transform: rotate(-45deg); }
.sold-label { color: #ae2215; background: white; border: 2px solid var(--red); border-radius: 30px; padding: 3px 14px; font-size: clamp(.85rem, 2.3vw, 1.35rem); font-weight: 850; }
.card-info { flex: 1; display: flex; flex-direction: column; padding: 11px 6px 6px; }
.card h2 { font-size: clamp(1rem, 1.65vw, 1.28rem); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.product-category { color: var(--muted); font-size: .875rem; margin-top: 3px; overflow-wrap: anywhere; }
.price { margin: auto 0 8px; padding-top: 8px; font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 790; color: var(--deep-green); }
.card .primary { width: 100%; padding-inline: 5px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

dialog { border: 1px solid var(--line); border-radius: 15px; padding: 0; color: var(--ink); width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 28px); }
dialog::backdrop { background: #162822a8; }
.dialog-body { padding: 25px; position: relative; }
.dialog-body h2 { padding-right: 32px; font-size: 1.65rem; line-height: 1.2; margin-block: 3px 8px; }
.close { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 8px; width: 44px; height: 44px; background: var(--background); font-size: 1.4rem; color: var(--ink); }
.summary { padding: 12px 14px; border-radius: 8px; background: var(--background); }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dd { margin: 0; }
.summary .total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 9px; font-weight: 800; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input, .form textarea { color: var(--ink); border: 1px solid #b6c4be; border-radius: 7px; padding: 7px 10px; width: 100%; min-height: 42px; }
.form textarea { resize: vertical; }
.clothing-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 8px; }
.clothing-fields legend { padding-inline: 5px; font-size: .875rem; font-weight: 650; color: var(--deep-green); }
.clothing-fields select { width: 100%; }
[role="status"]:not(:empty) { margin-block: 8px; }
.admin { padding-block: 30px; }
.admin h1 { margin-bottom: 15px; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.admin-toolbar { margin-bottom: 15px; }
.panel { padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.panel h2 { margin-bottom: 12px; font-size: 1.22rem; }
.orders { margin-block: 16px; }
.admin-list { margin: 0; padding: 0; list-style: none; }
.admin-list li { padding-block: 11px; display: grid; justify-items: start; gap: 4px; overflow-wrap: anywhere; }
.admin-list li + li { border-top: 1px solid var(--line); }
.admin-list li span { color: var(--muted); }

@media (max-width: 830px) {
  .wrap, .top-inner { width: calc(100% - 32px); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {
  .top-inner { flex-wrap: wrap; gap: 10px; padding-block: 13px; }
  .search { width: 100%; }
  .intro { padding-block: 26px 21px; }
  .category { padding-inline: 12px; }
  .card-info { padding-inline: 1px; }
  .card .primary { font-size: .875rem; }
  .admin-columns { grid-template-columns: 1fr; }
}

/* Catalog compact */
:root { --columns: 6; --action-ink: #fff; }
.wrap, .top-inner { width: min(1440px, calc(100% - 44px)); }
.top-inner { min-height: 60px; }
.brand { font-size: clamp(1.2rem, 3vw, 1.55rem); gap: 8px; overflow-wrap: anywhere; }
.brand svg { width: 32px; height: 32px; }
.search { width: min(355px, 48%); }
.search input { padding-block: 7px; }
.intro { padding: 18px 0 14px; }
.intro h1 { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.intro p { margin-top: 5px; font-size: 1rem; overflow-wrap: anywhere; }
.shipping { min-height: 35px; padding: 4px 10px; font-size: .94rem; }
.shipping svg { width: 21px; height: 20px; }
.category, .card .primary { padding: 5px 9px; min-height: 34px; font-size: .875rem; }
.category[aria-pressed="true"], .primary { color: var(--action-ink); }
.primary:hover:not(:disabled) { background: var(--green); filter: brightness(.92); }
.catalog-results, .catalog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; }
.catalog-results { justify-content: space-between; min-height: 30px; margin-bottom: 5px; }
.catalog-results .catalog-status { text-align: left; font-size: .875rem; margin-block: 0; color: var(--muted); }
.catalog-filters { margin-inline-start: auto; }
.available-filter { display: inline-flex; gap: 5px; align-items: center; min-height: 32px; font-size: .875rem; white-space: nowrap; }
.available-filter input { accent-color: var(--green); margin: 0; }
.text-button { border: 0; background: transparent; padding: 3px 0; color: var(--deep-green); text-decoration: underline; font-size: .875rem; }
.products { grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 9px; }
.card { padding: 5px; border-radius: 9px; }
.media { border-radius: 5px; }
.card-info { padding: 6px 3px 3px; }
.card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .975rem;
  line-height: 1.2;
  min-block-size: 2.4em;
}
.card .media, .product-photo-sample { background: #edf0ef; }
.card .media { width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; }
.product-photos { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 8px; }
.product-photos legend { padding-inline: 5px; font-size: .9rem; font-weight: 650; color: var(--deep-green); }
.product-photo-slot { display: flex; align-items: flex-start; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; }
.product-photo-sample { flex: 0 0 auto; width: clamp(48px, 13vw, 72px); aspect-ratio: 4 / 3; object-fit: contain; border-radius: 5px; }
.product-photo-details { display: grid; gap: 4px; min-width: 0; font-size: .875rem; overflow-wrap: anywhere; }
.product-photo-details small { color: var(--muted); font-weight: 400; }
.product-photo-actions { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; }
.form .product-photo-actions input[type="file"] { width: 1px; min-height: 0; padding: 0; border: 0; }
.form label.product-photo-action { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 8px; font-size: .825rem; cursor: pointer; }
.form .product-photo-link { color: var(--deep-green); font-size: .825rem; font-weight: 500; text-decoration: underline; cursor: pointer; }
.product-photo-actions input:focus-visible + label { outline: 2px solid #337958; outline-offset: 2px; }
.card .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.card .media .demo-picture {
  width: auto;
  aspect-ratio: 1;
}
.card button.media:focus-visible { outline-offset: 2px; }
.card button.media:hover img, .card button.media:hover .demo-picture { opacity: .92; }
.card .primary { min-height: 36px; }
.card .product-category { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; font-size: .82rem; }
.card-category { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.price { padding-top: 5px; margin-bottom: 4px; font-size: 1.15rem; }
.sold-label { font-size: .875rem; padding-inline: 8px; }
.footer { padding-block: 12px; margin-top: 17px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-block: 14px; font-size: .875rem; }
.pagination button { min-height: 34px; padding: 4px 10px; }
.custom-sections:empty { display: none; }
.custom-sections { display: grid; gap: 7px; margin-block: 10px; }
.custom-section { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; overflow-wrap: anywhere; }
.custom-section h2 { font-size: 1rem; }
.custom-section p { white-space: pre-wrap; }

@media (max-width: 1180px) {
  .products { grid-template-columns: repeat(min(var(--columns), 5), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap, .top-inner { width: calc(100% - 24px); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .search { width: 100%; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.admin { padding-block: 16px; }
.admin h1 { font-size: 1.65rem; }
.admin-toolbar, #admin-nav, .panel-heading, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.admin-toolbar, .panel-heading { justify-content: space-between; }
.panel-heading { margin-bottom: 8px; }
.panel-heading h2, .panel-heading h3 { margin: 0; }
.admin-list li { padding-block: 8px; }
.admin-filters, .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.admin-filters label { display: grid; font-size: .875rem; gap: 3px; }
.form select, .admin-filters input, .admin-filters select {
  color: var(--ink);
  border: 1px solid #b6c4be;
  border-radius: 7px;
  padding: 5px 8px;
  min-height: 36px;
  background: white;
  font: inherit;
  width: 100%;
}
.form input[type="color"] { padding: 4px; background: white; }
.form .checkbox { display: flex; align-items: center; gap: 7px; }
.form .checkbox input { min-height: auto; width: auto; }
.admin-toolbar button, .row-actions button { min-height: 34px; padding: 5px 9px; font-size: .875rem; }
.danger { border: 1px solid #e4b7b2; background: #fff; color: #a52619; border-radius: 8px; padding: 8px 12px; font-weight: 650; }
.danger:hover { background: #fff0ef; }
.section-editor { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; padding: 8px; min-width: 0; }
.section-editor legend { padding-inline: 5px; font-weight: 650; }
#site-sections:empty { display: none; }
#remove-category { border-top: 1px solid var(--line); padding-top: 10px; }

.product-meta { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.card .product-meta { font-size: .82rem; margin-top: 2px; }
.dialog-body .product-meta { margin-bottom: 6px; }

.catalog-page { isolation: isolate; }
.catalog-page .top {
  background: var(--header-color, #063b3d);
  border-bottom-color: transparent;
  color: var(--header-ink, #fff);
}
.catalog-page .brand { color: inherit; }
.catalog-page .brand:focus-visible { outline-color: currentColor; }
.catalog-page .search { color: var(--deep-green); background: var(--paper); }
.catalog-page .search:focus-within { outline-color: var(--header-ink, #fff); }
.catalog-home { position: relative; }
.catalog-home.holiday-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(265px, 30vw, 430px);
  z-index: -1;
  background: url("/fundal-craciun.jpg") center 24% / cover no-repeat;
  opacity: .76;
  mask-image: linear-gradient(#000 18%, transparent 98%);
  pointer-events: none;
}

@media (max-width: 680px) {
  .catalog-home .top-inner {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) max-content;
    gap: 8px;
    min-height: 50px;
    padding-block: 7px;
  }
  .catalog-home .brand { max-width: 46vw; min-width: 0; font-size: clamp(.95rem, 3.8vw, 1.15rem); gap: 5px; }
  .catalog-home #brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .catalog-home .brand svg { width: 24px; height: 24px; }
  .catalog-home .search { width: 100%; min-width: 0; gap: 5px; padding-inline: 8px; }
  .catalog-home .search svg { width: 17px; height: 17px; }
  .catalog-home .search input { min-width: 0; font-size: .875rem; padding-block: 5px; }
  .catalog-home .intro { padding-block: 12px 9px; }
  .catalog-home .intro h1 { font-size: clamp(1.42rem, 5.7vw, 1.78rem); }
  .catalog-home .intro p { font-size: .9rem; margin-top: 3px; }
  #categories {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(76px, 26.5%, 98px);
    gap: 5px;
    overflow-x: auto;
    padding: 4px 3px 7px;
    margin: 8px -3px 4px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 3px;
    scrollbar-width: thin;
    scrollbar-color: #9caba4 transparent;
  }
  #categories:has(.category:only-child) { grid-template-rows: auto; }
  #categories .category {
    gap: 4px;
    min-width: 0;
    padding: 5px 2px;
    scroll-snap-align: start;
  }
  .category-name { font-size: .73rem; }
  .catalog-home.holiday-wallpaper::before {
    height: 265px;
    background-image: url("/fundal-craciun-mobil.webp");
    background-size: auto 100%;
  }
  .catalog-results { gap: 0 6px; min-height: 30px; }
  .catalog-filters { gap: 0 8px; }
}

.reports-page { max-width: 660px; margin-block: 20px; }
.reports-page h1 { font-size: clamp(1.45rem, 3vw, 2rem); }
.report-intro { margin-block: 6px 15px; }
.field-help { font-size: .875rem; color: var(--muted); }
.order-report { display: grid; gap: 5px; width: min(100%, 880px); padding: 10px 12px; background: var(--background); border-radius: 8px; }
.report-description { white-space: pre-wrap; overflow-wrap: anywhere; }
#order-report-link { display: inline-block; color: var(--deep-green); font-weight: 650; }
.gallery-link { align-self: flex-start; color: var(--deep-green); background: transparent; padding: 2px 0; border: 0; font-size: .85rem; text-decoration: underline; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 9px; }
.card-links button { min-height: 25px; text-underline-offset: 3px; }
.card-links button:hover { color: #38745a; }
.description-link { display: inline-flex; align-items: center; gap: 4px; }
.description-link svg { width: 15px; height: 15px; flex: none; }
#description-dialog h2, #description-id, #description-text { overflow-wrap: anywhere; }
#description-text { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 13px; white-space: pre-wrap; }
.description-offer { margin-top: 12px; color: var(--muted); font-size: .875rem; text-underline-offset: 3px; }
.offer-page .summary { margin-block: 10px; }
.description-clothing { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 7px; margin: 10px 0 0; }
.description-clothing > div { background: #edf0ef; border-radius: 7px; padding: 7px 9px; overflow-wrap: anywhere; }
.description-clothing dt { color: var(--muted); font-size: .8rem; }
.description-clothing dd { margin: 0; font-size: .9rem; font-weight: 650; }
#photo-gallery {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  background: transparent;
  color: #fff;
}
#photo-gallery::backdrop { background: #101714dc; }
#photo-gallery .dialog-body { padding: 0; }
#gallery-photo {
  width: 100%;
  min-height: 100px;
  aspect-ratio: auto;
  background: transparent;
  touch-action: pan-y pinch-zoom;
}
#gallery-frame {
  position: relative;
  width: min(100%, calc(76dvh * var(--photo-ratio, 1)));
  overflow: hidden;
  border-radius: 8px;
}
#gallery-image img { width: 100%; height: auto; max-height: 76dvh; object-fit: contain; }
#gallery-image .demo-picture { width: 100%; height: auto; aspect-ratio: 1; }
#gallery-close, .gallery-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #101714c9;
  color: #fff;
}
#gallery-close {
  top: 8px;
  right: 8px;
  font-size: 1.4rem;
  line-height: 1;
}
.gallery-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: min(42px, 34%);
  height: auto;
  aspect-ratio: 1;
}
#gallery-prev { left: min(10px, 4%); }
#gallery-next { right: min(10px, 4%); }
.gallery-arrow .action-icon { width: 52%; height: 52%; }
.gallery-arrow[aria-disabled="true"] { opacity: .48; cursor: default; }
#gallery-close:hover, .gallery-arrow:not([aria-disabled="true"]):hover { background: #101714; }
#gallery-close:focus-visible, .gallery-arrow:focus-visible { outline-color: #fff; }
.gallery-thumbnails { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.gallery-thumb {
  width: 48px;
  height: 48px;
  padding: 2px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.gallery-thumb[aria-current="true"] { border-color: var(--green); }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.checkout-verification { margin: 0; min-width: 0; padding: 5px 9px 9px; border: 1px solid var(--line); border-radius: 8px; }
.checkout-verification legend { padding-inline: 5px; font-size: .875rem; font-weight: 650; color: var(--deep-green); }
.checkout-question, .checkout-question label { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.checkout-question label { font-size: .9rem; }
.checkout-question input { width: 3.4rem; min-height: 36px; }
.checkout-question button { min-height: 36px; padding: 4px 8px; font-size: .85rem; }

.footer { flex-wrap: wrap; background: var(--paper); padding-inline: 12px; border-radius: 7px 7px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 680px) {
  .footer { display: grid; gap: 8px; padding-inline: 9px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; }
}
.info-page { max-width: 760px; margin-block: 20px; }
.info-page .panel { padding: clamp(16px, 4vw, 36px); }
.info-page h1 { margin-bottom: 12px; font-size: clamp(1.55rem, 3.8vw, 2.4rem); line-height: 1.17; }
.info-page section { margin-top: 20px; }
.info-page section h2 { margin-bottom: 6px; }
.info-page p + p { margin-top: 8px; }
.info-page ul { margin-block: 0 8px; padding-left: 21px; }
.info-page li + li { margin-top: 5px; }
.info-page a { color: var(--deep-green); overflow-wrap: anywhere; }
.faq { scroll-margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 9px; }
.faq summary { cursor: pointer; color: var(--deep-green); font-weight: 650; }
.faq details p { margin: 6px 0 2px 1.1em; }

.contact-options { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 10px 15px; }
.contact-tracking { margin-top: 14px; }
.contact-tracking h2 { margin-bottom: 10px; }
#tracking-result, #contact-status { white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-reply { width: min(100%, 700px); margin-block: 6px; }


#product-dialog .summary { border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; }
#product-dialog .summary .total {
  margin: 8px -5px -5px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--pale-green);
  color: var(--deep-green);
  font-size: 1.075rem;
}
.order-receipt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-block: 9px;
  padding: 9px 12px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.order-receipt div { display: grid; gap: 2px; font-size: .875rem; }
#order-code { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
#copy-status { flex-basis: 100%; color: var(--muted); font-size: .875rem; margin: 0; }
#copy-status:empty { display: none; }
.cart-lines { display: grid; gap: 8px; margin-block: 9px; }
.cart-lines:empty { display: none; }
.cart-parcel, .admin-order-line { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow-wrap: anywhere; }
.cart-parcel h3 { margin: 0; font-size: .95rem; }
.cart-parcel ul, ul.cart-parcel { list-style: none; margin: 0; }
.cart-parcel ul { padding: 0; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 5px 8px; font-size: .875rem; }
.cart-item strong, .cart-item button { white-space: nowrap; }
.cart-remove { grid-column: -2; align-self: center; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.cart-remove .action-icon { width: 18px; height: 18px; }
.cart-remove:hover, .cart-remove:focus-visible { color: #a22d22; background: #faeeeb; }
.cart-item + .cart-item { padding-top: 5px; }
.order-quantity, .cart-item-details { display: flex; align-items: center; gap: 5px 8px; flex-wrap: wrap; }
.order-quantity { margin-block: 8px; font-size: .9rem; font-weight: 650; }
.cart-item-details > span:first-child { flex-basis: 100%; }
.order-quantity :is(select, input), .cart-item-details :is(select, input) { min-width: 70px; max-width: 100%; padding: 3px 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.order-quantity input, .cart-item-details input { width: 90px; }
.cart-parcel a, .admin-order-line > button { justify-self: start; }
@media (max-width: 480px) {
  #product-dialog .dialog-body { padding: 17px; }
  #product-dialog .form { gap: 8px; }
  #product-dialog .checkout-question,
  #product-dialog .checkout-question label { gap: 5px; }
  #product-dialog .checkout-question input { width: 2.6rem; padding-inline: 5px; }
  #product-dialog .checkout-question button { padding-inline: 5px; font-size: .8rem; }
}

.admin-list .admin-product {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 7px 10px;
}
.admin-thumbnail { display: grid; width: 52px; height: 52px; overflow: hidden; border-radius: 6px; background: var(--background); }
.admin-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-details { min-width: 0; }
.admin-product-meta { font-size: .875rem; color: var(--muted); }
.admin-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.status-badge {
  justify-self: start;
  display: inline-block;
  max-width: 100%;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: .8rem;
  font-weight: 700;
}
.status-badge.success, .admin-list .status-badge.success { color: #18472f; background: #e2f1e7; }
.status-badge.sold-state, .admin-list .status-badge.sold-state { color: #8e251f; background: #f9e7e4; }
.status-badge.muted, .admin-list .status-badge.muted { color: #48554e; background: #e5e9e7; }
.status-badge.new, .admin-list .status-badge.new { color: #623e12; background: #ffebc4; }
.admin-count {
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  margin-left: 5px;
  min-width: 19px;
  min-height: 19px;
  border-radius: 20px;
  background: #ffebc4;
  color: #623e12;
  font-size: .78rem;
}
.admin-priority { box-shadow: inset 3px 0 #b77528; }
.admin-list li.admin-priority { padding-left: 10px; }
@media (max-width: 680px) {
  .admin-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .admin-list .admin-product { grid-template-columns: 45px minmax(0, 1fr); align-items: start; }
  .admin-product > .row-actions { grid-column: 2; }
  .admin-thumbnail { width: 45px; height: 45px; }
}

.account-form { max-width: 425px; margin-block: 10px 12px; }
.account-actions { margin-block: 9px; }
#seller-pause-notice { padding: 8px 10px; border-radius: 6px; background: #ffebc4; color: #623e12; }

.login-view {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 16% 12%, #dcebe6, transparent 53%), #f2f4f5;
}
.login-view .admin-top {
  background: var(--login-header, #063b3d);
  border-bottom-color: transparent;
  color: var(--login-header-ink, #fff);
}
.login-view .admin-top .brand { color: inherit; }
.login-view .admin-top a:focus-visible { outline-color: currentColor; }
.admin-catalog-link { font-size: .9rem; font-weight: 650; }
.login-view .admin-catalog-link {
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 5px 13px;
  text-decoration: none;
}
.login-view .admin-catalog-link:hover { text-decoration: underline; }
.login-view .admin {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: 36px;
}
.login-view #admin-status { display: none; }
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  width: min(100%, 850px);
  min-height: 405px;
  background: var(--paper);
  border: 1px solid #d6e0dd;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 58px #153d3520, 0 2px 6px #153d350c;
}
.login-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 21px;
  padding: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(48px, 7vw, 88px);
  text-align: center;
  color: #fff;
  background: radial-gradient(ellipse at 20% 18%, #24685f, transparent 75%), #063b3d;
}
.login-season .login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/fundal-craciun.jpg") 10% center / cover no-repeat;
  opacity: .43;
}
.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, transparent 15%, #0a3b3b44 45%, #092e30 95%);
}
.login-art-icon {
  display: block;
  width: clamp(54px, 10vw, 94px);
  height: auto;
  padding: 12px;
  color: #e4f4ed;
  border: 1px solid #e4f4ed70;
  border-radius: 18px;
  background: #0c403c55;
}
.login-art-brand {
  display: block;
  margin-top: 7px;
  color: #e4f4ed;
  font-size: .95rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.login-art-copy p {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.login-form {
  align-content: center;
  gap: 15px;
  padding: clamp(24px, 5vw, 54px);
  min-width: 0;
}
.admin .login-form h1 {
  margin: 0 0 5px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 790;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.login-form label { gap: 6px; font-size: .9rem; }
.login-form input {
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #becdc7;
  border-radius: 9px;
  background: #fbfcfb;
}
.login-password-group { display: grid; gap: 6px; }
.login-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #becdc7;
  border-radius: 9px;
  background: #fbfcfb;
}
.login-password-field:focus-within { outline: 3px solid #337958; outline-offset: 3px; }
.login-password-field input { border: 0; min-height: 45px; background: transparent; }
.login-password-field input:focus-visible { outline: none; }
#toggle-login-password {
  min-width: 65px;
  min-height: 38px;
  margin: 3px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: #eaf1ee;
  color: var(--deep-green);
  font-size: .85rem;
  font-weight: 680;
}
#toggle-login-password:hover { background: #dcebe3; }
#login-submit {
  min-height: 46px;
  border-radius: 9px;
  background: var(--login-accent, #214e37);
  color: var(--login-action-ink, #fff);
}
#login-submit:disabled { opacity: .7; }
#login-status:empty { display: none; }
.login-form #login-status {
  overflow-wrap: anywhere;
  margin: 0;
  padding: 8px 11px;
  border-radius: 7px;
  color: #203d33;
  background: #eaf1ee;
  font-size: .875rem;
}
.login-form #login-status[data-kind="error"] { color: #8b241a; background: #fbecea; }
.login-form #login-status[data-kind="success"] { color: #18472f; background: #e2f1e7; }

@media (max-width: 620px) {
  .login-view .admin { padding-block: 20px; }
  .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 440px; min-height: 0; border-radius: 14px; }
  .login-art { flex-direction: row; gap: 12px; padding: 14px 18px 17px; }
  .login-art-icon { width: 52px; padding: 8px; border-radius: 12px; flex: none; }
  .login-art-copy p { font-size: 1.22rem; }
  .login-form { padding: 22px 20px; gap: 13px; }
  .login-view .admin-top .top-inner { gap: 7px; }
  .login-view .admin-top .brand { font-size: 1.15rem; }
  .login-view .admin-top .brand svg { width: 26px; height: 26px; }
  .login-view .admin-catalog-link { font-size: .82rem; padding-inline: 9px; }
}

.two-factor-panel { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.two-factor-panel h3 { margin: 0 0 4px; font-size: 1.15rem; }
#two-factor-qr { display: block; width: min(100%, 270px); height: auto; margin-inline: auto; border: 1px solid var(--line); }
#two-factor-codes { font-family: ui-monospace, monospace; }
#two-factor-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 5px 12px; max-width: 425px; padding: 0; list-style: none; }

.admin-list .seller-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; }
.seller-name { border: 0; padding: 2px 0; background: transparent; color: var(--deep-green); text-decoration: underline; font-weight: 720; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .admin-list .seller-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
