/*
 * Storefront shell: the few interaction rules Elementor has no control for.
 * Loaded after the token stylesheet (style.css). Anything a native Elementor
 * control can express belongs in Elementor, not here. Selectors use the stable
 * element ids the generator writes (data-id), not Elementor's internal classes.
 */

/* CLS (Lighthouse 2026-10-08, category desktop): with classic scrollbars (Windows) a page starts short, the
   scrollbar appears as it grows and every centred row jumps 7-15px left (the header was 0.024 of the score).
   Reserving the gutter from the first paint keeps the layout still. No effect with overlay scrollbars. */
html { scrollbar-gutter: stable; }

/* Wordmark: the clay full stop (DESIGN.novamira.md, open substitution 1). */
.hs-logo-dot { color: var(--clay); }

/* Brand marks (design/brand/). Fixed height and auto width, so the image widgets never drive
   the header row height or the footer brand row's line height. Tablet and phone sit just
   inside the header row min-heights; desktop (owner, 2026-09-28, option B) is 104px, so the
   logo holds its own on a wide screen (68px was 9.5% of 1440px) and the row grows to ~111px. */
[data-id="hdr-logo"] img { height: 104px; width: auto; display: block; }
[data-id="ftr-icon"] img { height: 48px; width: auto; display: block; }
@media (max-width: 1024px) {
  [data-id="hdr-logo"] img { height: 60px; }
}
@media (max-width: 767px) {
  [data-id="hdr-logo"] img { height: 50px; }
  [data-id="ftr-icon"] img { height: 40px; }
}

/* Header layout: top row (phone + hours | EL/EN + account, user 2026-10-07) · logo row · nav row with
   the mega menu. */
[data-id="hdr-util-contact"] .elementor-icon-list-items { flex-wrap: nowrap; }
[data-id="hdr-util-contact"] .elementor-icon-list-text { white-space: nowrap; }
/* The tools cell is a full-width container by default; here it only takes what EL/EN + account need. */
[data-id="hdr-util-tools"] { gap: 10px !important; width: auto !important; --width: auto; flex: 0 0 auto !important; }
[data-id="hdr-util-contact"] { flex: 1 1 auto; min-width: 0; }
[data-id="hdr-search-cell"], [data-id="hdr-search-form"] { width: 100%; }

/* The search field: a plain line with a magnifier, not Elementor's grey classic box. The widget's
   own colours come from the kit globals at (0,4,0) specificity in the per-post CSS file, so these
   few properties need !important to hold whatever loads last. The magnifier is a CSS mask of the
   same 24px outline glyph as icon-search (no icon font, DESIGN.novamira.md). */
[data-id="hdr-search-form"] div.elementor-search-form__container {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--stone-2) !important;
  border-radius: 0 !important; min-height: 40px; box-shadow: none !important;
}
[data-id="hdr-search-form"] div.elementor-search-form__container:focus-within { border-bottom-color: var(--ink) !important; }
[data-id="hdr-search-form"] input.elementor-search-form__input {
  background: transparent !important; color: var(--ink) !important; padding: 0 !important;
  font-family: var(--font-body); font-size: 0.875rem !important;
}
[data-id="hdr-search-form"] input.elementor-search-form__input::placeholder { color: var(--stone-2); opacity: 1; }
[data-id="hdr-search-form"] button.elementor-search-form__submit {
  flex: 0 0 40px; width: 40px; min-width: 40px; padding: 0 !important; background: transparent !important;
  color: var(--ink) !important; font-size: 0 !important; display: flex; align-items: center; justify-content: flex-end;
}
[data-id="hdr-search-form"] button.elementor-search-form__submit::before {
  content: ""; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-id="hdr-search-form"] button.elementor-search-form__submit:hover { color: var(--clay-deep) !important; }

/* Below the widget's tablet breakpoint the logo row and the nav row become one grid, as in the
   approved phone mockup: burger | logo | account + cart, the search full width underneath.
   The two boxed rows (and their inner wrappers) step aside with display: contents so their cells
   sit in the header's own grid; the rows' padding and min-height go with them, so the cells carry
   their own. Elementor sets --display per element at (0,3,0), hence !important. */
