/**
 * Furniture Marketplace Theme Styles
 * eBay-inspired clean, modern design
 */

/* CSS Custom Properties - These will be overridden by inline styles in master.php for theme customization */
:root {
    --fm-primary: #191919;
    --fm-secondary: #f5af02;
    --fm-secondary-hover: #d99a00;
    --fm-accent: #f5af02;
    --fm-dark: #191919;
    --fm-light: #f7f7f7;
    --fm-gold: #f5af02;
    --fm-success: #5cb85c;
    --fm-text: #191919;
    --fm-text-secondary: #707070;
    --fm-border: #e5e5e5;
}

/* Base Styles - eBay Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: var(--fm-text);
    line-height: 1.5;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6, .display-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--fm-text);
}

/* ============================================
   TOP LOCATION BAR
   ============================================ */
.fm-location-bar {
    background: var(--fm-dark);
    padding: 8px 0;
}

.fm-location-bar .location-selector {
    cursor: pointer;
    transition: all 0.3s;
}

.fm-location-bar .location-selector:hover {
    color: var(--fm-accent) !important;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.fm-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.fm-header .logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fm-text);
    letter-spacing: -0.5px;
}

.fm-header .logo-img {
    max-height: 35px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.fm-search-wrapper {
    position: relative;
}

.fm-search-wrapper .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 10px 50px 10px 20px;
    font-size: 15px;
    transition: all 0.3s;
}

.fm-search-wrapper .form-control:focus {
    border-color: var(--fm-secondary);
    box-shadow: 0 0 0 3px rgba(245, 175, 2, 0.2);
}

.fm-search-wrapper .btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fm-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.fm-search-wrapper .btn-search:hover {
    background: var(--fm-primary);
}

/* ============================================
   NAVIGATION
   ============================================ */
.fm-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.fm-nav .nav-link {
    color: var(--fm-text);
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.fm-nav .nav-link:hover {
    background: rgba(0,0,0,0.04);
    color: var(--fm-secondary);
}

.fm-nav .nav-link.nav-offers {
    color: var(--fm-secondary) !important;
    font-weight: 600;
}

.fm-nav .nav-link.nav-offers:hover {
    color: #fff !important;
    background: var(--fm-secondary);
}

.fm-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
}

.fm-nav .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.fm-nav .dropdown-item:hover {
    background: rgba(245, 175, 2, 0.1);
    color: var(--fm-secondary);
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.fm-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--fm-primary);
    padding: 5px 15px;
    transition: all 0.3s;
}

.fm-action-btn:hover {
    color: var(--fm-secondary);
}

.fm-action-btn i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.fm-action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.fm-action-btn .badge {
    position: absolute;
    top: 0;
    right: 5px;
    background: var(--fm-secondary);
    font-size: 0.65rem;
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    text-align: center;
    line-height: 1;
    color: white;
    border-radius: 10px;
}

/* Logged in user button */
.fm-action-btn-logged {
    flex-direction: row;
    gap: 8px;
}

.fm-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--fm-secondary);
}

.fm-header-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fm-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.fm-action-btn-logged span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Login button (icon + text horizontal) */
.fm-action-btn-login {
    flex-direction: row;
    gap: 6px;
}

.fm-action-btn-login i {
    margin-bottom: 0;
}

.fm-action-btn-login span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Styled login button */
.fm-login-btn {
    transition: all 0.3s;
}

/* Login Required Modal */
.fm-login-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.fm-login-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fm-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.fm-login-modal h5 {
    color: var(--fm-text);
}

.fm-login-modal .btn-dark {
    background: var(--fm-text);
    border-color: var(--fm-text);
    padding: 10px;
    font-weight: 500;
}

.fm-login-modal .btn-dark:hover {
    background: #333;
    border-color: #333;
}

.fm-login-modal .btn-outline-dark {
    border-color: var(--fm-text);
    color: var(--fm-text);
    padding: 10px;
    font-weight: 500;
}

.fm-login-modal .btn-outline-dark:hover {
    background: var(--fm-text);
    color: #fff;
}

/* Icon-only action buttons (wishlist, cart) */
.fm-action-btn-icon {
    padding: 8px 12px;
}

.fm-action-btn-icon i {
    margin-bottom: 0;
}

/* ============================================
   LOCATION MODAL
   ============================================ */
.location-modal {
    z-index: 10000 !important;
}

.location-modal .modal-backdrop,
.modal-backdrop.show {
    z-index: 9999 !important;
}

.location-modal .modal-header {
    background: var(--fm-primary);
    color: white;
}

.location-input-group {
    position: relative;
}

.location-input-group .form-control {
    padding-right: 120px;
}

.location-input-group .btn-detect {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.saved-locations .location-item {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.saved-locations .location-item:hover {
    border-color: var(--fm-secondary);
    background: rgba(245, 175, 2, 0.08);
}

.saved-locations .location-item.active {
    border-color: var(--fm-secondary);
    background: rgba(245, 175, 2, 0.15);
}

/* ============================================
   DARK BACKGROUND TEXT COLORS
   ============================================ */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: white !important;
}

.fm-hero h1,
.fm-hero h2,
.fm-hero h3,
.fm-hero h4 {
    color: white;
}

/* ============================================
   SECTIONS
   ============================================ */
.fm-section {
    padding: 48px 0;
}

.fm-section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fm-text);
    letter-spacing: -0.3px;
}

.fm-section-subtitle {
    color: var(--fm-text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--fm-text);
    letter-spacing: -0.3px;
}

/* ============================================
   PRODUCT CARDS - eBay Style
   ============================================ */
.fm-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--fm-border);
    transition: all 0.2s;
    height: 100%;
}

.fm-product-card:hover {
    border-color: #c7c7c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fm-product-card .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.fm-product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.fm-product-card .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.fm-product-card .badge-sale {
    background: var(--fm-secondary);
}

.fm-product-card .badge-new {
    background: var(--fm-gold);
}

.fm-product-card .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.fm-product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.fm-product-card .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fm-product-card .action-btn:hover {
    background: var(--fm-secondary);
    color: white;
}

