/* Fipell B2B theme */
:root {
    --fipell-primary: #743ca6;
    --fipell-primary-dark: #5a2b85;
    --fipell-primary-soft: #f7f3fb;
    --fipell-ink: #10101d;
    --fipell-muted: #6f6a7c;
    --fipell-page: #ffffff;
    --fipell-surface: #ffffff;
    --fipell-border: #e9e6ee;
    --fipell-border-strong: #d9d2e2;
    --fipell-success: #249653;
    --fipell-shadow: none;
    --fipell-shadow-soft: none;
}

body.storefront-page {
    background: var(--fipell-page) !important;
    color: var(--fipell-ink);
}

.fipell-shell,
.storefront-main > .container-fluid {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 2.5vw, 2.25rem);
    padding-right: clamp(1rem, 2.5vw, 2.25rem);
}

.storefront-main > .container-fluid {
    padding-top: 0 !important;
}

/* Topbar */
.fipell-topbar {
    background: #fff;
    border-bottom: 1px solid var(--fipell-border);
    font-size: .82rem;
}

.fipell-topbar-inner {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(190px, auto) 1fr auto;
    align-items: center;
    gap: 1rem;
}

.fipell-topbar-brand-area,
.fipell-topbar-contacts,
.fipell-topbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fipell-topbar-brand-area {
    min-width: max-content;
}

.fipell-topbar-brand {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none;
}

.fipell-topbar-logo {
    max-height: 38px;
    max-width: 165px;
    object-fit: contain;
}

.fipell-topbar-store-copy,
.fipell-topbar-contacts {
    display: none !important;
}

.fipell-topbar-links {
    justify-content: flex-end;
}

.fipell-topbar a,
.fipell-topbar span {
    color: var(--fipell-ink);
    text-decoration: none;
    font-weight: 650;
}

.fipell-topbar a,
.fipell-topbar-contacts > span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
}

.fipell-topbar i {
    color: var(--fipell-muted);
    font-size: .82rem;
    line-height: 1;
}

.fipell-topbar a {
    min-height: 30px;
    padding: .2rem .15rem;
    border-radius: 0;
    transition: color .18s ease;
}

.fipell-topbar a:hover {
    color: var(--fipell-primary);
}

/* Header */
.fipell-header {
    background: #fff;
    backdrop-filter: none;
    border-top: 0;
    border-bottom: 1px solid var(--fipell-border);
    box-shadow: none;
    z-index: 1030;
}

.fipell-header-main {
    background: transparent;
}

.fipell-header-grid {
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    transition: min-height .22s ease;
}

.fipell-header.is-scrolled .fipell-header-grid {
    min-height: 60px;
}

.fipell-header-left,
.fipell-header-actions {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.fipell-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: max-content;
    color: var(--fipell-ink);
    text-decoration: none;
}

.fipell-brand-scroll {
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-8px) scale(.96);
    transition: width .22s ease, max-width .22s ease, opacity .18s ease, transform .22s ease;
}

.fipell-header.is-scrolled .fipell-brand-scroll {
    width: auto;
    max-width: 165px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.fipell-brand-logo {
    max-height: 36px;
    max-width: 145px;
    object-fit: contain;
}

.fipell-brand-name {
    font-weight: 850;
    white-space: nowrap;
}

.fipell-logo-fallback {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fipell-ink);
    color: #fff;
    font-weight: 850;
}

/* Buttons */
.fipell-icon-btn,
.fipell-action-btn,
.fipell-cart-btn {
    min-height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    font-weight: 700;
    border: 1px solid var(--fipell-border);
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.fipell-icon-btn i,
.fipell-action-btn i,
.fipell-cart-btn i {
    color: currentColor;
    font-size: .9rem;
    line-height: 1;
    opacity: .72;
}

.fipell-icon-btn:hover,
.fipell-action-btn:hover,
.fipell-cart-btn:hover {
    background: var(--fipell-primary-soft);
    border-color: var(--fipell-border-strong);
}

.fipell-menu-button-primary {
    min-width: 92px;
    padding: .55rem .95rem;
    background: #fff;
    border-color: var(--fipell-border-strong);
    color: var(--fipell-ink);
    box-shadow: none;
}

.fipell-menu-button-primary:hover {
    background: var(--fipell-primary-soft);
    color: var(--fipell-primary);
}

.fipell-action-btn {
    background: #fff;
    color: var(--fipell-ink);
    padding: .5rem .85rem;
}

.fipell-quick-order {
    background: #fff;
    border-color: var(--fipell-border);
    color: var(--fipell-success);
}

.fipell-cart-btn {
    background: #fff;
    border-color: var(--fipell-border-strong);
    color: var(--fipell-ink);
    padding: .5rem .85rem;
}

.fipell-cart-btn:hover {
    color: var(--fipell-primary);
}

.fipell-cart-badge {
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--fipell-ink);
    border: 1px solid var(--fipell-border-strong);
    font-size: .68rem;
}

