/*
Theme Name: Flavor Farmacia
Theme URI:
Author: Rafael
Author URI:
Description: Tema WordPress moderno para farmacia com integracao PDV Trier Drogarias e Bling ERP. E-commerce completo com WooCommerce.
Version: 2.2.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-farmacia
Tags: woocommerce, e-commerce, pharmacy

Flavor Farmacia - Sua farmácia digital de confiança.
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --ff-green-900: #1a4731;
    --ff-green-800: #1e5a3a;
    --ff-green-700: #236b45;
    --ff-green-600: #2B7A4B;
    --ff-green-500: #34a065;
    --ff-green-400: #4cbb7f;
    --ff-green-300: #7dd3a8;
    --ff-green-200: #b2e8cd;
    --ff-green-100: #dcf5e7;
    --ff-green-50: #f0faf4;

    --ff-blue-600: #1565c0;
    --ff-blue-500: #1A73E8;
    --ff-blue-100: #e3f2fd;

    --ff-gray-900: #1a1a2e;
    --ff-gray-800: #2d2d44;
    --ff-gray-700: #4a4a5a;
    --ff-gray-600: #6b6b7b;
    --ff-gray-500: #8e8e9a;
    --ff-gray-400: #b0b0ba;
    --ff-gray-300: #d1d1d8;
    --ff-gray-200: #e8e8ec;
    --ff-gray-100: #f4f4f6;
    --ff-gray-50: #fafafa;

    --ff-red-500: #ef4444;
    --ff-red-100: #fee2e2;
    --ff-orange-500: #f59e0b;
    --ff-orange-100: #fef3c7;

    --ff-white: #ffffff;
    --ff-black: #0a0a0a;

    --ff-font-display: 'Playfair Display', Georgia, serif;
    --ff-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --ff-container: 1280px;
    --ff-gap: 24px;
    --ff-radius: 12px;
    --ff-radius-sm: 8px;
    --ff-radius-xs: 4px;
    --ff-radius-full: 9999px;

    --ff-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ff-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --ff-shadow-md: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
    --ff-shadow-lg: 0 20px 50px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
    --ff-shadow-green: 0 4px 14px rgba(43,122,75,0.25);

    --ff-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ff-duration: 0.3s;

    --ff-topbar-h: 40px;
    --ff-header-h: 80px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
    font-family: var(--ff-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ff-gray-800);
    background: var(--ff-gray-50);
}

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

a { color: var(--ff-green-600); text-decoration: none; transition: color var(--ff-duration) var(--ff-ease); }
a:hover { color: var(--ff-green-800); }

h1, h2, h3, h4, h5, h6 { font-family: var(--ff-font-body); font-weight: 700; line-height: 1.2; color: var(--ff-gray-900); }

ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.ff-container { max-width: var(--ff-container); margin: 0 auto; padding: 0 var(--ff-gap); }
.ff-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ff-animate { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ff-ease), transform 0.6s var(--ff-ease); }
.ff-animate-ready .ff-animate { opacity: 0; transform: translateY(30px); }
.ff-animate-ready .ff-animate.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   TOP BAR
   ============================================ */
.ff-topbar { background: var(--ff-green-900); color: var(--ff-green-200); font-size: 13px; height: var(--ff-topbar-h); display: flex; align-items: center; position: relative; z-index: 100; }
.ff-topbar__inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: var(--ff-container); margin: 0 auto; padding: 0 var(--ff-gap); }
.ff-topbar__left { display: flex; align-items: center; gap: 20px; }
.ff-topbar__right { display: flex; align-items: center; gap: 16px; }
.ff-topbar a { color: var(--ff-green-200); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: color var(--ff-duration); }
.ff-topbar a:hover { color: var(--ff-white); }
.ff-topbar__badge { background: var(--ff-green-500); color: var(--ff-white); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--ff-radius-full); text-transform: uppercase; letter-spacing: 0.5px; animation: pulse 2s ease-in-out infinite; }

/* ============================================
   HEADER
   ============================================ */
.ff-header { background: var(--ff-white); height: var(--ff-header-h); position: sticky; top: 0; z-index: 99; box-shadow: var(--ff-shadow-sm); transition: box-shadow var(--ff-duration); }
.ff-header.is-scrolled { box-shadow: var(--ff-shadow-md); }
.ff-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--ff-container); margin: 0 auto; padding: 0 var(--ff-gap); gap: 32px; }

.ff-logo { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.ff-logo__icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--ff-green-600), var(--ff-green-400)); border-radius: var(--ff-radius); display: flex; align-items: center; justify-content: center; color: var(--ff-white); font-size: 22px; box-shadow: var(--ff-shadow-green); }
.ff-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.ff-logo__name { font-family: var(--ff-font-display); font-size: 22px; font-weight: 700; color: var(--ff-green-800); letter-spacing: -0.5px; }
.ff-logo__tagline { font-size: 11px; color: var(--ff-gray-500); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }
.ff-logo img,
.ff-logo .custom-logo,
.ff-logo--custom .custom-logo-link,
.ff-logo--custom .custom-logo-link img { max-height: 64px; width: auto; height: auto; display: block; }
.ff-logo--custom { display: flex; align-items: center; flex-shrink: 0; }
.ff-logo--custom .custom-logo-link { display: block; line-height: 0; }

