/* =============================================
   Fresh Mint Theme - Pharmacy Style
   Turquoise/Mint Color Palette
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fresh Mint Colors */
    --fm-primary: #00BFA5;
    --fm-primary-dark: #00897B;
    --fm-primary-darker: #00695C;
    --fm-secondary: #26A69A;
    --fm-mint: #B2DFDB;
    --fm-mint-light: #E0F2F1;
    --fm-mint-pale: #F1F8F6;

    --fm-bg: #FFFFFF;
    --fm-bg-alt: #F1F8F6;
    --fm-text: #37474F;
    --fm-text-light: #607D8B;
    --fm-text-muted: #90A4AE;

    --fm-white: #ffffff;
    --fm-gray-50: #fafafa;
    --fm-gray-100: #f5f5f5;
    --fm-gray-200: #eeeeee;
    --fm-gray-300: #e0e0e0;
    --fm-gray-400: #bdbdbd;
    --fm-gray-500: #9e9e9e;
    --fm-gray-600: #757575;
    --fm-gray-700: #616161;
    --fm-gray-800: #424242;
    --fm-gray-900: #212121;

    --fm-success: #4CAF50;
    --fm-warning: #FF9800;
    --fm-danger: #F44336;
    --fm-info: #03A9F4;

    --fm-shadow-sm: 0 1px 3px rgba(0,191,165,0.08);
    --fm-shadow: 0 2px 8px rgba(0,191,165,0.12);
    --fm-shadow-md: 0 4px 16px rgba(0,191,165,0.15);
    --fm-shadow-lg: 0 8px 32px rgba(0,191,165,0.18);

    --fm-radius-sm: 6px;
    --fm-radius: 10px;
    --fm-radius-lg: 14px;
    --fm-radius-xl: 20px;
    --fm-radius-full: 50px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    background: var(--fm-bg-alt);
    color: var(--fm-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =============================================
   Top Ribbon - Turquoise/Mint Gradient
   ============================================= */

.fm-top-ribbon {
    background: linear-gradient(90deg, var(--fm-primary) 0%, var(--fm-secondary) 50%, var(--fm-primary-dark) 100%);
    color: var(--fm-white);
    font-size: 0.8125rem;
    font-weight: 500;
    overflow: hidden;
    height: 40px;
}

.fm-ribbon-track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: fm-marquee 15s linear infinite;
    white-space: nowrap;
}

.fm-ribbon-track:hover {
    animation-play-state: paused;
}

.fm-ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 45px;
}

.fm-ribbon-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

@keyframes fm-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* =============================================
   Header Zone - Clean White with Mint Accent
   ============================================= */

.fm-header-zone {
    background: var(--fm-white);
    box-shadow: var(--fm-shadow);
    position: relative;
    z-index: 100;
}

.fm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

/* Logo */
.fm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fm-logo img {
    height: 48px;
}

.fm-logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-secondary) 100%);
    border-radius: var(--fm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-white);
}

.fm-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-primary);
}

/* Mobile Menu Toggle */
.fm-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--fm-mint-light);
    border: none;
    border-radius: var(--fm-radius);
    color: var(--fm-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.fm-mobile-toggle:hover {
    background: var(--fm-mint);
}

@media (min-width: 769px) {
    .fm-mobile-toggle {
        display: none;
    }
}

/* Mega Search Bar */
.fm-mega-search {
    flex: 1;
    max-width: 700px;
    display: flex;
    height: 50px;
    background: var(--fm-mint-light);
    border: 2px solid var(--fm-mint);
    border-radius: var(--fm-radius-full);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fm-mega-search:focus-within {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 4px rgba(0,191,165,0.15);
}

.fm-search-category-wrap {
    position: relative;
    display: none;
    border-right: 2px solid var(--fm-mint);
}

@media (min-width: 768px) {
    .fm-search-category-wrap {
        display: block;
    }
}

.fm-search-category {
    height: 100%;
    padding: 0 38px 0 18px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--fm-text);
    cursor: pointer;
    appearance: none;
    min-width: 170px;
}

.fm-search-category:focus {
    outline: none;
}

.fm-search-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--fm-text-muted);
    pointer-events: none;
}

