/* ===========================================
   Catálogo FoodAppi Layout
   Paleta: Roxo (#667eea → #764ba2)
   Fonte: Rubik
   =========================================== */

/* === CSS Custom Properties === */
:root {
    --ff-primary: #667eea;
    --ff-primary-dark: #764ba2;
    --ff-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ff-gradient-light: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    --ff-bg: #f7f8fc;
    --ff-card-bg: #ffffff;
    --ff-text: #2d3748;
    --ff-text-muted: #718096;
    --ff-text-light: #a0aec0;
    --ff-border: #e8eaf0;
    --ff-success: #10b981;
    --ff-danger: #f5576c;
    --ff-warning: #f6ad55;
    --ff-radius-sm: 8px;
    --ff-radius-md: 12px;
    --ff-radius-lg: 16px;
    --ff-radius-xl: 20px;
    --ff-radius-full: 50%;
    --ff-sidebar-width: 260px;
    --ff-header-height: 90px;
    --ff-cart-width: 400px;
    --ff-bottom-nav-height: 72px;
    --ff-font: 'Rubik', sans-serif;
    --ff-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --ff-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --ff-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --ff-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --ff-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base / Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ff-font);
    background: var(--ff-bg);
    color: var(--ff-text);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === Header === */
.ff-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ff-header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ff-border);
    z-index: 40;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    transition: box-shadow var(--ff-transition);
}

.ff-header.scrolled {
    box-shadow: 0 6px 32px rgba(0,0,0,0.04);
}

.ff-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.ff-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ff-logo {
    height: 72px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    border-radius: var(--ff-radius-sm);
}

.ff-store-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ff-text);
    white-space: nowrap;
    margin: 0;
}

.ff-header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.ff-header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ff-text-light);
    font-size: 0.95rem;
}

.ff-header-search input {
    width: 100%;
    height: 42px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    font-size: 0.875rem;
    font-family: var(--ff-font);
    color: var(--ff-text);
    background: var(--ff-bg);
    transition: border-color var(--ff-transition), box-shadow var(--ff-transition);
    outline: none;
}

.ff-header-search input::placeholder {
    color: var(--ff-text-light);
}

.ff-header-search input:focus {
    border-color: rgba(102,126,234,0.4);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    background: white;
}

.ff-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Seletor de Loja Customizado e Moderno */
.ff-custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 220px;
    font-family: var(--ff-font);
}

.ff-dropdown-trigger {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: var(--ff-card-bg);
    color: var(--ff-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--ff-transition);
    box-shadow: var(--ff-shadow-sm);
}

.ff-dropdown-trigger:hover {
    border-color: var(--ff-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

.ff-dropdown-trigger:focus-visible {
    outline: none;
    border-color: var(--ff-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.ff-dropdown-trigger .dropdown-trigger-icon {
    color: var(--ff-primary);
    transition: transform var(--ff-transition);
}

.ff-dropdown-trigger .dropdown-selected-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-dropdown-trigger .dropdown-arrow {
    font-size: 0.75rem;
    color: var(--ff-text-muted);
    transition: transform var(--ff-transition);
}

/* Estado Aberto */
.ff-custom-dropdown.show .ff-dropdown-trigger {
    border-color: var(--ff-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
}

.ff-custom-dropdown.show .ff-dropdown-trigger .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menu Dropdown */
.ff-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 234, 240, 0.8);
    border-radius: var(--ff-radius-md);
    box-shadow: var(--ff-shadow-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: 280px;
    overflow-y: auto;
}

.ff-custom-dropdown.show .ff-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar no Menu */
.ff-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.ff-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.ff-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--ff-border);
    border-radius: 3px;
}
.ff-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--ff-text-light);
}

/* Items do Dropdown */
.ff-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--ff-radius-sm);
    color: var(--ff-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ff-dropdown-item i {
    font-size: 1rem;
    color: var(--ff-text-muted);
    transition: color 0.2s ease;
}

.ff-dropdown-item:hover {
    background: var(--ff-gradient-light);
    color: var(--ff-primary-dark);
}

.ff-dropdown-item:hover i {
    color: var(--ff-primary);
}

.ff-dropdown-item.active {
    background: var(--ff-gradient);
    color: white;
}

.ff-dropdown-item.active i {
    color: white;
}

.ff-btn-orders {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--ff-primary);
    border-radius: var(--ff-radius-md);
    color: var(--ff-primary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--ff-font);
    text-decoration: none;
    transition: all var(--ff-transition);
    white-space: nowrap;
}