.ff-search { flex: 1 1 680px; max-width: 760px; min-width: 320px; position: relative; }
.ff-search__form { display: flex; align-items: center; background: var(--ff-gray-100); border: 2px solid transparent; border-radius: var(--ff-radius-full); transition: all var(--ff-duration) var(--ff-ease); overflow: hidden; }
.ff-search__form:focus-within { background: var(--ff-white); border-color: var(--ff-green-400); box-shadow: 0 0 0 4px rgba(43,122,75,0.1); }
.ff-search__input { flex: 1; border: none; background: transparent; padding: 14px 22px; font-size: 15px; color: var(--ff-gray-800); outline: none; }
.ff-search__input::placeholder { color: var(--ff-gray-400); }
.ff-search__btn { background: var(--ff-green-600); border: none; color: var(--ff-white); padding: 10px 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 4px; border-radius: var(--ff-radius-full); transition: background var(--ff-duration); }
.ff-search__btn:hover { background: var(--ff-green-700); }
.ff-search__btn svg { width: 18px; height: 18px; }

.ff-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ff-header__action { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--ff-radius); color: var(--ff-gray-700); transition: all var(--ff-duration); background: transparent; border: none; cursor: pointer; }
.ff-header__action:hover { background: var(--ff-green-50); color: var(--ff-green-700); }
.ff-header__action svg { width: 22px; height: 22px; }
.ff-header__action-count { position: absolute; top: 4px; right: 4px; background: var(--ff-green-600); color: var(--ff-white); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* Ação com rótulo ao lado do ícone (estilo Drogasil) */
.ff-header__action--labeled { width: auto; padding: 6px 12px; gap: 10px; justify-content: flex-start; text-decoration: none; }
.ff-header__action--labeled svg { flex-shrink: 0; }
.ff-header__action-label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; white-space: nowrap; }
.ff-header__action-greeting { font-size: 12px; color: var(--ff-gray-600); font-weight: 500; white-space: nowrap; }
.ff-header__action-cta { font-size: 14px; color: var(--ff-gray-800); font-weight: 700; white-space: nowrap; }
.ff-header__action--labeled:hover .ff-header__action-cta { color: var(--ff-green-700); }
.ff-header__action--labeled .ff-header__action-count { top: 2px; right: auto; left: 22px; }
.ff-header__action--pwa { background: var(--ff-green-50); color: var(--ff-green-700); border: 1px solid var(--ff-green-100); }
.ff-header__action--pwa:hover { background: var(--ff-green-100); color: var(--ff-green-800); }
.ff-header__action--pwa svg { color: var(--ff-green-700); }
.ff-header__action--pwa .ff-header__action-greeting { color: var(--ff-green-700); }
.ff-header__action--pwa .ff-header__action-cta { color: var(--ff-green-800); }
.ff-header__action--pwa[hidden] { display: none !important; }
/* Oculta o flutuante quando existe o botao no header */
body:has(#ff-pwa-header-btn.is-visible) .ff-pwa-install-btn { display: none !important; }
@media (max-width: 900px) { .ff-header__action-label { display: none; } .ff-header__action--labeled { width: 44px; padding: 0; gap: 0; justify-content: center; } .ff-header__action--labeled .ff-header__action-count { top: 4px; right: 4px; left: auto; } }

.ff-menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--ff-gray-700); }
.ff-menu-toggle svg { width: 26px; height: 26px; }

/* ============================================
   NAVIGATION
   ============================================ */
.ff-nav { background: var(--ff-white); border-top: 1px solid var(--ff-gray-200); position: relative; z-index: 98; }
.ff-nav__inner { max-width: var(--ff-container); margin: 0 auto; padding: 0 var(--ff-gap); }
.ff-nav .menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.ff-nav .menu > li > a { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ff-gray-700); transition: all var(--ff-duration); position: relative; white-space: nowrap; }
.ff-nav .menu > li > a::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px; background: var(--ff-green-600); border-radius: 2px; transform: scaleX(0); transition: transform var(--ff-duration) var(--ff-ease); }
.ff-nav .menu > li > a:hover, .ff-nav .menu > li.current-menu-item > a { color: var(--ff-green-700); }
.ff-nav .menu > li > a:hover::after, .ff-nav .menu > li.current-menu-item > a::after { transform: scaleX(1); }

.ff-nav .menu li { position: relative; }
.ff-nav .menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--ff-white); border-radius: 0 0 var(--ff-radius) var(--ff-radius); box-shadow: var(--ff-shadow-lg); padding: 8px 0; z-index: 100; animation: slideDown 0.2s var(--ff-ease); }
.ff-nav .menu li:hover > .sub-menu { display: block; }
.ff-nav .menu .sub-menu li a { display: block; padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--ff-gray-700); transition: all var(--ff-duration); }
.ff-nav .menu .sub-menu li a:hover { background: var(--ff-green-50); color: var(--ff-green-700); padding-left: 24px; }

/* Categories / Groups Nav (Trier) - Hamburger-style dropdown */
.ff-cat-nav { background: var(--ff-white); border-top: 1px solid var(--ff-gray-200); border-bottom: 1px solid var(--ff-gray-200); position: sticky; top: var(--ff-header-h); z-index: 97; box-shadow: var(--ff-shadow-sm); }
.admin-bar .ff-cat-nav { top: calc(var(--ff-header-h) + 32px); }
@media screen and (max-width: 782px) { .admin-bar .ff-cat-nav { top: calc(var(--ff-header-h) + 46px); } }
.ff-cat-nav__inner { max-width: var(--ff-container); margin: 0 auto; padding: 0 var(--ff-gap); position: relative; }
.ff-cat-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--ff-green-600);
    color: var(--ff-white);
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ff-duration) var(--ff-ease);
}
.ff-cat-nav__trigger:hover,
.ff-cat-nav__trigger[aria-expanded="true"] { background: var(--ff-green-700); }
.ff-cat-nav__trigger .ff-cat-nav__chevron { transition: transform var(--ff-duration) var(--ff-ease); }
.ff-cat-nav__trigger[aria-expanded="true"] .ff-cat-nav__chevron { transform: rotate(180deg); }