@media (max-width: 1024px) {
  [data-id="hdr"] {
    display: grid !important; grid-template-columns: auto 1fr auto;
    grid-template-areas: "util util util" "nav logo icons" "search search search";
  }
  [data-id="hdr-row"], [data-id="hdr-row"] > .e-con-inner,
  [data-id="hdr-navrow"], [data-id="hdr-navrow"] > .e-con-inner { display: contents !important; }
  [data-id="hdr-util"] { grid-area: util; }
  [data-id="hdr-nav"] { grid-area: nav; padding-left: 32px !important; }
  [data-id="hdr-logo-cell"] { grid-area: logo; justify-content: center !important; min-height: 74px; }
  [data-id="hdr-icons"] { grid-area: icons; padding-right: 32px !important; }
  [data-id="hdr-search-cell"] { grid-area: search; padding: 0 32px 12px !important; }
  /* Top row, mockup «Β + ωράριο» (user 2026-10-07): phone | EL/EN + account, then the hours on a line
     of their own. The contact list steps aside (display: contents) so its two items join this grid. */
  [data-id="hdr-util"] {
    display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "phone tools" "hours hours";
    align-items: center; column-gap: 12px; row-gap: 0; padding-top: 2px !important; padding-bottom: 6px !important;
  }
  [data-id="hdr-util-contact"], [data-id="hdr-util-contact"] > .elementor-widget-container,
  [data-id="hdr-util-contact"] .elementor-icon-list-items { display: contents !important; }
  [data-id="hdr-util-contact"] .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
  [data-id="hdr-util-contact"] .elementor-icon-list-item::after { display: none !important; }
  [data-id="hdr-util-contact"] .elementor-icon-list-item:nth-child(1) { grid-area: phone; }
  [data-id="hdr-util-contact"] .elementor-icon-list-item:nth-child(2) { grid-area: hours; }
  [data-id="hdr-util-tools"] { grid-area: tools; }
}
@media (max-width: 767px) {
  [data-id="hdr-nav"] { padding-left: 16px !important; }
  [data-id="hdr-icons"] { padding-right: 16px !important; }
  [data-id="hdr-logo-cell"] { min-height: 60px; }
  [data-id="hdr-search-cell"] { padding: 0 16px 10px !important; }
  /* The hours line is ~330px: on the narrowest phones it wraps instead of running off the screen. */
  [data-id="hdr-util-contact"] .elementor-icon-list-text { white-space: normal; }
}

/* Main nav: the Elementor Pro mega menu (owner, 2026-09-23). Like the nav-menu widget it
   replaced, its cell must be allowed its content's width: Elementor resets min-width to 0
   on the grid item and the widget (see git history of this block for the long form). */
@media (min-width: 1025px) {
  [data-id="hdr-nav"], [data-id="hdr-mega"] { min-width: max-content; }
  [data-id="hdr-mega"] .e-n-menu-title-text { white-space: nowrap; }
}
/* The chevron turns over while its panel is open. */
[data-id="hdr-mega"] .e-n-menu-dropdown-icon svg { transition: transform var(--dur-base) var(--ease-out); }
[data-id="hdr-mega"] [aria-expanded="true"] .e-n-menu-dropdown-icon-opened svg { transform: rotate(180deg); }

/* Mega menu panel (hs-mega-menu.php shortcodes). Everything below sits inside the dropdown,
   which Elementor keeps display:none until it opens - so its lazy images are not fetched and
   nothing in it can shift the page. */
@media (min-width: 1025px) {
  /* Atelier (user 2026-10-06, same structure): a white panel on the white page, lifted by a soft
     shadow (the widget's own content background is paper-2 and stays for the burger dropdown). */
  [data-id="hdr-mega-item-furniture"] { background: var(--surface-raised); box-shadow: 0 20px 40px rgba(35, 33, 28, 0.14); }
}
/* One column per department (user 2026-09-29, option B), five at most to a row. */
.hs-mega-cats {
  display: grid; grid-template-columns: repeat(min(var(--hs-mega-n, 4), 5), minmax(0, 1fr)); gap: 32px 32px;
}
.hs-mega-dept > summary { list-style: none; cursor: default; }
.hs-mega-dept-media {
  display: block; aspect-ratio: 3 / 2; margin-bottom: 18px; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper);
}
/* (0,2,1): Elementor's `.elementor img { height: auto }` (0,1,1) would otherwise leave the photo at
   its own ratio, overflowing the 3:2 frame from the top instead of filling it. */