.ff-btn-orders:hover {
    background: var(--ff-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.ff-cart-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ff-transition);
    color: var(--ff-text);
    font-size: 1.15rem;
}

.ff-cart-toggle:hover {
    border-color: var(--ff-primary);
    color: var(--ff-primary);
}

.ff-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--ff-danger);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
}

/* === Referral Badge === */
.ff-referral-badge {
    background: var(--ff-gradient);
    padding: 0.5rem 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    position: fixed;
    top: var(--ff-header-height);
    left: 0;
    right: 0;
    z-index: 999;
}

.ff-referral-badge strong {
    color: #ffd700;
}

/* === Main Layout === */
.ff-layout {
    display: flex;
    padding-top: var(--ff-header-height);
    min-height: 100vh;
}

/* === Category Sidebar === */
.ff-sidebar {
    width: var(--ff-sidebar-width);
    position: fixed;
    top: var(--ff-header-height);
    left: 0;
    bottom: 0;
    background: white;
    border-right: 1px solid var(--ff-border);
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 20;
    padding: 1.25rem 0;
}

.ff-sidebar-header {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--ff-border);
    margin-bottom: 0.5rem;
}

.ff-sidebar-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ff-text-muted);
    margin: 0;
}

.ff-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    gap: 2px;
}

.ff-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--ff-radius-sm);
    color: var(--ff-text);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: all var(--ff-transition);
    cursor: pointer;
    text-transform: capitalize;
}

.ff-sidebar-item:hover {
    background: var(--ff-bg);
    color: var(--ff-text);
}

.ff-sidebar-item.active {
    background: rgba(102,126,234,0.08);
    color: var(--ff-primary);
    font-weight: 500;
}

.ff-sidebar-item i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.ff-sidebar-count {
    margin-left: auto;
    background: var(--ff-bg);
    color: var(--ff-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.ff-sidebar-item.active .ff-sidebar-count {
    background: rgba(102,126,234,0.15);
    color: var(--ff-primary);
}

/* === Category Chips (Mobile) === */
.ff-category-chips {
    display: none;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: white;
    border-bottom: 1px solid var(--ff-border);
    position: sticky;
    top: var(--ff-header-height);
    z-index: 15;
}

.ff-category-chips::-webkit-scrollbar {
    display: none;
}

.ff-chip {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--ff-border);
    border-radius: 20px;
    background: white;
    color: var(--ff-text);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--ff-font);
    cursor: pointer;
    transition: all var(--ff-transition);
    white-space: nowrap;
}

.ff-chip:hover {
    border-color: var(--ff-primary);
    color: var(--ff-primary);
}

.ff-chip.active {
    background: var(--ff-gradient);
    color: white;
    border-color: transparent;
}