.fm-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.fm-search-icon {
    width: 22px;
    height: 22px;
    color: var(--fm-primary);
    margin-left: 18px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.fm-mega-search:focus-within .fm-search-icon {
    transform: scale(1.1);
}

.fm-search-input {
    flex: 1;
    height: 100%;
    padding: 0 18px 0 12px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
    color: var(--fm-text);
}

.fm-search-input::placeholder {
    color: var(--fm-text-muted);
}

@media (max-width: 768px) {
    .fm-mega-search {
        display: none;
    }
}

/* Action Buttons */
.fm-action-btns {
    display: flex;
    gap: 8px;
}

.fm-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--fm-text);
    border-radius: var(--fm-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.fm-action-btn:hover {
    background: var(--fm-mint-light);
    color: var(--fm-primary);
}

.fm-action-btn svg {
    width: 24px;
    height: 24px;
}

.fm-action-label {
    font-size: 0.7rem;
    font-weight: 600;
    display: none;
}

@media (min-width: 768px) {
    .fm-action-label {
        display: block;
    }
}

.fm-search-mobile-btn {
    display: flex;
}

@media (min-width: 769px) {
    .fm-search-mobile-btn {
        display: none;
    }
}

/* Mobile Search Container */
.fm-mobile-search-container {
    display: none;
    padding: 0 15px 15px;
    background: var(--fm-white);
}

.fm-mobile-search-container.active {
    display: block;
    animation: fm-slideDown 0.3s ease;
}

@keyframes fm-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fm-mobile-search-form {
    display: flex;
    align-items: center;
    background: var(--fm-mint-light);
    border: 2px solid var(--fm-mint);
    border-radius: var(--fm-radius-full);
    padding: 0 15px;
    height: 48px;
}

.fm-mobile-search-icon {
    color: var(--fm-primary);
    flex-shrink: 0;
}

.fm-mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 1rem;
    outline: none;
    color: var(--fm-text);
}

/* Quick Nav Chips */
.fm-quick-nav {
    background: var(--fm-white);
    border-top: 1px solid var(--fm-gray-200);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fm-quick-nav::-webkit-scrollbar {
    display: none;
}

.fm-quick-nav-inner {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.fm-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--fm-mint-light);
    color: var(--fm-text);
    border-radius: var(--fm-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.fm-nav-chip:hover {
    background: var(--fm-primary);
    color: var(--fm-white);
    transform: translateY(-2px);
}

.fm-nav-chip svg {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .fm-quick-nav {
        display: none;
    }
}

/* =============================================
   Drawer Menu (from RIGHT)
   ============================================= */

.fm-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.fm-drawer-right {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: var(--fm-white);
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

.fm-drawer-right.active {
    right: 0;
}

.fm-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-secondary) 100%);
    color: var(--fm-white);
}

.fm-drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.fm-drawer-logo img {
    height: 36px;
}

.fm-drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: var(--fm-radius);
    color: var(--fm-white);
    cursor: pointer;
    transition: background 0.2s;
}

.fm-drawer-close:hover {
    background: rgba(255,255,255,0.25);
}

.fm-drawer-links {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.fm-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--fm-text);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.fm-drawer-link:hover {
    background: var(--fm-mint-light);
    border-left-color: var(--fm-primary);
    color: var(--fm-primary);
}

.fm-drawer-link svg {
    color: var(--fm-text-muted);
    transition: color 0.2s;
}

.fm-drawer-link:hover svg {
    color: var(--fm-primary);
}

.fm-drawer-divider {
    margin: 15px 20px;
    border: none;
    border-top: 1px solid var(--fm-gray-200);
}

