.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
}

.review-avatar img.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
}

.review-avatar.admin-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #A000FF;
    box-shadow: 0 0 8px rgba(160, 0, 255, 0.35);
    flex-shrink: 0;
}

.review-avatar.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user-info .username {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.admin-badge {
    background: linear-gradient(135deg, #A000FF, #7B00CC);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 8px rgba(160, 0, 255, 0.35);
}

.admin-badge i {
    margin-right: 5px;
    color: #fff;
}

.notice {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    background: linear-gradient(90deg, #A000FF 0%, #7B00CC 65%, #ffffff 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}

.scrolling-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.label {
    flex-shrink: 0;
    white-space: nowrap;
}

.scrolling-text-wrapper {
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}

.scrolling-text {
    position: absolute;
    top: 0;
    white-space: nowrap;
    line-height: 40px;
    will-change: transform;
    animation: scroll-left 15s linear infinite;
    color: #fff;
}

@keyframes scroll-left {
    0% {
        transform: translateX(370%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.product-item {
    flex-shrink: 0;
    width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgb(160 0 255 / 0.12);
    z-index: 5;
}

.product-item img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: auto !important;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item .card-body {
    padding: 0.5rem 0.75rem;
}

.product-item .card-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item .card-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.product-item .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.product-item .btn:hover {
    background: linear-gradient(135deg, #A000FF, #7B00CC);
    color: #fff;
    box-shadow: 0 5px 12px rgba(160, 0, 255, 0.22);
}

.scrolling-products {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrolling-products::-webkit-scrollbar {
    display: none;
}

.popular-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #A000FF, #7B00CC);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(160, 0, 255, 0.24);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.popular-badge i {
    font-size: 0.75rem;
    color: #fff;
}

.stock-icon {
    font-size: 14px;
    margin-left: 6px;
}

.stock-available {
    color: #16a34a;
}

.stock-unavailable {
    color: #dc2626;
}

@media (max-width: 1024px) {
    .product-item {
        width: 130px !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(160, 0, 255, 0.08);
    }

    .product-item img {
        height: auto !important;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }

    .product-item .card-body {
        padding: 0.3rem 0.4rem;
    }

    .product-item .card-title {
        font-size: 0.75rem;
    }

    .product-item .card-text {
        font-size: 0.68rem;
    }

    .product-item .btn {
        font-size: 0.68rem;
        padding: 0.15rem 0.3rem;
    }

    .popular-badge {
        font-size: 0.5rem;
        padding: 1px 5px;
        top: 5px;
        left: 5px;
    }

    .popular-badge i {
        font-size: 0.6rem;
    }

    .stock-icon {
        font-size: 11px;
        margin-left: 3px;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #A000FF, #7B00CC);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(160, 0, 255, 0.22);
    opacity: 0.96;
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #B52AFF, #8A00D9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(160, 0, 255, 0.32);
    opacity: 1;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 3px 8px rgba(160, 0, 255, 0.22);
}

.left-arrow {
    left: 12px;
}

.right-arrow {
    right: 12px;
}

.carousel-arrow i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.carousel-arrow:hover i {
    transform: scale(1.15);
}

@media (max-width: 576px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .carousel-arrow i {
        font-size: 16px;
    }

    .left-arrow {
        left: 8px;
    }

    .right-arrow {
        right: 8px;
    }
}

.ultra-product-card:hover {
    box-shadow: 0 12px 24px rgba(160, 0, 255, 0.12);
}

.glow-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(160, 0, 255, 0.08),
        transparent 70%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.ultra-product-card:hover .glow-overlay {
    opacity: 1;
}

.ultra-product-card {
    margin-top: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    box-shadow:
        inset 2px 2px 6px #e7dcf0,
        inset -2px -2px 6px #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ultra-product-card:active {
    box-shadow:
        inset 4px 4px 8px #dfd0ea,
        inset -4px -4px 8px #fff;
    transform: scale(0.98);
}

.ultra-product-card h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ultra-product-card p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.ultra-product-card i {
    font-size: 0.75rem;
    color: #A000FF;
}

.custom-review-wrapper {
    background: #faf7fc;
    padding: 20px 15px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(160, 0, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.custom-review-title {
    max-width: 600px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.title-icon {
    background: #F7EDFF;
    border: 1px solid #E3C4FF;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #A000FF;
    font-size: 26px;
    box-shadow: 0 3px 10px rgba(160, 0, 255, 0.14);
    transition: all 0.3s ease;
    cursor: pointer;
}

.title-icon:hover {
    background: linear-gradient(135deg, #A000FF, #7B00CC);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(160, 0, 255, 0.30);
    transform: translateY(-3px);
}

.title-icon:hover i {
    transform: rotate(8deg);
    transition: transform 0.3s ease;
}

.title-text .subtitle {
    font-weight: 400;
    font-size: 1rem;
    color: #444f6f;
    margin: 0;
    font-style: normal;
    user-select: none;
}

.custom-review-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 2rem;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.custom-review-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(160, 0, 255, 0.06);
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    flex-shrink: 0;
    min-width: 300px;
    scroll-snap-align: start;
}

.custom-review-card:hover {
    box-shadow: 0 10px 24px rgba(160, 0, 255, 0.10);
}

.review-left {
    margin-right: 1rem;
    text-align: center;
    min-width: 60px;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E4D3F0;
}

.review-body {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-header strong {
    font-size: 1rem;
    color: #222;
}

.review-header small {
    font-size: 0.85rem;
    color: #999;
}

.review-rating i {
    color: #ffb700;
    margin-right: 2px;
}

.review-text {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}