/* === Main Content === */
.ff-main {
    flex: 1;
    padding: 0.5rem 2rem 1.5rem;
    min-width: 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* === Banner Section (Configurable Image) === */
.ff-banner-section {
    width: 100%;
    border-radius: var(--ff-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.ff-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/1;
    object-fit: cover;
    display: block;
}

/* Fallback: gradient hero when no banner image */
.ff-hero-banner {
    background: var(--ff-gradient);
    border-radius: var(--ff-radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.ff-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.ff-hero-banner p {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

/* === Category Mini Cards (FoodAppi "Our Menu" style) === */
.ff-categories-section {
    margin-bottom: 2rem;
}

.ff-categories-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ff-text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ff-categories-title i {
    color: var(--ff-primary);
    font-size: 1.1rem;
}

.ff-categories-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1.25rem 1.5rem;
    background: color-mix(in srgb, var(--ff-primary) 3%, #ffffff);
    border-radius: var(--ff-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.01), 0 2px 8px rgba(0,0,0,0.02);
}

.ff-categories-grid::-webkit-scrollbar {
    display: none;
}

.ff-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    min-width: 90px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--ff-transition);
    text-decoration: none;
    border: none;
    flex-shrink: 0;
}

.ff-category-card:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: none;
}

.ff-category-card.active {
    background: transparent;
    border-color: transparent;
}

.ff-category-card-img {
    width: 64px;
    height: 64px;
    border-radius: var(--ff-radius-full);
    object-fit: contain;
    object-position: center;
    padding: 6px;
    background: color-mix(in srgb, var(--ff-primary) 6%, #ffffff);
    box-shadow: var(--ff-shadow-sm);
    transition: all var(--ff-transition);
    border: 2px solid transparent;
}

.ff-category-card-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--ff-radius-full);
    background: color-mix(in srgb, var(--ff-primary) 8%, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-primary);
    font-size: 1.3rem;
    box-shadow: var(--ff-shadow-sm);
    transition: all var(--ff-transition);
    border: 2px solid transparent;
}

.ff-category-card:hover .ff-category-card-img,
.ff-category-card:hover .ff-category-card-placeholder {
    background: color-mix(in srgb, var(--ff-primary) 12%, #ffffff);
    transform: scale(1.05);
}

.ff-category-card.active .ff-category-card-img,
.ff-category-card.active .ff-category-card-placeholder {
    background: color-mix(in srgb, var(--ff-primary) 16%, #ffffff);
    border-color: var(--ff-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ff-primary) 15%, transparent);
}

.ff-category-card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ff-text);
    text-align: center;
    line-height: 1.3;
    max-width: 90px;
    word-wrap: break-word;
    transition: color var(--ff-transition);
}

.ff-category-card.active .ff-category-card-name {
    color: var(--ff-primary);
    font-weight: 600;
}

/* === Section Title === */
.ff-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ff-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ff-section-title i {
    color: var(--ff-primary);
}

/* === Products Grid === */
.ff-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* === Product Card (FoodAppi Style) === */
.ff-product-card {
    background: var(--ff-card-bg);
    border: 1px solid var(--ff-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow var(--ff-transition), transform var(--ff-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.ff-product-card:hover {
    box-shadow: var(--ff-shadow-hover);
    transform: translateY(-4px);
}

.ff-product-img-wrap {
    position: relative;
    overflow: hidden;
}

.ff-product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 0.5rem;
    background: #ffffff;
    display: block;
    transition: transform 0.4s ease;
}

.ff-product-card:hover .ff-product-img {
    transform: scale(1.05);
}

.ff-product-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e9f5 0%, #e8ecff 100%);
}

.ff-product-placeholder i {
    font-size: 3rem;
    color: var(--ff-text-light);
}

.ff-product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--ff-gradient);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
    z-index: 2;
}

.ff-product-discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--ff-success);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.ff-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.ff-product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ff-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ff-product-price .price-current {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--ff-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ff-product-price .price-old {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ff-text-light) !important;
    -webkit-text-fill-color: var(--ff-text-light);
    text-decoration: line-through;
    background: none;
}

/* === Add to Cart Button (circular, FoodAppi style) === */
.ff-add-btn {
    position: absolute;
    top: -20px;
    right: 12px;
    width: auto;
    height: 36px;
    padding: 0 0.85rem;
    border-radius: 20px;
    background: var(--ff-gradient);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: var(--ff-shadow-md);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--ff-transition);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ff-add-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ff-primary) 40%, transparent);
}

/* === Quantity Selector (inline on card) === */
.ff-qty-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.ff-qty-selector {
    display: flex;
    align-items: center;
    background: var(--ff-bg);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-sm);
    overflow: hidden;
    height: 32px;
}

.ff-qty-btn {
    width: 28px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--ff-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ff-transition);
}

.ff-qty-btn:hover {
    background: rgba(102,126,234,0.1);
}

.ff-qty-input {
    width: 28px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--ff-text);
    font-size: 0.85rem;
    font-family: var(--ff-font);
}

.ff-qty-input:focus {
    outline: none;
}

.ff-btn-buy {
    height: 32px;
    padding: 0 0.85rem;
    background: var(--ff-gradient);
    color: white;
    border: none;
    border-radius: var(--ff-radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--ff-font);
    cursor: pointer;
    transition: all var(--ff-transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ff-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
}

/* === Cart Slide-in Panel === */
.ff-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ff-transition), visibility var(--ff-transition);
}

.ff-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ff-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--ff-cart-width);
    max-width: 100vw;
    background: white;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}

.ff-cart-panel.open {
    transform: translateX(0);
}

