/* =====================================================================================
   Artšrot catalogue – look of the original HikaShop template (lt_shop / Helix Ultimate)
   ===================================================================================== */

:root {
    color-scheme: light;
    --font: 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-title: Arial, Helvetica, sans-serif;
    --bg: #ffffff;
    --text: #252525;
    --muted: #6c757d;
    --border: #dee2e6;
    --card-border: #d9d9d9;
    --frame: #333333;
    --link: #1f4fbf;
    --link-hover: #0f3690;
    --nav-active: #4a74f5;
    --topbar-bg: #000000;
    --header-bg: #000000;
    --crumb-bg: #e9ecef;
    --crumb-text: #212529;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-text: #212529;
    --select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --panel-bg: #ffffff;
    --panel-bar: #f2f2f2;
    --shadow: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-hover: 0 4px 14px rgba(0, 0, 0, .13);
    --bottom-bg: #171717;
    --sale: #c62828;
    --success: #1b7f3b;
    --danger: #b3261e;
    --radius: 5px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #131313;
    --text: #e6e6e6;
    --muted: #a3a3a3;
    --border: #3a3a3a;
    --card-border: #353535;
    --frame: #6b6b6b;
    --link: #8cb4ff;
    --link-hover: #bcd2ff;
    --crumb-bg: #232323;
    --crumb-text: #dddddd;
    --input-bg: #1d1d1d;
    --input-border: #474747;
    --input-text: #eeeeee;
    --select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dddddd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --panel-bg: #1b1b1b;
    --panel-bar: #262626;
    --shadow: 0 2px 8px rgba(0, 0, 0, .5);
    --shadow-hover: 0 4px 14px rgba(0, 0, 0, .6);
    --sale: #ff6b6b;
    --success: #5fd38a;
    --danger: #ff7b72;
}

/* ---- Base ---------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.56;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--nav-active); outline-offset: 2px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 12px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 12px; }
.skip-link:focus { left: 8px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Top bar ------------------------------------------------------------------------ */

#top-bar { background: var(--topbar-bg); color: #fff; font-size: 13px; padding: 4px 0; }
#top-bar a { color: #fff; }
#top-bar a:hover { color: var(--nav-active); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 38px; }

.contact-info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.contact-info li { display: flex; align-items: center; gap: 5px; }

.top-bar-right { display: flex; align-items: center; gap: 22px; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; font-size: 15px; }
.social-icons a { display: flex; }

