/* Product Carousel - Study Guides */

.pc-product-carousel {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.pc-carousel-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.pc-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.pc-carousel-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    border-radius: 8px;
}

.pc-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: grab;
}

.pc-carousel-track.dragging {
    transition: none;
    cursor: grabbing;
}

.pc-carousel-item {
    flex: 0 0 33.333%;
    min-width: 0;
    padding: 0 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.pc-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8ef;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    min-height: 280px;
}

.pc-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pc-product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
    flex-shrink: 0;
    background: #fff;
}

.pc-product-image img {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pc-product-card:hover .pc-product-image img {
    transform: scale(1.03);
}

.pc-sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pc-product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
}

.pc-product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    color: #333;
}

.pc-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.pc-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
}

.pc-product-price ins {
    text-decoration: none;
    color: #e74c3c;
    font-weight: 700;
    margin-left: 5px;
}

.pc-product-price del {
    color: #aaa;
    font-weight: 400;
    font-size: 13px;
}

.pc-product-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}

.pc-product-stars svg {
    width: 12px;
    height: 12px;
    fill: #ffc107;
}

/* Arrows - outside, always visible */
.pc-carousel-arrow {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #00bac7;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pc-carousel-arrow:hover {
    background: #009da8;
}

.pc-carousel-arrow:active {
    transform: scale(0.9);
}

.pc-carousel-arrow:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed;
}

.pc-carousel-arrow--left {
    order: -1;
}

.pc-carousel-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}

.pc-carousel-arrow svg rect {
    fill: transparent !important;
}

.pc-carousel-arrow svg path {
    fill: #fff !important;
}

/* Dots */
.pc-carousel-dots {
    display: flex;
    justify-content: center;
    padding: 12px 0 0;
    margin: 0;
    list-style: none;
    gap: 6px;
}

.pc-carousel-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.pc-carousel-dot:hover {
    opacity: 1;
    background: #999;
}

.pc-carousel-dot.active {
    background: #333;
    opacity: 1;
    transform: scale(1.2);
}

/* View More Button */
.pc-view-more {
    text-align: center;
    padding-top: 18px;
}

.pc-view-more-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #00bac7;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 186, 199, 0.3);
}

.pc-view-more-btn:hover {
    background: #009da8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 186, 199, 0.4);
}

.pc-view-more-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .pc-carousel-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .pc-carousel-item {
        flex: 0 0 100%;
    }
}
