﻿/* ============================================================
   KITCHEN LAB MALTA — product-swipers.css
   "Frequently bought together" / "Recently viewed" carousels
   on the product page (.compSwipper/.complimentery and
   .recentSwipper/.recent, both real Swiper instances wired up
   in site.js).

   Consolidated from the former products.css (card visuals) +
   the one slider-specific rule that had been left in
   product-detail-ecommerce.css by mistake.
   ============================================================ */

/* site.js's Swiper configs for these two carousels don't set
   spaceBetween (defaults to 0). Padding inside each slide instead of
   a margin, so it stays inside the slide's own box-sized width and
   doesn't throw off Swiper's slide-width math the way adding margin
   to a swiper-slide would. */
.compSwipper .swiper-slide,
.recentSwipper .swiper-slide {
    box-sizing: border-box;
    padding: 0 8px;
}

/* 1. Slides stretch to the tallest slide in the row */
.recent .swiper-slide {
    height: auto;
    display: flex;
}

/* 2. The link fills the slide */
.recent .swiper-slide > a {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 3. The card fills the link */
.recent .productDetails {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 4. The text area takes up the leftover space */
.recent .productDetails .textContainer {
    flex: 1;
}

/* ── Product card ──────────────────────────────────────────── */
.product-card {
    display: block;
    text-decoration: none;
    position: relative;
    background: var(--c-surface);
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    transform: translateY(-4px);
}

/* Image zone — tall portrait, pure white, product centred */
.product-card-img {
    position: relative;
    padding-top: 110%;
    overflow: hidden;
    background: var(--c-surface);
}

.product-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 24px;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
    /* removes the white background from product shots that have one */
    mix-blend-mode: multiply;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

/* Info zone — white background, high contrast text */
.product-card-body {
    padding: 20px 22px 22px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border-light);
}

.product-card-brand {
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-red);
    margin-bottom: 8px;
    font-weight: 500;
}

.product-card-name {
    font-family: var(--f-serif);
    font-size: 21px;
    font-weight: 400;
    color: var(--c-on-surface);
    line-height: 1.2;
    margin-bottom: 6px;
}

.product-card-sub {
    font-size: 12px;
    color: var(--c-on-surface-mid);
    letter-spacing: 0.02em;
    font-weight: 400;
    margin-bottom: 16px;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--c-border-light);
}

.product-card-cat {
    font-size: 9.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-on-surface-muted);
    font-weight: 500;
}

.product-card-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid var(--c-border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-on-surface-muted);
    font-size: 12px;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-arrow {
    border-color: var(--c-red);
    color: var(--c-red);
    transform: translate(2px,-2px);
}