.ff-cat-nav__panel {
    position: absolute;
    top: 100%;
    left: var(--ff-gap);
    width: min(360px, calc(100vw - (var(--ff-gap) * 2)));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: var(--ff-white);
    border: 1px solid var(--ff-gray-200);
    border-top: 3px solid var(--ff-green-600);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    z-index: 98;
}
.ff-cat-nav__panel[hidden] { display: none; }

.ff-cat-nav__groups,
.ff-cat-nav__flat { list-style: none; margin: 0; padding: 0; }

.ff-cat-nav__group { border-bottom: 1px solid var(--ff-gray-100); }
.ff-cat-nav__group:last-child { border-bottom: 0; }
.ff-cat-nav__group details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ff-gray-800);
    cursor: pointer;
    user-select: none;
    transition: background var(--ff-duration), color var(--ff-duration);
}
.ff-cat-nav__group details > summary::-webkit-details-marker { display: none; }
.ff-cat-nav__group details > summary::first-letter { text-transform: uppercase; }
.ff-cat-nav__group details > summary:hover { background: var(--ff-green-50); color: var(--ff-green-800); }
.ff-cat-nav__group details > summary .ff-cat-nav__chevron { transition: transform var(--ff-duration) var(--ff-ease); flex-shrink: 0; }
.ff-cat-nav__group details[open] > summary { background: var(--ff-green-50); color: var(--ff-green-800); }
.ff-cat-nav__group details[open] > summary .ff-cat-nav__chevron { transform: rotate(180deg); }

.ff-cat-nav__subcats { list-style: none; margin: 0; padding: 4px 0 10px; background: var(--ff-gray-50); }
.ff-cat-nav__subcats li { margin: 0; }
.ff-cat-nav__subcats a {
    display: block;
    padding: 9px 28px;
    font-size: 13px;
    color: var(--ff-gray-700);
    text-decoration: none;
    transition: background var(--ff-duration), color var(--ff-duration), padding var(--ff-duration);
}
.ff-cat-nav__subcats a::first-letter { text-transform: uppercase; }
.ff-cat-nav__subcats a:hover { background: var(--ff-green-100); color: var(--ff-green-800); padding-left: 34px; }

.ff-cat-nav__flat li { border-bottom: 1px solid var(--ff-gray-100); }
.ff-cat-nav__flat li:last-child { border-bottom: 0; }
.ff-cat-nav__flat a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ff-gray-700);
    text-decoration: none;
    transition: background var(--ff-duration), color var(--ff-duration);
}
.ff-cat-nav__flat a::first-letter { text-transform: uppercase; }
.ff-cat-nav__flat a:hover { background: var(--ff-green-50); color: var(--ff-green-800); }

@media (max-width: 600px) {
    .ff-cat-nav__trigger { width: 100%; justify-content: center; }
    .ff-cat-nav__panel { left: var(--ff-gap); right: var(--ff-gap); width: auto; }
}

/* Mobile: grupos colapsaveis */
.ff-mobile-menu__groups .ff-mobile-menu__group { border-bottom: 1px solid var(--ff-gray-100); }
.ff-mobile-menu__groups .ff-mobile-menu__group:last-child { border-bottom: 0; }
.ff-mobile-menu__groups details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ff-gray-800);
    cursor: pointer;
    position: relative;
}
.ff-mobile-menu__groups details > summary::-webkit-details-marker { display: none; }
.ff-mobile-menu__groups details > summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ff-gray-500);
    border-bottom: 2px solid var(--ff-gray-500);
    transform: rotate(45deg);
    margin-right: 6px;
    transition: transform var(--ff-duration) var(--ff-ease);
}
.ff-mobile-menu__groups details[open] > summary::after { transform: rotate(-135deg); }
.ff-mobile-menu__subcats { list-style: none; margin: 4px 0 10px; padding: 0 0 0 12px; border-left: 2px solid var(--ff-green-100); }
.ff-mobile-menu__subcats li { margin: 0; }
.ff-mobile-menu__subcats a { display: block; padding: 8px 10px; font-size: 14px; color: var(--ff-gray-700); text-decoration: none; text-transform: none; }
.ff-mobile-menu__subcats a::first-letter { text-transform: uppercase; }
.ff-mobile-menu__subcats a:hover { color: var(--ff-green-700); }
.ff-mobile-menu__section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ff-gray-200); }
.ff-mobile-menu__title { margin: 0 0 10px; font-family: var(--ff-font-display); font-size: 14px; font-weight: 700; color: var(--ff-gray-500); text-transform: uppercase; letter-spacing: 1px; }
.ff-mobile-menu__cats { list-style: none; margin: 0; padding: 0; }
.ff-mobile-menu__cats li { margin: 0; border-bottom: 1px solid var(--ff-gray-100); }
.ff-mobile-menu__cats li:last-child { border-bottom: 0; }
.ff-mobile-menu__cats a { display: block; padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--ff-gray-800); text-decoration: none; transition: color var(--ff-duration); text-transform: none; }
.ff-mobile-menu__cats a::first-letter { text-transform: uppercase; }
.ff-mobile-menu__cats a:hover, .ff-mobile-menu__cats a:active { color: var(--ff-green-700); }

