/*
Theme Name: Farmácia
Theme URI: https://dotdesign.pt/
Description: Loja WooCommerce feita à medida para farmácias — grelha de produtos, carrinho, checkout e área de cliente renderizados no servidor e ligados à Store API, com widgets Elementor e mapeamento de modelos através do plugin Farmácia Core. Design by Dot. — Agência de Comunicação.
Author: Dot. — Agência de Comunicação
Author URI: https://dotdesign.pt/
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Tags: e-commerce, woocommerce, elementor
Text Domain: farmacia
*/

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #424646;
  --muted: #7d8080;
  --line: #e9edeb;
  --bg: #ffffff;
  --accent: #8ca236;
  --accent2: #b4c27c;
  --accent-soft: #f7fcee;
  --showcase-sidebar: #424f29;
  --category-action: #8ca236;
  --ok: #1e7e34;
  --ok-soft: #e6f6ea;
  --warn: #c62828;
  --warn-soft: #fff3e6;
  --radius: 18px;
  --store-width: 1240px; /* site column: header, footer, page content (Elementor: Site Settings → Layout → Content width) */
  --store-gap: 32px;     /* space between header, page sections and footer (Elementor: Widgets space) */
  --shadow: 0 10px 40px -18px rgba(20, 20, 40, .28);
  --font-display: 'Quicksand', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { overflow-x: clip; } /* full-width widgets break out of the column with 100vw */

/* Mapped Elementor header/footer containers must retain their column layout
   while the editor replaces atomic preview styles after an update. */
.farmacia-mapped-location { display: contents; }
.farmacia-mapped-location > .elementor > .e-con { display: flex; flex-direction: column; width: 100%; padding: 0; }
.farmacia-mapped-location > .elementor > .e-con > .elementor-element { width: 100%; min-width: 0; }

/* WordPress accessibility helper: text for screen readers only (labels, skip links). */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; word-wrap: normal !important; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; display: block; width: auto; height: auto; padding: 15px 23px 14px; clip: auto !important; clip-path: none; color: var(--ink); background: var(--bg); font-size: 14px; font-weight: 700; text-decoration: none; }

body {
  --font-display: var(--e-global-typography-primary-font-family, 'Quicksand'), Arial, sans-serif;
  --ink: var(--e-global-color-text, #424646);
  --muted: color-mix(in srgb, var(--ink) 68%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --accent: var(--e-global-color-accent, #8ca236);
  --accent2: var(--e-global-color-f785332, #b4c27c);
  --accent-soft: var(--e-global-color-4af883f, #f7fcee);
  --showcase-sidebar: var(--e-global-color-primary, #424f29);
  --category-action: var(--e-global-color-accent, #8ca236);
  margin: 0;
  font-family: var(--e-global-typography-text-font-family, 'Quicksand'), Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

button, input, select, textarea { font-family: inherit; }

a { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.site-header { border-bottom: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }

.store-stars{position:relative;display:inline-block;color:var(--line);font-size:17px;line-height:1;letter-spacing:1px;white-space:nowrap}
.store-stars::after{position:absolute;top:0;left:0;width:var(--stars-fill,0%);overflow:hidden;color:var(--accent);content:'★★★★★';white-space:nowrap}

:is(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Cross-document view transitions: keep the page surface steady while product
   images can still morph between the shop grid and product page. */
@view-transition { navigation: auto; }
/* The header lives in its own group so it holds still while page content
   below it fades out and the new content rises into place. */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: 0s; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* easeOutQuint: quick departure, long soft landing — no snap at arrival. */
/* easeInOutCubic: gentle take-off AND landing — long flights from cards far
   down the page accelerate smoothly instead of jumping most of the distance
   in the first frames. */
::view-transition-group(product-image) {
  animation-duration: .65s;
  animation-timing-function: cubic-bezier(.65, 0, .35, 1);
}
/* One solid image in flight: the incoming hero rides the whole move at full
   opacity while the outgoing thumb is dropped, so the image visibly travels
   instead of dissolving between two snapshots. */
::view-transition-old(product-image), ::view-transition-new(product-image) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
  animation: none;
}
::view-transition-old(product-image) { opacity: 0; }
::view-transition-new(product-image) { opacity: 1; }
::view-transition-image-pair(product-image) { isolation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.site-main {
  width: min(var(--store-width), calc(100% - 40px));
  margin: 0 auto;
  padding: var(--store-gap) 0;
}

.farmacia-service-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 4vw, 48px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
