/*!
 * design.css — rebuilt for the `freshen` theme on farmaciafedericodie.es.
 *
 * The commercial theme's own design sheet survives nowhere. Rebuilt from the markup the pages
 * actually ship, class by class, so every theme class that appears on a page is described here and
 * nothing is invented that the pages do not use. The counts in brackets are how many pages carry
 * the class.
 *
 * ⚠️ The page loader is deliberately written to fail OPEN. `<body>` ships with `apus-body-loading`
 * and the markup contains `<div class="apus-page-loading">`; on the live site the theme's JS removed
 * them once the page was ready. If this stylesheet made that overlay opaque and the JS ever failed,
 * the whole site would sit behind a white screen. So the overlay fades itself out with a CSS
 * animation regardless of JS, and `functions.js` removes it as well.
 *
 * Colours are the site's own: #005d59 is the live theme's primary (28 declarations on the homepage)
 * and #009b95 its lighter companion; the Elementor kit supplies `--e-global-color-primary`, which is
 * preferred wherever it is available so that a palette change in the builder still flows through.
 */

:root {
    --apus-primary: var(--e-global-color-primary, #005d59);
    --apus-primary-light: var(--e-global-color-secondary, #009b95);
    --apus-text: #212121;
    --apus-muted: #4e4b66;
    --apus-border: #ebebeb;
    --apus-bg-soft: #f4f4f4;
}

/* ── page loader (apus-page-loading 237 / apus-body-loading 240) ─────────────────────────── */
.apus-page-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    animation: apus-loader-out 0.6s ease 0.8s forwards;
}
.apus-loader-inner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--apus-border);
    border-top-color: var(--apus-primary);
    border-radius: 50%;
    animation: apus-spin 0.9s linear infinite;
}
@keyframes apus-spin { to { transform: rotate(360deg); } }
@keyframes apus-loader-out { to { opacity: 0; visibility: hidden; } }
body:not(.apus-body-loading) .apus-page-loading { display: none; }
@media (prefers-reduced-motion: reduce) {
    .apus-page-loading { animation-delay: 0s; animation-duration: 0.01s; }
    .apus-loader-inner { animation: none; }
}

/* ── header / footer shells (apus-header 237, apus-footer 237) ───────────────────────────── */
.apus-header { position: relative; z-index: 500; background: #fff; }
.apus-header a { text-decoration: none; }
.apus-footer { background: var(--apus-primary); color: #fff; }
.apus-footer a { color: #fff; }
.apus-footer a:hover { color: var(--apus-primary-light); }
.apus-footer-inner { padding: 36px 0; }
.footer-builder-wrapper { width: 100%; }
body.body-nofooter-mobile .apus-footer { display: block; }
@media (max-width: 767px) {
    body.body-nofooter-mobile .apus-footer-inner { padding: 24px 0; }
}

/* ── mini cart in the header (apus-topcart 480, header-button-woo 480) ───────────────────── */
.apus-topcart { position: relative; display: inline-block; }
.apus-topcart .cart > a,
.header-button-woo > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: inherit;
    line-height: 1;
}
.apus-topcart .count,
.header-button-woo .count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--apus-primary-light);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ── off-canvas drawer (offcanvas 242, offcanvas-content 242) ────────────────────────────── */
.offcanvas-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 88vw;
    height: 100%;
    z-index: 9000;
    padding: 22px;
    background: #fff;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
body.offcanvas-open .offcanvas-content { transform: translateX(0); }
body.offcanvas-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 8999;
    background: rgba(0, 0, 0, 0.35);
}
.title-cart-canvas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--apus-border);
    font-weight: 700;
}
.title-cart-canvas .close-cart { cursor: pointer; margin-left: auto; }

/* ── search (apus-search 239, apus-search-form 238) ──────────────────────────────────────── */
.apus-search { position: relative; }
.apus-search-form-inner { display: flex; align-items: center; }
.apus-autocompleate-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--apus-border);
    border-radius: 3px 0 0 3px;
    background: #fff;
    font: inherit;
}
.apus-search-form button[type="submit"] {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: var(--apus-primary);
    color: #fff;
    cursor: pointer;
}
.apus-autocompleate-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 600;
    background: #fff;
    border: 1px solid var(--apus-border);
    border-top: 0;
    max-height: 320px;
    overflow-y: auto;
}
.apus-autocompleate-results:empty { display: none; }

/* ── breadcrumb (apus-breadscrumb 138) ───────────────────────────────────────────────────── */
.apus-breadscrumb { padding: 14px 0; font-size: 14px; color: var(--apus-muted); }
.apus-breadscrumb a { color: var(--apus-muted); }
.apus-breadscrumb a:hover { color: var(--apus-primary); }

/* ── product cards (product-block 545, product-image 545, product-cat 545) ───────────────── */
.product-block {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--apus-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-block:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.product-block .product-image { display: block; position: relative; background: #fff; }
.product-block .product-image img { display: block; width: 100%; height: auto; }
.product-block .product-cat { padding: 12px 14px 0; font-size: 12px; color: var(--apus-muted); }
.product-block .product-cat a { color: inherit; }
.product-block .product-excerpt {
    padding: 0 14px 14px;
    font-size: 14px;
    color: var(--apus-muted);
}
.woocommerce-Price-amount { font-weight: 700; color: var(--apus-primary); }
.woocommerce-Price-currencySymbol { font-weight: 400; }

/* ── icon feature list (widget-list-icon 478) ────────────────────────────────────────────── */
.widget-list-icon .list-icon { display: flex; align-items: center; gap: 14px; }
.widget-list-icon .features-box-image.icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--apus-primary);
    color: #fff;
    font-size: 20px;
}
.widget-list-icon .box-content .title { margin: 0; font-size: 17px; line-height: 1.3; }
.widget-list-icon .box-content a { color: inherit; text-decoration: none; }

/* ── product gallery (apus-woocommerce-product-gallery 272) ──────────────────────────────── */
.apus-woocommerce-product-gallery-wrapper { position: relative; }
.apus-woocommerce-product-gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
}
.apus-woocommerce-product-gallery:not(.slick-initialized) .woocommerce-product-gallery__image + .woocommerce-product-gallery__image {
    display: none;                       /* before slick boots, show only the first slide */
}
.apus-woocommerce-product-gallery .slick-dots { margin: 12px 0 0; padding: 0; list-style: none; text-align: center; }
.apus-woocommerce-product-gallery .slick-dots li { display: inline-block; margin: 0 4px; }
.apus-woocommerce-product-gallery .slick-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
    background: var(--apus-border); text-indent: -999em; cursor: pointer;
}
.apus-woocommerce-product-gallery .slick-dots .slick-active button { background: var(--apus-primary); }

/* ── quantity box (quantity 140, qty 136) ────────────────────────────────────────────────── */
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--apus-border); border-radius: 3px; overflow: hidden; }
.quantity .qty {
    width: 56px;
    border: 0;
    text-align: center;
    font: inherit;
    -moz-appearance: textfield;
}
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity .minus,
.quantity .plus {
    width: 34px;
    border: 0;
    background: var(--apus-bg-soft);
    color: var(--apus-text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.quantity .minus:hover,
.quantity .plus:hover { background: var(--apus-border); }

/* ── shop chrome ─────────────────────────────────────────────────────────────────────────── */
.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--apus-muted); }
.woocommerce-notices-wrapper:empty { display: none; }
.apus-filter { margin-bottom: 18px; }
.apus-filter a.active { color: var(--apus-primary); }
.woocommerce-product-details__short-description { color: var(--apus-muted); }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