/* ============================================
   HERO SECTION
   ============================================ */
.ff-hero { position: relative; background: linear-gradient(135deg, var(--ff-green-50) 0%, var(--ff-white) 50%, var(--ff-blue-100) 100%); padding: 80px 0 60px; overflow: hidden; }
.ff-hero::before { content: ''; position: absolute; top: -200px; right: 0; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(43,122,75,0.06) 0%, transparent 70%); pointer-events: none; }
.ff-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.ff-hero__content { animation: fadeInUp 0.8s var(--ff-ease) both; }
.ff-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--ff-green-100); color: var(--ff-green-700); padding: 6px 16px; border-radius: var(--ff-radius-full); font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.ff-hero__badge-dot { width: 6px; height: 6px; background: var(--ff-green-500); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
.ff-hero__title { font-family: var(--ff-font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--ff-gray-900); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.ff-hero__title span { color: var(--ff-green-600); position: relative; }
.ff-hero__title span::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 8px; background: var(--ff-green-200); border-radius: 4px; z-index: -1; opacity: 0.6; }
.ff-hero__subtitle { font-size: 18px; color: var(--ff-gray-600); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.ff-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.ff-hero__visual { position: relative; animation: fadeInUp 0.8s var(--ff-ease) 0.2s both; }
.ff-hero__image-wrapper { position: relative; background: linear-gradient(145deg, var(--ff-green-100), var(--ff-green-50)); border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 400px; overflow: hidden; }
.ff-hero__image-wrapper::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232B7A4B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.ff-hero__floating-card { position: absolute; background: var(--ff-white); border-radius: var(--ff-radius); padding: 16px 20px; box-shadow: var(--ff-shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; animation: float 3s ease-in-out infinite; z-index: 2; }
.ff-hero__floating-card--delivery { top: 20px; right: 10px; }
.ff-hero__floating-card--secure { bottom: 40px; left: 10px; animation-delay: 1.5s; }
.ff-hero__floating-icon { width: 40px; height: 40px; border-radius: var(--ff-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ff-hero__floating-icon--green { background: var(--ff-green-100); color: var(--ff-green-600); }
.ff-hero__floating-icon--blue { background: var(--ff-blue-100); color: var(--ff-blue-500); }
.ff-hero__pharmacy-icon { font-size: 140px; opacity: 0.15; position: relative; z-index: 1; line-height: 1; color: var(--ff-green-600); }

/* ============================================
   BUTTONS
   ============================================ */
.ff-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--ff-radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--ff-duration) var(--ff-ease); border: 2px solid transparent; text-decoration: none; line-height: 1; white-space: nowrap; }
.ff-btn--primary { background: var(--ff-green-600); color: var(--ff-white); border-color: var(--ff-green-600); box-shadow: var(--ff-shadow-green); }
.ff-btn--primary:hover { background: var(--ff-green-700); border-color: var(--ff-green-700); color: var(--ff-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43,122,75,0.35); }
.ff-btn--outline { background: transparent; color: var(--ff-green-700); border-color: var(--ff-green-300); }
.ff-btn--outline:hover { background: var(--ff-green-50); border-color: var(--ff-green-600); color: var(--ff-green-700); }
.ff-btn--white { background: var(--ff-white); color: var(--ff-green-700); border-color: var(--ff-white); box-shadow: var(--ff-shadow); }
.ff-btn--white:hover { transform: translateY(-2px); box-shadow: var(--ff-shadow-md); color: var(--ff-green-700); }
.ff-btn--sm { padding: 10px 20px; font-size: 13px; }
.ff-btn--lg { padding: 18px 36px; font-size: 16px; }
.ff-btn svg { width: 18px; height: 18px; }

/* ============================================
   SECTION HEADER
   ============================================ */
.ff-section-header { text-align: center; margin-bottom: 48px; }
.ff-section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ff-green-600); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.ff-section-label::before, .ff-section-label::after { content: ''; width: 24px; height: 1px; background: var(--ff-green-300); }
.ff-section-title { font-family: var(--ff-font-display); font-size: clamp(28px, 3.5vw, 40px); color: var(--ff-gray-900); letter-spacing: -0.5px; }
.ff-section-subtitle { font-size: 16px; color: var(--ff-gray-500); margin-top: 8px; }

/* ============================================
   CATEGORIES
   ============================================ */
.ff-categories { padding: 80px 0; background: var(--ff-white); }
.ff-categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ff-gap); }
.ff-category-card { position: relative; background: var(--ff-white); border: 1px solid var(--ff-gray-200); border-radius: var(--ff-radius); padding: 40px 24px 32px; text-align: center; transition: all var(--ff-duration) var(--ff-ease); overflow: hidden; }
.ff-category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ff-green-600); transform: scaleX(0); transition: transform var(--ff-duration) var(--ff-ease); }
.ff-category-card:hover { border-color: var(--ff-green-300); transform: translateY(-4px); box-shadow: var(--ff-shadow-md); }
.ff-category-card:hover::before { transform: scaleX(1); }
.ff-category-card__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: var(--ff-radius); display: flex; align-items: center; justify-content: center; font-size: 32px; transition: transform var(--ff-duration) var(--ff-ease); }
.ff-category-card:hover .ff-category-card__icon { transform: scale(1.1); }
.ff-category-card__icon--green { background: var(--ff-green-100); color: var(--ff-green-600); }
.ff-category-card__icon--blue { background: var(--ff-blue-100); color: var(--ff-blue-500); }
.ff-category-card__icon--pink { background: #fce4ec; color: #e91e63; }
.ff-category-card__icon--orange { background: var(--ff-orange-100); color: #f57c00; }
.ff-category-card__name { font-size: 18px; font-weight: 700; color: var(--ff-gray-900); margin-bottom: 8px; }
.ff-category-card__count { font-size: 13px; color: var(--ff-gray-500); }
.ff-category-card__link { position: absolute; inset: 0; z-index: 1; }

/* ============================================
   FEATURED PRODUCTS
   ============================================ */
.ff-featured { padding: 80px 0; background: var(--ff-gray-50); }

/* ============================================
   PRODUCT CARDS (Shop & Featured)
   ============================================ */
/* Remove clearfix do WooCommerce que vira grid-item e empurra o primeiro card */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: var(--ff-gap); list-style: none; padding: 0; margin: 0 0 32px; }

/* Grid customizado para destaques da home (3 colunas) */
.ff-featured-grid ul.products,
ul.products.ff-featured-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 28px; max-width: 1080px; margin-left: auto; margin-right: auto; }