/* Search */
.fipell-header-search {
    width: 100%;
    max-width: 720px;
    justify-self: center;
}

.fipell-search-control {
    min-height: 46px;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.fipell-search-control .storefront-search-icon {
    color: var(--fipell-ink);
}

.fipell-search-control .storefront-search-input {
    border: 0;
    box-shadow: none;
    font-weight: 600;
}

.fipell-search-control .storefront-search-input::placeholder {
    color: #8f879c;
}

.fipell-search-submit {
    border-radius: 5px;
    background: #fff;
    color: var(--fipell-primary);
    border: 1px solid var(--fipell-border);
    margin-right: .2rem;
    padding-left: .8rem;
    padding-right: .8rem;
    font-weight: 700;
}

.fipell-search-submit:hover {
    background: var(--fipell-primary-soft);
    color: var(--fipell-primary);
}

.storefront-search-suggestions {
    max-height: min(520px, calc(100dvh - 8rem));
    border-radius: 8px;
    border: 1px solid var(--fipell-border);
    box-shadow: 0 18px 44px rgba(32, 24, 45, .12);
    overflow: hidden;
}

.fipell-header-search .storefront-search-suggest-list,
.fipell-mobile-search .storefront-search-suggest-list {
    max-height: min(408px, calc(100dvh - 15rem));
}

.fipell-header-search .storefront-search-suggestions-header,
.fipell-mobile-search .storefront-search-suggestions-header {
    background: #fff;
}

.fipell-header-search .storefront-search-suggest-all,
.fipell-mobile-search .storefront-search-suggest-all {
    background: var(--fipell-primary);
}

.fipell-header-search .storefront-search-suggest-all:hover,
.fipell-mobile-search .storefront-search-suggest-all:hover {
    background: var(--fipell-primary-dark);
}

.fipell-mobile-search {
    background: #fff;
    border-top: 1px solid var(--fipell-border);
}

/* Dropdown and menu */
.fipell-dropdown {
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
}

.fipell-dropdown .dropdown-item.active,
.fipell-dropdown .dropdown-item:active {
    background: var(--fipell-primary);
}

.fipell-category-offcanvas {
    width: min(410px, 92vw);
    border-right: 0;
    box-shadow: none;
}

.fipell-category-offcanvas .offcanvas-header {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--fipell-border);
}

.fipell-category-offcanvas .offcanvas-title {
    font-weight: 750;
    color: var(--fipell-ink);
}

.fipell-category-list .list-group-item {
    border-color: var(--fipell-border);
    padding: .75rem 1rem;
}

.fipell-category-list .list-group-item.active {
    background: var(--fipell-primary);
    border-color: var(--fipell-primary);
    color: #fff;
}

.fipell-category-block {
    background: #fff;
}

.fipell-category-link {
    color: var(--fipell-ink);
    font-weight: 700;
}

.fipell-category-link.active,
.fipell-category-link:hover {
    color: var(--fipell-primary);
}

.fipell-category-toggle {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--fipell-border);
    background: #fff;
    color: var(--fipell-primary);
}

.fipell-category-children {
    padding: .45rem 1rem .65rem 1.25rem;
    background: #fff;
}

.fipell-category-child {
    display: block;
    padding: .42rem 0;
    color: #4f4a5f;
    font-weight: 650;
}

.fipell-category-child:hover,
.fipell-category-grandchild:hover {
    color: var(--fipell-primary);
}

.fipell-category-grandchildren {
    padding-left: .85rem;
    margin-bottom: .4rem;
    border-left: 1px solid var(--fipell-border);
}

