.pixart-product-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.pixart-product-carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pixart-product-carousel__track {
    display: flex;
    align-items: stretch;
    scroll-behavior: smooth;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.pixart-product-carousel--dragging .pixart-product-carousel__track {
    cursor: grabbing;
}

.pixart-product-carousel__slide {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.pixart-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: 1px solid #ececec;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pixart-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pixart-product-carousel--align-left .pixart-product-card {
    text-align: left;
}

.pixart-product-carousel--align-center .pixart-product-card {
    text-align: center;
}

.pixart-product-carousel--align-right .pixart-product-card {
    text-align: right;
}

.pixart-product-card__image {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pixart-product-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pixart-product-card:hover .pixart-product-card__image img {
    transform: scale(1.05);
}

.pixart-product-card__content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.pixart-product-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pixart-category-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-right: 5px;
    color: #666;
}

.pixart-product-card__title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 10px;
    font-weight: 600;
}

.pixart-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.pixart-product-card__title a:hover {
    color: #007bff;
    text-decoration: underline;
}

.pixart-product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.pixart-product-card__price--sale {
    color: #d9252b;
}

.pixart-product-card__rating {
    margin-bottom: 14px;
}

.pixart-rating {
    display: flex;
    gap: 2px;
}

.pixart-rating__star {
    color: #ddd;
    font-size: 16px;
    line-height: 1;
}

.pixart-rating__star--filled {
    color: #f5b301;
}

.pixart-product-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.pixart-product-carousel--align-left .pixart-product-card__actions {
    justify-items: stretch;
}

.pixart-product-carousel--align-center .pixart-product-card__actions {
    justify-items: center;
}

.pixart-product-carousel--align-right .pixart-product-card__actions {
    justify-items: end;
}

.pixart-product-carousel--align-left .pixart-rating {
    justify-content: flex-start;
}

.pixart-product-carousel--align-center .pixart-rating {
    justify-content: center;
}

.pixart-product-carousel--align-right .pixart-rating {
    justify-content: flex-end;
}

.pixart-product-card__actions.single-button {
    grid-template-columns: 1fr;
}

.pixart-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid #222;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pixart-product-card__button:hover {
    background-color: #000;
    border-color: #000;
}

/* Carousel Navigation */
.pixart-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pixart-carousel-nav--left {
    justify-content: flex-start;
}

.pixart-carousel-nav--right {
    justify-content: flex-end;
}

.pixart-carousel-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 16px;
}

.pixart-carousel-nav__button:hover {
    border-color: #222;
    background: #222;
    color: #fff;
}

.pixart-carousel-nav__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pixart-carousel-nav__button:disabled:hover {
    border-color: #ddd;
    background: #fff;
    color: #222;
}

.pixart-carousel-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.pixart-carousel-nav__icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Carousel Dots */
.pixart-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pixart-carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pixart-carousel-dots button:hover {
    border-color: #222;
}

.pixart-carousel-dots button.active {
    background: #222;
    border-color: #222;
}

.pixart-product-carousel__empty {
    padding: 40px 16px;
    background: #fff7f0;
    border: 1px solid #f2c7b7;
    color: #7b4f3d;
    text-align: center;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pixart-product-card__actions {
        grid-template-columns: 1fr;
    }

    .pixart-product-card__actions.single-button {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pixart-product-card__content {
        padding: 14px;
    }

    .pixart-product-card__title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .pixart-product-card__price {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .pixart-carousel-nav {
        margin-top: 16px;
        gap: 6px;
    }

    .pixart-carousel-nav__button {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pixart-product-card__content {
        padding: 12px;
        min-height: auto;
    }

    .pixart-product-card__title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .pixart-product-card__price {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .pixart-product-card__actions {
        gap: 6px;
    }

    .pixart-product-card__button {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 40px;
    }

    .pixart-carousel-nav {
        gap: 5px;
    }

    .pixart-carousel-nav__button {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}