/* Reset overrides de width/float/margin do WooCommerce core (Storefront-style) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    width: auto !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
    padding: 0 !important;
}

/* Card container */
ul.products li.product {
    background: var(--ff-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ff-gray-200);
    transition: box-shadow var(--ff-duration) var(--ff-ease), transform var(--ff-duration) var(--ff-ease), border-color var(--ff-duration) var(--ff-ease);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
ul.products li.product:hover {
    border-color: var(--ff-green-400);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -12px rgba(5, 95, 70, 0.18);
}

/* Imagem (ratio fixo 1:1 elegante) */
ul.products li.product > a:first-of-type { display: block; position: relative; overflow: hidden; background: var(--ff-gray-50); }
ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
    background: var(--ff-gray-50);
    transition: transform .5s var(--ff-ease);
    margin: 0;
}
ul.products li.product:hover a img { transform: scale(1.06); }

/* Corpo do card */
ul.products li.product .woocommerce-loop-product__title {
    padding: 16px 18px 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ff-gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    margin: 0;
}
ul.products li.product .price {
    padding: 0 18px 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ff-green-700);
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
ul.products li.product .price del { font-size: 13px; color: var(--ff-gray-400); font-weight: 500; opacity: .8; }
ul.products li.product .price ins { text-decoration: none; color: var(--ff-green-700); }

/* Botao adicionar ao carrinho */
ul.products li.product .button,
ul.products li.product .added_to_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 14px 14px;
    padding: 11px 14px;
    background: var(--ff-green-600);
    color: var(--ff-white) !important;
    text-align: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--ff-duration), transform var(--ff-duration);
    text-decoration: none;
    min-height: 42px;
    line-height: 1.2;
}
ul.products li.product .button:hover,
ul.products li.product .added_to_cart:hover {
    background: var(--ff-green-700);
    color: var(--ff-white) !important;
    transform: translateY(-1px);
}