.fipell-category-grandchild {
    display: block;
    padding: .25rem 0;
    color: var(--fipell-muted);
    font-size: .92rem;
    font-weight: 550;
}

/* Home */
.fipell-home {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.25rem 0 1.5rem;
}

.fipell-home-hero {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.5rem, 3vw, 3rem);
    border: 1px solid var(--fipell-border);
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fbf9fd 62%, #f7f2fb 100%);
}

.fipell-home-hero-copy {
    max-width: 660px;
}

.fipell-home-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: .75rem;
    padding: .25rem .55rem;
    border: 1px solid var(--fipell-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--fipell-primary);
    font-size: .76rem;
    font-weight: 750;
}

.fipell-home-hero h1 {
    max-width: 640px;
    margin: 0 0 .6rem;
    color: var(--fipell-ink);
    font-size: clamp(2rem, 3.15vw, 3.2rem);
    font-weight: 900;
    line-height: 1.06;
}

.fipell-home-hero p {
    max-width: 560px;
    margin: 0 0 1.1rem;
    color: var(--fipell-muted);
    font-size: 1.05rem;
    line-height: 1.45;
}

.fipell-home-primary-btn {
    min-height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem 1rem;
    background: var(--fipell-primary);
    border: 1px solid var(--fipell-primary);
    color: #fff;
    font-weight: 750;
    box-shadow: none;
}

.fipell-home-primary-btn:hover {
    color: #fff;
    background: var(--fipell-primary-dark);
    border-color: var(--fipell-primary-dark);
}

.fipell-home-secondary-btn {
    min-height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem .95rem;
    background: #fff;
    border: 1px solid var(--fipell-border-strong);
    color: var(--fipell-success);
    font-weight: 750;
}

.fipell-home-secondary-btn:hover {
    background: #f4fbf6;
    border-color: #c8e8d3;
    color: #16723e;
}

.fipell-home-hero-panel {
    display: grid;
    min-width: 0;
    justify-self: end;
    width: min(100%, 680px);
}

.fipell-home-hero-products {
    min-height: 270px;
    display: grid;
    grid-template-columns: 1.1fr repeat(2, .78fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.fipell-home-hero-product {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .85rem;
    border: 1px solid var(--fipell-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--fipell-muted);
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(36, 24, 52, .045);
}

.fipell-home-hero-product:first-child {
    grid-row: span 2;
    padding: 1.1rem;
}

.fipell-home-hero-product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fipell-home-hero-product i {
    font-size: 1.35rem;
    opacity: .6;
}

.fipell-home-hero-stats {
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    margin-bottom: 1.1rem;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .76);
}

.fipell-home-hero-stats span {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .9rem 1rem;
    border-right: 1px solid var(--fipell-border);
}

.fipell-home-hero-stats span:last-child {
    border-right: 0;
}

.fipell-home-hero-stats strong {
    color: var(--fipell-ink);
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.1;
}

.fipell-home-hero-stats small {
    color: var(--fipell-muted);
    font-size: .8rem;
    font-weight: 650;
}

.fipell-home-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.fipell-home-action {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    background: #fff;
    color: var(--fipell-ink);
    text-align: left;
    text-decoration: none;
}

.fipell-home-action > i {
    width: 34px;
    height: 34px;
    border: 1px solid var(--fipell-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--fipell-primary);
    font-size: .95rem;
    opacity: .78;
}

.fipell-home-action:hover {
    border-color: var(--fipell-border-strong);
    color: var(--fipell-ink);
}

.fipell-home-action strong,
.fipell-home-action small {
    display: block;
}

.fipell-home-action strong {
    margin-bottom: .2rem;
    font-size: .95rem;
    font-weight: 800;
}

.fipell-home-action small {
    color: var(--fipell-muted);
    font-size: .82rem;
    font-weight: 550;
}

.fipell-home-section {
    background: transparent;
}

.fipell-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.fipell-home-section h2,
.fipell-home-section-head h2 {
    margin: 0;
    color: var(--fipell-ink);
    font-size: 1.25rem;
    font-weight: 850;
}

.fipell-home-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--fipell-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
}

.fipell-home-link:hover {
    color: var(--fipell-primary-dark);
}

.fipell-home-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
}

