/* JNXPC Limited - Product Page CSS */
/* ================================ */

.action-buttons-row .add-to-cart-btn.success {
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.action-buttons-row .add-to-cart-btn.success:hover {
    transform: translateY(-2px);
    background: linear-gradient(270deg, #a71c1c, #6907c5) !important;
}

.action-buttons-row .add-to-cart-btn.success:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.action-buttons-row .add-to-cart-btn.success i {
    animation: checkmarkPulse 0.6s ease-in-out;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#no-products.carousel-header {
    margin-bottom: 0;
}

#no-products .no-products-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px 0;
}

@media (max-width: 480px) {
    #no-products .no-products-content h3 {
        font-size: 16px;
    }

    #no-products .no-products-content p {
        font-size: 12px;
    }
}

.product-listing-container {
    max-width: min(85%, var(--section-max-width));
    margin: 40px auto 0;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Main Product Section */
.product-main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Product Left Side Wrapper */
.product-left-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-gallery {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3%;
    width: 100%;
    height: fit-content;
    align-items: start;
}

.main-image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    align-self: stretch;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.3s ease;
}

.zoom-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Carousel */
.image-carousel {
    display: flex;
    flex-direction: column;
    min-width: 80px;
    max-width: 140px;
    aspect-ratio: 1;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
}

.listing-carousel-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.image-carousel .carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    z-index: 2;
    display: none;
}

.image-carousel .carousel-nav:hover {
    background: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-carousel .carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #ccc;
}

.image-carousel .carousel-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #ccc;
    border-color: #e0e6ed;
    box-shadow: none;
}

.image-carousel .carousel-prev {
    margin-bottom: 10px;
}

.image-carousel .carousel-next {
    margin-top: 10px;
}

.image-carousel .carousel-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
    /* Allows flex item to shrink */
}

.image-carousel .carousel-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
    padding: 0;
    height: 100%;
}

.image-carousel .carousel-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.image-carousel .carousel-image:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.image-carousel .carousel-image.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(167, 28, 28, 0.2);
}

/* Legacy thumbnail styles for mobile fallback */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 100px;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(167, 28, 28, 0.2);
}

/* Product Details (Right Side) */
.product-details {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: fit-content;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.product-card-title-row h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn-header {
    padding: 8px !important;
    font-size: 12px !important;
    width: 36px !important;
    height: 36px !important;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 36px;
    min-height: 36px;
}

.action-btn-header i {
    font-size: 12px;
}

.share-btn {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    color: #ffd700;
    display: flex;
    gap: 2px;
    font-size: 14px;
}

.rating-text {
    color: #222;
    font-size: 12px !important;
    font-weight: 600;
}

/* Detail Item */
.detail-item {
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#features.detail-item {
    gap: 0 !important;
}

.detail-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    border-bottom: 1px solid #c7ced4;
    padding-bottom: 10px;
    width: 100%;
}

.detail-item p {
    line-height: 1.6;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 0;
}

.details-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    margin: 0;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.details-list i {
    color: var(--accent-color);
    width: 16px;
}

.details-subcontainer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.current-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-color);
}

.small-label {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.original-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.stock-status.in-stock {
    color: #28a745;
}

.stock-status.out-of-stock {
    color: #dc3545;
}

.quantity-stock-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-section label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #e9ecef;
}

#quantity {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 500;
    background: white;
    outline: none;
    -moz-appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.action-buttons-row {
    display: flex;
    gap: 12px;
}

.action-buttons-row .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;

}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary, .btn-outline {
    background: var(--accent-color);
    color: white;
    width: 100%;
    font-weight: 600;
}

.btn-primary:hover {
    background: #d64545;
    border-color: #d64545;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

.tabs-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
    overflow-x: auto;
    display: flex;
    gap: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 28, 28, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: var(--accent-color);
    background-color: rgba(167, 28, 28, 0.05);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #d64545);
    color: white;
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.8);
    border-bottom-color: var(--accent-color);
}

.tab-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 28, 28, 0.4);
}

.tabs-content {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    padding: 18px 24px;
}

.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* Specifications Tab */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.spec-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.spec-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-category li {
    display: flex;
    justify-content: space-between;
    text-align: right;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 13px;
}


.spec-category li:last-child {
    border-bottom: none;
}

/* Product Info Cards */
.product-info-cards {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    color: white;
    font-size: 16px;
}