/* Badges */
ul.products li.product .flavor-prescription-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--ff-red-500);
    color: var(--ff-white);
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--ff-green-600);
    color: var(--ff-white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Brand info (marca/fabricante) dentro do card quando aplicavel */
ul.products li.product .flavor-brand-info { padding: 0 18px 6px; font-size: 11px; color: var(--ff-gray-500); }

/* ============================================
   PROMO BANNER
   ============================================ */
.ff-promo { padding: 80px 0; background: var(--ff-white); }
.ff-promo__banner { background: linear-gradient(135deg, var(--ff-green-800), var(--ff-green-600)); border-radius: 20px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.ff-promo__banner::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.ff-promo__content { position: relative; z-index: 1; }
.ff-promo__tag { display: inline-block; background: rgba(255,255,255,0.15); color: var(--ff-green-200); padding: 6px 14px; border-radius: var(--ff-radius-full); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; backdrop-filter: blur(4px); }
.ff-promo__title { font-family: var(--ff-font-display); font-size: clamp(28px, 3vw, 40px); color: var(--ff-white); line-height: 1.15; margin-bottom: 16px; }
.ff-promo__text { font-size: 16px; color: var(--ff-green-200); line-height: 1.6; margin-bottom: 28px; }
.ff-promo__visual { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.ff-promo__discount { font-family: var(--ff-font-display); font-size: 120px; font-weight: 900; color: rgba(255,255,255,0.12); line-height: 1; text-align: center; }
.ff-promo__discount span { display: block; font-size: 20px; color: var(--ff-green-200); font-weight: 600; letter-spacing: 4px; text-transform: uppercase; }

/* ============================================
   TRUST BADGES
   ============================================ */
.ff-trust { padding: 60px 0; background: var(--ff-gray-50); border-top: 1px solid var(--ff-gray-200); border-bottom: 1px solid var(--ff-gray-200); }
.ff-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ff-gap); }
.ff-trust__item { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--ff-white); border-radius: var(--ff-radius); border: 1px solid var(--ff-gray-200); transition: all var(--ff-duration); }
.ff-trust__item:hover { box-shadow: var(--ff-shadow); border-color: var(--ff-green-200); }
.ff-trust__icon { width: 52px; height: 52px; border-radius: var(--ff-radius); background: var(--ff-green-100); color: var(--ff-green-600); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ff-trust__text h4 { font-size: 15px; font-weight: 700; color: var(--ff-gray-900); margin-bottom: 2px; }
.ff-trust__text p { font-size: 13px; color: var(--ff-gray-500); margin: 0; }

/* ============================================
   NEWSLETTER
   ============================================ */
.ff-newsletter { padding: 80px 0; background: var(--ff-white); }
.ff-newsletter__box { background: var(--ff-green-50); border: 1px solid var(--ff-green-200); border-radius: 20px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.ff-newsletter__box::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232B7A4B' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.ff-newsletter__content { position: relative; z-index: 1; }
.ff-newsletter__title { font-family: var(--ff-font-display); font-size: clamp(24px, 3vw, 34px); color: var(--ff-gray-900); margin-bottom: 12px; }
.ff-newsletter__text { font-size: 16px; color: var(--ff-gray-600); margin-bottom: 32px; }
.ff-newsletter__form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; }
.ff-newsletter__input { flex: 1; padding: 14px 20px; border: 2px solid var(--ff-green-200); border-radius: var(--ff-radius); font-size: 15px; outline: none; background: var(--ff-white); transition: all var(--ff-duration); }
.ff-newsletter__input:focus { border-color: var(--ff-green-500); box-shadow: 0 0 0 4px rgba(43,122,75,0.1); }
.ff-newsletter__input::placeholder { color: var(--ff-gray-400); }

/* ============================================
   FOOTER
   ============================================ */
.ff-footer { background: var(--ff-gray-900); color: var(--ff-gray-400); }
.ff-footer__main { padding: 60px 0 40px; }
.ff-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.ff-footer__brand p { font-size: 14px; line-height: 1.7; color: var(--ff-gray-500); margin: 16px 0 24px; }
.ff-footer__logo-link { display: inline-block; line-height: 0; }
.ff-footer__logo { width: 100%; max-width: 260px; height: auto; display: block; background: var(--ff-white); padding: 18px 24px; border-radius: var(--ff-radius); image-rendering: -webkit-optimize-contrast; }
.ff-footer__social { display: flex; gap: 10px; }
.ff-footer__social-link { width: 40px; height: 40px; border-radius: var(--ff-radius-sm); background: rgba(255,255,255,0.06); color: var(--ff-gray-400); display: flex; align-items: center; justify-content: center; transition: all var(--ff-duration); font-size: 18px; }
.ff-footer__social-link:hover { background: var(--ff-green-600); color: var(--ff-white); }
.ff-footer__heading { font-size: 14px; font-weight: 700; color: var(--ff-white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.ff-footer__links { list-style: none; padding: 0; margin: 0; }
.ff-footer__links li { margin-bottom: 10px; }
.ff-footer__links a { font-size: 14px; color: var(--ff-gray-500); transition: all var(--ff-duration); display: inline-flex; align-items: center; gap: 6px; }
.ff-footer__links a::before { content: ''; width: 0; height: 1px; background: var(--ff-green-400); transition: width var(--ff-duration); }
.ff-footer__links a:hover { color: var(--ff-green-400); }
.ff-footer__links a:hover::before { width: 12px; }
.ff-footer__contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.ff-footer__contact-icon { width: 36px; height: 36px; border-radius: var(--ff-radius-sm); background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.ff-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.ff-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ff-footer__copyright { font-size: 13px; color: var(--ff-gray-600); }
.ff-footer__payments { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ff-footer__payment-badge { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 4px 8px; border-radius: var(--ff-radius-xs); height: 28px; min-width: 44px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.ff-footer__payment-badge svg { display: block; width: auto; height: 20px; }
.ff-footer__payment-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   SHOP PAGE
   ============================================ */
.ff-shop { padding: 40px 0 80px; }
.ff-shop__title { font-family: var(--ff-font-display); font-size: 32px; color: var(--ff-gray-900); margin-bottom: 8px; }
.ff-shop__layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.ff-sidebar { position: sticky; top: calc(var(--ff-header-h) + 20px); }
.ff-sidebar .widget { background: var(--ff-white); border: 1px solid var(--ff-gray-200); border-radius: var(--ff-radius); padding: 24px; margin-bottom: 20px; }
.ff-sidebar .widget-title, .ff-sidebar .widgettitle { font-size: 14px; font-weight: 700; color: var(--ff-gray-900); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ff-green-100); }
.ff-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.ff-sidebar .widget ul li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 14px; color: var(--ff-gray-700); border-radius: var(--ff-radius-sm); transition: all var(--ff-duration); }
.ff-sidebar .widget ul li a:hover, .ff-sidebar .widget ul li.current-cat a { background: var(--ff-green-50); color: var(--ff-green-700); }

.woocommerce-ordering select { padding: 10px 16px; border: 1px solid var(--ff-gray-300); border-radius: var(--ff-radius-sm); font-size: 14px; color: var(--ff-gray-700); background: var(--ff-white); }
.woocommerce-result-count { font-size: 14px; color: var(--ff-gray-500); padding: 10px 0; }
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; }
.woocommerce-pagination ul.page-numbers li a, .woocommerce-pagination ul.page-numbers li span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--ff-radius-sm); font-size: 14px; font-weight: 600; color: var(--ff-gray-700); background: var(--ff-white); border: 1px solid var(--ff-gray-200); transition: all var(--ff-duration); }
.woocommerce-pagination ul.page-numbers li a:hover { border-color: var(--ff-green-400); color: var(--ff-green-700); }
.woocommerce-pagination ul.page-numbers li span.current { background: var(--ff-green-600); color: var(--ff-white); border-color: var(--ff-green-600); }

/* ============================================
   SINGLE PRODUCT
   ============================================ */
.woocommerce div.product { background: var(--ff-white); border-radius: var(--ff-radius); padding: 40px; box-shadow: var(--ff-shadow-sm); }
.woocommerce div.product div.images { background: var(--ff-gray-50); border-radius: var(--ff-radius); overflow: hidden; }
.woocommerce div.product p.price { font-size: 28px; font-weight: 700; color: var(--ff-green-700); }
.woocommerce div.product p.price del { font-size: 18px; color: var(--ff-gray-400); }
.woocommerce div.product .product_meta { border-top: 1px solid var(--ff-gray-200); padding-top: 16px; margin-top: 16px; font-size: 14px; color: var(--ff-gray-600); }
.woocommerce div.product form.cart .qty { padding: 12px; border: 2px solid var(--ff-gray-200); border-radius: var(--ff-radius-sm); width: 80px; text-align: center; font-weight: 600; }
.woocommerce div.product form.cart .button { padding: 14px 32px; background: var(--ff-green-600); color: var(--ff-white); border: none; border-radius: var(--ff-radius); font-size: 16px; font-weight: 700; cursor: pointer; transition: all var(--ff-duration); box-shadow: var(--ff-shadow-green); }
.woocommerce div.product form.cart .button:hover { background: var(--ff-green-700); transform: translateY(-2px); }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 4px; list-style: none; border-bottom: 2px solid var(--ff-gray-200); padding: 0; margin: 0 0 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; background: none; border: none; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--ff-gray-600); position: relative; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ff-green-700); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--ff-green-600); }
.related.products h2 { font-family: var(--ff-font-display); font-size: 28px; margin-bottom: 24px; }

