/*
 * LAVORA WALLS - the store's own look on top of the Concept theme (phase F, 2026-10-20).
 * Loaded after theme.css (edits/35-lavora-look.json). Uses the theme's own variables and classes only.
 */

/*! Corners: squircle (a smooth, continuous curve) instead of the theme's plain round. 2026-10-23 (owner): the
    angled cut did not suit the store; the theme's rounded look was liked, so the store keeps rounded corners
    with its own softer curve. Cards and blocks keep a slightly bigger radius than the theme's, buttons a
    smaller one than their pill radius.
    Chrome/Edge draw it with corner-shape: squircle; other browsers show the same radius as a plain round. */
:root {
  --rounded-button: 0.625rem;
  --rounded-input: 0.875rem;
  --rounded-card: clamp(var(--sp-4), 1.25vw, var(--sp-6));
  --rounded-block: clamp(var(--sp-4), 1.25vw, var(--sp-6));
  --border-radius-small: var(--rounded-card);
}

/* Blocks the theme rounds with a small fixed radius (8-12 px) take the card radius so the page reads as one
   family; small pictures and fields take the button radius. */
[data-rounded-block=round] .product__text,
[data-rounded-block=round] .product__accordion.with-background,
[data-rounded-block=round] .product__highlights.with-heading,
[data-rounded-block=round] .product-bundle__info,
[data-rounded-block=round] .product-countdown,
[data-rounded-block=round] .back-in-stock,
[data-rounded-block=round] .specifications.with-background .accordion,
[data-rounded-block=round] .product-sticky-form__card,
[data-rounded-block=round] .faqs.with-background .title-wrapper .rte,
[data-rounded-block=round] .help-list__item,
[data-rounded-block=round] .scrolled-images__item,
[data-rounded-block=round] .pickup-availability,
[data-rounded-block=round] .pickup-availability-list__item,
[data-rounded-block=round] .volume-pricing,
[data-rounded-block=round] .giftcard__code,
[data-rounded-block=round] .giftcard__amount,
[data-rounded-block=round] .comparison-table__row .comparison-table__column,
[data-rounded-block=round] .drawer__empty-collections a,
[data-rounded-block=round] .search__box {
  border-radius: var(--rounded-card);
}

[data-rounded-block=round] .product__text-inner {
  border-radius: var(--rounded-button);
}