.financing-card .card-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.protection-card .card-icon {
    background: linear-gradient(135deg, var(--accent-color), #d64545);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.card-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* --- Global Main Container Start --- */
@media (max-width: 1400px) {
    .product-listing-container {
        max-width: min(98%, var(--section-max-width));
    }

    .image-carousel {
        max-width: 120px;
    }

    .product-gallery {
        grid-template-columns: none;
    }

    .product-left-side {
        gap: 3%;
    }

    .product-info-cards {
        margin-top: 0;
    }

    .product-main-section .product-details .product-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 24px;
    }

    .qty-btn {
        width: 35px;
        height: 35px;
    }

    .qty-btn i {
        font-size: 14px;
    }

    #quantity {
        width: 50px;
        height: 35px;
    }

    .action-buttons .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .action-buttons-row .btn i {
        font-size: 14px;
    }

    .specifications-section {
        margin-top: 15px;
    }

    .detail-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .product-listing-container {
        margin-top: 20px;
    }

    .product-main-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .product-left-side {
        max-width: min(80%, var(--section-max-width));
        margin: 0 auto;
        gap: 12px;
    }

    .product-details {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .product-gallery {
        gap: 40px;
    }

    .specifications-section {
        margin-top: 20px;
    }

    .detail-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .product-listing-container {
        margin-top: 20px;
        padding-top: 0;
    }

    .product-main-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .product-left-side {
        max-width: min(80%, var(--section-max-width));
    }

    .product-header h1 {
        font-size: 22px;
    }

    .action-buttons-group {
        gap: 6px;
    }

    .action-btn-header {
        align-self: flex-end;
        padding: 6px !important;
        font-size: 10px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
        min-height: 32px;
    }

    .share-btn {
        font-size: 12px !important;
        padding: 6px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
        min-height: 32px;
    }

    .specifications-section {
        margin-top: 15px;
        padding: 15px;
    }

    .specifications-section .specs-grid {
        gap: 15px;
    }

    .specifications-section .spec-category {
        padding: 12px;
    }

    .detail-item {
        margin-bottom: 15px;
        padding: 15px;
    }

    .action-buttons {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0;
        border-top: 1px solid #e0e6ed;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        gap: 10px;
    }

    .action-buttons-row {
        gap: 10px;
    }

    .quantity-stock-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quantity-section {
        gap: 10px;
    }

    .info-card {
        padding: 14px;
    }

    .card-content h4 {
        font-size: 13px;
    }

    .card-content p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .product-listing-container {
        margin-top: 0;
        padding: 0;
        width: 95%;
    }

    .product-left-side {
        max-width: 100%;
        gap: 8px;
    }

    .product-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 6px;
        width: 100%;
    }

    .main-image-container {
        grid-column: 1;
        grid-row: 1;
        width: 70%;
        margin: 0 auto;
        aspect-ratio: 1;
        max-height: auto;
    }

    .image-carousel {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        gap: 8px;
        height: 60px;
        aspect-ratio: 0;
        grid-row: none !important;
    }

    .listing-carousel-container {
        flex-direction: row;
        height: 100%;
    }

    .image-carousel .carousel-track-container {
        height: 60px;
        width: 100%;
        order: 2;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .image-carousel .carousel-track {
        flex-direction: row;
        height: 100%;
        gap: 10px;
    }

    .image-carousel .carousel-image {
        height: 100%;
        width: 60px;
        aspect-ratio: 1;
    }

    .image-carousel .carousel-nav {
        width: 35px;
        height: 35px;
        border-radius: 6px;
        flex-shrink: 0;
        margin: 0;
    }

    .image-carousel .carousel-prev {
        order: 1;
    }

    .image-carousel .carousel-next {
        order: 3;
    }

    .product-info-cards {
        gap: 8px;
        flex-direction: column;
    }

    .info-card {
        padding: 12px;
        gap: 10px;
    }

    .info-card .card-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .card-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .card-content h4 {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .card-content p {
        font-size: 10px;
        line-height: 1.4;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .image-overlay {
        top: 10px;
        right: 10px;
    }

    .product-main-section .product-details .product-title {
        font-size: 22px;
    }

    .detail-item {
        padding: 12px 16px;
    }

    .detail-item .details-subcontainer {
        margin-bottom: 8px;
    }

    .stock-status {
        font-size: 10px;
    }

    .quantity-stock-row {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .quantity-section label {
        font-size: 12px;
    }

    .qty-btn,
    #quantity {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .current-price {
        font-size: 20px;
    }

    .original-price {
        font-size: 12px;
    }

    .discount-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .details-list {
        gap: 0 4px;
    }

    .details-list li {
        font-size: 11px;
        padding: 6px 0;
        gap: 4px;
    }

    .specifications-section {
        padding: 12px 16px;
        margin-top: 12px;
    }

    .specifications-section h3 {
        font-size: 14px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .specifications-section .spec-category {
        padding: 12px;
    }

    .specifications-section .spec-category h4 {
        font-size: 14px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .specifications-section .spec-category li {
        font-size: 12px;
    }

    .detail-item {
        padding: 12px 16px;
        margin-bottom: 12px;
    }

    .detail-item h3 {
        font-size: 14px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .detail-item p {
        font-size: 12px !important;
    }
}

/* --- Global Main Container End --- */

/* --- Reviews Section Styles Start --- */
.reviews-section {
    max-width: min(85%, var(--section-max-width));
    margin: 40px auto;
}

.reviews-container {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 2px dashed #e0e6ed;
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 60%;
}

.section-header{
    width: fit-content;
}

.login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(167, 28, 28, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 28, 28, 0.4);
    background-position: 100% 0%;
}

.login-prompt p {
    color: #222;
    font-size: 12px;
    margin: 0;
}

/* Review Summary - Full Width */
.review-summary {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.overall-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.stars-display {
    display: flex;
    gap: 8px;
}

.filled-star {
    color: #a71c1c;
    font-size: 20px;
}

.empty-star {
    color: #444;
    font-size: 20px;
}

.star-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.star-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.star-label {
    color: #222;
    font-size: 12px;
    min-width: 50px;
    text-align: right;
}

.star-bar {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.star-fill {
    height: 100%;
    background: linear-gradient(90deg, #a71c1c, #6907c5);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.star-percentage {
    color: #222;
    font-size: 12px;
    min-width: 60px;
    text-align: left;
}

.reviews-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 30px;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #e0e6ed;
    border-radius: 4px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #a71c1c;
    border-radius: 4px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}

/* Review Items */
.review-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    color: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.review-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #a71c1c;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
}

.review-date {
    font-size: 10px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .filled-star {
    color: #a71c1c;
    font-size: 14px;
}

.review-rating .empty-star {
    color: #444;
    font-size: 14px;
}

.review-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.review-content {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Review Images */
.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-image-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-image-thumbnail:hover {
    border-color: #a71c1c;
    transform: scale(1.05);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Reviews State */
.no-reviews-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    grid-column: 1 / -1;
    background: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 20px;
    border: 2px dashed var(--accent-color);
}

.no-reviews-message i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.no-reviews-message h3 {
    color: black;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
}

.no-reviews-message p {
    color: black;
    font-size: 14px;
    max-width: 400px;
}

.login-cta {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.review-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.review-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    margin: auto;
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
}

.review-modal-header h3 {
    color: #222;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-review-modal {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-review-modal:hover {
    background: #f5f5f5;
    color: #222;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #222;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    color: #222;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a71c1c;
    box-shadow: 0 0 0 3px rgba(167, 28, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.rating-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-input label {
    margin: 0;
}

.star-input {
    display: flex;
    gap: 4px;
}

.star-input i {
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-input i:hover,
.star-input i.active {
    color: #a71c1c;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn, .submit-review-btn {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-review-btn {
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(167, 28, 28, 0.3);    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 28, 28, 0.4);
    background-position: 100% 0%;
}

.submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: white;
    color: #a71c1c;
    border: 1px solid #a71c1c;
}

.cancel-btn:hover {
    background: #a71c1c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.3);
}

/* Reviews Pagination */
.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 2px dashed #e0e6ed;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    height: 34px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #a71c1c;
    border-color: #a71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1a1a1a;
    border-color: #333;
}

.pagination-btn i {
    font-size: 10px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #e0e6ed;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    color: #222;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: #a71c1c;
    border-color: #a71c1c;
    color: #ffffff;
}

.page-number.active {
    background: #a71c1c;
    border-color: #a71c1c;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(167, 28, 28, 0.3);
}

@media (max-width: 1400px) {
    .no-reviews-message i {
        font-size: 40px;
    }

    .no-reviews-message h3 {
        font-size: 20px;
    }

    .no-reviews-message p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .reviews-pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-numbers {
        order: -1;
    }
}

@media (max-width: 480px) {
    .no-products-message {
        padding: 20px;
        margin: 12px auto;
    }

    .no-products-message i {
        font-size: 32px;
    }

    .no-products-message h3 {
        font-size: 16px;
    }

    .no-products-message p {
        font-size: 11px;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* --- Reviews Section Styles End --- */