/* Push content when drawer open */
body.fm-drawer-open {
    overflow: hidden;
}

/* =============================================
   Main Container
   ============================================= */

.fm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.fm-main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* =============================================
   Breadcrumb
   ============================================= */

.fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.875rem;
    color: var(--fm-text-muted);
    flex-wrap: wrap;
}

.fm-breadcrumb a {
    color: var(--fm-primary);
    transition: color 0.2s;
}

.fm-breadcrumb a:hover {
    color: var(--fm-primary-dark);
}

.fm-breadcrumb svg {
    color: var(--fm-gray-400);
}

/* =============================================
   Reassurance Bar
   ============================================= */

.fm-reassurance-bar {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 25px;
    margin: 20px 0 30px;
    box-shadow: var(--fm-shadow);
}

.fm-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .fm-reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fm-reassurance-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .fm-reassurance-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .fm-reassurance-icon {
        width: 40px;
        height: 40px;
    }

    .fm-reassurance-icon svg {
        width: 20px;
        height: 20px;
    }

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

    .fm-reassurance-desc {
        display: none;
    }
}

.fm-reassurance-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fm-reassurance-icon {
    width: 50px;
    height: 50px;
    background: var(--fm-mint-light);
    border-radius: var(--fm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fm-reassurance-icon svg {
    width: 26px;
    height: 26px;
    color: var(--fm-primary);
}

.fm-reassurance-text {
    display: flex;
    flex-direction: column;
}

.fm-reassurance-title {
    font-weight: 600;
    color: var(--fm-text);
    font-size: 0.95rem;
}

.fm-reassurance-desc {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
}

/* =============================================
   Products Section
   ============================================= */

.fm-products-section {
    padding: 20px 0 50px;
}

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

.fm-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 8px;
}

.fm-section-intro {
    color: var(--fm-text-light);
    font-size: 1rem;
}

/* Sort Bar */
.fm-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--fm-white);
    border-radius: var(--fm-radius);
    margin-bottom: 25px;
    box-shadow: var(--fm-shadow-sm);
}

.fm-results-count {
    font-weight: 600;
    color: var(--fm-text);
}

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

.fm-sort-select label {
    font-size: 0.875rem;
    color: var(--fm-text-muted);
}

.fm-sort-select select {
    padding: 8px 12px;
    border: 1px solid var(--fm-mint);
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    color: var(--fm-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.fm-sort-select select:focus {
    outline: none;
    border-color: var(--fm-primary);
}

/* Products Grid */
.fm-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .fm-listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fm-listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .fm-listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* =============================================
   Product Card - Fresh Mint Style
   ============================================= */

.fm-prod-card {
    position: relative;
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.fm-prod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fm-shadow-lg);
}

.fm-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fm-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--fm-gray-100);
}

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

.fm-prod-card:hover .fm-card-img img {
    transform: scale(1.08);
}

.fm-card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,191,165,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.fm-prod-card:hover .fm-card-img-overlay {
    opacity: 1;
}

.fm-badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fm-primary);
    color: var(--fm-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--fm-radius-full);
    z-index: 2;
}

.fm-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.fm-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.fm-card-stars svg {
    color: var(--fm-primary);
}

.fm-card-rating-value {
    font-size: 0.75rem;
    color: var(--fm-text-muted);
    margin-left: 5px;
}

.fm-card-summary {
    font-size: 0.8rem;
    color: var(--fm-text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fm-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}

.fm-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fm-primary);
}

.fm-card-was {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    text-decoration: line-through;
}

.fm-card-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--fm-primary);
    color: var(--fm-white);
    border: none;
    border-radius: var(--fm-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.fm-card-btn:hover {
    background: var(--fm-primary-dark);
}

@media (max-width: 480px) {
    .fm-card-body {
        padding: 12px;
    }

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

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

    .fm-card-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* =============================================
   Pagination
   ============================================= */

.fm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px 0;
}

.fm-page-info {
    font-size: 0.9rem;
    color: var(--fm-text-muted);
}

.fm-pagination-numbers {
    display: flex;
    gap: 5px;
}

.fm-pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--fm-radius);
    background: var(--fm-white);
    color: var(--fm-text);
    font-weight: 500;
    transition: all 0.2s;
}