.fipell-home-category-card {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .6rem;
    padding: .85rem 1rem;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    background: #fff;
    color: var(--fipell-ink);
    text-align: left;
    text-decoration: none;
    font-weight: 750;
    box-shadow: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.fipell-home-category-card i {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fipell-primary-soft);
    color: var(--fipell-primary);
    font-size: .86rem;
    line-height: 1;
    flex: 0 0 auto;
    opacity: .82;
}

.fipell-home-category-card:hover {
    border-color: var(--fipell-border-strong);
    background: var(--fipell-primary-soft);
    color: var(--fipell-primary);
}

.fipell-home-category-card span {
    font-size: .9rem;
    line-height: 1.25;
}

.fipell-home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.fipell-home-product-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: .85rem;
    align-items: center;
    padding: .75rem .85rem;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    background: #fff;
    color: var(--fipell-ink);
    text-decoration: none;
    box-shadow: none;
    transition: border-color .18s ease, background .18s ease;
}

.fipell-home-product-card:hover {
    border-color: var(--fipell-border-strong);
    background: #fff;
    color: var(--fipell-ink);
}

.fipell-home-product-image {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fipell-home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fipell-home-product-image i {
    color: var(--fipell-muted);
    font-size: 1.25rem;
}

.fipell-home-product-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.fipell-home-product-copy strong {
    min-height: 2.35em;
    display: -webkit-box;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.18;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fipell-home-product-copy small {
    color: var(--fipell-muted);
    font-size: .78rem;
    font-weight: 650;
}

.fipell-home-product-copy b {
    color: var(--fipell-ink);
    font-size: .98rem;
    font-weight: 850;
}

.fipell-home-product-copy em {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--fipell-muted);
    font-size: .82rem;
    font-style: normal;
    font-weight: 700;
}

.fipell-home-product-copy em::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.fipell-home-product-copy em.is-available {
    color: var(--fipell-success);
}

.fipell-home-product-copy em.is-orderable {
    color: var(--fipell-primary);
}

.fipell-home-product-copy em.is-unavailable {
    color: #9b334a;
}

.fipell-home-empty {
    padding: 1rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--fipell-border);
    color: var(--fipell-muted);
    font-weight: 650;
}

.fipell-home-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--fipell-border);
    background: #fff;
    box-shadow: none;
}