.hs-mega-dept-media img.hs-mega-dept-img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
  transform: scale(var(--hs-zoom, 1)); transition: transform var(--dur-base) var(--ease-out);
}
.hs-mega-dept-media:hover .hs-mega-dept-img { transform: scale(calc(var(--hs-zoom, 1) * 1.04)); }
.hs-mega-dept > summary::-webkit-details-marker { display: none; }
.hs-mega-dept-link {
  font-family: var(--font-display); font-weight: 300; font-size: 1.625rem; line-height: 1.15; color: var(--ink);
  text-decoration: none;
}
.hs-mega-dept-link:hover { color: var(--clay-deep); }
.hs-mega-dept ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.hs-mega-dept li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 0; font-size: 0.9375rem; color: var(--charcoal); text-decoration: none;
}
.hs-mega-dept li a:hover { color: var(--clay-deep); }
.hs-mega-n { font-size: 0.8125rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.hs-mega-all { display: none; }
/* Desktop column foot: "Προβολή όλων" underlined in clay (mockup 05). */
.hs-mega-dept li.hs-mega-more { margin-top: 8px; }
.hs-mega-dept li.hs-mega-more a {
  display: inline-block; padding: 4px 0 2px; border-bottom: 1px solid var(--clay);
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}

/* At the widget's tablet breakpoint the panel is an accordion inside the burger dropdown:
   one column, each department a <details> the shopper opens; its summary toggles instead of
   navigating, and "Προβολή όλων" takes over the department link. */
/* The widget's toggle-to-dropdown distance has one value (19px, the 60px phone row); the tablet
   row is 74px, so the dropdown has to drop 26px there to start at the row's bottom edge.
   Elementor sets the variable at (0,3,0) - `.elementor-3837 .elementor-element.elementor-element-…` -
   so this selector needs (0,3,1) to win regardless of which stylesheet loads last. */
@media (min-width: 768px) and (max-width: 1024px) {
  body [data-id="hdr-mega"].elementor-element.elementor-widget-n-menu { --n-menu-toggle-icon-distance-from-dropdown: 26px; }
}
@media (max-width: 1024px) {
  [data-id="hdr-mega"] .e-n-menu-wrapper {
    background: var(--paper-2); border-bottom: 1px solid var(--canvas-2);
    box-shadow: 0 24px 32px -28px rgba(35, 33, 28, 0.5);
    max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain;
  }
  [data-id="hdr-mega"] .e-n-menu-item + .e-n-menu-item { border-top: 1px solid var(--canvas-2); }
  .hs-mega-cats { grid-template-columns: 1fr; gap: 0; }
  .hs-mega-dept-media { display: none; }
  .hs-mega-dept { border-top: 1px solid var(--canvas); }
  .hs-mega-dept > summary {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0;
  }
  .hs-mega-dept > summary::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.7px solid var(--stone);
    border-bottom: 1.7px solid var(--stone); transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out);
  }
  .hs-mega-dept[open] > summary::after { transform: rotate(-135deg); }
  .hs-mega-dept-link { pointer-events: none; font-size: 1.1875rem; font-weight: 400; }
  .hs-mega-dept ul { margin: 0 0 8px; }
  .hs-mega-all { display: block; }
  .hs-mega-dept li.hs-mega-more { display: none; } /* the accordion has «Προβολή όλων» first */
}

/* Image tiles: quiet zoom on hover (design: .hs-tile:hover .hs-tile-img scale 1.04). */
.hs-tile-img { transition: transform var(--dur-base) var(--ease-out); }
[data-id^="room-tile-"]:hover .hs-tile-img,
[data-id^="style-tile-"]:hover .hs-tile-img { transform: scale(1.04); }

/* Hero A framing. This belongs to one photo, not to the slot - Capodarte Ron oval table, 8867
   (tagged img-hero-ron, user 2026-09-28; before it the Biscottini image 11221 at 50% 72%, and
   Itamoby Diamante 4489 with a scaleX(-1) mirror). 2560x1669 in a ~2.25:1 hero: 60% keeps the
   table and chairs in frame. Swap the photo and change this with it;
   scripts/hero-mirror-selftest.php fails when they drift. */
[data-id="hero-a-img"] { object-position: 50% 60%; }