.fm-pagination-num:hover,
.fm-pagination-num.active {
    background: var(--fm-primary);
    color: var(--fm-white);
}

/* =============================================
   Buttons
   ============================================= */

.fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--fm-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

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

.fm-btn-outline {
    background: var(--fm-white);
    color: var(--fm-primary);
    border: 2px solid var(--fm-primary);
}

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

.fm-btn-full {
    width: 100%;
}

/* =============================================
   Category Page
   ============================================= */

.fm-category-page {
    padding: 0 0 50px;
}

.fm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--fm-mint-light);
}

.fm-category-header-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 8px;
}

.fm-category-header-text p {
    color: var(--fm-text-light);
    font-size: 0.95rem;
}

.fm-category-count {
    background: var(--fm-mint-light);
    color: var(--fm-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--fm-radius-full);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .fm-category-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* Categories Grid */
.fm-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .fm-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fm-categories-grid {
        grid-template-columns: 1fr;
    }
}

.fm-category-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fm-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fm-shadow-lg);
}

.fm-category-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--fm-mint-light);
}

.fm-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.fm-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-primary);
}

.fm-category-info {
    padding: 20px;
}

.fm-category-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 8px;
}

.fm-category-info p {
    font-size: 0.9rem;
    color: var(--fm-text-light);
    margin-bottom: 12px;
}

.fm-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fm-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.fm-category-link svg {
    transition: transform 0.2s;
}

.fm-category-card:hover .fm-category-link svg {
    transform: translateX(4px);
}

/* Page Header */
.fm-page-header {
    text-align: center;
    padding: 30px 0 40px;
}

.fm-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 10px;
}

.fm-page-header p {
    color: var(--fm-text-light);
    font-size: 1.1rem;
}

/* =============================================
   Shopping/Cart Page
   ============================================= */

.fm-shopping-page {
    padding: 30px 0 60px;
    min-height: 60vh;
}

.fm-shopping-container {
    background: var(--fm-white);
    border-radius: var(--fm-radius-xl);
    box-shadow: var(--fm-shadow-md);
    padding: 60px 30px;
    text-align: center;
    max-width: 500px;
    margin: 30px auto 0;
}

.fm-shopping-icon {
    color: var(--fm-mint);
    margin-bottom: 20px;
}

.fm-shopping-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 12px;
}

.fm-shopping-container p {
    color: var(--fm-text-light);
    margin-bottom: 24px;
}

/* =============================================
   Account Page
   ============================================= */

.fm-my-page {
    padding: 30px 0 60px;
    min-height: 60vh;
}

.fm-my-container {
    max-width: 420px;
    margin: 30px auto 0;
}

.fm-my-form {
    background: var(--fm-white);
    border-radius: var(--fm-radius-xl);
    box-shadow: var(--fm-shadow-md);
    padding: 40px 30px;
    text-align: center;
}

.fm-my-icon {
    color: var(--fm-primary);
    margin-bottom: 16px;
}

.fm-my-form h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 8px;
}

.fm-my-form > p {
    color: var(--fm-text-light);
    margin-bottom: 28px;
}

.fm-my-form form {
    text-align: left;
}

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

.fm-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fm-text);
    margin-bottom: 6px;
}

.fm-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--fm-mint);
    border-radius: var(--fm-radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fm-form-group input:focus {
    outline: none;
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 4px rgba(0,191,165,0.1);
}

.fm-form-group input::placeholder {
    color: var(--fm-text-muted);
}

.fm-form-switch {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--fm-gray-200);
}

.fm-form-switch a {
    color: var(--fm-primary);
    font-weight: 500;
}