[data-rounded-block=round] .product__text:has(+ .product__text) {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

[data-rounded-block=round] .product__text + .product__text {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

[data-rounded-block=round] .cart-item__media,
[data-rounded-block=round] .variant-item__media,
[data-rounded-block=round] .horizontal-product__media,
[data-rounded-block=round] .horizontal-products:empty::before,
[data-rounded-block=round] .mega-menu__nav .media,
[data-rounded-block=round] .product__thumbnail,
[data-rounded-block=round] .product__thumbnail::after,
[data-rounded-block=round] .product-sticky-form .media,
[data-rounded-block=round] .shop-the-feed .horizontal-product__media .media,
[data-rounded-block=round] .cart-quantity .quantity__input,
[data-rounded-block=round] .product-card__content.text-center .product-card__variants .variant-picker {
  border-radius: var(--rounded-button);
}

@supports (corner-shape: squircle) {
  *,
  *::before,
  *::after {
    corner-shape: squircle;
  }

  /* true circles stay circles (icon buttons, avatars, dots, the hover fill, the cursor), and so do the
     small pictures inside the big scrolling text on the home page (owner, 2026-10-20) */
  :is(.rounded-full, .media--rounded, .btn-fill, .flickity-page-dot, .switch, .button--close,
    .slideshow-control, .play-button, .profile__button, .sort-close, .facet-count, .btn-loader span,
    .highlight-text .media, .highlight-text .media *),
  :is(.rounded-full, .media--rounded, .flickity-page-dot, .switch, .button--close, .slideshow-control,
    .play-button, .profile__button, .sort-close)::before,
  :is(.rounded-full, .media--rounded, .flickity-page-dot, .switch, .button--close, .slideshow-control,
    .play-button, .profile__button, .sort-close)::after {
    corner-shape: round;
  }

  :is(.newsletter-bar, .tooltip, .alert).rounded-full {
    corner-shape: squircle;
  }
}

/* long pills (the social bar, tooltips, notices, the price fields, the photo counter and the dot strips) take
   the button radius so they match the buttons */
:is(.newsletter-bar, .tooltip).rounded-full,
.alert.alert,
.input-wrapper .input,
.pswp__counter,
.product-card__carousel .flickity-page-dots,
.quick-view .product__thumbnails-list,
[data-rounded-block=round] .horizontal-product__skeleton {
  border-radius: var(--rounded-button);
}

/*! Social bar: the fixed bar on the left (shown from 768 px) sat over the first letters of the page
    (PRODUCTS, LOVE WHERE YOU LIVE, the Why title). The page side space grows to clear it, on both sides
    so the layout stays centred, and the bar sits a little closer to the edge on tablets. 2026-10-21 (owner): the text
    still sat close to the bar - every text on that line now keeps a clear gap (about 32 px on tablets, 50 px from 1280 px). */
@media screen and (min-width: 768px) {
  :root,
  .page-width--narrow,
  .page-width--full,
  .main-content :is(.shopify-challenge__container, .shopify-policy__container) {
    --page-padding: var(--sp-24);
  }

  aside.newsletter-bar {
    margin-inline: var(--sp-3);
  }
}

@media screen and (min-width: 1280px) {
  :root,
  .page-width--narrow,
  .page-width--full,
  .main-content :is(.shopify-challenge__container, .shopify-policy__container) {
    --page-padding: var(--sp-32);
  }

  aside.newsletter-bar {
    margin-inline: var(--sp-6);
  }
}

@media screen and (min-width: 1536px) {
  :root,
  .page-width--full {
    --page-padding: max(var(--sp-32), 50vw - var(--page-width) / 2);
  }
}

/*! Header: the logo and the menu words a little bigger (owner, 2026-10-20) */
.header {
  --font-navigation-size: clamp(1rem, 0.85rem + 0.35vw, 1.25rem);
}

/* the menu words always sit on one line beside the centred logo (2026-10-22: on 1024-1365 px they broke onto
   2-3 lines and the header grew to 150-190 px). Below 1280 px the three words do not fit next to the logo, so
   the theme's own menu button opens the menu drawer there, as on tablets; 1280-1439 px use a tighter pill. */
.header__menu > ul {
  flex-wrap: nowrap;
}

.header__menu .menu__item {
  white-space: nowrap;
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .header.header--center-left {
    --header-grid-template: "tools logo icons" / minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .header.header--center-left .header__navigation {
    display: none;
  }

  .header.header--center-left .header__icons--start {
    display: flex;
  }

  .header.header--center-left .header__icons--start .search-drawer-button {
    display: none;
  }

  .header.header--center-left .header__icons--start .menu-drawer-button {
    display: flex;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .header .header__menu > ul.with-block .menu__item,
  .header .header__menu > ul.with-block .menu__item .btn-duplicate {
    padding-inline: var(--sp-3);
  }
}

/*! Home "Why LAVORA WALLS": the first word moves out from under the social bar into the empty
    space left of the cards, so each word sits between two cards; WHY stays on its line inside the section
    (owner 2026-10-23: raised, it sat on the edge of the white section above) */
@media screen and (min-width: 768px) {
  .testimonials-title split-words > .split-words:first-child {
    padding-inline-start: var(--sp-12);
  }

  /* the left cards always end 40 px right of the centre, while the title grows with the screen: it is
     kept small enough that "LAVORA WALLS" (about 6.5 times the type size wide) starts after those cards
     with a gap, on every width (owner, 2026-10-21: the "LA" went under a card) */
  .testimonials-title {
    container-type: inline-size;
  }

  .testimonials-title split-words {
    font-size: min(var(--title-xl), calc((50cqi - var(--sp-16)) / 6.6));
  }
}

@media screen and (min-width: 1280px) {
  .testimonials-title split-words > .split-words:first-child {
    flex: 0 0 calc((100% - (clamp(340px, 30vw, 480px) * 2 - var(--sp-20))) / 2);
    min-width: max-content;
    white-space: nowrap;
    text-align: center;
  }
}

/*! Small labels (ABOUT US, the search headings, subtitles) spaced wide like the logo (owner, 2026-10-20) */
.uppercase.tracking-widest {
  letter-spacing: 0.35em;
}

/*! WhatsApp chat button (snippets/whatsapp-chat.liquid): bottom right, above the phone dock and its
    safe area; a round icon on phones, icon + "Chat with us" from 768 px */
.lavora-whatsapp {
  position: fixed;
  z-index: 29;
  inset-inline-end: var(--sp-4);
  inset-block-end: calc(var(--mobile-dock-height, 0px) + var(--sp-4) + env(safe-area-inset-bottom, 0px));
  width: var(--sp-13);
  height: var(--sp-13);
  padding: 0;
  justify-content: center;
  border-radius: var(--rounded-full);
  box-shadow: 0 var(--sp-1) var(--sp-4) rgb(0 0 0 / 0.18);
}

.lavora-whatsapp .icon {
  width: var(--sp-6);
  height: var(--sp-6);
}

.lavora-whatsapp__label {
  display: none;
}

@media screen and (min-width: 768px) {
  .lavora-whatsapp {
    inset-inline-end: var(--sp-6);
    inset-block-end: var(--sp-6);
    width: auto;
    padding-inline: var(--sp-5);
    gap: var(--sp-2);
    border-radius: var(--rounded-button);
  }

  .lavora-whatsapp__label {
    display: inline;
  }
}

/* on a design's page the buy area has its own WhatsApp line, and the button would sit on the Add to cart
   button: from 768 px it shows only while the theme's sticky "Add to cart" card shows (its script writes
   visibility: visible), above that card */
.lavora-whatsapp {
  transition: inset-block-end 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

/* the home page opens on the big slideshow with the header at its foot (phone menu, slide arrows bottom
   right): the button comes in once the header has scrolled up past it */
.template-index:has(.header-section:not(.header-scrolled)) .lavora-whatsapp {
  opacity: 0;
  visibility: hidden;
}

@media screen and (min-width: 768px) {
  body:has(.product-sticky-form__card) .lavora-whatsapp {
    opacity: 0;
    visibility: hidden;
  }

  body:has(.product-sticky-form__card[style*="visibility: visible"]) .lavora-whatsapp {
    opacity: 1;
    visibility: visible;
  }
}

body:has(.product-sticky-form__card[style*="visibility: visible"]) .lavora-whatsapp {
  inset-block-end: calc(var(--mobile-dock-height, 0px) + var(--sp-6) + var(--sp-32) + env(safe-area-inset-bottom, 0px));
}

@supports (corner-shape: squircle) {
  @media screen and (max-width: 767px) {
    .lavora-whatsapp {
      corner-shape: round;
    }
  }
}

/*! Motions: the theme's signature moves kept, made calmer and squared to the cut-gypsum shape.
    Button hover: the fill rises as a flat band with a slanted edge instead of the theme's oval. */
.button .btn-fill {
  border-radius: 0;
  width: 100%;
  inset-inline-start: 0;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

/* The close cursor over open drawers: a smaller plaster square with soft corners and a thin cross, not a white circle. */
.mouse-cursor {
  background-color: rgb(var(--color-placeholder));
  border-radius: 30%;
}

.no-touch .mouse-cursor.active,
.no-touch .mouse-cursor.active.pressed {
  width: clamp(var(--sp-12), 3.2vw, var(--sp-16));
  height: clamp(var(--sp-12), 3.2vw, var(--sp-16));
}

.no-touch .mouse-cursor.active .icon,
.no-touch .mouse-cursor.active.pressed .icon {
  width: clamp(var(--sp-4), 1.2vw, var(--sp-6));
  height: clamp(var(--sp-4), 1.2vw, var(--sp-6));
}

.mouse-cursor .icon path {
  stroke-width: 1.5;
}

/* Page change: a light plaster screen with an ink spinner instead of the dark full-screen curtain. */
.loading-bar {
  background-color: rgb(var(--color-placeholder));
}

.loading-bar .icon {
  color: rgb(var(--color-foreground) / .6);
}

/*! Home "Why LAVORA WALLS": the cards keep their drift on scroll, with room for it. The theme's 40 px gap let a
    drifting card slide over the one above and hide its words (2026-10-22); the gap now covers the drift, and the
    list starts below the title. The card text is in normal case for easy reading; the title stays in capitals. */
.reveal-testimonials blockquote p {
  text-transform: none;
  letter-spacing: normal;
}

@media screen and (min-width: 768px) {
  .reveal-testimonials.grid {
    row-gap: var(--sp-32);
    margin-block-start: var(--sp-10);
  }
}

/*! Home: the social bar waits until the header has scrolled up past the slideshow, like the WhatsApp button,
    so the first screen shows only the slide. */
aside.newsletter-bar {
  transition: opacity 0.4s ease, visibility 0.4s;
}

.template-index:has(.header-section:not(.header-scrolled)) aside.newsletter-bar {
  opacity: 0;
  visibility: hidden;
}

/*! Home: the line over the wide picture sat in the middle of a full screen of white, so a white band of about half a
    screen came before and after it. Its pinned area is now shorter; the words still come in letter by letter. */
.template-index .reveal-banner__scroller .banner.h-screen {
  height: 70svh;
}