.ff-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--ff-gradient);
    color: white;
    flex-shrink: 0;
}

.ff-cart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ff-cart-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: var(--ff-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--ff-transition);
}

.ff-cart-close:hover {
    background: rgba(255,255,255,0.3);
}

.ff-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.ff-cart-footer {
    border-top: 1px solid var(--ff-border);
    padding: 1.25rem 1.5rem;
    background: white;
    flex-shrink: 0;
}

/* Cart Item Styles (inside panel) */
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ff-border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--ff-radius-sm);
    flex-shrink: 0;
}

.cart-item-image-placeholder {
    width: 60px;
    height: 60px;
    background: var(--ff-bg);
    border-radius: var(--ff-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-text-light);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ff-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-brand {
    font-size: 0.75rem;
    color: var(--ff-text-muted);
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ff-primary);
    margin-top: 0.15rem;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--ff-border);
    background: white;
    color: var(--ff-text);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ff-transition);
    font-size: 0.85rem;
}

.cart-qty-btn:hover {
    border-color: var(--ff-primary);
    color: var(--ff-primary);
}

.cart-qty-value {
    font-size: 0.85rem;
    font-weight: 600;
    width: 24px;
    text-align: center;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--ff-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all var(--ff-transition);
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: var(--ff-danger);
    background: rgba(245,87,108,0.08);
}

/* Cart Empty State */
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty-icon {
    font-size: 3.5rem;
    color: var(--ff-text-light);
    margin-bottom: 1rem;
}

.cart-empty-text {
    color: var(--ff-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: var(--ff-gradient);
    color: white;
    border-radius: var(--ff-radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--ff-transition);
}

.cart-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    color: white;
}

/* Cart Summary */
.cart-summary {
    margin-bottom: 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--ff-text-muted);
}

.cart-summary-row.total {
    border-top: 1px solid var(--ff-border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ff-text);
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--ff-gradient);
    color: white;
    border: none;
    border-radius: var(--ff-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--ff-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--ff-transition);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.4);
}

/* === Pagination === */
.ff-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

/* === Bottom Navigation (Mobile) === */
.ff-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.3);
    padding: 0.5rem 0.25rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1000;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.4);
}

.ff-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.ff-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.6rem;
    color: var(--ff-text-light);
    text-decoration: none;
    transition: all var(--ff-transition);
    position: relative;
    flex: 1;
    max-width: 70px;
    border-radius: 16px;
}

.ff-bottom-nav-item i {
    font-size: 1.3rem;
    transition: all var(--ff-transition);
}

.ff-bottom-nav-item span {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ff-bottom-nav-item.active {
    color: var(--ff-primary);
    background: rgba(102,126,234,0.1);
}

.ff-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--ff-gradient);
    border-radius: var(--ff-radius-full);
}

.ff-bottom-nav-item:active {
    transform: scale(0.92);
}

.ff-bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 0.3rem;
    background: var(--ff-gradient);
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    border: 2px solid white;
}

/* === Search Modal (Mobile) === */
.ff-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: ffFadeIn 0.3s;
}

.ff-search-modal-content {
    background: white;
    margin: 1rem;
    margin-top: 4rem;
    border-radius: var(--ff-radius-xl);
    padding: 1.5rem;
    animation: ffSlideDown 0.3s;
}

/* === Store Modal (Mobile) === */
.ff-store-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: ffFadeIn 0.3s;
}

.ff-store-modal-content {
    background: white;
    margin: 1rem;
    margin-top: 4rem;
    border-radius: var(--ff-radius-xl);
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    animation: ffSlideDown 0.3s;
}