.fm-form-switch a:hover {
    text-decoration: underline;
}

/* =============================================
   Search Page
   ============================================= */

.fm-search-page {
    padding: 20px 0 50px;
}

.fm-search-header {
    margin-bottom: 30px;
}

.fm-search-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 8px;
}

.fm-search-count {
    color: var(--fm-text-light);
}

.fm-search-error,
.fm-search-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    box-shadow: var(--fm-shadow);
}

.fm-search-error svg,
.fm-search-empty svg {
    color: var(--fm-mint);
    margin-bottom: 20px;
}

.fm-search-error p,
.fm-search-empty p {
    color: var(--fm-text-light);
    margin-bottom: 20px;
}

/* =============================================
   Product Page
   ============================================= */

.fm-product-wrapper {
    padding: 0 0 50px;
}

.fm-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .fm-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.fm-product-media {
    position: sticky;
    top: 120px;
    align-self: start;
}

@media (max-width: 992px) {
    .fm-product-media {
        position: relative;
        top: 0;
    }
}

.fm-product-image-main {
    position: relative;
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow);
}

.fm-product-image-main > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    cursor: zoom-in;
    padding: 20px;
}

.fm-product-discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--fm-primary);
    color: var(--fm-white);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--fm-radius-full);
    z-index: 2;
}

.fm-product-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    flex-wrap: wrap;
}

.fm-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid var(--fm-gray-200);
    border-radius: var(--fm-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--fm-white);
    padding: 0;
}

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

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

/* Product Info */
.fm-product-info-inner {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 30px;
    box-shadow: var(--fm-shadow);
}

.fm-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-product-ref {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
}

.fm-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--fm-radius-full);
}

.fm-in-stock {
    background: var(--fm-mint-light);
    color: var(--fm-primary);
}

.fm-low-stock {
    background: #FFF3E0;
    color: #E65100;
}

.fm-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-text);
    line-height: 1.3;
    margin-bottom: 15px;
}

.fm-product-social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.fm-product-stars svg {
    color: var(--fm-primary);
}

.fm-rating-value {
    font-weight: 600;
    color: var(--fm-text);
}

.fm-separator {
    color: var(--fm-gray-400);
}

.fm-sales-info {
    color: var(--fm-text-muted);
    font-size: 0.9rem;
}

.fm-product-excerpt {
    color: var(--fm-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.fm-check {
    color: var(--fm-primary);
    font-weight: bold;
}

.fm-product-summary {
    color: var(--fm-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Pricing */
.fm-product-pricing {
    background: var(--fm-mint-light);
    border-radius: var(--fm-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.fm-pricing-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.fm-product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fm-primary);
}

.fm-product-price-old {
    font-size: 1.2rem;
    color: var(--fm-text-muted);
    text-decoration: line-through;
}

.fm-price-discount-badge {
    background: var(--fm-primary);
    color: var(--fm-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--fm-radius-full);
}

.fm-pricing-savings {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--fm-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Buy Button */
.fm-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-secondary) 100%);
    color: var(--fm-white);
    border: none;
    border-radius: var(--fm-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fm-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,191,165,0.35);
}

/* Guarantees */
.fm-product-guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 576px) {
    .fm-product-guarantees {
        grid-template-columns: 1fr;
    }
}

.fm-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--fm-bg-alt);
    border-radius: var(--fm-radius);
}

.fm-guarantee svg {
    width: 24px;
    height: 24px;
    color: var(--fm-primary);
    flex-shrink: 0;
}

.fm-guarantee strong {
    display: block;
    font-size: 0.85rem;
    color: var(--fm-text);
    margin-bottom: 2px;
}

.fm-guarantee span {
    font-size: 0.75rem;
    color: var(--fm-text-muted);
}

/* Description */
.fm-mobile-padding {
    padding: 0;
}

@media (max-width: 768px) {
    .fm-mobile-padding {
        padding: 0 15px;
    }
}