.fm-product-card .action-btn.btn-wishlist.active {
    background: #e74c3c;
    color: white;
}

.fm-product-card .action-btn.btn-wishlist.active:hover {
    background: #c0392b;
}

.fm-product-card .product-info {
    padding: 12px;
}

.fm-product-card .product-category {
    font-size: 12px;
    color: var(--fm-text-secondary);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 4px;
}

.fm-product-card .product-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--fm-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fm-product-card .product-title a {
    color: inherit;
    text-decoration: none;
}

.fm-product-card .product-title a:hover {
    color: var(--fm-secondary);
    text-decoration: underline;
}

.fm-product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.fm-product-card .price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--fm-text);
}

.fm-product-card .price-old {
    font-size: 13px;
    color: var(--fm-text-secondary);
    text-decoration: line-through;
}

.fm-product-card .product-location {
    font-size: 12px;
    color: var(--fm-text-secondary);
}

.fm-product-card .product-location i {
    color: var(--fm-secondary);
}

.fm-product-card .btn-add-cart {
    width: 100%;
    background: var(--fm-primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.fm-product-card .btn-add-cart:hover {
    background: var(--fm-secondary);
}

/* ============================================
   ROOM CARDS
   ============================================ */
.fm-room-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
}

.fm-room-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.fm-room-card:hover img {
    transform: scale(1.1);
}

.fm-room-card .room-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.fm-room-card .room-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* ============================================
   STORE CARDS
   ============================================ */
.fm-store-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.fm-store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.fm-store-card .store-distance {
    background: var(--fm-accent);
    color: var(--fm-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.fm-hero {
    position: relative;
}

.fm-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.min-vh-50 {
    min-height: 50vh;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.fm-feature-card .feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.fm-feature-card .feature-icon i {
    font-size: 1.5rem;
    color: var(--fm-secondary);
}

.fm-feature-card h5 {
    color: var(--fm-primary);
}

/* ============================================
   PROMO CARDS
   ============================================ */
.fm-promo-card {
    min-height: 280px;
    display: flex;
    align-items: center;
}

/* ============================================
   FOOTER - eBay Style
   ============================================ */
.fm-footer {
    background: #f7f7f7;
    color: var(--fm-text);
    padding-top: 48px;
    border-top: 1px solid var(--fm-border);
}

.fm-footer h5 {
    color: var(--fm-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.fm-footer a {
    color: var(--fm-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.fm-footer a:hover {
    color: var(--fm-secondary);
    text-decoration: underline;
}

.fm-footer-bottom {
    background: #e5e5e5;
    padding: 16px 0;
    margin-top: 40px;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.fm-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

@media (max-width: 991px) {
    .fm-mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

.fm-mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.7rem;
}

.fm-mobile-nav a.active {
    color: var(--fm-secondary);
}

.fm-mobile-nav a i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

/* ============================================
   MOBILE SEARCH (scrolls with page)
   ============================================ */
.fm-mobile-search-sticky {
    position: relative;
    background: white;
}

/* Header logo section - sticky on all devices */
.fm-header-logo {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: white;
}

/* Hide mobile search on desktop */
@media (min-width: 992px) {
    .fm-mobile-search-sticky {
        display: none;
    }
}

/* ============================================
   BUTTONS - eBay Style
   ============================================ */
.btn-fm-primary {
    background: var(--fm-secondary);
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-fm-primary:hover {
    background: var(--fm-secondary-hover);
    color: white;
}

.btn-fm-secondary {
    background: var(--fm-secondary);
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-fm-secondary:hover {
    background: var(--fm-secondary-hover);
    color: white;
}

.btn-fm-outline {
    background: transparent;
    color: var(--fm-text);
    border: 1px solid var(--fm-text);
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-fm-outline:hover {
    background: var(--fm-text);
    color: white;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.fm-auth-section {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
}

.fm-auth-card {
    border: 1px solid rgba(0,0,0,0.08);
}

.fm-auth-card .form-control:focus,
.fm-auth-card .input-group-text {
    border-color: #e0e0e0;
}

.fm-auth-card .form-control:focus {
    box-shadow: none;
    border-color: var(--fm-secondary);
}

.fm-auth-card .form-control:focus + .input-group-text,
.fm-auth-card .input-group-text:has(+ .form-control:focus) {
    border-color: var(--fm-secondary);
}

/* ============================================
   ACCOUNT PAGES
   ============================================ */
.fm-account-section {
    min-height: calc(100vh - 300px);
}

.fm-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.fm-account-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.fm-account-nav .nav-link i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
    color: var(--fm-secondary);
}

.fm-account-nav .nav-link:hover,
.fm-account-nav .nav-link.active {
    background: rgba(139, 69, 19, 0.1);
    color: var(--fm-secondary);
}

.fm-stat-card .fm-stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.fm-stat-card .fm-stat-icon i {
    font-size: 1.5rem;
    color: var(--fm-secondary);
}

.fm-stat-card h4 {
    color: var(--fm-primary);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 767px) {
    .fm-section {
        padding: 40px 0;
    }

    .fm-section-title {
        font-size: 1.5rem;
    }

    .fm-room-card {
        height: 180px;
    }

    .fm-hero .display-4 {
        font-size: 1.75rem;
    }

    /* Compact header logo row on mobile */
    .fm-header-logo .container.py-3 {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .fm-header-logo .logo-img {
        max-height: 35px;
        width: auto;
    }

    .fm-header-logo .logo-text {
        font-size: 1rem;
    }

    .fm-header-logo .fm-hamburger-btn {
        padding: 6px;
    }

    .fm-header-logo .fm-action-btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .fm-login-btn {
        border: 1.5px solid var(--fm-text);
        border-radius: 50px;
        padding: 4px 12px !important;
        font-size: 0.8rem;
    }

    .fm-login-btn i {
        font-size: 0.75rem;
    }

    .fm-login-btn span {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .fm-product-card .product-info {
        padding: 15px;
    }

    .fm-product-card .product-title {
        font-size: 0.9rem;
    }

    .fm-product-card .price-current {
        font-size: 1.1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.fm-product-page {
    padding: 30px 0;
}

.fm-product-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 576px) {
    .fm-product-container {
        padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }
}

@media (max-width: 1399.98px) {
    .fm-product-container {
        max-width: 1140px;
    }
}

@media (max-width: 1199.98px) {
    .fm-product-container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .fm-product-container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .fm-product-container {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    .fm-product-container {
        max-width: 100%;
    }
}

.fm-product-main {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.fm-product-left {
    flex: 1;
    max-width: 55%;
}

.fm-product-right {
    flex: 1;
    max-width: 45%;
}

.fm-gallery {
    position: sticky;
    top: 100px;
}

.fm-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    position: relative;
}

.fm-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fm-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fm-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.fm-thumb:hover,
.fm-thumb.active {
    border-color: var(--fm-secondary);
}

.fm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-product-info {
    padding: 20px 0;
}

.fm-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fm-primary);
    margin-bottom: 8px;
}

/* Product Rating Summary (below title) */
.fm-product-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.fm-rating-stars {
    display: flex;
    gap: 2px;
}

.fm-rating-stars i {
    color: var(--fm-secondary);
    font-size: 1rem;
}

.fm-rating-stars i.far {
    color: #ddd;
}

.fm-rating-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fm-primary);
}

.fm-rating-count {
    color: var(--fm-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.fm-rating-count:hover {
    color: var(--fm-primary);
    text-decoration: underline;
}

.fm-rating-count.fm-no-reviews {
    color: #666;
    font-style: italic;
}

.fm-rating-count.fm-no-reviews:hover {
    color: var(--fm-secondary);
}

.fm-product-brand,
.fm-product-sku {
    color: #666;
    margin-bottom: 10px;
}

.fm-product-brand a {
    color: var(--fm-secondary);
}

.fm-price-box {
    margin: 20px 0;
    padding: 15px;
    background: #f8f5f0;
    border-radius: 8px;
}

.fm-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
}

.fm-price-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.fm-price-discount {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.fm-stock-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.fm-stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.fm-stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.fm-stock-badge.made-to-order {
    background: #e7f1ff;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
}

.fm-stock-badge.backorder {
    background: #fff3cd;
    color: #856404;
}

.fm-availability-info {
    margin-bottom: 20px;
}

.fm-lead-time {
    font-size: 0.9rem;
    color: #666;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.fm-lead-time i {
    color: #0d6efd;
}

/* Availability Section - Clean, Transparent Design */
.fm-availability-section {
    margin-bottom: 20px;
}

.fm-availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.fm-availability-status i {
    font-size: 1.1rem;
}

.fm-availability-status.in-stock {
    color: #28a745;
    font-size: 0.9rem;
}

.fm-availability-status.out-of-stock {
    color: #191919;
}

.fm-availability-status.backorder {
    color: #191919;
}

.fm-availability-status.made-to-order {
    color: #fd7e14;
}

.fm-availability-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.fm-availability-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fm-availability-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.9rem;
    padding: 6px 0;
}

.fm-availability-features li i {
    color: #0d6efd;
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}

.fm-delivery-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #191919;
    font-size: 0.95rem;
    margin-top: 10px;
}

.fm-delivery-time i {
    color: #0d6efd;
    font-size: 1rem;
}

.fm-ready-to-deliver {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 4px;
}

.fm-ready-to-deliver i {
    color: #6c757d;
    font-size: 0.9rem;
}

.fm-contact-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 4px;
}

.fm-contact-seller i {
    color: #6c757d;
    font-size: 0.95rem;
}

.fm-whatsapp-link,
.fm-whatsapp-link:hover,
.fm-whatsapp-link:focus,
.fm-whatsapp-link:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    font-size: 0.9rem;
    text-decoration: none !important;
    margin-top: 4px;
    transition: color 0.2s;
}

.fm-whatsapp-link:hover {
    color: #128C7E;
}

.fm-whatsapp-link i {
    font-size: 1.1rem;
}

.fm-short-desc {
    color: #555;
    line-height: 1.7;
    margin: 20px 0;
}

.fm-qty-wrapper {
    margin: 20px 0;
}

.fm-qty-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.fm-qty-input {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.fm-qty-input button,
.fm-qty-input .qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.fm-qty-input button:hover,
.fm-qty-input .qty-btn:hover {
    background: var(--fm-secondary);
    color: #fff;
}

.fm-qty-input button:active,
.fm-qty-input .qty-btn:active {
    transform: scale(0.95);
}

.fm-qty-input input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}

.fm-qty-input input::-webkit-outer-spin-button,
.fm-qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fm-btn-add-cart {
    width: 100%;
    background: var(--fm-secondary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.fm-btn-add-cart:hover {
    background: var(--fm-primary);
}

/* Product Page Actions Row */
.fm-product-actions-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-top: 15px;
}

.fm-product-actions-row .fm-btn-add-cart {
    flex: 1;
    margin-top: 0;
}

.fm-btn-wishlist {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-btn-wishlist:hover {
    background: #fdf2f2;
    transform: scale(1.05);
}

.fm-btn-wishlist.active,
.fm-btn-wishlist.in-wishlist {
    background: #e74c3c;
    color: #fff;
}

.fm-btn-wishlist.active i,
.fm-btn-wishlist.in-wishlist i {
    font-weight: 900;
}

.fm-btn-wishlist.active i::before,
.fm-btn-wishlist.in-wishlist i::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.fm-product-categories {
    margin-top: 20px;
}

.fm-category-badge {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
}

.fm-category-badge:hover {
    background: var(--fm-secondary);
    color: white;
}

.fm-social-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fm-social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    margin-right: 8px;
    transition: all 0.3s;
}

.fm-social-share a:hover {
    background: var(--fm-secondary);
    color: white;
}

/* Seller Card */
.fm-seller-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.fm-seller-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fm-seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.fm-seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-seller-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.fm-seller-location {
    color: #666;
    font-size: 0.9rem;
}

.fm-seller-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.fm-seller-stat {
    text-align: center;
}

.fm-seller-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.fm-seller-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.fm-btn-view-store {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--fm-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.fm-btn-view-store:hover {
    background: var(--fm-secondary);
    color: white;
}

/* Description Section */
.fm-description-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* Section Header (for standalone sections like reviews) */
.fm-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.fm-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fm-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.fm-section-title i {
    color: var(--fm-secondary);
}

.fm-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: var(--fm-secondary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 14px;
    margin-left: 5px;
}

.fm-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

.fm-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
}

.fm-tab:hover {
    color: var(--fm-primary);
}

.fm-tab.active {
    color: var(--fm-secondary);
}

.fm-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fm-secondary);
}

.fm-tab-content {
    display: none;
}

.fm-tab-content.active {
    display: block;
}

.fm-description-content {
    line-height: 1.8;
    color: #444;
}

/* Tab Badge */
.fm-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--fm-secondary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 6px;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.fm-reviews-section {
    padding: 20px 0;
}

.fm-reviews-header {
    margin-bottom: 25px;
}

.fm-reviews-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fm-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-reviews-title i {
    color: var(--fm-secondary);
}

.fm-reviews-count {
    font-weight: 400;
    color: #666;
}

/* Reviews Summary */
.fm-reviews-summary {
    display: flex;
    gap: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
}

.fm-reviews-summary-left {
    text-align: center;
    min-width: 140px;
}

.fm-reviews-avg-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fm-primary);
    line-height: 1;
}

.fm-reviews-stars {
    color: var(--fm-secondary);
    font-size: 1.1rem;
    margin: 8px 0;
}

.fm-reviews-based-on {
    font-size: 0.85rem;
    color: #666;
}

.fm-reviews-summary-right {
    flex: 1;
}

.fm-reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.fm-reviews-bar-row:hover {
    background: rgba(0,0,0,0.05);
}

.fm-reviews-bar-label {
    width: 50px;
    font-size: 0.85rem;
    color: #666;
}

.fm-reviews-bar-label i {
    color: var(--fm-secondary);
    font-size: 0.75rem;
}

.fm-reviews-bar-track {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fm-reviews-bar-fill {
    height: 100%;
    background: var(--fm-secondary);
    border-radius: 4px;
    transition: width 0.3s;
}

.fm-reviews-bar-count {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
}

/* Reviews Actions */
.fm-reviews-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.fm-btn-write-review {
    background: var(--fm-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.fm-btn-write-review:hover {
    background: var(--fm-primary);
}

.fm-reviews-notice {
    color: #666;
    font-style: italic;
}

.fm-reviews-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-reviews-sort label {
    color: #666;
    font-size: 0.9rem;
}

.fm-reviews-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Review Form */
.fm-review-form-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.fm-review-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fm-review-form-header h4 {
    margin: 0;
    font-weight: 600;
}

.fm-review-form-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
}

.fm-form-group {
    margin-bottom: 20px;
}

.fm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--fm-primary);
}

.fm-form-group .required {
    color: #dc3545;
}

.fm-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.fm-form-control:focus {
    outline: none;
    border-color: var(--fm-secondary);
}

.fm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fm-form-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Rating Input */
.fm-rating-input {
    display: flex;
    gap: 5px;
}

.fm-rating-input i {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.fm-rating-input i:hover,
.fm-rating-input i.active {
    color: var(--fm-secondary);
}

/* Recommend Options */
.fm-recommend-options {
    display: flex;
    gap: 20px;
}

.fm-recommend-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fm-recommend-option input {
    display: none;
}

.fm-recommend-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s;
}

.fm-recommend-option input:checked + span {
    border-color: var(--fm-secondary);
    background: rgba(245, 175, 2, 0.1);
    color: var(--fm-secondary);
}

.fm-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.fm-btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.fm-btn-submit-review {
    background: var(--fm-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-btn-submit-review:hover {
    background: var(--fm-primary);
}

/* Reviews List */
.fm-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fm-reviews-empty {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.fm-reviews-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

/* Review Card */
.fm-review-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.fm-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.fm-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-review-avatar {
    width: 45px;
    height: 45px;
    background: var(--fm-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.fm-review-author-name {
    font-weight: 600;
    color: var(--fm-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-verified-badge {
    color: #28a745;
    font-size: 0.9rem;
}

.fm-review-date {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.fm-review-rating {
    color: var(--fm-secondary);
    font-size: 0.95rem;
}

.fm-review-rating .far {
    color: #ddd;
}

.fm-review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--fm-primary);
}

.fm-review-content {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Pros and Cons */
.fm-review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fm-review-pros,
.fm-review-cons {
    font-size: 0.9rem;
    line-height: 1.6;
}

.fm-pros-label {
    display: block;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 5px;
}

.fm-cons-label {
    display: block;
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Review Images */
.fm-review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.fm-review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.fm-review-image:hover {
    transform: scale(1.05);
}

/* Store Response */
.fm-review-response {
    background: #f0f8ff;
    border-left: 3px solid var(--fm-secondary);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
}

.fm-response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.fm-response-header i {
    color: var(--fm-secondary);
}

.fm-response-date {
    color: #888;
    margin-left: auto;
}

.fm-response-content {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Review Footer */
.fm-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.fm-review-helpful {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.fm-helpful-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.fm-helpful-btn:hover {
    border-color: var(--fm-secondary);
    color: var(--fm-secondary);
}

.fm-helpful-btn.voted {
    background: var(--fm-secondary);
    border-color: var(--fm-secondary);
    color: white;
}

.fm-review-recommend {
    color: #28a745;
    font-size: 0.9rem;
}

/* Load More */
.fm-reviews-load-more {
    text-align: center;
    margin-top: 20px;
}

.fm-btn-load-more {
    background: white;
    border: 2px solid var(--fm-secondary);
    color: var(--fm-secondary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fm-btn-load-more:hover {
    background: var(--fm-secondary);
    color: white;
}

/* Review Image Modal */
.fm-review-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.fm-review-image-modal.active {
    display: flex;
}

.fm-review-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fm-review-image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.fm-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Reviews Responsive */
@media (max-width: 768px) {
    .fm-reviews-summary {
        flex-direction: column;
        gap: 20px;
    }

    .fm-reviews-summary-left {
        min-width: auto;
    }

    .fm-reviews-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fm-form-row {
        grid-template-columns: 1fr;
    }

    .fm-review-pros-cons {
        grid-template-columns: 1fr;
    }

    .fm-review-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Related Products */
.fm-related-section {
    margin-top: 40px;
}

.fm-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--fm-primary);
}

/* Product Page Responsive */
@media (max-width: 992px) {
    .fm-product-main {
        flex-direction: column;
        gap: 10px;
    }

    .fm-product-left,
    .fm-product-right {
        max-width: 100%;
    }

    .fm-gallery {
        position: static;
    }
}

@media (max-width: 576px) {
    .fm-header-logo {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .has-fixed-header .fm-main-content {
        padding-top: 50px;
    }

    .fm-product-page {
        padding-top: 0px;
    }

    .fm-product-container {
        padding: 0 12px;
    }

    .fm-main-image {
        border-radius: 0;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }

    .fm-product-title {
        font-size: 1.4rem;
    }

    .fm-price-current {
        font-size: 1.4rem;
    }
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */
.fm-hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
    gap: 5px;
}

.fm-hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.fm-hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--fm-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.fm-hamburger-btn.active .fm-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.fm-hamburger-btn.active .fm-hamburger-line:nth-child(2) {
    opacity: 0;
}

.fm-hamburger-btn.active .fm-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   LATERAL MENU OVERLAY
   ============================================ */
.fm-lateral-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.fm-lateral-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   LATERAL MENU
   ============================================ */
.fm-lateral-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    overflow: hidden;
}

.fm-lateral-menu.active {
    left: 0;
}

@media (max-width: 360px) {
    .fm-lateral-menu {
        width: 280px;
        left: -280px;
    }
}

/* Lateral Menu Header */
.fm-lateral-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--fm-primary);
    color: white;
    flex-shrink: 0;
}

.fm-lateral-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.fm-lateral-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--fm-secondary);
}

.fm-lateral-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--fm-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.fm-lateral-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fm-lateral-greeting {
    font-weight: 600;
    font-size: 1rem;
}

.fm-lateral-profile-link {
    font-size: 0.85rem;
    color: var(--fm-secondary);
    text-decoration: none;
}

.fm-lateral-profile-link:hover {
    text-decoration: underline;
}

.fm-lateral-auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.fm-lateral-auth-links a {
    color: var(--fm-secondary);
    text-decoration: none;
}

.fm-lateral-auth-links a:hover {
    text-decoration: underline;
}

.fm-lateral-auth-links span {
    color: rgba(255, 255, 255, 0.5);
}

.fm-lateral-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.fm-lateral-close:hover {
    opacity: 1;
}

/* Lateral Menu Body */
.fm-lateral-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.fm-lateral-section {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.fm-lateral-section:last-child {
    border-bottom: none;
}

.fm-lateral-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fm-text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-lateral-section-title i {
    color: var(--fm-secondary);
    font-size: 0.85rem;
}

/* Location Button in Lateral Menu */
.fm-lateral-location-section {
    padding: 10px 15px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.fm-lateral-location-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fm-lateral-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

.fm-lateral-location-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f5af02 0%, #f8c344 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fm-lateral-location-icon i {
    font-size: 1.3rem;
    color: #ffffff;
}

.fm-lateral-location-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fm-lateral-location-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fm-text-secondary);
}

.fm-lateral-location-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-text);
    line-height: 1.2;
}

.fm-lateral-location-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.fm-lateral-location-arrow i {
    font-size: 1rem;
    color: var(--fm-secondary);
    transition: transform 0.3s ease;
}

.fm-lateral-location-btn:hover .fm-lateral-location-arrow i {
    transform: translateX(3px);
}

.fm-lateral-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-lateral-nav li {
    margin-bottom: 2px;
}

.fm-lateral-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--fm-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.fm-lateral-nav a:hover {
    background: rgba(245, 175, 2, 0.1);
    color: var(--fm-secondary);
}

.fm-lateral-nav a i {
    width: 20px;
    text-align: center;
    color: var(--fm-text-secondary);
    font-size: 0.9rem;
}

.fm-lateral-nav a:hover i {
    color: var(--fm-secondary);
}

.fm-lateral-offers {
    color: var(--fm-secondary) !important;
    font-weight: 600;
}

.fm-lateral-offers i {
    color: var(--fm-secondary) !important;
}

/* Category Tree - Parent/Child Structure */
.fm-category-parent {
    position: relative;
}

.fm-category-parent.has-children > .fm-parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fm-category-parent .fm-parent-link span {
    flex: 1;
}

.fm-category-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    color: var(--fm-text-secondary);
}

.fm-category-parent.expanded .fm-category-arrow {
    transform: rotate(180deg);
}

.fm-category-children {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 8px 8px;
}

.fm-category-parent.expanded .fm-category-children {
    max-height: 500px;
    padding: 5px 0;
}

.fm-category-children li {
    margin: 0;
}

.fm-category-children a {
    padding: 10px 15px 10px 45px;
    font-size: 0.9rem;
    color: var(--fm-text-secondary);
    border-radius: 0;
}

.fm-category-children a:hover {
    background: rgba(245, 175, 2, 0.15);
    color: var(--fm-secondary);
    padding-left: 50px;
}

.fm-category-children a i {
    font-size: 0.8rem;
}

/* Lateral Menu Footer */
.fm-lateral-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f8f8;
    flex-shrink: 0;
}

.fm-lateral-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.fm-lateral-logout:hover {
    background: #dc3545;
    color: white;
}

/* Body scroll lock when menu is open */
body.fm-menu-open {
    overflow: hidden;
}

/* ============================================
   CATALOG PAGE STYLES
   ============================================ */

/* Breadcrumb Bar */
.fm-breadcrumb-bar {
    display: none !important;
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* Hide all breadcrumbs site-wide */
.breadcrumb,
nav[aria-label="breadcrumb"] {
    display: none !important;
}

.fm-breadcrumb-bar .breadcrumb {
    font-size: 0.85rem;
}

.fm-breadcrumb-bar .breadcrumb-item a {
    color: var(--fm-text-secondary);
    text-decoration: none;
}

.fm-breadcrumb-bar .breadcrumb-item a:hover {
    color: var(--fm-secondary);
}

.fm-breadcrumb-bar .breadcrumb-item.active {
    color: var(--fm-primary);
    font-weight: 500;
}

/* Catalog Header */
.fm-catalog-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fm-catalog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-primary);
    margin-bottom: 5px;
}

.fm-catalog-title i {
    color: var(--fm-secondary);
}

.fm-catalog-count {
    color: var(--fm-text-secondary);
    font-size: 0.9rem;
}

.fm-catalog-search .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fm-catalog-search .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.fm-catalog-search .form-control:focus {
    box-shadow: none;
}

.fm-catalog-search .btn {
    border-radius: 0;
    padding: 12px 25px;
}

/* Active Filters */
.fm-active-filters {
    background: rgba(245, 175, 2, 0.08);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(245, 175, 2, 0.2);
}

.fm-filter-label {
    font-size: 0.85rem;
    color: var(--fm-text-secondary);
    font-weight: 500;
}

.fm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--fm-text);
    text-decoration: none;
    transition: all 0.2s;
}

.fm-filter-chip:hover {
    border-color: var(--fm-secondary);
    color: var(--fm-secondary);
}

.fm-filter-chip i:first-child {
    color: var(--fm-secondary);
    font-size: 0.8rem;
}

.fm-chip-remove {
    color: #999;
    cursor: pointer;
    margin-left: 4px;
}

.fm-chip-remove:hover {
    color: #dc3545;
}

.fm-chip-sale {
    background: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

.fm-clear-filters {
    font-size: 0.85rem;
    color: #dc3545;
    text-decoration: none;
    margin-left: 10px;
}

.fm-clear-filters:hover {
    text-decoration: underline;
    color: #c82333;
}

/* Filters Sidebar */
.fm-filters-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.fm-filters-header {
    padding: 18px 20px;
    background: var(--fm-primary);
    color: white;
}

.fm-filters-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.fm-filter-section {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.fm-filter-section:last-child {
    border-bottom: none;
}

.fm-filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fm-text);
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.fm-filter-title i:first-child {
    color: var(--fm-secondary);
    width: 16px;
}

.fm-filter-title span {
    flex: 1;
}

.fm-collapse-icon {
    font-size: 0.7rem;
    color: var(--fm-text-secondary);
    transition: transform 0.3s;
}

.fm-filter-title[aria-expanded="false"] .fm-collapse-icon {
    transform: rotate(-90deg);
}

/* Category Filter */
.fm-filter-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-filter-categories > li {
    margin-bottom: 2px;
}

.fm-filter-categories > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--fm-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.fm-filter-categories > li > a:hover {
    background: rgba(245, 175, 2, 0.1);
    color: var(--fm-secondary);
}

.fm-filter-categories > li.active > a {
    background: var(--fm-secondary);
    color: white;
}

.fm-filter-categories > li.active > a i {
    color: white;
}

.fm-filter-categories a i {
    width: 18px;
    text-align: center;
    color: var(--fm-text-secondary);
    font-size: 0.85rem;
}

.fm-filter-categories a span {
    flex: 1;
}

.fm-cat-count {
    font-size: 0.75rem;
    color: var(--fm-text-secondary);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Category Children */
.fm-filter-cat-parent.has-children > a {
    position: relative;
}

.fm-cat-arrow {
    font-size: 0.65rem;
    color: var(--fm-text-secondary);
    transition: transform 0.3s;
}

.fm-filter-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.fm-filter-cat-children.expanded {
    max-height: 500px;
}

.fm-filter-cat-parent:hover .fm-filter-cat-children,
.fm-filter-cat-parent.active .fm-filter-cat-children {
    max-height: 500px;
}

.fm-filter-cat-children li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 40px;
    color: var(--fm-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.fm-filter-cat-children li a:hover {
    color: var(--fm-secondary);
    padding-left: 45px;
}

.fm-filter-cat-children li.active a {
    color: var(--fm-secondary);
    font-weight: 600;
}

.fm-filter-cat-children li a i {
    font-size: 0.75rem;
}

/* Price Filter */
.fm-price-filter {
    padding-top: 5px;
}

.fm-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.fm-price-symbol {
    padding: 8px 10px;
    background: #eee;
    color: var(--fm-text-secondary);
    font-size: 0.85rem;
}

.fm-price-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 0.9rem;
    width: 100%;
}

.fm-price-input-group input:focus {
    outline: none;
}

.fm-price-separator {
    color: var(--fm-text-secondary);
}

/* Filter Checkbox List */
.fm-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-filter-list li {
    margin-bottom: 8px;
}

.fm-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.fm-filter-checkbox input {
    display: none;
}

.fm-checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fm-filter-checkbox input:checked + .fm-checkbox-mark {
    background: var(--fm-secondary);
    border-color: var(--fm-secondary);
}

.fm-filter-checkbox input:checked + .fm-checkbox-mark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: white;
}

.fm-checkbox-label {
    flex: 1;
    color: var(--fm-text);
}

/* Location Filter */
.fm-location-filter {
    text-align: center;
    padding: 10px 0;
}

.fm-current-location {
    font-size: 0.9rem;
    color: var(--fm-text);
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Catalog Toolbar */
.fm-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fm-mobile-filter-btn {
    position: relative;
}

.fm-filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--fm-secondary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* View Toggle */
.fm-view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.fm-view-btn {
    padding: 8px 12px;
    background: white;
    border: none;
    color: var(--fm-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.fm-view-btn:hover {
    background: #f5f5f5;
}

.fm-view-btn.active {
    background: var(--fm-primary);
    color: white;
}

/* Sort Dropdown */
.fm-sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-sort-dropdown label {
    font-size: 0.85rem;
    color: var(--fm-text-secondary);
    white-space: nowrap;
}

.fm-sort-dropdown .form-select {
    width: auto;
    min-width: 180px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Products Container */
.fm-products-container {
    position: relative;
    min-height: 300px;
}

.fm-products-grid {
    transition: opacity 0.3s;
}

.fm-products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* List View */
.fm-products-grid.list-view .fm-product-col {
    flex: 0 0 100%;
    max-width: 100%;
}

.fm-products-grid.list-view .fm-product-card {
    display: flex;
    flex-direction: row;
}

.fm-products-grid.list-view .fm-product-card .fm-product-image-wrapper {
    width: 200px;
    flex-shrink: 0;
}

/* Loading Overlay */
.fm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 10px;
}

.fm-loading-overlay.active {
    display: flex;
}

.fm-loading-spinner {
    text-align: center;
}

.fm-loading-spinner p {
    color: var(--fm-text-secondary);
    font-size: 0.9rem;
}

/* No Products */
.fm-no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.fm-no-products-icon {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.fm-no-products-icon i {
    font-size: 2.5rem;
    color: #ccc;
}

.fm-no-products h3 {
    color: var(--fm-primary);
    margin-bottom: 10px;
}

.fm-no-products p {
    color: var(--fm-text-secondary);
    margin-bottom: 25px;
}

.fm-no-products-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Load More */
.fm-load-more-wrapper {
    padding: 20px;
}

/* Pagination */
.fm-pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--fm-primary);
    border: 1px solid #ddd;
}

.fm-pagination .page-item.active .page-link {
    background: var(--fm-secondary);
    border-color: var(--fm-secondary);
    color: white;
}

.fm-pagination .page-link:hover {
    background: #f5f5f5;
    color: var(--fm-secondary);
}

/* ============================================
   MOBILE FILTER PANEL
   ============================================ */
.fm-mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.fm-mobile-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fm-mobile-filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fm-mobile-filter-panel.active {
    transform: translateY(0);
}

.fm-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.fm-mobile-filter-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--fm-primary);
}

.fm-mobile-filter-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--fm-text-secondary);
    cursor: pointer;
}

.fm-mobile-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.fm-mobile-filter-section {
    margin-bottom: 25px;
}

.fm-mobile-filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fm-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-mobile-filter-title i {
    color: var(--fm-secondary);
}

/* Mobile Categories */
.fm-mobile-filter-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-mobile-filter-categories li {
    margin-bottom: 2px;
}

.fm-mobile-filter-categories > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--fm-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
}

.fm-mobile-filter-categories > li.active > a {
    background: var(--fm-secondary);
    color: white;
}

.fm-mobile-filter-categories > li > a i {
    width: 20px;
    text-align: center;
}

.fm-mobile-cat-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 30px;
}

.fm-mobile-cat-children li a {
    display: block;
    padding: 10px 15px;
    color: var(--fm-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.fm-mobile-cat-children li.active a {
    color: var(--fm-secondary);
    font-weight: 600;
}

/* Mobile Price Filter */
.fm-mobile-price-filter .fm-price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fm-mobile-price-filter input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 100px;
}

/* Mobile Toggle Switches */
.fm-mobile-quick-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fm-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.fm-mobile-toggle input {
    display: none;
}

.fm-toggle-slider {
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.fm-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.fm-mobile-toggle input:checked + .fm-toggle-slider {
    background: var(--fm-secondary);
}

.fm-mobile-toggle input:checked + .fm-toggle-slider::after {
    transform: translateX(20px);
}

.fm-toggle-label {
    font-size: 0.95rem;
    color: var(--fm-text);
}

/* Mobile Brands */
.fm-mobile-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-mobile-brand-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.fm-mobile-brand-checkbox input {
    display: none;
}

.fm-mobile-brand-checkbox span {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.fm-mobile-brand-checkbox input:checked + span {
    background: var(--fm-secondary);
    border-color: var(--fm-secondary);
    color: white;
}

/* Mobile Filter Footer */
.fm-mobile-filter-footer {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.fm-mobile-filter-footer .btn {
    flex: 1;
    padding: 12px;
}

/* Catalog Page Responsive */
@media (max-width: 991px) {
    .fm-catalog-header {
        padding: 15px;
    }

    .fm-catalog-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .fm-catalog-search {
        margin-top: 15px;
    }

    .fm-catalog-toolbar {
        padding: 10px 15px;
    }

    .fm-sort-dropdown .form-select {
        min-width: 140px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .fm-active-filters {
        padding: 12px 15px;
    }

    .fm-filter-chip {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .fm-products-grid .fm-product-col {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Body overflow control for mobile panels */
body.fm-filters-open {
    overflow: hidden;
}

/* List View Styles for Catalog */
.fm-products-grid.view-list .fm-product-card {
    display: flex;
    flex-direction: row;
}

.fm-products-grid.view-list .fm-product-image-wrapper {
    width: 200px;
    min-width: 200px;
    border-radius: 8px 0 0 8px;
}

.fm-products-grid.view-list .fm-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fm-products-grid.view-list .fm-product-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}

.fm-products-grid.view-list .fm-product-description {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
}

.fm-products-grid.view-list .fm-product-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .fm-products-grid.view-list .fm-product-card {
        flex-direction: column;
    }

    .fm-products-grid.view-list .fm-product-image-wrapper {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }
}

/* Mobile category parent expand */
.fm-mobile-cat-parent.active > a,
.fm-mobile-cat-parent > ul.fm-mobile-cat-children {
    display: block;
}

.fm-mobile-cat-children {
    display: none;
    padding-left: 25px;
    margin-top: 5px;
}

.fm-mobile-cat-parent.expanded > .fm-mobile-cat-children {
    display: block;
}

/* Quick View Modal */
#quickViewModal .modal-content {
    border-radius: 12px;
    border: none;
}

#quickViewModal .modal-header {
    padding: 10px 15px;
}

#quickViewContent {
    min-height: 300px;
}

/* Mobile Toggle Switch */
.fm-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.fm-mobile-toggle input {
    display: none;
}

.fm-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    transition: 0.3s;
    flex-shrink: 0;
}

.fm-toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.fm-mobile-toggle input:checked + .fm-toggle-slider {
    background: var(--fm-secondary);
}

.fm-mobile-toggle input:checked + .fm-toggle-slider:before {
    transform: translateX(20px);
}

.fm-toggle-label {
    font-size: 0.95rem;
    color: #333;
}

.fm-toggle-label i {
    margin-right: 5px;
}

/* Mobile brand checkboxes */
.fm-mobile-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fm-mobile-brand-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.fm-mobile-brand-checkbox:hover {
    background: #e8e8e8;
}

.fm-mobile-brand-checkbox input:checked + span {
    color: var(--fm-secondary);
    font-weight: 600;
}

.fm-mobile-brand-checkbox input {
    display: none;
}

/* Price inputs mobile */
.fm-mobile-price-filter .fm-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-mobile-price-filter input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 100px;
}

.fm-mobile-price-filter input:focus {
    border-color: var(--fm-secondary);
    outline: none;
}

.fm-mobile-price-filter span {
    color: #999;
}

/* ============================================
   CART PANEL (Right Sliding Panel)
   ============================================ */
.fm-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

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

.fm-cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.fm-cart-panel.active {
    right: 0;
}

/* Cart Header */
.fm-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.fm-cart-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fm-text);
    display: flex;
    align-items: center;
}

.fm-cart-title .badge {
    font-size: 0.75rem;
}

.fm-cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.fm-cart-close:hover {
    background: #f5f5f5;
    color: var(--fm-text);
}

/* Cart Body */
.fm-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.fm-cart-body::-webkit-scrollbar {
    width: 8px;
}

.fm-cart-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.fm-cart-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.fm-cart-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Empty Cart State */
.fm-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.fm-cart-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.fm-cart-empty h6 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--fm-text);
}

