/* ===== Affiliate Product Slider – Public CSS ===== */
.aps-wrapper {
    --aps-color: #6b5ce7;
    --aps-btn: #6b5ce7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.aps-wrapper *, .aps-wrapper *::before, .aps-wrapper *::after {
    box-sizing: border-box;
}

/* Title */
.aps-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px;
    padding: 0;
    border: none;
    line-height: 1.3;
}

/* Slider outer */
.aps-outer {
    position: relative;
}

/* Viewport + track */
.aps-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.aps-track {
    display: flex;
    gap: 18px;
    transition: transform 0.42s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
}

/* Card */
.aps-card {
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #e8e6f5;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.aps-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(107,92,231,.2);
    text-decoration: none !important;
}

/* Card image */
.aps-card-img {
    width: 100%;
    padding-top: 68%;
    position: relative;
    background: #f5f5f8;
    overflow: hidden;
}

.aps-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.aps-card:hover .aps-card-img img {
    transform: scale(1.05);
}

.aps-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

/* Card body */
.aps-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aps-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.4;
    flex: 1;
}

.aps-card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--aps-color);
}

.aps-card-btn {
    display: block;
    text-align: center;
    padding: 10px 12px;
    background: var(--aps-btn);
    color: #ffffff !important;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.18s;
    cursor: pointer;
}

.aps-card-btn:hover {
    opacity: 0.88;
}

/* Nav arrows */
.aps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--aps-color);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s, opacity 0.18s;
}

.aps-arrow:hover {
    opacity: 0.88;
    transform: translateY(-50%) scale(1.07);
}

.aps-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.aps-prev { left: -21px; }
.aps-next { right: -21px; }

/* Dots */
.aps-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.aps-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d0d0e0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
}

.aps-dot.aps-dot-active {
    background: var(--aps-color);
    width: 24px;
    border-radius: 5px;
}

/* Error msg */
.aps-error {
    color: #cc0000;
    font-style: italic;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .aps-prev { left: 4px; }
    .aps-next { right: 4px; }
    .aps-title { font-size: 20px; }
}

@media (max-width: 480px) {
    .aps-card-name { font-size: 13px; }
    .aps-arrow { width: 34px; height: 34px; font-size: 18px; }
}
