/*
 * Woo Product Slider — assets/slider.css
 * Override values via the wps_defaults filter in Code Snippets.
 */

/* ── Section ─────────────────────────────────── */
.wps-section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.wps-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
}

/* ── Outer ───────────────────────────────────── */
.wps-outer {
    position: relative;
}

/* ── Viewport ────────────────────────────────── */
.wps-viewport {
    overflow: hidden;
    padding: 4px 0 8px;
}

/* ── Track ───────────────────────────────────── */
.wps-track {
    display: flex;
    gap: var(--wps-gap, 12px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Card ────────────────────────────────────── */
.wps-card {
    flex: 0 0 calc(20% - 10px); /* overridden by JS */
    min-width: 0;
    background: #fff;
    border: 1px solid var(--wps-card-border, #e4e4e0);
    border-radius: var(--wps-card-radius, 8px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    /* reset any theme styles */
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;
}
.wps-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    transform: translateY(-3px);
}

/* full-card invisible link */
.wps-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

/* ── Image area ──────────────────────────────── */
.wps-card-img {
    position: relative;
    height: var(--wps-image-height, 200px);
    width: 100%;
    background: #efefeb;
    overflow: hidden;
    flex-shrink: 0;
}
.wps-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wps-card:hover .wps-card-img img {
    transform: scale(1.05);
}

/* Sale badge */
.wps-badge-sale {
    position: absolute;
    top: 7px;
    right: 7px;
    background: #fde68a;
    color: #92400e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 3px;
    line-height: 1.4;
    z-index: 2;
    display: inline-block;
}

/* ── Info panel ──────────────────────────────── */
.wps-body {
    padding: var(--wps-panel-padding, 15px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: var(--wps-panel-height, 115px);
    height: auto;
    background: var(--wps-panel-bg, rgba(245,245,241,0.55));
    border-top: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wps-cat {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #aaa !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

.wps-name {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wps-name a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    position: relative;
    z-index: 2;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.wps-name a:hover {
    text-decoration: none !important;
}

/* ── Price — WooCommerce outputs <span class="price"> inside ── */
.wps-price {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}
.wps-price .price,
.wps-price span.price {
    color: var(--wps-price-color, #448F01) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.wps-price .price ins,
.wps-price span.price ins {
    text-decoration: none !important;
    font-style: normal;
}
.wps-price .price del,
.wps-price span.price del {
    color: #aaa !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    margin-right: 3px;
    opacity: 1 !important;
}
/* fallback if no .price wrapper */
.wps-price bdi {
    font-size: 14px;
    font-weight: 700;
    color: var(--wps-price-color, #448F01);
}

/* ── Stock status ────────────────────────────── */
.wps-stock {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}
.wps-stock::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    display: inline-block;
}
.wps-instock    { color: #1a1a1a !important; }
.wps-preorder   { color: #2e7d32 !important; }
.wps-outofstock { color: #aaa !important; }

/* ── Arrows ──────────────────────────────────── */
.wps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--wps-card-border, #e4e4e0);
    background: #fff;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
    padding: 0;
    line-height: 1;
}
.wps-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    display: block;
}
.wps-arrow:hover {
    background: var(--wps-arrow-hover, #FF6666) !important;
    color: #fff !important;
    border-color: var(--wps-arrow-hover, #FF6666) !important;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 18px rgba(0,0,0,.14);
}
.wps-arrow:disabled {
    opacity: .2;
    pointer-events: none;
    cursor: default;
}
.wps-prev { left: -18px; }
.wps-next { right: -18px; }

/* ── Misc ────────────────────────────────────── */
.wps-error, .wps-empty {
    font-size: 0.9rem;
    color: #999;
    padding: 16px 0;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .wps-prev { left: -12px; }
    .wps-next { right: -12px; }
}
@media (max-width: 640px) {
    .wps-prev { left: -6px; }
    .wps-next { right: -6px; }
}