.fm-product-description {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow);
    margin-bottom: 40px;
}

.fm-description-tabs {
    display: flex;
    border-bottom: 2px solid var(--fm-mint-light);
}

.fm-description-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fm-text);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.fm-description-tab.active {
    color: var(--fm-primary);
    border-bottom-color: var(--fm-primary);
}

.fm-description-text {
    padding: 25px;
    color: var(--fm-text-light);
    line-height: 1.8;
}

.fm-description-text h2,
.fm-description-text h3 {
    color: var(--fm-text);
    margin: 20px 0 10px;
}

.fm-description-text ul,
.fm-description-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.fm-description-text li {
    margin-bottom: 8px;
}

/* Similar Products */
.fm-similar-products {
    padding: 40px 0;
}

.fm-similar-products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 25px;
}

/* Sticky CTA Mobile */
.fm-sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fm-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 90;
    padding: 12px 15px;
}

@media (max-width: 768px) {
    .fm-sticky-cta-mobile {
        display: block;
    }

    .fm-product-wrapper {
        padding-bottom: 0px;
    }
}

.fm-sticky-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.fm-sticky-cta-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--fm-radius-sm);
}

.fm-sticky-cta-info {
    flex: 1;
    min-width: 0;
}

.fm-sticky-cta-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-sticky-cta-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-primary);
}

.fm-sticky-cta-btn {
    padding: 12px 24px;
    background: var(--fm-primary);
    color: var(--fm-white);
    border: none;
    border-radius: var(--fm-radius);
    font-weight: 700;
    cursor: pointer;
}

/* Image Modal */
.fm-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fm-image-modal.show {
    display: flex;
}

.fm-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--fm-white);
    font-size: 40px;
    cursor: pointer;
}

.fm-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* =============================================
   Error/404 Page
   ============================================= */

.fm-error-page {
    text-align: center;
    padding: 80px 20px;
}

.fm-error-icon {
    color: var(--fm-mint);
    margin-bottom: 20px;
}

.fm-error-page h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--fm-primary);
    margin-bottom: 10px;
}

.fm-error-page h2 {
    font-size: 1.5rem;
    color: var(--fm-text);
    margin-bottom: 15px;
}

.fm-error-page p {
    color: var(--fm-text-light);
    margin-bottom: 30px;
}

/* =============================================
   Legal Page
   ============================================= */

.fm-legal-page {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 40px;
    margin: 20px 0 50px;
    box-shadow: var(--fm-shadow);
}

.fm-legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fm-text);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--fm-mint-light);
}

.fm-legal-content {
    color: var(--fm-text-light);
    line-height: 1.8;
}

.fm-legal-content h2 {
    color: var(--fm-text);
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.fm-legal-content p {
    margin-bottom: 15px;
}

.fm-company-info {
    margin-top: 40px;
    padding: 25px;
    background: var(--fm-mint-light);
    border-radius: var(--fm-radius);
}

.fm-company-info h2 {
    color: var(--fm-primary);
    margin-bottom: 15px;
}

.fm-company-info a {
    color: var(--fm-primary);
}

/* =============================================
   Footer - Fresh Mint Style
   ============================================= */

.fm-bottom-section {
    background: var(--fm-mint-light);
    margin-top: 50px;
    position: relative;
}

.fm-footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    color: var(--fm-mint-light);
}

.fm-footer-wave svg {
    width: 100%;
    height: 100%;
}

/* Newsletter */
.fm-subscribe-box {
    background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-secondary) 100%);
    padding: 40px 20px;
}

.fm-subscribe-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 768px) {
    .fm-subscribe-inner {
        flex-direction: column;
        text-align: center;
    }
}

.fm-subscribe-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-white);
    margin-bottom: 5px;
}

.fm-subscribe-text p {
    color: rgba(255,255,255,0.85);
}

.fm-subscribe-form {
    display: flex;
    gap: 10px;
}

