/* ─── Popular Products Carousel ─────────────────────── */
.ppc-section {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

.ppc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.ppc-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--eerie-black);
    letter-spacing: -0.5px;
    position: relative;
}

.ppc-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.ppc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppc-seeall {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 7px 18px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ppc-seeall:hover {
    background: var(--primary);
    color: var(--white);
}

.ppc-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gray200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--gunmetal);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.ppc-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ─── Track ─────────────────────────── */
.ppc-viewport {
    overflow: hidden;
}

.ppc-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Card ─────────────────────────── */
.ppc-card {
    flex: 0 0 220px;
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid var(--linen);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.ppc-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* ─── Image ─────────────────────────── */
.ppc-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--gray100);
    overflow: hidden;
}

.ppc-img-wrapper .main-img,
.ppc-img-wrapper .hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ppc-img-wrapper .hover-img {
    opacity: 0;
    transform: scale(1.05);
}

.ppc-card:hover .main-img {
    opacity: 0;
    transform: scale(1.05);
}

.ppc-card:hover .hover-img {
    opacity: 1;
    transform: scale(1);
}

/* ─── Discount badge ─────────────────────────── */
.ppc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 100px;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* ─── Info ─────────────────────────── */
.ppc-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ppc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--eerie-black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ppc-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ppc-price-original {
    font-size: 13px;
    color: var(--gray400);
    text-decoration: line-through;
}

.ppc-price-final {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.ppc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray600);
}

.ppc-stars {
    color: #f59e0b;
    font-size: 11px;
    letter-spacing: 1px;
}

.ppc-btn {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 9px 0;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.2px;
    transition: background 0.2s;
}

.ppc-btn:hover {
    background: var(--hover-primary);
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .ppc-card {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .ppc-section {
        padding: 40px 16px;
    }

    .ppc-title {
        font-size: 22px;
    }

    .ppc-card {
        flex: 0 0 180px;
    }
}

@media (max-width: 480px) {
    .ppc-card {
        flex: 0 0 155px;
    }

    .ppc-price-final {
        font-size: 15px;
    }
}