/* The 404 page ([hs_404] in hs-seo.php, Elementor template tpl-404; audit TSEO-15). */
.hs-404 { max-width: 680px; margin: 0 auto; padding: 72px 16px 96px; text-align: center; color: var(--ink); }
.hs-404-code { margin: 0 0 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; color: var(--stone-2); }
.hs-404-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin: 0 0 14px; }
.hs-404-lead { margin: 0 auto 28px; max-width: 520px; line-height: 1.6; color: var(--charcoal); }
.hs-404-search { display: flex; max-width: 460px; margin: 0 auto 28px; border-bottom: 1px solid var(--stone-2); }
.hs-404-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font: inherit; color: var(--ink); }
.hs-404-search button { border: 0; background: transparent; color: var(--clay-deep); font-weight: 500; cursor: pointer; }
.hs-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.hs-404-link {
  padding: 7px 16px; border: 1px solid var(--oat); border-radius: 999px; font-size: 0.875rem; color: var(--charcoal); text-decoration: none;
}
.hs-404-link:hover { border-color: var(--ink); color: var(--ink); }
.hs-404-shop { color: var(--clay-deep); font-weight: 500; text-decoration: none; }

/* Buttons press 1px and never scale (DESIGN.novamira.md, Motion). */
.hs-btn-primary:active, .hs-btn-dark:active { transform: translateY(1px); }

/* In-page anchors (#synergates, #katastimata, #eggyisi) clear the sticky header:
   157px on a phone, 173px on a tablet, 198px on desktop (the 104px logo row). */
:target { scroll-margin-top: 170px; }
@media (min-width: 1025px) { :target { scroll-margin-top: 220px; } }

/* A legal-page list item marked «<!-- hs:nowrap -->» (Terms: phone + hours) stays on one line on desktop,
   a little past the prose measure. Elementor's v4 styles have no white-space, so it is an attribute. */
@media (min-width: 1025px) { [data-hs-nowrap="desktop"] { white-space: nowrap; } }

/* Cart toggle keeps the clay focus ring (every focused header control shows
   --focus-ring). The toggle also carries Kadence's own
   `.elementor-button` class, and Kadence's global
   `.elementor-button-wrapper .elementor-button:focus` rule (specificity 0,3,0,
   kadence/assets/css/global.min.css) is more specific than the site's global
   `:focus-visible` rule (0,1,0, style.css), so it would win the box-shadow
   property and show Kadence's generic drop-shadow instead of the ring. This
   scoped, more-specific rule restores it for the cart control only - the other
   header controls (nav, wordmark, search, account, sub-nav) are plain links
   with no competing rule and already show the ring from the global default. */
[data-id="hdr-cart"] .elementor-button-wrapper .elementor-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Header icon tap targets (design/Homeshopping.dc.html ~line 49-60: each icon is
   its own 40x40 flex box with a centred 20px glyph, and the icons row uses
   gap: 2px). Left alone, Elementor renders the search and account icons at
   20x20 and the cart toggle at 36x36 - all under the WCAG 2.5.8 Target Size
   (Minimum) of 24px.
   Padding plus an equal negative margin is the wrong way to grow them: it keeps
   the icon's *layout footprint* unchanged while making the *rendered* box
   bigger, so neighbouring icons' clickable areas overlap (search/account by
   12px, account/cart by 4px at 375px - elementFromPoint on the shared band then
   always hits whichever icon comes later in source order). So each clickable
   element is an actual 40x40 flex box (padding 0, glyph centred by
   align-items/justify-content): the rendered box IS the layout footprint, and
   neighbouring boxes can only touch, never overlap. The icons row gets the
   design's 2px gap instead of Elementor's 8px/18px setting.
   None of this needs !important: every selector below (an attribute selector
   plus one or two classes, sometimes an element type) is already more
   specific than the Elementor/Kadence rule it overrides - e.g. Elementor's
   own `.elementor-menu-cart__toggle .elementor-button` is (0,2,0); ours,
   `[data-id="hdr-cart"] a.elementor-menu-cart__toggle_button`, is (0,2,1). */
[data-id="hdr-icons"] { gap: 2px; }

/* Account and cart are outline glyphs (user.svg, bag.svg: fill="none" on the root only). Elementor
   paints the icon colour as `fill` on the <svg>, which the shapes inherit, so both rendered as solid
   blobs (the SITE-FACTS note on e-svg). User 2026-09-29, «όπως στη φωτογραφία» (Luchiana): thin
   outlines. `stroke: currentColor` keeps the widget's own colour and its hover colour. */
[data-id="hdr-account"] svg, [data-id="hdr-account"] svg *,
[data-id="hdr-cart"] svg, [data-id="hdr-cart"] svg * {
  fill: none !important; stroke: currentColor; stroke-width: 1.5;
}
[data-id="hdr-account"] svg, [data-id="hdr-cart"] svg { width: 22px; height: 22px; }
/* Same cause on the home trust strip (truck, package, shield): Elementor's e-svg rewrites the root
   fill="none" to currentColor, so they showed as clay blobs. The clay colour stays (the stroke). */