/* ============================================
   CART & CHECKOUT & WOOCOMMERCE GLOBAL
   ============================================ */
.woocommerce table.shop_table { border: 1px solid var(--ff-gray-200); border-radius: var(--ff-radius); overflow: hidden; }
.woocommerce table.shop_table th { background: var(--ff-gray-100); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ff-gray-700); }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--ff-green-600); color: var(--ff-white); border-radius: var(--ff-radius-sm); font-weight: 600; padding: 12px 24px; border: none; transition: all var(--ff-duration); }
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--ff-green-700); color: var(--ff-white); }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--ff-green-600); box-shadow: var(--ff-shadow-green); }
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--ff-green-700); }
.woocommerce-message { border-top-color: var(--ff-green-600); }
.woocommerce-breadcrumb { font-size: 13px; color: var(--ff-gray-500); padding: 16px 0; margin-bottom: 0; }
.woocommerce-breadcrumb a { color: var(--ff-gray-500); }
.woocommerce-breadcrumb a:hover { color: var(--ff-green-600); }

/* ============================================
   MOBILE MENU
   ============================================ */
.ff-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100000; opacity: 0; pointer-events: none; transition: opacity var(--ff-duration); }
.ff-mobile-overlay.is-active { opacity: 1; pointer-events: auto; }
.ff-mobile-menu { position: fixed; top: 0; right: 0; width: 320px; height: 100%; background: var(--ff-white); z-index: 100001; transform: translateX(100%); transition: transform var(--ff-duration) var(--ff-ease); overflow-y: auto; padding: 24px; visibility: hidden; }
.ff-mobile-menu.is-active { transform: translateX(0); visibility: visible; }
.ff-mobile-menu__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ff-gray-200); }
.ff-mobile-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ff-gray-100); border: none; border-radius: var(--ff-radius-sm); cursor: pointer; font-size: 20px; color: var(--ff-gray-700); }
.ff-mobile-menu .menu { list-style: none; padding: 0; margin: 0; }
.ff-mobile-menu .menu li a { display: block; padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--ff-gray-800); border-bottom: 1px solid var(--ff-gray-100); }
.ff-mobile-menu .menu li a:hover { color: var(--ff-green-600); }

/* ============================================
   ADMIN BAR
   ============================================ */
