/* Frontend Styles for Detailed Product Block */

.gpw-product-detail {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: inherit;
	border: 1px solid var(--color-accent2) !important;
}
.gpw-product-detail::after {
	background: #fff;
}
.gpw-detail-container {
	display: flex;
	gap: 40px;
	margin-bottom: 40px;
	flex-direction: row-reverse;
}
.afra-advantages-disadvantages {
    background: #fff;
}
.afra-vetical-title span {
    font-size: 25px;
    font-weight: 450;
    line-height: 100%;
    margin: 0;
    position: absolute;
    right: -10px;
    bottom: 40px;
    transform: rotate(90deg);
    width: 66px;
    text-align: right;
}
.afra-vantages ul li::before {
	display: none !important;
}
.rating-score {
	background: #fff;
	width: 88px;
	height: 48px;
	font-family: Yekan Bakh VF;
	font-weight: 725;
	font-style: ExtraBold;
	font-size: 32px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;
	color: var(--color-primary);
}
.afra-vetical-title {
	position: absolute !important;
	right: 0;
	width: 48px;
	min-height: 304px;
	top: -20px;
	background: var(--color-divider);
	height: calc(100% + 36px);
	z-index: 10;
}
.afra-disvantages, .afra-advantages {
	margin-top: 35px;
	flex: 1;
	width: 100%;
}
.afra-vantages {
    min-height: 264px;
    background: var(--color-lightgray);
}
.afra-vantages::after {
	background: var(--color-lightgray) !important;
}
.afra-vantages ul {
    padding-right: 52px;
}
.afra-vantages ul li {
	font-size: 16px;
	font-weight: 450;
	line-height: 24px;
	color: var(--color-primary);
	margin-bottom: 15px;
}
/* Product Images Section */
.gpw-product-images {
    position: relative;
}
.gpw-product-images {
	position: relative;
	max-width: 50%;
	width: 100%;
}
.gpw-main-image-carousel {
	background: var(--color-divider);
	padding: 15px;
	border: 1px solid var(--color-divider);
}
.gpw-main-image-item .editor-image, .gpw-main-image-item .editor-image img {
	max-width: 100%;
	max-height: 100%;
	display: block;
	height: 100%;
}
.gpw-main-image-carousel {
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	width: 100%;
}
.gpw-main-image-carousel::after {
	background: #fff;
	border: 1px solid var(--color-divider);
}
.gpw-main-image-item {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpw-main-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gpw-thumbnail-carousel {
    position: relative;
}

.gpw-thumbnail-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gpw-thumbnail-item:hover {
    transform: scale(1.05);
}

.gpw-thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.gpw-thumbnail-item.active {
    border-color: #6f42c1;
    box-shadow: 0 2px 10px rgba(111, 66, 193, 0.3);
}

/* Product Info Section */
.gpw-product-info {
	display: flex;
	flex-direction: column;
	gap: 0px;
	max-width: 50%;
}

.gpw-product-title {
	margin: 0 0 20px 0;
	font-weight: 725;
	font-size: 24px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
	color: var(--color-secondary) !important;
}

.gpw-specifications {
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.gpw-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}
.gpw-product-price::after {
	background: var(--color-secondary) !important;
}
.gpw-spec-item:last-child {
    border-bottom: none;
}
.gpw-product-info .gpw-view-button {
	background: unset;
	padding: 0;
	font-weight: 600;
	font-style: Bold;
	font-size: 10px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
}
.gpw-spec-title {
	color: var(--color-gray);
	font-weight: 325;
	font-style: Regular;
	font-size: 12px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
}

.gpw-spec-value {
	color: var(--color-primary);
	font-weight: 500;
	font-weight: 450;
	font-style: SemiBold;
	font-size: 12px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
}
.gpw-product-widget .gpw-product-title {
	padding-top: 20px;
}
.gpw-product-price {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 15px;
	padding: 20px;
	justify-content: space-between !important;
	flex-direction: row-reverse;
}

.gpw-product-detail .gpw-price span bdi {
	font-size: 24px;
	font-weight: 700;
	color: #fff !important;
	-webkit-text-fill-color: aliceblue;
}

.gpw-regular-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.gpw-sale-price {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
}

.gpw-product-price {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 15px;
	padding: 8px;
	justify-content: space-between !important;
	flex-direction: row-reverse;
}

.gpw-product-description{
	background: white;
	border-radius: 12px;
	padding: 20px;
	color: #555;
	font-weight: 325 !important;
	font-size: 12px !important;
	line-height: 24px !important;
	letter-spacing: 0%;
	text-align: right;
}
.gpw-product-description p {
	color: #555;
	font-weight: 325 !important;
	font-size: 12px !important;
	line-height: 24px !important;
	letter-spacing: 0%;
	text-align: right;
}
/* Features Section */
.gpw-features-section {
    margin-bottom: 40px;
}

.gpw-section-title {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: var(--color-primary);
	margin: 0;
	text-align: center;
	position: relative;
	padding-bottom: 10px;
}
.gpw-ratings-section .scroll-wrapper {
	max-width: calc(100% - 283px);
}
.gpw-features {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gpw-feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
}

.gpw-feature-title {
    font-weight: 600;
    color: #666;
    text-align: right;
}

.gpw-feature-value {
    color: #333;
    font-weight: 500;
    text-align: left;
}

.gpw-horizontal-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e9ecef 50%, transparent 100%);
    margin: 15px 0;
}