.ff-store-option {
    padding: 1rem;
    border: 1.5px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all var(--ff-transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ff-store-option:hover,
.ff-store-option.active {
    border-color: var(--ff-primary);
    background: rgba(102,126,234,0.04);
}

.ff-store-option.active::after {
    content: '\2713';
    color: var(--ff-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* === Product Detail Modal === */
.product-modal-content {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-modal-header {
    background: var(--ff-gradient);
    color: white;
    border: none;
    padding: 1.25rem 1.75rem;
}

.product-modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.product-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.product-modal-header .btn-close:hover {
    opacity: 1;
}

#produtoModalBody {
    padding: 2rem;
    background: #fafbfe;
}

.product-detail-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-detail-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.product-detail-image-wrapper:hover .product-detail-image {
    transform: scale(1.05);
}

.product-detail-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-placeholder i {
    font-size: 5rem;
    color: #cbd5e1;
}

.product-detail-info {
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-detail-name {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ff-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 850;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail-price .price-current {
    background: var(--ff-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-price .price-old {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ff-text-light) !important;
    text-decoration: line-through;
    -webkit-text-fill-color: var(--ff-text-light);
    background: none;
    margin-right: 0.25rem;
}

.product-detail-price .price-discount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    background: var(--ff-gradient-orange, linear-gradient(135deg, #ff922b 0%, #f06595 100%));
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    box-shadow: 0 4px 10px rgba(255, 146, 43, 0.2);
}

.product-detail-action-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-detail-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-detail-qty-wrap .qty-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.product-detail-action-card .ff-btn-buy {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    background: var(--ff-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-detail-action-card .ff-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.product-detail-action-card .ff-btn-buy:active {
    transform: translateY(0);
}

.product-description-rich {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-top: 0.5rem;
}

.product-description-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ff-text);
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.75rem;
}

.product-description-header i {
    font-size: 1.2rem;
    color: var(--ff-primary);
}

.product-description-rich-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
}

.product-description-rich-body pre,
.product-description-rich-body pre.ql-syntax {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.product-description-rich-body p {
    margin-bottom: 1.15rem;
}

.product-description-rich-body p:last-child {
    margin-bottom: 0;
}

.product-description-rich-body h1,
.product-description-rich-body h2,
.product-description-rich-body h3,
.product-description-rich-body h4,
.product-description-rich-body h5,
.product-description-rich-body h6 {
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    position: relative;
    padding-left: 0.85rem;
}

.product-description-rich-body h1::before,
.product-description-rich-body h2::before,
.product-description-rich-body h3::before,
.product-description-rich-body h4::before,
.product-description-rich-body h5::before,
.product-description-rich-body h6::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3.5px;
    background: var(--ff-gradient);
    border-radius: 2px;
}

.product-description-rich-body h1 { font-size: 1.35rem; }
.product-description-rich-body h2 { font-size: 1.25rem; }
.product-description-rich-body h3 { font-size: 1.18rem; }
.product-description-rich-body h4 { font-size: 1.12rem; }
.product-description-rich-body h5 { font-size: 1.05rem; }
.product-description-rich-body h6 { font-size: 0.95rem; }

.product-description-rich-body ul {
    padding-left: 0;
    margin-bottom: 1.25rem;
    list-style: none;
}

.product-description-rich-body ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.product-description-rich-body ul li::before {
    content: "\F272";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--ff-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-description-rich-body ol {
    padding-left: 0;
    margin-bottom: 1.25rem;
    counter-reset: custom-counter;
    list-style: none;
}

.product-description-rich-body ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.65;
    counter-increment: custom-counter;
}

.product-description-rich-body ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    color: var(--ff-primary);
    font-weight: 700;
}

.product-description-rich-body strong, 
.product-description-rich-body b {
    color: #1e293b;
    font-weight: 700;
}

.product-description-rich-body blockquote {
    border-left: 4px solid var(--ff-primary);
    padding: 0.5rem 1rem;
    margin: 1.25rem 0;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 0 var(--ff-radius-sm) var(--ff-radius-sm) 0;
    color: #475569;
    font-style: italic;
}

.product-detail-no-desc {
    background: #fffbeb;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.product-detail-no-desc i {
    font-size: 1.4rem;
    color: #d97706;
}

/* === Selected Store Badge === */
.ff-selected-store {
    display: none;
    align-items: center;
    gap: 0.35rem;
    background: var(--ff-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Toast Notification === */
@keyframes ffSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes ffFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ffSlideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes ffPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: ffPulse 2s infinite;
}

/* === No Products State === */
.ff-no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ff-text-muted);
}

.ff-no-products i {
    font-size: 4rem;
    color: var(--ff-text-light);
    margin-bottom: 1rem;
    display: block;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .ff-main {
        padding: 1rem;
    }

    .ff-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .ff-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: calc(var(--ff-bottom-nav-height) + 24px);
    }

    .ff-header-actions select,
    .ff-custom-dropdown {
        display: none;
    }

    .ff-btn-orders {
        display: none;
    }

    .ff-selected-store {
        display: inline-flex;
    }

    .ff-category-card {
        min-width: 85px;
        padding: 0.75rem 0.5rem;
    }

    .ff-category-card-img,
    .ff-category-card-placeholder {
        width: 48px;
        height: 48px;
    }

    .ff-category-card-img {
        padding: 4px;
        object-fit: contain;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    :root {
        --ff-header-height: 70px;
    }

    .ff-header {
        padding: 0 1rem;
    }

    .ff-header-search {
        display: none;
    }

    .ff-header-inner {
        gap: 0.75rem;
    }

    .ff-store-name {
        font-size: 1rem;
    }

    .ff-logo {
        height: 48px;
        width: auto;
        max-width: 140px;
    }

    .ff-header-actions {
        margin-left: auto;
    }

    .ff-hero-banner {
        padding: 1.25rem 1.5rem;
        margin-bottom: 1rem;
        border-radius: var(--ff-radius-md);
    }

    .ff-hero-banner p {
        font-size: 0.9rem;
    }

    .ff-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .ff-product-img,
    .ff-product-placeholder {
        height: 160px;
    }

    .ff-product-body {
        padding: 1.25rem 0.75rem 0.75rem;
    }

    .ff-product-name {
        font-size: 0.8rem;
    }

    .ff-product-price .price-current {
        font-size: 1rem;
    }

    .ff-product-price .price-old {
        font-size: 0.7rem;
    }

    .ff-add-btn {
        width: auto;
        height: 28px;
        top: -14px;
        right: 8px;
        font-size: 0.65rem;
        border-width: 1.5px;
        border-radius: 14px;
        padding: 0 0.6rem;
        gap: 0.2rem;
    }

    .ff-qty-inline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ff-qty-selector {
        height: 32px;
    }

    .ff-qty-btn {
        width: 32px;
    }

    .ff-qty-input {
        width: 36px;
    }

    .ff-btn-buy {
        width: 100%;
        height: auto;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .ff-section-title {
        font-size: 1.15rem;
    }

    .ff-banner-section {
        border-radius: var(--ff-radius-sm);
        margin-bottom: 1rem;
    }

    .ff-banner-img {
        aspect-ratio: auto;
        height: auto;
    }

    .ff-categories-section {
        margin-bottom: 1.25rem;
    }

    .ff-categories-header h3 {
        font-size: 1.05rem;
    }

    .ff-categories-grid {
        gap: 0.8rem;
        padding: 1rem 0.75rem;
    }

    .ff-category-card {
        min-width: 72px;
    }

    .ff-category-card-img,
    .ff-category-card-placeholder {
        width: 52px;
        height: 52px;
    }

    .ff-category-card-img {
        padding: 5px;
        object-fit: contain;
    }
    
    .ff-category-card-img, .ff-category-card-placeholder {
        font-size: 1.15rem;
    }

    .ff-category-card-name {
        font-size: 0.72rem;
        max-width: 70px;
    }

    .product-detail-info {
        padding-left: 0;
        margin-top: 1.5rem;
    }

    .product-detail-name {
        font-size: 1.25rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    #produtoModalBody {
        padding: 1.25rem 1rem;
    }

    .product-detail-image-wrapper {
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .product-detail-image,
    .product-detail-placeholder {
        height: 100%;
        width: 100%;
        padding: 0.5rem;
    }

    /* Cart panel: full width slide-up on mobile */
    .ff-cart-panel {
        width: 100%;
        top: auto;
        bottom: 0;
        height: 88vh;
        border-radius: var(--ff-radius-xl) var(--ff-radius-xl) 0 0;
        transform: translateY(100%);
    }

    .ff-cart-panel.open {
        transform: translateY(0);
    }
}

/* Very small screens (below 480px) */
@media (max-width: 480px) {
    .ff-products-grid {
        gap: 0.5rem;
    }

    .ff-product-img {
        height: 140px;
        padding: 0.3rem;
    }

    .ff-product-placeholder {
        height: 140px;
    }

    .ff-product-body {
        padding: 1.1rem 0.6rem 0.6rem;
    }

    .ff-product-name {
        font-size: 0.75rem;
    }

    .ff-product-price .price-current {
        font-size: 0.9rem;
    }

    .ff-product-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .ff-add-btn {
        width: auto;
        height: 26px;
        top: -13px;
        right: 6px;
        font-size: 0.6rem;
        border-radius: 12px;
        padding: 0 0.5rem;
        gap: 0.15rem;
    }

    .ff-category-chips {
        padding: 0.5rem 0.75rem;
        gap: 0.35rem;
    }

    .ff-chip {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ==========================================================================
   CATALOG FOOTER PREMIUM STYLING
   ========================================================================== */
.ff-footer-wrapper {
    margin-top: 4rem;
    font-family: 'Rubik', sans-serif;
}

/* Newsletter Section */
.ff-footer-newsletter {
    background: var(--ff-gradient-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.ff-footer-newsletter::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 250px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' opacity='0.08'%3E%3Cpath fill='%25232d3748' d='M50,0 C60,20 80,30 100,50 C80,70 60,80 50,100 C40,80 20,70 0,50 C20,30 40,20 50,0'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.ff-newsletter-icon-box {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-primary);
    font-size: 1.6rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.ff-newsletter-title {
    font-weight: 600;
    color: #2d3748;
}

.ff-newsletter-btn {
    background: var(--ff-primary);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ff-newsletter-btn:hover {
    background: var(--ff-primary-dark);
    transform: translateX(3px);
    color: white;
}

/* Main Footer */
.ff-footer-main {
    background: color-mix(in srgb, var(--ff-primary) 12%, #141b17 88%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ff-footer-main h6 {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.ff-footer-desc {
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* Social Media Buttons */
.ff-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ff-social-btn:hover {
    background: var(--ff-primary);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Link groups */
.ff-footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    display: inline-block;
}

.ff-footer-links li a:hover {
    color: white !important;
    transform: translateX(4px);
}

.ff-all-products-link {
    color: var(--ff-primary) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ff-all-products-link:hover {
    color: white !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Customer Support & Contact */
.ff-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ff-tracking-link {
    color: var(--ff-primary) !important;
    font-weight: 600;
}

.ff-tracking-link:hover {
    text-decoration: underline !important;
    color: white !important;
}

.ff-footer-bottom {
    background: color-mix(in srgb, var(--ff-primary) 12%, #0e1311 88%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Payment Icons & Security Seals */
.ff-payment-icon {
    width: 44px;
    height: 28px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ff-payment-icon img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.ff-security-badge {
    transition: all 0.3s ease;
}

.ff-security-badge:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Micro-animations & utilities */
.text-primary-light {
    color: #a78bfa;
}

.fs-xs {
    font-size: 0.78rem;
}

.fs-xxs {
    font-size: 0.68rem;
}

.lh-1 {
    line-height: 1;
}

.uppercase {
    text-transform: uppercase;
}

.break-word {
    word-break: break-all;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.text-pulse {
    animation: pulse 1.5s infinite;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ff-footer-links li a:hover {
        transform: none;
    }
    
    .ff-payment-icons {
        justify-content: center;
    }
}

/* ==========================================================================
   PRODUTOS EM DESTAQUE (FEATURED PRODUCTS)
   ========================================================================== */
.ff-highlights-section {
    background: color-mix(in srgb, var(--ff-highlight, #f59e0b) 5%, transparent);
    padding: 1.5rem;
    border-radius: var(--ff-radius-lg);
    border: 1px dashed color-mix(in srgb, var(--ff-highlight, #f59e0b) 35%, transparent);
    margin-bottom: 2rem;
}

.ff-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.ff-product-card.featured {
    border-color: color-mix(in srgb, var(--ff-highlight, #f59e0b) 45%, transparent) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ff-product-card.featured:hover {
    border-color: var(--ff-highlight, #f59e0b) !important;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--ff-highlight, #f59e0b) 18%, transparent);
}

.ff-product-card.featured .ff-product-badge {
    background: var(--ff-highlight, #f59e0b) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ff-highlight, #f59e0b) 40%, transparent);
    color: var(--ff-highlight-text, #ffffff) !important;
}

/* Responsividade da Grade de Destaques */
@media (max-width: 991px) {
    .ff-highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .ff-highlights-section {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .ff-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .ff-highlights-section {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ff-highlights-grid {
        gap: 0.5rem;
    }
    .ff-highlights-section {
        padding: 0.5rem;
    }
}