.admin-bar .ff-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .ff-header { top: 46px; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    ul.products { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .ff-featured-grid ul.products,
    ul.products.ff-featured-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 1024px) {
    .ff-hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .ff-hero__visual { max-width: 500px; margin: 0 auto; }
    .ff-categories__grid { grid-template-columns: repeat(2, 1fr); }
    ul.products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    ul.products.ff-featured-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .ff-promo__banner { grid-template-columns: 1fr; padding: 40px; }
    .ff-trust__grid { grid-template-columns: repeat(2, 1fr); }
    .ff-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .ff-shop__layout { grid-template-columns: 1fr; }
    .ff-sidebar { position: static; }
}

@media (max-width: 820px) {
    ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    ul.products.ff-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    :root { --ff-header-h: 64px; --ff-gap: 16px; }
    .ff-topbar__right { display: none; }
    .ff-search { display: none; }
    .ff-nav { display: none; }
    .ff-menu-toggle { display: flex; }
    .ff-mobile-overlay { display: block; }
    .ff-mobile-menu { display: block; visibility: hidden; }
    .ff-hero { padding: 40px 0; }
    .ff-hero__floating-card { display: none; }
    .ff-categories, .ff-featured, .ff-promo, .ff-newsletter { padding: 48px 0; }
    .ff-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    ul.products.ff-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    ul.products li.product a img { padding: 14px; }
    .ff-promo__banner { padding: 32px 24px; }
    .ff-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ff-newsletter__box { padding: 32px 24px; }
    .ff-newsletter__form { flex-direction: column; }
    .ff-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .ff-footer__bottom-inner { flex-direction: column; text-align: center; }
    .woocommerce div.product { padding: 20px; }
}

@media (max-width: 480px) {
    ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    ul.products.ff-featured-grid { grid-template-columns: 1fr; gap: 14px; max-width: 360px; }
    ul.products li.product { border-radius: 12px; }
    ul.products li.product a img { padding: 12px; }
    ul.products li.product .woocommerce-loop-product__title { font-size: 13px; padding: 12px 12px 4px; min-height: 38px; }
    ul.products li.product .price { font-size: 16px; padding: 0 12px 10px; }
    ul.products li.product .button, ul.products li.product .added_to_cart { margin: auto 10px 10px; padding: 10px; font-size: 12px; min-height: 38px; }
    ul.products li.product .onsale, ul.products li.product .flavor-prescription-badge { font-size: 9px; padding: 4px 8px; top: 8px; }
    ul.products li.product .onsale { right: 8px; }
    ul.products li.product .flavor-prescription-badge { left: 8px; }
}

/* ============================================
   BANNER CAROUSEL
   ============================================ */
.ff-banners { background: var(--ff-white); }
.ff-banners__wrapper { position: relative; max-width: 100%; overflow: hidden; }
.ff-banners__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ff-banners__track::-webkit-scrollbar { display: none; }
.ff-banners__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.ff-banners__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 420px;
}
.ff-banners__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--ff-radius-full);
    background: rgba(255,255,255,0.9);
    color: var(--ff-gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ff-shadow-md);
    transition: all var(--ff-duration) var(--ff-ease);
    z-index: 2;
}
.ff-banners__arrow:hover { background: var(--ff-white); box-shadow: var(--ff-shadow-lg); }
.ff-banners__arrow--prev { left: 16px; }
.ff-banners__arrow--next { right: 16px; }
.ff-banners__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.ff-banners__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--ff-radius-full);
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--ff-duration) var(--ff-ease);
}
.ff-banners__dot.is-active {
    background: var(--ff-white);
    width: 28px;
}
@media (max-width: 768px) {
    .ff-banners__image { max-height: 220px; }
    .ff-banners__arrow { width: 36px; height: 36px; }
    .ff-banners__arrow--prev { left: 8px; }
    .ff-banners__arrow--next { right: 8px; }
}
@media (max-width: 480px) {
    .ff-banners__image { max-height: 160px; }
    .ff-banners__arrow { display: none; }
    .ff-banners__dots { bottom: 8px; }
    .ff-banners__dot { width: 8px; height: 8px; }
    .ff-banners__dot.is-active { width: 22px; }
}

/* ============================================
   PRODUCT CAROUSEL SECTIONS
   ============================================ */
.ff-product-section { padding: 60px 0; }
.ff-product-section:nth-child(even) { background: var(--ff-gray-50); }

.ff-carousel { position: relative; }
.ff-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--ff-gap);
    padding: 8px 4px 16px;
}
.ff-carousel__track::-webkit-scrollbar { display: none; }
.ff-carousel__card {
    flex: 0 0 calc(25% - var(--ff-gap) * 3/4);
    scroll-snap-align: start;
    background: var(--ff-white);
    border: 1px solid var(--ff-gray-200);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--ff-duration) var(--ff-ease);
    position: relative;
}
.ff-carousel__card:hover {
    border-color: var(--ff-green-400);
    box-shadow: 0 14px 32px -12px rgba(5, 95, 70, 0.18);
    transform: translateY(-3px);
}
.ff-carousel__card-link { display: block; text-decoration: none; color: inherit; }
.ff-carousel__card-img-wrap {
    aspect-ratio: 1;
    background: var(--ff-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: relative;
}
.ff-carousel__card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--ff-duration) var(--ff-ease);
}
.ff-carousel__card:hover .ff-carousel__card-img { transform: scale(1.06); }
.ff-carousel__card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ff-green-600);
    color: var(--ff-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--ff-radius-full);
}
.ff-carousel__card-badge--red { background: var(--ff-red-500); }
.ff-carousel__card-info { padding: 14px 16px 16px; }
.ff-carousel__card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ff-gray-800);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    margin: 0 0 8px;
}
.ff-carousel__card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.ff-carousel__card-price-old {
    font-size: 13px;
    color: var(--ff-gray-500);
    text-decoration: line-through;
}
.ff-carousel__card-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--ff-green-700);
}
.ff-carousel__card-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 10px 12px 14px;
    padding: 10px;
    background: var(--ff-green-600);
    color: var(--ff-white);
    border: none;
    border-radius: var(--ff-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background var(--ff-duration) var(--ff-ease);
}
.ff-carousel__card-btn:hover { background: var(--ff-green-700); color: var(--ff-white); }
.ff-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--ff-gray-200);
    border-radius: var(--ff-radius-full);
    background: var(--ff-white);
    color: var(--ff-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ff-shadow);
    transition: all var(--ff-duration) var(--ff-ease);
    z-index: 2;
}
.ff-carousel__arrow:hover { border-color: var(--ff-green-400); color: var(--ff-green-600); box-shadow: var(--ff-shadow-md); }
.ff-carousel__arrow--prev { left: -16px; }
.ff-carousel__arrow--next { right: -16px; }

@media (max-width: 1024px) {
    .ff-carousel__card { flex: 0 0 calc(33.333% - var(--ff-gap) * 2/3); }
    .ff-carousel__arrow--prev { left: 4px; }
    .ff-carousel__arrow--next { right: 4px; }
}
@media (max-width: 768px) {
    .ff-carousel__card { flex: 0 0 calc(50% - var(--ff-gap) / 2); }
    .ff-product-section { padding: 40px 0; }
}
@media (max-width: 480px) {
    .ff-carousel__card { flex: 0 0 70%; }
    .ff-carousel__arrow { display: none; }
    .ff-product-section { padding: 30px 0; }
}
