/* Product page footer: independent carousel + custom tiles */
#wrapper > .ift-product-footer-fullwidth,
#inner-wrapper > .ift-product-footer-fullwidth,
.ift-product-footer-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    clear: both !important;
    display: block !important;
}

#wrapper,
#main-page-content {
    overflow-x: hidden !important;
}

.ift-fc-section {
    width: 100%;
    max-width: none;
    margin-bottom: 2.75rem;
    --ift-fc-accent: #c8102e;
    --ift-fc-ink: #1a1a1a;
    --ift-fc-muted: #6b7280;
    --ift-fc-line: #e8eaed;
    --ift-fc-bg: #ffffff;
    --ift-fc-radius: 12px;
}

.ift-fc {
    width: 100%;
}

.ift-fc-head {
    margin-bottom: 1rem;
}

.ift-fc-head--category {
    margin-bottom: 1.15rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--ift-fc-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 55%, #fff5f6 100%);
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
}

.ift-fc-head__wrap {
    min-width: 0;
}

.ift-fc-head__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ift-fc-accent);
}

.ift-fc-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ift-fc-ink);
    letter-spacing: -0.02em;
}

.ift-fc-title--fancy {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.ift-fc-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    color: var(--ift-fc-accent);
    background: rgba(200, 16, 46, 0.1);
    flex-shrink: 0;
}

.ift-fc-title__text {
    background: linear-gradient(120deg, #1a1a1a 0%, #c8102e 52%, #8b0c21 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ift-fc-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
}

.ift-fc-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ift-fc-line);
    border-radius: 999px;
    background: var(--ift-fc-bg);
    color: var(--ift-fc-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    z-index: 2;
}

.ift-fc-btn:hover:not(:disabled) {
    border-color: var(--ift-fc-accent);
    color: var(--ift-fc-accent);
}

.ift-fc-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.ift-fc-viewport {
    overflow: hidden;
    touch-action: pan-y;
    min-width: 0;
    -webkit-user-select: none;
    user-select: none;
}

.ift-fc-viewport--dragging {
    cursor: grabbing;
}

.ift-fc-track,
.ift-fc-tile,
.ift-fc-tile__body,
.ift-fc-tile__title,
.ift-fc-tile__title a {
    -webkit-user-select: none;
    user-select: none;
}

.ift-fc-tile__img {
    -webkit-user-drag: none;
    user-drag: none;
}

.ift-fc-tile__media,
.ift-fc-tile__title a,
.ift-fc-tile__view {
    pointer-events: auto;
    cursor: pointer;
}

.ift-fc-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

.ift-fc-track--animate {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.ift-fc-track--dragging {
    transition: none;
}

.ift-fc-slide {
    box-sizing: border-box;
    padding: 0 6px;
}

.ift-fc-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.ift-fc-dots[hidden] {
    display: none;
}

.ift-fc-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.ift-fc-dot.is-active {
    width: 22px;
    background: var(--ift-fc-accent);
}

/* Product tile */
.ift-fc-tile {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ift-fc-bg);
    border: 1px solid var(--ift-fc-line);
    border-radius: var(--ift-fc-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ift-fc-tile:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.ift-fc-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8f9fb;
    overflow: hidden;
}

.ift-fc-tile__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    box-sizing: border-box;
    transition: transform 0.35s ease;
}

.ift-fc-tile:hover .ift-fc-tile__img {
    transform: scale(1.04);
}

.ift-fc-tile__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    color: #fff;
    background: var(--ift-fc-accent);
}

.ift-fc-tile__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.7rem 0.75rem 0.8rem;
    flex: 1;
}

.ift-fc-tile__stock {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    align-self: flex-start;
}

.ift-fc-tile__stock--available {
    color: #166534;
    background: #dcfce7;
}

.ift-fc-tile__stock--last_remaining_items {
    color: #92400e;
    background: #fef3c7;
}

.ift-fc-tile__stock--unavailable {
    color: #991b1b;
    background: #fee2e2;
}

.ift-fc-tile__brand {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ift-fc-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ift-fc-tile__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.2em;
}

.ift-fc-section--category .ift-fc-tile__title {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
    min-height: 2.4em;
}

.ift-fc-section--category .ift-fc-tile__title a {
    font-weight: 800;
}

.ift-fc-slide--separator {
    pointer-events: none;
    user-select: none;
    padding: 0 2px;
}

.ift-fc-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 100%;
    padding: 0.65rem 0.15rem;
    box-sizing: border-box;
}

.ift-fc-separator__arrows {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    line-height: 1;
}

.ift-fc-separator__arrows svg {
    width: 18px;
    height: 18px;
}

.ift-fc-separator__arrows svg + svg {
    margin-left: -0.35rem;
}

.ift-fc-separator__text {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.ift-fc-separator__lead {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.3;
    max-width: 5.25rem;
}

.ift-fc-separator__dash {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1;
}

.ift-fc-separator__name {
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 5.25rem;
}

.ift-fc-tile--parent {
    background: #fafbfc;
    border-color: #e8eaed;
    box-shadow: inset 3px 0 0 #cbd5e1;
}

.ift-fc-tile--parent .ift-fc-tile__media {
    background: #f4f5f7;
}

.ift-fc-tile--parent:hover {
    border-color: #d8dee6;
    box-shadow: inset 3px 0 0 #94a3b8, 0 8px 24px rgba(17, 24, 39, 0.06);
}

.ift-fc-tile__title a {
    color: var(--ift-fc-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ift-fc-tile__title a:hover {
    color: var(--ift-fc-accent);
}

.ift-fc-tile__ref {
    font-size: 0.68rem;
    color: var(--ift-fc-muted);
}

.ift-fc-tile__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.35rem;
}

.ift-fc-tile__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ift-fc-tile__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ift-fc-ink);
    white-space: nowrap;
}

.ift-fc-tile__price-old {
    font-size: 0.72rem;
    color: var(--ift-fc-muted);
    text-decoration: line-through;
}

.ift-fc-tile__cart-form {
    margin: 0;
    flex-shrink: 0;
}

.ift-fc-tile__cart,
.ift-fc-tile__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 52px;
    height: 32px;
    padding: 0 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--ift-fc-accent);
    background: var(--ift-fc-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ift-fc-tile__cart:hover,
.ift-fc-tile__view:hover {
    background: #a50d25;
    color: #fff;
}

.ift-fc-tile__cart.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.ift-fc-tile__cart-icon {
    font-size: 1rem;
    line-height: 1;
}

.ift-fc-section--viewed .ift-fc-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    margin-right: 0.55rem;
    border-radius: 2px;
    background: var(--ift-fc-accent);
    vertical-align: -0.1em;
}

@media (max-width: 575px) {
    .ift-fc-title {
        font-size: 1rem;
    }

    .ift-fc-title--fancy {
        font-size: 1.2rem;
    }

    .ift-fc-head--category {
        padding: 0.75rem 0.85rem;
    }

    .ift-fc-stage {
        gap: 0.2rem;
    }

    .ift-fc-btn {
        width: 34px;
        height: 34px;
    }

    .ift-fc-tile__cart-label {
        display: none;
    }

    .ift-fc-tile__cart {
        min-width: 36px;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .ift-product-footer-fullwidth {
        display: none !important;
    }
}