.fipell-home-cta h2 {
    margin: 0 0 .25rem;
    color: var(--fipell-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.fipell-home-cta p {
    margin: 0;
    color: var(--fipell-muted);
    font-size: .9rem;
    font-weight: 550;
}

.fipell-home-cta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Product card fallback styling outside the custom home cards */
.fipell-home .product-listing-card {
    height: 100%;
    border: 1px solid var(--fipell-border) !important;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: var(--fipell-shadow-soft) !important;
    overflow: hidden;
}

.fipell-home .product-listing-card .btn-primary {
    background: var(--fipell-primary);
    border-color: var(--fipell-primary);
}

.fipell-home .product-listing-card .btn-outline-primary {
    color: var(--fipell-primary);
    border-color: var(--fipell-border-strong);
}

.fipell-home .product-listing-card .btn-outline-primary:hover {
    background: var(--fipell-primary);
    border-color: var(--fipell-primary);
    color: #fff;
}

/* Catalog */
.fipell-catalog-page {
    padding: 1.25rem 0 1.5rem;
}

.fipell-catalog-header,
.fipell-catalog-results {
    border: 1px solid var(--fipell-border);
    border-radius: 8px;
    background: #fff;
}

.fipell-catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.fipell-catalog-header span {
    display: block;
    margin-bottom: .35rem;
    color: var(--fipell-primary);
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.fipell-catalog-header h1 {
    margin: 0 0 .35rem;
    color: var(--fipell-ink);
    font-size: clamp(1.7rem, 2.3vw, 2.35rem);
    font-weight: 900;
}

.fipell-catalog-header p {
    max-width: 720px;
    margin: 0;
    color: var(--fipell-muted);
    font-weight: 550;
}

.fipell-catalog-header strong {
    white-space: nowrap;
    color: var(--fipell-ink);
    font-size: 1rem;
    font-weight: 850;
}

.fipell-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--fipell-border);
}

.fipell-catalog-toolbar h2 {
    margin: 0;
    color: var(--fipell-ink);
    font-size: 1.05rem;
    font-weight: 850;
}

.fipell-catalog-toolbar small {
    color: var(--fipell-muted);
    font-weight: 550;
}

.fipell-catalog-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.fipell-catalog-grid-control {
    display: inline-flex;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    overflow: hidden;
}

.fipell-catalog-grid-control button {
    min-width: 34px;
    min-height: 34px;
    border: 0;
    border-right: 1px solid var(--fipell-border);
    background: #fff;
    color: var(--fipell-muted);
    font-weight: 750;
}

.fipell-catalog-grid-control button:last-child {
    border-right: 0;
}

.fipell-catalog-grid-control button.is-active {
    background: var(--fipell-ink);
    color: #fff;
}

.fipell-catalog-controls select {
    min-height: 36px;
    min-width: 170px;
    border: 1px solid var(--fipell-border);
    border-radius: 6px;
    background: #fff;
    color: var(--fipell-ink);
    padding: .35rem .75rem;
    font-weight: 650;
}

.fipell-catalog-body {
    padding: 1rem;
}

.fipell-catalog-page .storefront-sidebar .card,
.fipell-catalog-page .product-listing-card {
    border: 1px solid var(--fipell-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

@media (max-width: 1199.98px) {
    .fipell-topbar-inner {
        grid-template-columns: 1fr auto;
    }

    .fipell-home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fipell-home-product-grid,
    .fipell-home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .fipell-topbar-inner {
        min-height: 58px;
        grid-template-columns: 1fr auto;
    }

    .fipell-header-grid {
        min-height: 70px;
        grid-template-columns: 1fr auto;
    }

    .fipell-header-actions {
        justify-content: flex-end;
    }

    .fipell-brand-scroll {
        display: none;
    }

    .fipell-brand-logo {
        max-height: 36px;
        max-width: 130px;
    }

    .fipell-home-hero {
        grid-template-columns: 1fr;
        padding-top: 1.25rem;
        padding-bottom: 1rem;
    }

    .fipell-home-hero-products {
        min-height: 230px;
    }

    .fipell-home-hero-stats {
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .fipell-home-cta {
        grid-template-columns: 1fr;
    }

    .fipell-home-cta .btn {
        justify-content: center;
    }

    .fipell-home-cta-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .storefront-main > .container-fluid {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .fipell-topbar-inner {
        display: flex;
        justify-content: space-between;
    }

    .fipell-topbar-logo {
        max-height: 36px;
        max-width: 145px;
    }

    .fipell-topbar-links {
        gap: .35rem;
    }

    .fipell-topbar-links a span {
        display: inline;
    }

    .fipell-topbar-links a {
        width: auto;
        height: 30px;
        justify-content: center;
        padding: 0 .2rem;
        background: #fff;
        border: 0;
    }

    .fipell-home {
        gap: 1.25rem;
    }

    .fipell-home-hero {
        min-height: auto;
    }

    .fipell-home-actions,
    .fipell-home-category-grid,
    .fipell-home-product-grid {
        grid-template-columns: 1fr;
    }

    .fipell-home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .fipell-home-cta-actions,
    .fipell-home-cta-actions .btn {
        width: 100%;
    }

    .fipell-catalog-header,
    .fipell-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .fipell-catalog-controls,
    .fipell-catalog-controls select {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .fipell-menu-button-primary {
        min-width: 78px;
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .fipell-icon-btn,
    .fipell-action-btn,
    .fipell-cart-btn {
        width: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .fipell-action-btn,
    .fipell-cart-btn {
        padding-left: .65rem;
        padding-right: .65rem;
    }

    .fipell-home-hero h1 {
        font-size: 2rem;
    }

    .fipell-home-hero-products {
        min-height: 185px;
        grid-template-columns: repeat(5, minmax(72px, 1fr));
        grid-template-rows: 86px;
        overflow-x: auto;
        padding-bottom: .15rem;
    }

    .fipell-home-hero-product:first-child {
        grid-row: auto;
    }

    .fipell-home-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fipell-home-hero-stats span {
        min-height: 58px;
        padding: .7rem .75rem;
        border-bottom: 0;
    }

    .fipell-home-product-card {
        grid-template-columns: 76px 1fr;
    }

    .fipell-home-product-image {
        width: 76px;
        height: 76px;
    }
}
