/* ==========================================================
   HOMEPAGE PRODUCT SLIDERS (Top Handpicked, New Arrivals, …)
   Scoped to .rk-ps so shop and product pages keep their own cards.
   ========================================================== */

.product-slider-section.rk-ps {
    padding-block: 72px 64px;
    background: var(--rk-ps-bg, #ffffff);
}

.rk-ps + .rk-ps {
    border-top: 1px solid rgba(84, 11, 20, 0.06);
}

/* ---------- Header ---------- */
.rk-ps__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.rk-ps__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.rk-ps__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold-deep, #a77b2f);
}

.rk-ps__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.rk-ps__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--color-maroon, #540b14);
}

.rk-ps__sub {
    margin: 2px 0 0;
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #6f625b;
}

.rk-ps__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.rk-ps__arrow {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(84, 11, 20, 0.18);
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-maroon, #540b14);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rk-ps__arrow:hover {
    background: var(--color-maroon, #540b14);
    border-color: var(--color-maroon, #540b14);
    color: #ffffff;
    transform: translateY(-1px);
}

.rk-ps__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin-left: 6px;
    padding: 0 18px 0 20px;
    border-radius: 999px;
    background: var(--color-maroon, #540b14);
    font-family: var(--font-label);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.25s ease, gap 0.25s ease;
}

.rk-ps__all:hover {
    background: #3d0710;
    color: #ffffff;
    gap: 11px;
}

.rk-ps__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 10.5px;
    letter-spacing: 0;
    color: var(--color-gold-bright, #f1d38a);
}

.rk-ps__arrow:focus-visible,
.rk-ps__all:focus-visible,
.rk-pcard__title a:focus-visible,
.rk-pcard__wish:focus-visible,
.rk-pcard__cart:focus-visible {
    outline: 2px solid var(--color-gold-deep, #a77b2f);
    outline-offset: 3px;
}

/* ---------- Slider ---------- */
.rk-ps .product-slider-swiper {
    margin: 0 -6px;
    padding: 6px 6px 4px;
}

.rk-ps .swiper-slide {
    height: auto;
}

.rk-ps__progress {
    position: relative;
    height: 3px;
    margin-top: 28px;
    border-radius: 3px;
    background: rgba(84, 11, 20, 0.1);
    overflow: hidden;
}

.rk-ps__progress .swiper-pagination-progressbar-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-maroon, #540b14), var(--color-gold-deep, #a77b2f));
    transform-origin: left center;
}

/* ---------- Card ---------- */
.rk-pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(84, 11, 20, 0.08);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.rk-pcard:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 123, 47, 0.35);
    box-shadow: 0 18px 38px rgba(64, 20, 24, 0.12);
}

.rk-pcard__media {
    position: relative;
    aspect-ratio: 2 / 3;
    background: #f5efe6;
    overflow: hidden;
}

.rk-pcard__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.rk-pcard__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-pcard:hover .rk-pcard__img {
    transform: scale(1.05);
}

.rk-pcard__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(84, 11, 20, 0.92);
    font-family: var(--font-label);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold-bright, #f1d38a);
}

.rk-pcard__wish {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-maroon, #540b14);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease;
}

.rk-pcard__wish:hover {
    transform: scale(1.08);
}

.rk-pcard__wish.is-active {
    color: #c8102e;
}

.rk-pcard__wish.is-active svg {
    fill: currentColor;
}

.rk-pcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.rk-pcard__cat {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold-deep, #a77b2f);
}

.rk-pcard__title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    min-height: 2.9em;
}

.rk-pcard__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2b1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rk-pcard__title a:hover {
    color: var(--color-maroon, #540b14);
}

.rk-pcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(84, 11, 20, 0.12);
}

.rk-pcard__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.rk-pcard__price strong {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-maroon, #540b14);
}

.rk-pcard__price s {
    font-size: 12.5px;
    color: #9a8f88;
}

/* Narrow cards switch the cart button to icon-only (see the container query) */
.rk-pcard__body {
    container-type: inline-size;
}

.rk-pcard__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    height: 38px;
    padding: 0 15px 0 12px;
    border: 1px solid rgba(207, 167, 90, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, #6e1222 0%, #540b14 55%, #3d0710 100%);
    font-family: var(--font-label);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-gold-bright, #f1d38a);
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(84, 11, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.3s ease;
}

/* Soft shine that sweeps across on hover */
.rk-pcard__cart::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.rk-pcard__cart-icon {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.rk-pcard__cart span {
    position: relative;
    top: 0.5px;
}

.rk-pcard__cart:hover {
    border-color: var(--color-gold, #cfa75a);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(84, 11, 20, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.rk-pcard__cart:hover::after {
    left: 120%;
}

.rk-pcard__cart:hover .rk-pcard__cart-icon {
    transform: rotate(-8deg) scale(1.08);
}

.rk-pcard__cart:active {
    transform: translateY(0) scale(0.97);
}

.rk-pcard__cart.is-added {
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #3b8150, #2f6b3f);
    color: #ffffff;
}

.rk-pcard__cart.is-added .rk-pcard__cart-plus {
    opacity: 0;
}

@container (max-width: 210px) {
    .rk-pcard__cart {
        width: 38px;
        padding: 0;
    }

    .rk-pcard__cart span {
        display: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .product-slider-section.rk-ps {
        padding-block: 56px 50px;
    }

    .rk-ps__sub {
        font-size: 13.5px;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 575.98px) {
    .product-slider-section.rk-ps {
        padding-block: 44px 40px;
    }

    .rk-ps .product-slider-section__inner {
        padding-inline: 16px;
    }

    .rk-ps__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .rk-ps__eyebrow {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .rk-ps__title {
        font-size: 26px;
    }

    .rk-ps__sub {
        font-size: 13px;
    }

    .rk-ps__actions {
        width: 100%;
    }

    .rk-ps__arrow {
        display: none;
    }

    .rk-ps__all {
        height: 38px;
        margin-left: 0;
        padding: 0 14px 0 16px;
        font-size: 10.5px;
    }

    .rk-pcard {
        border-radius: 12px;
    }

    .rk-pcard:hover {
        transform: none;
    }

    .rk-pcard__badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 8.5px;
    }

    .rk-pcard__wish {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .rk-pcard__wish svg {
        width: 15px;
        height: 15px;
    }

    .rk-pcard__body {
        gap: 4px;
        padding: 10px 10px 12px;
    }

    .rk-pcard__cat {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .rk-pcard__title {
        font-size: 13px;
    }

    .rk-pcard__foot {
        padding-top: 8px;
    }

    .rk-pcard__price strong {
        font-size: 15px;
    }

    /* Icon-only cart button on small cards */
    .rk-pcard__cart {
        width: 36px;
        height: 36px;
        padding: 0;
    }

    .rk-pcard__cart span {
        display: none;
    }

    .rk-ps__progress {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rk-pcard,
    .rk-pcard__img,
    .rk-ps__arrow,
    .rk-ps__all {
        transition: none;
    }
}