.live-search { position: relative; width: 224px; }
.live-search form { margin: 0; }
.live-search-input {
    width: 100%; height: 36px; padding: 6px 54px 6px 10px;
    font: inherit; font-size: 14px; color: #212529; background: #fff;
    border: 1px solid #ccc; border-radius: 4px;
}
.live-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.live-search-clear {
    position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
    border: 0; background: none; padding: 0 4px; font-size: 20px; line-height: 1; color: #888; cursor: pointer;
}
.live-search-clear:hover { color: #333; }
.live-search-spinner {
    position: absolute; right: 9px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    border: 2px solid #c8c8c8; border-top-color: #333; border-radius: 50%; animation: spin .7s linear infinite;
}

/* ---- Header -------------------------------------------------------------------------- */

#header { background: var(--header-bg); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }

.logo { display: inline-flex; flex-direction: column; align-items: center; color: #fff; line-height: 1; margin-left: 32px; }
.logo:hover { color: #fff; }
.logo img { height: 65px; width: auto; display: block; }
.logo-text { font-size: 38px; font-weight: 800; letter-spacing: .5px; }
.logo-text span { font-style: italic; margin-left: 2px; }
.logo-sub { font-size: 9px; letter-spacing: 6px; text-transform: uppercase; color: #d0d0d0; margin-top: 4px; padding-left: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { display: block; padding: 8px 0; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }
.main-nav a:hover, .main-nav .active a { color: var(--nav-active); }

.burger {
    display: none; width: 42px; height: 42px; padding: 10px 8px; border: 0; background: none; cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---- Content -------------------------------------------------------------------------- */

#main { padding: 10px 0 20px; min-height: 50vh; }

.breadcrumb { margin: 0 0 16px; }
.breadcrumb ol {
    list-style: none; margin: 0; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center;
    background: var(--crumb-bg); color: var(--crumb-text); border-radius: 4px;
}
.breadcrumb-here { padding-right: 6px; }
.breadcrumb li:not(.breadcrumb-here) + li::before { content: "/"; padding: 0 8px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }

/* Categories – framed horizontal menu */
.category-menu { border: 1px solid var(--frame); border-radius: 12px; margin: 16px 0; padding: 10px 16px; }
.category-menu-head { display: none; }
.category-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
.category-menu-list > li { position: relative; }
.category-menu-list > li > a { display: block; padding: 3px 12px; border-radius: 4px; color: var(--text); }
.category-menu-list > li.has-children > a::before { content: "·"; margin-right: 12px; font-weight: 700; }
.category-menu-list > li > a:hover, .category-menu-list > li.active > a { color: var(--link); }
.category-submenu-toggle { display: none; }

/* Subcategory dropdown (like the original HikaShop menu) */
.category-dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 45; padding-top: 11px; }
.category-dropdown.align-right { left: auto; right: 0; }
.category-dropdown > ul {
    list-style: none; margin: 0; padding: 8px 0; min-width: 190px;
    background: var(--panel-bg); border: 1px solid var(--frame); border-radius: 8px; box-shadow: var(--shadow-hover);
}
.category-dropdown > ul.cols-2 { columns: 2; column-gap: 0; min-width: 330px; }
.category-dropdown li { break-inside: avoid; }
.category-dropdown a { display: block; padding: 7px 16px; color: var(--text); font-size: 15px; white-space: nowrap; }
.category-dropdown a:hover, .category-dropdown a.active { color: var(--link); }
@media (min-width: 768px) {
    .category-menu-list > li.has-children:hover > a,
    .category-menu-list > li.has-children:focus-within > a,
    .category-menu-list > li.open > a { background: var(--crumb-bg); }
    .category-menu-list > li.has-children:focus-within > .category-dropdown,
    .category-menu-list > li.open > .category-dropdown { display: block; }
}
@media (min-width: 768px) and (hover: hover) {
    .category-menu-list > li.has-children:hover > .category-dropdown { display: block; }
}

/* Subcategory buttons */
.subcategories { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 20px; }
.subcategories a {
    display: block; padding: 5px 8px; text-align: center; color: var(--link);
    border: 1px solid var(--card-border); border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s;
}
.subcategories a:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.subcategories a.active { background: var(--link); border-color: var(--link); color: var(--bg); }

.category-description { margin: 0 0 16px; }

/* Text boxes (Admin → Texts): under the header / breadcrumb, or under the category menu */
.text-boxes { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.text-box { padding: 12px 16px; line-height: 1.5; overflow-wrap: anywhere; }
.text-box-center { text-align: center; }
.text-box-left { text-align: left; }
.text-box-box { background: var(--crumb-bg); color: var(--crumb-text); border-radius: var(--radius); }
.text-box-dark { background: var(--header-bg); color: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.text-box-dark a { color: #fff; text-decoration: underline; }
.text-box-plain { padding: 0; }
/* Coloured boxes: tinted background, coloured border, dark text of the same colour (light text in dark mode) */
.text-box-orange, .text-box-yellow, .text-box-red, .text-box-blue, .text-box-green {
    background: var(--tb-bg); color: var(--tb-text); border: 1px solid var(--tb-border); border-radius: var(--radius);
}
:is(.text-box-orange, .text-box-yellow, .text-box-red, .text-box-blue, .text-box-green) a { color: inherit; text-decoration: underline; }
.text-box-orange { --tb-bg: #ffe3c2; --tb-border: #f57c00; --tb-text: #6b3300; }
.text-box-yellow { --tb-bg: #fff3b0; --tb-border: #e0b000; --tb-text: #564200; }
.text-box-red    { --tb-bg: #ffd9d6; --tb-border: #e53935; --tb-text: #86160f; }
.text-box-blue   { --tb-bg: #dbe7ff; --tb-border: #3d6fe0; --tb-text: #0f3183; }
.text-box-green  { --tb-bg: #d5f2de; --tb-border: #2e9d57; --tb-text: #125428; }
[data-theme="dark"] .text-box-orange { --tb-bg: #3a230c; --tb-border: #ff9f43; --tb-text: #ffd9b0; }
[data-theme="dark"] .text-box-yellow { --tb-bg: #332c08; --tb-border: #e8c547; --tb-text: #fff0a3; }
[data-theme="dark"] .text-box-red    { --tb-bg: #3d1614; --tb-border: #ef5350; --tb-text: #ffcbc6; }
[data-theme="dark"] .text-box-blue   { --tb-bg: #14223f; --tb-border: #6f9bff; --tb-text: #cfe0ff; }
[data-theme="dark"] .text-box-green  { --tb-bg: #10301c; --tb-border: #4cc27a; --tb-text: #c6f0d4; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 4px; }
.filter { flex: 0 1 calc(25% - 24px); min-width: 0; }
.form-select, .form-control {
    display: block; width: 100%; height: 38px; padding: 6px 12px;
    font: inherit; font-size: 16px; line-height: 1.5; color: var(--input-text);
    background-color: var(--input-bg); border: 1px solid var(--input-border); border-radius: 4px;
    transition: border-color .15s, box-shadow .15s;
}
.form-select {
    padding-right: 36px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 12px;
}
.form-select:focus, .form-control:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .25); }
.form-control::placeholder { color: var(--muted); }

.suggest { position: relative; }
.suggest-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30; list-style: none; margin: 2px 0 0; padding: 4px 0;
    background: var(--panel-bg); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow);
    max-height: 280px; overflow-y: auto;
}
.suggest-list li { padding: 6px 12px; cursor: pointer; }
.suggest-list li:hover, .suggest-list li[aria-selected="true"] { background: var(--crumb-bg); }

/* Product grid */
.catalog.loading .listing { opacity: .45; pointer-events: none; transition: opacity .15s; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 12px; margin: 10px 0 20px; }
.product-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 5px 6px 16px; background: var(--bg);
    border: 1px solid var(--card-border); border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-card-image { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 120px; overflow: hidden; }
.product-card-image img { width: auto; height: auto; max-width: 100%; max-height: 120px; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-price { margin-top: 6px; font-size: 16px; }
.product-card-name { margin-top: 12px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }

.price-old { color: var(--muted); font-size: .85em; margin-right: 2px; }
.price-sale { color: var(--sale); font-weight: 700; }
.price-zero { font-size: .9em; color: var(--muted); }
.badge-sale {
    display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--sale); color: #fff;
    font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: middle;
}
.product-card-image .badge-sale { position: absolute; top: 4px; left: 4px; }

.no-results { text-align: center; padding: 40px 0; color: var(--muted); }

/* Pagination */
.pagination-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px 0 10px; text-align: center; }
.pagination-limit { margin: 0; }
.pagination-limit label { display: flex; align-items: center; gap: 10px; }
.pagination-limit .form-select { width: auto; min-width: 100px; }
.pagination { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.pagination a, .pagination span {
    display: block; min-width: 40px; padding: 6px 12px; margin-left: -1px; text-align: center;
    color: var(--link); background: var(--bg); border: 1px solid var(--border);
}
.pagination li:first-child a, .pagination li:first-child span { border-radius: 4px 0 0 4px; margin-left: 0; }
.pagination li:last-child a, .pagination li:last-child span { border-radius: 0 4px 4px 0; }
.pagination a:hover { background: var(--crumb-bg); }
.pagination .active span { background: var(--link); border-color: var(--link); color: var(--bg); position: relative; z-index: 1; }
.pagination-counter, .results-counter { font-size: 14px; color: var(--muted); }

/* ---- Live search – results panel -------------------------------------------------- */

.search-results {
    position: relative; margin: 0 0 12px; max-height: min(75vh, 640px); overflow-y: auto; overflow-x: hidden;
    background: var(--panel-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
    touch-action: pan-y;   /* horizontal swipes page through the results (app.js) */
}
.sr-slide-next { animation: sr-slide-next .22s ease-out; }
.sr-slide-prev { animation: sr-slide-prev .22s ease-out; }
@keyframes sr-slide-next { from { opacity: .2; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes sr-slide-prev { from { opacity: .2; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.sr-close {
    display: flex; justify-content: flex-end; align-items: center; width: 100%; height: 16px; padding: 0 8px;
    border: 0; border-bottom: 1px solid var(--border); background: var(--panel-bar); color: var(--muted);
    font-size: 10px; line-height: 1; cursor: pointer;
}
.sr-close:hover { color: var(--text); }
/* Square images of the product listing size (120 px). The text is under the image; on wide screens, where it fits,
   on the right of the image (min-width 992px below). 3 results per row, 2 on phones. */
.sr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.sr-grid.has-nav { padding-left: 46px; padding-right: 46px; }
.sr-item {
    min-width: 0; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 6px;
    border-radius: 4px; text-align: center; color: var(--text);
}
.sr-item:hover { color: var(--text); background: var(--panel-bar); }
.sr-item:hover .sr-name { text-decoration: underline; }
.sr-item img { display: block; width: 120px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: #f0f0f0; }
.sr-price { font-size: 15px; font-weight: 700; }
.sr-name { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 992px) {
    .sr-item { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 4px 14px; justify-items: start; text-align: left; }
    .sr-item img { grid-row: 1 / span 2; align-self: center; }
    .sr-price { align-self: end; }
    .sr-name { align-self: start; }
}
.sr-empty { padding: 10px; font-size: 13px; color: var(--muted); }
.sr-nav {
    position: absolute; top: calc(50% + 8px); transform: translateY(-50%); z-index: 2;
    display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
    border: 1px solid #ccc; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15); cursor: pointer;
}
.sr-nav:disabled { opacity: .3; cursor: default; }
.sr-prev { left: 6px; }
.sr-next { right: 6px; }

/* ---- Product detail ------------------------------------------------------------------ */

.product { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 0 0; }
.product-gallery { display: flex; flex-direction: column; align-items: center; width: 100%; }
.product-main-image {
    display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
    padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
}
a.product-main-image { cursor: zoom-in; }
.product-main-image img { display: block; height: 300px; width: auto; max-width: 100%; object-fit: contain; }
.product-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.product-thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; transition: border-color .2s; }
.product-thumb img { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 2px; }
.product-thumb.active { border-color: var(--text); }

.product-info { width: 100%; max-width: 500px; margin-top: 20px; }
/* Desktop: the product info on the right of the photos */
@media (min-width: 992px) {
    .product { flex-direction: row; align-items: flex-start; justify-content: center; gap: 48px; text-align: left; }
    .product-gallery { width: auto; flex: 0 1 auto; min-width: 0; max-width: 60%; }
    .product-info { flex: 0 1 500px; margin-top: 0; }
}
.product-title { margin: 0; font-family: var(--font-title); font-size: 2em; font-weight: 300; line-height: 1.3; text-transform: capitalize; }
.product-price { margin: 8px 0 6px; font-size: 1.6em; }
.product-price .badge-sale { font-size: 14px; margin-left: 4px; }
.product-description { margin: 4px 0; }
.product-field { font-size: 15px; }
.product-code { margin-top: 6px; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }

.btn {
    display: inline-block; padding: 8px 40px; font-size: 14px; line-height: 1.5; text-align: center; text-transform: uppercase;
    border: 1px solid var(--link); border-radius: 4px; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-outline { background: transparent; color: var(--link); }
.btn-outline:hover { background: var(--link); color: var(--bg); }
.btn-primary { background: var(--link); color: var(--bg); }
.btn-primary:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--bg); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-contact { margin: 20px 0 16px; }

.recently-viewed { margin-top: 4px; }
.recently-viewed-title { margin: 0 0 10px; font-size: 1.1em; font-weight: 700; text-align: center; }
.product-grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 0; }

/* Modal */
.modal {
    width: calc(100% - 24px); max-width: 600px; padding: 20px; border: 0; border-radius: 8px;
    background: var(--bg); color: var(--text); box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-close { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--text); }

/* Gallery – lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; background: #fff; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.lightbox-close { position: fixed; top: 8px; right: 16px; border: 0; background: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; color: #ddd; font-size: 14px; }

/* ---- Forms ------------------------------------------------------------------------- */

.contact-form { text-align: left; }
.contact-form-product { margin: 0 0 12px; font-weight: 700; }
.contact-form-product span { font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-row > label { font-size: 14px; font-weight: 600; }
.req { color: var(--danger); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
    width: 100%; padding: 8px 10px; font: inherit; font-size: 15px; color: var(--input-text);
    background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 4px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .25); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check input { margin-top: 4px; flex: none; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0 0 10px; font-size: 14px; }
.form-status.is-success { color: var(--success); font-weight: 700; }
.form-status.is-error { color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; }
.contact-form .is-invalid { border-color: var(--danger); }
.form-errors { display: inline-block; text-align: left; color: var(--danger); }

/* ---- Pages --------------------------------------------------------------------------- */

.page-title { margin: 10px 0 12px; font-family: var(--font-title); font-size: 2em; font-weight: 300; line-height: 1.3; }
.page-content { max-width: 900px; margin: 10px auto; text-align: center; }
.section-title { margin: 24px 0 10px; font-size: 1.3em; font-weight: 700; text-align: center; }
.home-more { text-align: center; }
.page-message { padding: 50px 0; text-align: center; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding: 10px 0 30px; }
.contact-page .section-title { text-align: left; margin-top: 18px; }
.contact-list { list-style: none; margin: 16px 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.link-button:hover { color: var(--link-hover); text-decoration: underline; }

/* Home: picture + text */
.home-intro { display: flex; align-items: center; justify-content: center; gap: 32px; max-width: 940px; margin: 24px auto 36px; }
.home-intro-image { flex: 0 0 auto; }
.home-intro-image img { display: block; width: 240px; max-width: 100%; height: auto; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.home-intro-text { flex: 1 1 auto; max-width: 560px; font-size: 15px; }
.home-intro-text p { margin: 0 0 14px; }
.home-intro.no-image .home-intro-text { text-align: center; }

/* Shop photo strips (home page) */
.shop-gallery { margin: 0 0 22px; }
.shop-gallery-title { margin: 0; text-align: center; font-size: 1.75em; font-weight: 400; line-height: 1.3; }
.shop-gallery-sub { margin: 0 0 8px; text-align: center; color: var(--muted); font-size: 14px; }
.strip { position: relative; }
.strip-track {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track li { flex: 0 0 calc((100% - 16px) / 5); scroll-snap-align: start; }
.strip-track a { display: block; cursor: zoom-in; }
.strip-track img { display: block; width: 100%; aspect-ratio: 200 / 132; object-fit: cover; background: var(--crumb-bg); }
.strip-nav {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; cursor: pointer;
}
.strip-nav:hover { background: rgba(0, 0, 0, .75); }
.strip-prev { left: 8px; }
.strip-next { right: 8px; }
.strip.no-scroll .strip-nav { display: none; }

/* Contact: shops + map */
.shop-list { list-style: none; margin: 0 0 16px; padding: 0; }
.shop-list li { margin-bottom: 14px; }
.shop-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: 14px; }
.shops-map-section { margin: 10px 0 20px; }
.shops-map { height: 440px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--crumb-bg); }
.shops-map .leaflet-popup-content { font-family: var(--font); font-size: 14px; line-height: 1.5; margin: 12px 16px; }
.shops-map .leaflet-popup-content a { color: #1f4fbf; }
.map-popup-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }

/* ---- Footer -------------------------------------------------------------------------- */

#bottom { padding: 60px 0; background: var(--bottom-bg); color: #fff; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
#bottom p { margin: 0; }
#bottom a { color: #fff; text-decoration: underline; }
#footer { padding: 0 0 18px; background: var(--bottom-bg); color: #8f8f8f; font-size: 13px; text-align: center; }
#footer .container { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---- Mobile menu (off-canvas) --------------------------------------------------------- */

.offcanvas-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .5); }
.offcanvas {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 300px; max-width: 85vw; padding: 16px 20px 30px;
    overflow-y: auto; background: #111; color: #fff; text-align: center;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.offcanvas.open { transform: none; visibility: visible; transition: transform .25s ease; }
.offcanvas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.offcanvas-title { font-weight: 700; }
.offcanvas-close { border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.offcanvas a { color: #fff; }
.offcanvas a:hover { color: var(--nav-active); }
.offcanvas-menu { list-style: none; margin: 0 0 24px; padding: 0; }
.offcanvas-menu > li > a { display: block; padding: 10px 0; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.offcanvas-menu > li.active > a { color: var(--nav-active); }
.offcanvas-menu ul { list-style: none; margin: 0 0 8px; padding: 0; }
.offcanvas-menu ul a { display: block; padding: 5px 0; color: #cfcfcf; font-size: 15px; }
.offcanvas .contact-info { flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.offcanvas .contact-info li { justify-content: center; text-align: center; }
body.no-scroll { overflow: hidden; }

/* ---- Floating buttons ---------------------------------------------------------------- */

.scroll-up, .theme-toggle {
    position: fixed; bottom: 20px; z-index: 40; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: #111; color: #fff; font-size: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer;
}
.scroll-up { right: 20px; }
.theme-toggle { left: 20px; font-size: 18px; }
[data-theme="dark"] .scroll-up, [data-theme="dark"] .theme-toggle { background: #3a3a3a; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }

/* ---- Responsive --------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .subcategories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    body { font-size: 14px; }
    .top-bar-inner { flex-direction: column; justify-content: center; padding-top: 4px; padding-bottom: 4px; }
    .contact-info { justify-content: center; }
    .top-bar-right { width: 100%; justify-content: center; }
    .live-search { flex: 1 1 auto; max-width: 400px; }
    .main-nav { display: none; }
    .burger { display: flex; }
    .logo { margin-left: 0; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .subcategories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
    .filters { gap: 8px 16px; }
    .filter { flex: 1 1 calc(33.333% - 16px); }
}

@media (max-width: 767px) {
    .header-inner { min-height: 70px; }
    .logo img { height: 50px; }
    .logo-text { font-size: 30px; }

    /* Phones: no category menu – the categories are in the main menu (☰) and the subcategory buttons */
    .category-menu { display: none; }

    .filter { flex: 1 1 100%; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-card-price, .product-card-name { font-size: 15px; }
    .product-card-name { margin-top: 8px; }
    .contact-page { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .home-intro { flex-direction: column; gap: 18px; margin-top: 12px; }
    .home-intro-image img { width: 200px; }
    .strip-track li { flex-basis: calc((100% - 8px) / 3); }
    .shop-gallery-title { font-size: 1.45em; }
    .shops-map { height: 360px; }
    #bottom { padding: 36px 0; }
    .product-main-image img { height: 210px; }   /* 70 % of the desktop size */
}

@media (max-width: 600px) {
    .search-results { max-height: none; text-align: center; }   /* centres the ‹ › buttons under the results */
    .sr-grid, .sr-grid.has-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
    .sr-nav { position: static; transform: none; display: inline-flex; margin: 0 6px 8px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .modal { padding: 16px; }
    .lightbox img { max-width: 100vw; max-height: calc(100vh - 100px); }
    .lightbox-nav { top: auto; bottom: 8px; transform: none; }
}

@media (max-width: 575px) {
    .subcategories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* 70 % of the full phone width / 60 % screen height used before */
    .product-main-image { max-width: 70%; }
    .product-main-image img { height: auto; max-height: 42vh; }
    .strip-track li { flex-basis: calc((100% - 4px) / 2); }
    .strip-nav { width: 38px; height: 38px; }
    .product-title { font-size: 1.7em; }
    .btn-contact { width: 100%; }
    .scroll-up, .theme-toggle { width: 40px; height: 40px; bottom: 14px; }
    .scroll-up { right: 14px; }
    .theme-toggle { left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