.hs-trust-icon svg, .hs-trust-icon svg * { fill: none !important; stroke: currentColor; stroke-width: 1.5; }
/* Same cause on the footer social row (OI-15, 2026-10-03): Instagram showed as a solid square. */
[data-id="ftr-social"] svg, [data-id="ftr-social"] svg *,
[data-id="hdr-social"] svg, [data-id="hdr-social"] svg * { fill: none !important; stroke: currentColor; stroke-width: 1.5; }
/* Header social icons (user 2026-10-03, mockup A): right end of the nav row, desktop only. */
[data-id="hdr-social"] { margin-left: auto; width: auto !important; flex: 0 0 auto; }
@media (max-width: 1024px) { [data-id="hdr-social"] { display: none !important; } }

[data-id="hdr-account"] .elementor-icon-wrapper {
  margin: 0;
}
[data-id="hdr-account"] a.elementor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
}
[data-id="hdr-cart"] a.elementor-menu-cart__toggle_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
}

/* EL/EN switcher beside the icons (user 2026-09-30, option B): «ΕΛ | EN», the current language bold with a
   clay underline, the other a link with a 40px-high hit area like the icons. The slot collapses when the
   shortcode prints nothing (visitors, until English is published). */
.hs-lang-slot:not(:has(.hs-lang)) { display: none; }
.hs-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  font-family: Commissioner, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}
.hs-lang [aria-current] { color: #23211C; font-weight: 600; padding-bottom: 2px; border-bottom: 1.5px solid #B27F5C; }
.hs-lang-sep { color: #D8CDB6; }
.hs-lang a { display: inline-flex; align-items: center; height: 40px; color: #6E685B; text-decoration: none; }
.hs-lang a:hover, .hs-lang a:focus-visible { color: #96633F; }
@media (max-width: 767px) { .hs-lang { margin-right: 2px; } }

/* Kadence's global button colours paint every WooCommerce button (add to basket, cart, checkout, side cart):
   clay with paper-2 text was 3.25:1. Same rule as hs-btn-primary (user 2026-09-30, contrast mockup 1A):
   clay-deep (4.77), hover charcoal. `html:root` outranks Kadence's own :root block whatever the order. */
html:root { --global-palette-btn-bg: var(--global-palette2); --global-palette-btn-bg-hover: var(--charcoal); }

/* Side cart (Elementor Pro menu cart): its buttons and remove «×» fell back to Elementor's grey #69727D and
   #D5D8DC (off-palette, audit). The two approved buttons instead: «Ταμείο» = hs-btn-primary (clay-deep, hover
   charcoal), «Καλάθι» = hs-btn-dark (ink, hover ink-2); the remove «×» (ring and both strokes come from one
   variable) stone (muted), clay-deep on hover: oat would be 1.4:1, under the 3:1 a control needs.
   The widget reads these variables; Elementor only sets them when the widget's own colours are filled in. */
.elementor-widget-woocommerce-menu-cart {
  --checkout-button-background-color: var(--clay-deep, #96633F);
  --checkout-button-hover-background-color: var(--charcoal, #4A453B);
  --checkout-button-text-color: var(--paper-2, #FBF8F1);
  --checkout-button-hover-text-color: var(--paper-2, #FBF8F1);
  --view-cart-button-background-color: var(--ink, #23211C);
  --view-cart-button-hover-background-color: var(--ink-2, #3A362E);
  --view-cart-button-text-color: var(--paper, #F6F1E7);
  --view-cart-button-hover-text-color: var(--paper, #F6F1E7);
  --remove-item-button-color: var(--stone, #6E685B);
  --remove-item-button-hover-color: var(--clay-deep, #96633F);
}
.elementor-menu-cart__footer-buttons .elementor-button:active { transform: translateY(1px); }
/* The drawer sits inside the logo row. That row and the nav row are both z-index 100 and the nav row comes
   later, so it covered the first item's remove cross on desktop; the logo row goes above it while the cart
   is open (owner 2026-11-27). */
[data-id="hdr-row"]:has(.elementor-menu-cart--shown) { z-index: 110 !important; }

/* Skip-link target (hs-a11y.php): takes focus, takes no space, shows no ring. */
.hs-skip-target { display: block; height: 0; outline: none; }

@media (prefers-reduced-motion: reduce) {
  .hs-tile-img { transition: none; }
  [data-id="hdr-mega"] .e-n-menu-dropdown-icon svg, .hs-mega-dept > summary::after, .hs-mega-dept-img { transition: none; }
  .hs-mega-dept-media:hover .hs-mega-dept-img { transform: scale(var(--hs-zoom, 1)); }
  [data-id^="room-tile-"]:hover .hs-tile-img,
  [data-id^="style-tile-"]:hover .hs-tile-img { transform: none; }
}

/* Wide 3:2 product frame (home + listing): studio shots zoom to fill, centred on the
   product (hs_card_focus() in hs-catalogue-card.php). Room scenes that are not wide
   stay whole - a zoom would cut a chair's back and legs. */
.hs-grid-feature .hs-card-img img.hs-img-studio { object-fit: cover; object-position: 50% var(--hs-focus-y, 50%); }

/* Newsletter consent box (audit CHK-04, user 2026-10-01): Elementor puts the button after the
   last field, so the box comes first in the HTML; order moves it under the email + button row. */
.elementor-element-newsletter-form .elementor-field-type-acceptance { order: 1; }
/* Charcoal, not the form's stone label colour (4.45:1 on the canvas card); `body` + 4 classes outrank
   Elementor's own `.elementor-3749 … .elementor-field-subgroup label`. */
body .elementor-element.elementor-element-newsletter-form .elementor-field-type-acceptance .elementor-field-subgroup label {
  color: #4A453B; font-size: 0.875rem; line-height: 1.45;
}
.elementor-element-newsletter-form .elementor-field-type-acceptance input[type="checkbox"] { margin: 0 8px 0 0; vertical-align: -1px; }

/* Tables in the legal pages (docs/legal via legal_md.py, 2026-10-01): cookies, IBANs, instalments. The
   wrapper scrolls sideways on a phone so the page itself never does. */
.hs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 4px 0 8px; }
.hs-prose-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; color: #4A453B; }
.hs-prose-table th, .hs-prose-table td { padding: 10px 12px; border-bottom: 1px solid #D8CDB6; text-align: left; vertical-align: top; }
.hs-prose-table th { background: #FBF8F1; color: #23211C; font-weight: 600; }
.hs-prose-table code { font-size: 0.8125rem; background: #F6F1E7; padding: 1px 4px; border-radius: 3px; }
.hs-prose-table a { color: #96633F; }

/* Suggestions under the header search field (user 2026-10-02, mockup option A; search-suggest.js).
   As wide as the field on desktop and tablet; on a phone from under the field to the bottom of the
   screen (top set by the script), with a close button. */
.hs-suggest-host { position: relative; }
/* The logo row and the nav row are both z-index 100 (Elementor) and the nav row comes later, so the
   open list would sit under ΕΠΙΚΟΙΝΩΝΙΑ; while it is open the search row and cell go above it. */
html.hs-suggest-open [data-id="hdr-row"], html.hs-suggest-open [data-id="hdr-search-cell"] { z-index: 110 !important; }
.hs-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1000;
  background: var(--white, #FFFFFF); border: 1px solid var(--oat); border-radius: 4px;
  box-shadow: 0 12px 32px rgba(35, 33, 28, .14); text-align: left; max-height: 75vh; overflow-y: auto;
  font-family: var(--font-body); min-width: 320px;
}
.hs-suggest[hidden] { display: none; }
.hs-suggest .hs-suggest__close { display: none; } /* beats .elementor-search-form button */
.hs-suggest__head {
  font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-2);
  padding: 12px 16px 6px;
}
.hs-suggest__opt { display: flex; align-items: center; gap: 12px; padding: 7px 16px; color: var(--ink); text-decoration: none; }
.hs-suggest__opt:hover, .hs-suggest__opt.is-active { background: var(--paper-2); color: var(--ink); }
.hs-suggest__name { flex: 1; font-size: 0.875rem; line-height: 1.35; }
.hs-suggest__name mark { background: none; color: inherit; font-weight: 600; padding: 0; }
.hs-suggest__cat .hs-suggest__name mark { color: var(--clay-deep); }
.hs-suggest__count { font-size: 0.8125rem; color: var(--stone-2); }
.hs-suggest__img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--canvas); flex: none; }
.hs-suggest__price { font-size: 0.84375rem; color: var(--charcoal); white-space: nowrap; }
.hs-suggest__all {
  border-top: 1px solid var(--canvas-2); padding: 11px 16px; color: var(--clay-deep); font-weight: 600; font-size: 0.875rem;
}
.hs-suggest__all:hover, .hs-suggest__all.is-active { color: var(--clay-deep); }
.hs-suggest__none { padding: 14px 16px; color: var(--stone); font-size: 0.875rem; }
.hs-suggest__status {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 767px) {
  .hs-suggest {
    position: fixed; left: 0; right: 0; bottom: 0; top: 120px; max-height: none; min-width: 0;
    border: 0; border-top: 1px solid var(--canvas-2); border-radius: 0; box-shadow: none;
  }
  .hs-suggest .hs-suggest__close {
    display: block; margin: 0 0 0 auto; padding: 10px 16px; background: none !important; border: 0;
    color: var(--stone) !important; font-size: 0.8125rem; font-family: var(--font-body);
  }
  html.hs-suggest-open, html.hs-suggest-open body { overflow: hidden; }
}

/* ---- Withdrawal form /ypanaxorisi/ (hs-withdrawal.php; Ν. 5317/2026, mockup approved 2026-10-02) ---- */
.hs-wd { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; color: var(--ink); }
.hs-wd-eyebrow { margin: 0 0 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-2); }
.hs-wd-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 12px; }
.hs-wd-lead { margin: 0 0 28px; font-size: 1.0625rem; line-height: 1.6; color: var(--charcoal); }
.hs-wd-form { display: flex; flex-direction: column; gap: 18px; }
.hs-wd-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hs-wd-field > label, .hs-wd-scope legend, .hs-wd-which > label { font-size: 0.875rem; font-weight: 500; }
.hs-wd input[type="text"], .hs-wd input[type="email"], .hs-wd input[type="tel"], .hs-wd textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--oat); border-radius: 4px; background: var(--paper);
  font: inherit; color: var(--ink);
}
.hs-wd input:focus-visible, .hs-wd textarea:focus-visible, .hs-wd-submit:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; box-shadow: var(--focus-ring); }
.hs-wd-hint { font-size: 0.8125rem; color: var(--stone); }
/* My Account → Orders: after the 14 days, where the «Υπαναχώρηση» button was. */
.hs-wd-expired { display: inline-block; font-size: 0.8125rem; color: var(--stone); white-space: nowrap; vertical-align: middle; }
.woocommerce-orders-table .button + .hs-wd-expired { margin-left: 8px; }
.hs-wd-scope { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hs-wd-radio, .hs-wd-check { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; }
.hs-wd-which { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 14px; background: var(--canvas); border-radius: 4px; }
.hs-wd-note { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--charcoal); }
.hs-wd-note a { color: var(--clay-deep); }
.hs-wd-submit {
  padding: 14px 28px; border: 0; border-radius: 4px; background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 500; cursor: pointer;
}
.hs-wd-submit:hover { background: var(--charcoal); }
.hs-wd-error { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--clay-deep); background: var(--canvas); }
.hs-wd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hs-wd-done { padding: 24px; background: var(--canvas); border-radius: 4px; }
.hs-wd-done h2 { font-family: var(--font-display); font-weight: 400; margin: 0 0 12px; }
.hs-wd-receipt th, .hs-wd-receipt td { padding: 6px 0; border-top: 1px solid var(--oat); font-size: 0.9375rem; }
.hs-wd-receipt th { padding-right: 16px; font-weight: 500; white-space: nowrap; }
@media (max-width: 767px) { .hs-wd { padding: 32px 16px 56px; } .hs-wd-receipt th { white-space: normal; } }

/* ---------- Atelier accent (2026-10-06, user «ναι»): one italic word in the big home titles ---------- */
[data-id="hero-a-title"] em, [data-id="hero-c-title"] em, [data-id="editorial-title"] em, [data-id="newsletter-title"] em {
  font-style: italic; color: var(--clay-deep);
}
/* On the hero photo and the olive band clay-deep is too dark: clay-soft keeps the contrast. */
[data-id="hero-a-title"] em, [data-id="editorial-title"] em { color: var(--clay-soft); }

/* ---------- Atelier home (user 2026-10-06, mockup 01) ---------- */
/* Hero price tag (hs-home.php [hs_price_tag]) on the large photo, lower right. */
/* Category band: one line, clipped at the page edge (Elementor does not store white-space). */
[data-id="hero-c-tag"] { position: absolute; right: 24px; bottom: 96px; z-index: 2; margin: 0; }
.hs-hero-tag {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: 0 6px 20px rgba(35, 33, 28, 0.1); color: var(--ink); text-decoration: none;
}
.hs-hero-tag:hover { color: var(--clay-deep); }
.hs-hero-tag:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hs-hero-tag__name { font: 400 0.8125rem/1.3 var(--font-body); color: var(--stone); }
.hs-hero-tag .hs-price__now { font: 400 1.375rem/1.2 var(--font-display); color: inherit; letter-spacing: 0; }
@media (max-width: 767px) {
  [data-id="hero-c-tag"] { right: 12px; bottom: 56px; }
  .hs-hero-tag { padding: 10px 14px; }
  .hs-hero-tag .hs-price__now { font-size: 1.125rem; }
}

/* «Αγορά ανά χώρο» as the mockup's bento: living large (2x2), dining wide, consoles and bathroom small.
   User 2026-10-07: living and dining swapped - the living photo (Jon, 1419x1949) is portrait and showed
   only a quarter of its height in the wide frame; the dining photo (1080x764) suits the wide one.
   The tiles keep their global classes; only the grid and the frames' height change here. */
[data-id="rooms-grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-rows: 300px; gap: 16px !important; }
[data-id="room-tile-saloni"] { grid-column: span 2; grid-row: span 2; }
[data-id="room-tile-trapezaria"] { grid-column: span 2; }
[data-id^="room-tile-"][data-id$="-frame"] { aspect-ratio: auto !important; height: 100%; }
[data-id="room-tile-saloni-label"] { font-size: clamp(1.75rem, 3vw, 2.5rem) !important; padding: 64px 28px 26px !important; }
[data-id="room-tile-trapezaria-label"] { font-size: clamp(1.5rem, 2.4vw, 1.875rem) !important; padding: 48px 22px 20px !important; }
@media (max-width: 1024px) {
  [data-id="rooms-grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: clamp(160px, 36vw, 280px); gap: 12px !important; }
  [data-id="room-tile-saloni"] { grid-row: span 1; }
}

/* ---------- Atelier header (user 2026-10-06, mockup 01), desktop ---------- */
/* Top row (phone + hours | EL/EN + account, full width) · search field | centred logo | cart ·
   the nav, centred, with the social icons at the right end. Tablet and phone keep the burger layout
   above. */
@media (min-width: 1025px) {
  [data-id="hdr-logo"] img { height: 88px; }
  /* User 2026-10-07: the cart ends at the row's own 48px edge like the top row, not the boxed 1184px
     inner, and the search field starts at the left one. 100cqw = the row's content width; 1184px = its
     boxed width in header.py (a margin does not move these grid cells). */
  [data-id="hdr-row"] { container-type: inline-size; }
  [data-id="hdr-icons"] { position: relative; left: max(0px, calc((100cqw - 1184px) / 2)); }
  [data-id="hdr-search-cell"] { position: relative; right: max(0px, calc((100cqw - 1184px) / 2)); }
  /* The search field on desktop (user 2026-10-07, «να μη κάνει popup», screenshot): a paper box with
     the magnifier on its left, no line; the suggestions open under it (search-suggest.js). */
  [data-id="hdr-search-form"] { width: 100%; max-width: 300px !important; } /* beats Elementor's widget width */
  [data-id="hdr-search-form"] div.elementor-search-form__container {
    background: var(--paper-2) !important; border-bottom: 0 !important; border-radius: 4px !important; min-height: 42px;
  }
  [data-id="hdr-search-form"] div.elementor-search-form__container:focus-within { box-shadow: inset 0 0 0 1px var(--stone-2) !important; }
  [data-id="hdr-search-form"] button.elementor-search-form__submit {
    order: -1; justify-content: center; color: var(--stone) !important;
  }
  [data-id="hdr-search-form"] input.elementor-search-form__input { padding-right: 14px !important; }
  [data-id="hdr-navrow"] > .e-con-inner { position: relative; justify-content: center; }
  [data-id="hdr-nav"] { flex: 1 1 auto; justify-content: center !important; }
  [data-id="hdr-social"] { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  /* User 2026-10-07: the social icons end under the cart, at the row's right edge (mega panel unchanged). */
  [data-id="hdr-navrow"] { container-type: inline-size; }
  [data-id="hdr-navrow"] [data-id="hdr-social"] { right: min(0px, calc((1184px - 100cqw) / 2)); }
}

/* Atelier base (2026-10-06): Kadence paints the product page's .site in paper-2; the page base is white. */
body .site, body.content-style-unboxed .site { background-color: var(--surface-raised); }