.fm-cart-empty p {
    color: #999;
    margin-bottom: 24px;
}

/* Cart Item */
.fm-cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.fm-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.fm-cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fm-text);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fm-cart-item-name a {
    color: var(--fm-text);
    text-decoration: none;
}

.fm-cart-item-name a:hover {
    color: var(--fm-secondary);
}

.fm-cart-item-variant {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.fm-cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-secondary);
    margin-bottom: 10px;
}

/* Quantity Controls */
.fm-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.fm-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fm-qty-btn:hover {
    background: var(--fm-secondary);
    color: #fff;
}

.fm-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Cart quantity number input (inside .fm-qty-control) */
.fm-qty-control input,
.fm-qty-number {
    border: none;
    width: 45px;
    text-align: center;
    font-weight: 600;
    color: var(--fm-text);
    background: #fff;
}

.fm-qty-control input:focus,
.fm-qty-number:focus {
    outline: none;
}

.fm-cart-item-remove {
    background: none;
    border: none;
    color: #999;
    padding: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.fm-cart-item-remove:hover {
    color: #dc3545;
}

/* Cart Footer */
.fm-cart-footer {
    border-top: 2px solid #e5e5e5;
    padding: 20px 24px;
    background: #fafafa;
}

.fm-cart-summary {
    margin-bottom: 20px;
}

.fm-cart-summary .d-flex {
    font-size: 0.95rem;
}

.fm-cart-actions .btn {
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.fm-cart-actions .btn-outline-secondary {
    border: 2px solid #e0e0e0;
    color: var(--fm-text);
}

.fm-cart-actions .btn-outline-secondary:hover {
    background: var(--fm-text);
    color: #fff;
    border-color: var(--fm-text);
}

.fm-cart-actions .btn-primary {
    background: var(--fm-secondary);
    border: none;
}

.fm-cart-actions .btn-primary:hover {
    background: var(--fm-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 175, 2, 0.3);
}

/* Prevent body scroll when cart panel is open */
body.fm-cart-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .fm-cart-panel {
        width: 100%;
        right: -100%;
    }
}

/* ============================================
   SEARCH PANEL (Bottom Slide-up Panel)
   ============================================ */
.fm-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.fm-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fm-search-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
    border-radius: 20px 20px 0 0;
    min-height: 70vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transition: bottom 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

.fm-search-panel.active {
    bottom: 0;
}

/* Search Header */
.fm-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 2px solid #e5e5e5;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
}