.fm-subscribe-input {
    padding: 14px 20px;
    border: none;
    border-radius: var(--fm-radius-full);
    font-size: 1rem;
    width: 280px;
    max-width: 100%;
}

.fm-subscribe-input:focus {
    outline: none;
}

.fm-subscribe-btn {
    width: 50px;
    height: 50px;
    background: var(--fm-white);
    border: none;
    border-radius: 50%;
    color: var(--fm-primary);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-subscribe-btn:hover {
    transform: scale(1.1);
}

/* Footer Content */
.fm-footer-content {
    padding: 50px 20px;
}

.fm-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .fm-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fm-footer-grid {
        grid-template-columns: 1fr;
    }
}

.fm-footer-part h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fm-primary);
    margin-bottom: 20px;
}

.fm-footer-address,
.fm-footer-phone,
.fm-footer-email {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--fm-text-light);
    font-size: 0.9rem;
}

.fm-footer-address svg,
.fm-footer-phone svg,
.fm-footer-email svg {
    color: var(--fm-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.fm-footer-address a,
.fm-footer-phone a,
.fm-footer-email a {
    color: var(--fm-primary);
}

.fm-footer-desc {
    color: var(--fm-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Hours List */
.fm-hours-list {
    list-style: none;
}

.fm-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,191,165,0.2);
    font-size: 0.9rem;
}

.fm-day {
    color: var(--fm-text);
    font-weight: 500;
}

.fm-time {
    color: var(--fm-text-light);
}

/* Footer Links */
.fm-footer-links {
    list-style: none;
}

.fm-footer-links li {
    margin-bottom: 10px;
}

.fm-footer-links a {
    color: var(--fm-text-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.fm-footer-links a:hover {
    color: var(--fm-primary);
}

/* Social Row */
.fm-social-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.fm-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fm-white);
    transition: transform 0.2s;
}

.fm-social-link:hover {
    transform: scale(1.1);
}

.fm-facebook {
    background: #1877F2;
}

.fm-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.fm-twitter {
    background: #1DA1F2;
}

/* Legal Bar */
.fm-legal-bar {
    background: var(--fm-primary-dark);
    padding: 20px;
}

.fm-legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.fm-legal-bar p {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
}

.fm-payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
}

/* =============================================
   Autocomplete Dropdown
   ============================================= */

.fm-dropdown {
    display: none;
    position: absolute;
    background: var(--fm-white);
    border: 2px solid var(--fm-mint);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.fm-dropdown.show {
    display: block;
}

.autocomplete-dropdown {
    display: none;
    background: var(--fm-white);
    border: 2px solid var(--fm-mint);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--fm-gray-100);
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--fm-mint-light);
}

.autocomplete-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-gray-100);
}

.autocomplete-text {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-name strong {
    color: var(--fm-primary);
}

.autocomplete-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fm-primary);
    margin-top: 3px;
}

.autocomplete-loading,
.autocomplete-no-results,
.autocomplete-error {
    padding: 16px;
    text-align: center;
    color: var(--fm-text-muted);
    font-size: 0.9rem;
}

.autocomplete-error {
    color: var(--fm-danger);
}

/* =============================================
   No Results
   ============================================= */

.fm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--fm-text-light);
    font-size: 1.1rem;
}

/* =============================================
   Mobile Responsive Adjustments
   ============================================= */

@media (max-width: 768px) {
    .fm-container {
        padding: 0 15px;
    }

    .fm-product-wrapper .fm-container {
        padding: 0;
    }

    .fm-product-wrapper .fm-breadcrumb {
        padding: 15px;
    }

    .fm-product-info-inner {
        margin: 0;
        border-radius: 0;
    }

    .fm-product-image-main {
        border-radius: 0;
    }

    .fm-similar-products {
        padding: 30px 15px;
        background: var(--fm-white);
    }

    .fm-reassurance-bar {
        margin: 15px;
        padding: 20px;
    }

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