/**
 * Product Category Swiper Slider – CSS
 * File: assets/css/product-category.css
 */

/* ── Section wrapper ─────────────────────────────────── */
.pc-section {
    padding: 60px 0 70px;
    background: #fff;
}

.pc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Heading – dùng lại .category-heading từ style.css ─ */
/* (đã có sẵn, không override) */

/* ── Swiper outer wrap ───────────────────────────────── */
.pc-swiper-wrap {
    position: relative;
    padding: 0 50px;           /* nhường chỗ cho 2 nút arrow */
}

.pc-swiper {
    overflow: hidden;
    padding-bottom: 48px;       /* chỗ cho pagination dots */
}

/* ── Slide card ──────────────────────────────────────── */
.pc-card {
    display: block;
    text-decoration: none !important;
    text-align: center;
    color: inherit;
}

.pc-card__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;       /* luôn vuông */
    border-radius: 14px;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pc-card:hover .pc-card__img-wrap {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.pc-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pc-card:hover .pc-card__img-wrap img {
    transform: scale(1.07);
}

/* ── Card title ──────────────────────────────────────── */
.pc-card__title {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.pc-card:hover .pc-card__title {
    color: #E22636;
}

/* ── Pagination dots ─────────────────────────────────── */
.pc-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.pc-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    margin: 0 4px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pc-pagination .swiper-pagination-bullet-active {
    background: #E22636;
    transform: scale(1.3);
}

/* ── Navigation arrows ───────────────────────────────── */
.pc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 24px)); /* offset pagination */
    z-index: 20;
    width: 42px;
    height: 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
}

.pc-btn:hover {
    background: #E22636;
    border-color: #E22636;
    color: #fff;
    box-shadow: 0 4px 14px rgba(226, 38, 54, 0.35);
}

.pc-btn-prev { left: 0; }
.pc-btn-next { right: 0; }

.pc-btn.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .pc-container { padding: 0 24px; }
    .pc-swiper-wrap { padding: 0 44px; }
}

@media (max-width: 768px) {
    .pc-section { padding: 40px 0 50px; }
    .pc-container { padding: 0 16px; }
    .pc-swiper-wrap { padding: 0 40px; }

    .pc-card__title { font-size: 13px; }

    .pc-btn { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .pc-swiper-wrap { padding: 0 36px; }
    .pc-btn { width: 30px; height: 30px; }
    .pc-btn svg { width: 16px; height: 16px; }
}