.fm-search-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.fm-search-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--fm-text);
}

.fm-search-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.fm-search-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.fm-search-close i {
    color: var(--fm-text);
    font-size: 1.2rem;
}

/* Search Body */
.fm-search-body {
    padding: 30px 24px 40px 24px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.fm-search-body .form-label {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--fm-text);
}

.fm-search-body .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.fm-search-body .input-group-text {
    border-right: 0;
    background: white;
    padding: 12px 16px;
}

.fm-search-body .input-group-text i {
    font-size: 1.2rem;
}

.fm-search-body .form-control {
    border-left: 0;
    padding: 12px 16px;
    font-size: 1rem;
}

.fm-search-body .form-control:focus {
    border-color: var(--fm-secondary);
    box-shadow: 0 4px 12px rgba(245, 175, 2, 0.2);
}

.fm-search-body .btn-primary {
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 175, 2, 0.3);
}

.fm-popular-searches {
    margin-top: 8px;
}

.fm-popular-searches h6 {
    font-size: 0.95rem;
    margin-bottom: 16px !important;
}

.fm-popular-searches .btn {
    transition: all 0.2s;
    padding: 10px 16px;
    font-size: 0.95rem;
    border-width: 2px;
}

.fm-popular-searches .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--fm-secondary);
    color: var(--fm-secondary);
}

.fm-popular-searches .btn i {
    font-size: 0.85rem;
}

/* Prevent body scroll when search panel is open */
body.fm-search-open {
    overflow: hidden;
}

/* Mobile Nav Badge */
.fm-mobile-nav a {
    position: relative;
}

.fm-mobile-nav a .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.65rem;
    padding: 3px 6px;
    display: inline-block;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    background: var(--fm-secondary);
    color: white;
    border-radius: 10px;
}
