/* ==============================================
   PRODUCT CARD — ARCHIVE + SHORTCODE SAFE
============================================== */

/* ARCHIVE + SHORTCODE CONTEXT */
.woocommerce ul.products li.product,
.archive ul.products li.product,
.fc-shortcode-products li.product {
    background: #ffffff;
    border: 1px solid #BEBEBE;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    height: 100%;
}

.woocommerce ul.products li.product:hover,
.archive ul.products li.product:hover,
.fc-shortcode-products li.product:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

/* ==============================================
   LINK WRAPPER (FIXED)
============================================== */

.fc-card-link {
    display: block;
    flex: unset !important;
    flex-grow: 0 !important;
    text-decoration: none;
    color: inherit;
}

/* ==============================================
   IMAGE
============================================== */

.fc-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
}

.fc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    pointer-events: none;
}

/* ==============================================
   BRAND — RESERVED SPACE
============================================== */

.fc-archive-brands {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 28px;
    align-items: center;
}

.fc-archive-brands:empty {
    visibility: hidden;
}

.fc-brand-pill {
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #BEBEBE;
    color: #141414;
    font-weight: 500;
    line-height: 22.4px;
}

/* ==============================================
   BODY
============================================== */

.fc-card-body,
.fc-archive-bottom {
    padding-left: 18px;
    padding-right: 18px;
}

.fc-card-body {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fc-archive-bottom {
    padding-bottom: 18px;
}

/* ==============================================
   TITLE
============================================== */

.fc-card-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 10px 0;
    min-height: 65px;
}

.fc-card-title-link {
    text-decoration: none;
    color: inherit;
}

/* ==============================================
   PRICE
============================================== */

.fc-card-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    line-height: 1.1;
    min-height: 30.8px;
}

.fc-card-price .woocommerce-Price-amount {
    display: inline-flex;
    align-items: flex-start;
}

.fc-card-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    margin-left: 4px;
    position: relative;
    top: -0.4em;
    opacity: 0.9;
}

/* ==============================================
   BOTTOM ROW
============================================== */

.fc-archive-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    gap: 12px;
}

/* ==============================================
   ACTIONS
============================================== */

.fc-archive-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fc-archive-cta,
.fc-archive-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-archive-wishlist > div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
fc-archive-wishlist {
    padding-bottom: 8px;
}

/* ==============================================
   ICONS
============================================== */

.fc-archive-cta a,
.fc-archive-wishlist .fw-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #BEBEBE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    background: #fff;
    color: #111;
    transition: all 0.25s ease;
}

.fc-archive-cta a:hover,
.fc-archive-wishlist .fw-button:hover {
    background: #111;
    border-color: #111;
    color: #fff;
    transform: scale(1.05);
}

.fc-archive-cta a svg,
.fc-archive-wishlist .fw-button-icon {
    display: block;
    flex: 0 0 auto;
    vertical-align: middle;
}

/* ==============================================
   WISHLIST SVG FIX
============================================== */

.fc-archive-wishlist .fw-button-icon {
    width: 20px;
    height: 20px;
}

.fc-archive-wishlist .fw-button-icon--heart::before,
.fc-archive-wishlist .fw-button-icon--heart::after {
    content: none !important;
}

.fc-archive-wishlist .fw-button-icon--heart {
    background: url("/wp-content/themes/blocksy-child/assets/icons/heart.svg") center / contain no-repeat;
}

.fc-archive-wishlist .fw-button:hover {
    color: #fff;
}

/* ==============================================
   STOCK
============================================== */

.fc-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.9;
    margin-left: auto;
}

.fc-stock-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex: 0 0 16px;
}

/* ==============================================
   STOCK COLORS
============================================== */

.fc-stock--in .fc-stock-dot {
    background: #2ecc71;
}

.fc-stock--low .fc-stock-dot {
    background: linear-gradient(0deg, #f39c12 50%, #ffffff 50%);
    border: 1px solid #f39c12;
}

.fc-stock--out .fc-stock-dot {
    background: #e74c3c;
}

/* ==============================================
   SPLIDE + TOUCH FIX
============================================== */

.splide__track {
    touch-action: pan-y;
}

.splide__slide {
    display: flex;
}

.splide__slide > * {
    width: 100%;
}

/* blokada klików podczas drag */
.fcps-slider.is-dragging a {
    pointer-events: none !important;
}

/* poprawa UX mobile */
.fc-product-card {
    -webkit-user-select: none;
    user-select: none;
}

/* lepsze zachowanie linków */
.fc-card-link,
.fc-card-title-link {
    touch-action: manipulation;
}

/* KILL SWIPER OVERLAY */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

.fw-button-text {
    display: none !important;
}

/* ==============================================
   WYRÓWNANIE KART W PIONIE — FINAL FIX
============================================== */

/* KARTA */
.fc-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* BODY ROZCIĄGA */
.fc-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* DÓŁ ZAWSZE NA DOLE */
.fc-archive-bottom {
    margin-top: auto;
}