/* Ratings Section */
.gpw-ratings-section {
    margin-bottom: 40px;
}
.gpw-ratings-section {
	background: var(--color-lightgray);
	padding: 15px;
}
.gpw-ratings {
	background: var(--color-lightgray);
	position: relative;
}

.gpw-rating-box {
	display: flex;
	align-items: safe;
	gap: 20px;
	padding: 15px;
	background: #fff;
	border-radius: 8px;
}

.gpw-score {
	color: var(--color-text);
	min-width: 40px;
	font-weight: 450;
	font-size: 12px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
}

.gpw-rating-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.gpw-rating-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--before-width);
    background: linear-gradient(90deg, #6f42c1 0%, #8e44ad 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.gpw-cursor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.gpw-cursor1 { left: 10%; }
.gpw-cursor2 { left: 20%; }
.gpw-cursor3 { left: 30%; }
.gpw-cursor4 { left: 40%; }
.gpw-cursor5 { left: 50%; }
.gpw-cursor6 { left: 60%; }
.gpw-cursor7 { left: 70%; }
.gpw-cursor8 { left: 80%; }
.gpw-cursor9 { left: 90%; }
.gpw-cursor10 { left: 95%; }
.gpw-cursor11 { left: 100%; }

.gpw-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--color-gray);
	min-width: 120px;
	font-size: 12px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
}

.gpw-custom-tooltip {
    position: relative;
    cursor: help;
}

.gpw-question-square {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #6f42c1;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    font-weight: bold;
}

.gpw-custom-tooltip:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.gpw-overall-score {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.gpw-score-display {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gpw-total-score {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.gpw-score-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Advantages and Disadvantages */
.gpw-advantages-disadvantages {
    margin-bottom: 40px;
}

.gpw-adv-disv-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.gpw-advantages,
.gpw-disadvantages {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gpw-adv-title,
.gpw-disv-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.gpw-adv-title span,
.gpw-disv-title span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gpw-adv-list,
.gpw-disv-list {
    padding: 20px;
}

.gpw-adv-list ul,
.gpw-disv-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpw-adv-list li,
.gpw-disv-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

.gpw-adv-list li:last-child,
.gpw-disv-list li:last-child {
    border-bottom: none;
}

.gpw-check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.gpw-check-icon::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.gpw-times-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #dc3545;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.gpw-times-icon::before {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Owl Carousel Navigation */
.gpw-main-image-carousel .owl-nav,
.gpw-thumbnail-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.gpw-nav-prev,
.gpw-nav-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    color: #333 !important;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gpw-nav-prev {
    left: 10px;
}

.gpw-nav-next {
    right: 10px;
}

.gpw-nav-prev:hover,
.gpw-nav-next:hover {
    background: white !important;
    color: #6f42c1 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
.gpw-detail-container {
	flex-direction: column;
	gap: 30px;
}
.gpw-product-images {
	max-width: 100%;
}
.gpw-product-info {
	max-width: 100%;
}
    
    .gpw-adv-disv-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gpw-product-detail {
        padding: 15px;
    }
    
    .gpw-product-title {
        font-size: 24px;
    }
    
    .gpw-main-image-item {
        height: 300px;
    }
    
    .gpw-feature-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .gpw-feature-title {
        text-align: center;
    }
    
    .gpw-feature-value {
        text-align: center;
    }
    
    .gpw-rating-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gpw-label {
        min-width: auto;
        justify-content: center;
    }
.gpw-ratings-section {
	flex-direction: column;
}
.gpw-ratings-section .scroll-wrapper {
	max-width: 100%;
}
.gpw-ratings-section .afra-single-rating-score {
	width: 100%;
}
.gpw-ratings-section .afra-gauge-wrapper {
	justify-content: space-around;
}
.advANDdisv {
	flex-direction: column;
}
}

@media (max-width: 480px) {
    .gpw-product-detail {
        padding: 10px;
    }
    
    .gpw-product-title {
        font-size: 20px;
    }
    
    .gpw-main-image-item {
        height: 250px;
    }
    
    .gpw-features,
    .gpw-ratings,
    .gpw-adv-list,
    .gpw-disv-list {
        padding: 15px;
    }
    
    .gpw-adv-title,
    .gpw-disv-title {
        padding: 15px;
    }
    
    .gpw-adv-title span,
    .gpw-disv-title span {
        font-size: 16px;
    }
}
@media (max-width: 767px) {
  .afra-vantages ul li {
    font-size: 12px;
  }
}