/* Product Detail Page Styles */

.breadcrumb {
    background: var(--light);
    padding: 5px 0;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 10px;
}

.product-detail {
    padding: 10px 0 25px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Product Info */
.product-info-detail {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-width: 0;
    overflow: hidden;
}

.product-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 22px;
    color: var(--text-primary, #333);
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.product-price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px !important;
}

.product-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.product-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
    margin-right: 10px;
    font-weight: 500;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
}

/* Machine Product Detail extracted inline styles */
.hidden-gallery-sr-only {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

.main-product-model-viewer {
    width: 100%;
    height: 100%;
    outline: none;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
        top: -100%;
    }

    20%,
    100% {
        left: 100%;
        top: 100%;
    }
}

.shield-badge {
    position: relative;
    overflow: hidden;
    width: 56px;
    padding-bottom: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.shield-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: shine-sweep 6s infinite ease-in-out;
}

.sticky-cta-mobile-machine {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: stretch;
    padding: 8px;
    width: 100%;
}

/* Swiper fallback/override rules used by classic + machine product detail */
.product-gallery {
    height: auto;
    max-width: 100%;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.mySwiper2 {
    height: 420px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #fff;
}

.mySwiper {
    height: 70px;
    box-sizing: border-box;
    padding: 5px 0;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border: 1px solid #ddd;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary, #d50000);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary, #d50000) !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mySwiper2 {
        height: auto !important;
        min-height: 280px;
        max-height: 60vh;
        margin-bottom: 0 !important;
    }

    .mySwiper2 .swiper-slide img {
        height: auto;
        max-height: 60vh;
        object-fit: contain;
    }

    .mySwiper {
        display: none !important;
    }

    .mySwiper2 .swiper-pagination {
        display: block !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Highlight cards */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
    color: #ccc;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .highlights-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 15px 0;
    }

    .highlight-item {
        font-size: 12px;
        padding: 8px;
        justify-content: center;
        text-align: center;
        flex-direction: row;
    }

    .highlight-item .icon-wrapper {
        font-size: 16px !important;
        width: auto !important;
        margin-bottom: 0;
    }

    .product-title {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
}

/* Powertools theme overrides */
[data-theme="powertools"] .product-detail-grid {
    grid-template-columns: 1.2fr 1fr !important;
    gap: 40px !important;
}

[data-theme="powertools"] .product-gallery {
    position: sticky;
    top: 110px;
}

@media (max-width: 968px) {
    [data-theme="powertools"] .product-detail-grid {
        grid-template-columns: 1fr !important;
    }

    [data-theme="powertools"] .product-gallery {
        position: static !important;
    }
}

/* Set Drawer mobile layout + helper classes */
@media (max-width: 1023px) {
    .set-drawer-mobile {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 85% !important;
        max-width: 400px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 10000 !important;
        background: #fff !important;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
        margin-top: 0 !important;
        border: none !important;
        padding: 20px !important;
        border-left: 4px solid var(--primary) !important;
    }

    .set-drawer-mobile.active {
        transform: translateX(0);
    }

    .set-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .set-drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.remove-scrollbar::-webkit-scrollbar {
    display: none;
}

.remove-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes bounce-subtle {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s infinite ease-in-out;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

@keyframes accordion-stack {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(var(--accordion-dist));
    }
}

.animate-accordion-stack {
    animation: accordion-stack 4s ease-in-out infinite;
}

.hidden-stack {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease-out !important;
}

/* Product stat tooltips (moved from inline reviews block) */
.product-stat-tooltip-container {
    position: fixed;
    top: 90px;
    right: 16px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.product-stat-tooltip {
    opacity: 0;
    transform: translateY(-8px);
    transition: all .35s ease;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

#optionDetailModal.hidden {
    display: none !important;
}

.product-stat-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .product-stat-tooltip-container {
        top: 78px;
        right: 10px;
        left: 10px;
    }

    .product-stat-tooltip {
        border-radius: 12px;
        font-size: 11px;
        padding: 9px 12px;
    }
}

@media (max-width: 768px) {
    .discount-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

.product-description,
.product-features {
    margin-bottom: 20px;
}

.product-description h3,
.product-features h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light);
}

.product-description p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

.features-list {
    display: grid;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    transform: translateX(5px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background: var(--light);
}

/* Responsive */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .product-info-detail {
        padding: 20px 15px;
    }

    .product-info-detail h1 {
        font-size: 20px;
    }

    .product-price-large {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Wrapper for Info + Features */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

/* Features Grid (Moved outside) */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop = 1 row */
    gap: 8px;
}

.product-feature-item {
    padding: 6px 4px;
    background: #f9fbff;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    /* Stack icon and text for compactness */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
    transition: all 0.2s;
    line-height: 1.1;
    min-height: 50px;
    /* Fixed height for uniformity */
}

.product-feature-item:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.product-feature-item i {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .product-features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }

    .product-feature-item {
        flex-direction: row;
        /* Side-by-side on mobile for better fit */
        text-align: left;
        padding: 8px 10px;
        min-height: auto;
    }

    .product-feature-item i {
        margin-bottom: 0;
    }
}

/* --- Product Variants --- */
.product-variants {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
    border-bottom: none !important;
    min-width: 0;
}

.variant-group {
    margin-bottom: 5px !important;
    min-width: 0;
}

.variant-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px !important;
}

.variant-options {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
    max-width: 100%;
}

.variant-options::-webkit-scrollbar {
    height: 4px;
}

.variant-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.variant-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.variant-option-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.variant-option-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.variant-option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variant-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    animation: shake 0.3s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- Product Tabs --- */
.product-tabs-wrapper {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.product-tabs-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.product-tab-btn {
    padding: 18px 25px;
    font-weight: 600;
    color: #718096;
    background: transparent;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-size: 1rem;
}

.product-tab-btn:hover {
    color: var(--primary);
    background: #fff;
}

.product-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.product-tab-content {
    padding: 30px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.product-tab-content.active {
    display: block;
}

/* Rich text output for AI/product descriptions */
.product-description-content {
    line-height: 1.8;
    color: #4a5568;
    word-break: break-word;
}

.product-description-content > *:first-child {
    margin-top: 0;
}

.product-description-content > *:last-child {
    margin-bottom: 0;
}

.product-description-content p {
    margin: 0 0 14px;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4 {
    margin: 22px 0 10px;
    color: #1f2937;
    line-height: 1.35;
    font-weight: 700;
}

.product-description-content h1 {
    font-size: 1.625rem;
}

.product-description-content h2 {
    font-size: 1.375rem;
}

.product-description-content h3 {
    font-size: 1.125rem;
}

.product-description-content h4 {
    font-size: 1rem;
}

.product-description-content ul,
.product-description-content ol {
    margin: 0 0 14px 20px;
    padding-left: 8px;
}

.product-description-content ul {
    list-style: disc;
}

.product-description-content ol {
    list-style: decimal;
}

.product-description-content li {
    margin-bottom: 6px;
}

.product-description-content strong,
.product-description-content b {
    font-weight: 700;
}

.product-description-content em,
.product-description-content i {
    font-style: italic;
}

.product-description-content a {
    color: var(--primary);
    text-decoration: underline;
}

.product-description-content blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--primary);
    background: #f8fafc;
    color: #334155;
}

/* Mobil: tablar 2x2 grid, az scroll */
@media (max-width: 640px) {
    .product-tabs-header {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .product-tab-btn {
        padding: 14px 12px;
        font-size: 0.875rem;
        text-align: center;
        border-bottom: 3px solid transparent;
    }

    .product-tab-btn:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }
}

/* Mobil: machine tema tabları da 2x2 */
@media (max-width: 640px) {
    .machine-tabs-header {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        overflow: visible;
        gap: 0;
    }

    .machine-tabs-header .machine-tab-btn {
        flex: none;
        padding: 14px 10px;
        font-size: 0.7rem;
        text-align: center;
    }

    .machine-tabs-header .machine-tab-btn:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Mobil: Fiyat + SEPETE EKLE sticky bar (ekranda olmadığında görünür) */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #e5e7eb;
}

.sticky-cta-mobile.is-visible {
    display: flex !important;
}

.sticky-cta-mobile .sticky-cta-price {
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.sticky-cta-mobile .sticky-cta-add {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    background: rgb(242, 66, 13) !important;
    color: #fff !important;
}

.sticky-cta-mobile .sticky-cta-add:hover {
    background: rgb(220, 55, 10) !important;
    color: #fff !important;
}

@media (min-width: 769px) {
    .sticky-cta-mobile {
        display: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Attributes Table in Tab */
.attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.attributes-table tr {
    border-bottom: 1px solid #edf2f7;
}

.attributes-table tr:last-child {
    border-bottom: none;
}

.attributes-table td {
    padding: 12px 15px;
    font-size: 0.95rem;
}

.attr-name {
    width: 30%;
    color: #718096;
    font-weight: 500;
    background: #f8fafc;
}

.attr-value {
    color: #2d3748;
    font-weight: 600;
}

/* ============ REVIEWS SYSTEM STYLES ============ */

.reviews-container {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Reviews Summary */
.reviews-summary {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.summary-left {
    text-align: center;
    padding: 8px;
    border-right: 1px solid #edf2f7;
}

.big-rating {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.stars-big {
    font-size: 20px;
    color: #ffc107;
    margin: 8px 0 6px;
}

.total-reviews {
    font-size: 14px;
    color: #666;
}

.summary-right {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rating-bar>span:first-child {
    width: 15px;
    text-align: center;
    font-weight: 600;
    color: #666;
}

.rating-bar .bar {
    flex: 1;
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0;
}

.rating-bar .count {
    width: 25px;
    text-align: right;
    color: #999;
    font-size: 12px;
}

/* Review Action Area */
.review-action-area {
    margin: 0;
}

.write-review-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.review-notice {
    padding: 14px 16px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-notice i {
    font-size: 1rem;
    flex-shrink: 0;
}

.review-notice a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.review-notice.success {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #22543d;
}

.review-notice.warning {
    background: #fffaf0;
    border-color: #feebc8;
    color: #744210;
}

.review-notice.info {
    background: #ebf8ff;
    border-color: #bee3f8;
    color: #2a4365;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.review-card:hover {
    border-color: #d9e2ec;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.review-stars {
    font-size: 15px;
    white-space: nowrap;
}

.review-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.review-comment {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
}

.review-images {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-images img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-images img:hover {
    transform: scale(1.05);
}

.admin-response {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 6px 6px 0;
}

.admin-response strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-response p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.review-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.helpful-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

/* Review Modal */
.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.review-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.review-modal-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.review-modal-header .close-btn:hover {
    opacity: 1;
}

.review-modal form {
    padding: 25px;
}

.rating-selector {
    margin-bottom: 20px;
}

.rating-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.star-selector {
    display: flex;
    gap: 8px;
}

.star-selector .star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-selector .star:hover,
.star-selector .star.selected {
    color: #ffc107;
    transform: scale(1.1);
}

.review-modal .form-group {
    margin-bottom: 18px;
}

.review-modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.review-modal .form-group input[type="text"],
.review-modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.review-modal .form-group input:focus,
.review-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.review-modal .form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.submit-review-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-container {
        gap: 12px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .summary-left {
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .big-rating {
        font-size: 34px;
    }

    .review-header {
        flex-direction: column;
        gap: 8px;
    }

    .review-stars {
        order: -1;
    }

    .review-images img {
        width: 56px;
        height: 56px;
    }

    .review-card {
        padding: 14px;
    }

    .review-modal {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }

    .star-selector .star {
        font-size: 28px;
    }
}

/* Image Preview in Review Modal */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-preview:hover {
    background: #e53e3e;
}

.preview-notice {
    width: 100%;
    font-size: 12px;
    color: #e67e22;
    margin: 5px 0 0;
}

/* Name Privacy Options */
.name-privacy-group {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.privacy-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.privacy-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.privacy-option input[type="radio"] {
    display: none;
}

.privacy-option .option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.privacy-option .option-label i {
    font-size: 14px;
    color: #999;
}

.privacy-option input[type="radio"]:checked+.option-label {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
}

.privacy-option input[type="radio"]:checked+.option-label i {
    color: white;
}

.privacy-option:hover .option-label {
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .privacy-options {
        flex-direction: column;
    }

    .privacy-option .option-label {
        width: 100%;
        justify-content: center;
    }
}

/* Name Preview Box */
.name-preview-box {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.name-preview-box .preview-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.name-preview-box .preview-text {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

/* Installments Table */
#paytr-installments-container,
#paytr-installments-container-machine {
    background: #fff !important;
    padding: 1.5rem !important;
    min-height: 400px;
}

#paytr_taksit_tablosu {
    max-width: 100%;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#paytr_taksit_tablosu::before,
#paytr_taksit_tablosu::after {
    content: "";
    clear: both;
    display: table;
}

.taksit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 200px));
    gap: 0.875rem;
    justify-content: start;
    align-items: start;
}

.taksit-tablosu-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 200px;
}

.taksit-tablosu-wrapper .taksit-card-header {
    padding: 1rem 1rem 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.taksit-logo {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taksit-logo img {
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.taksit-logo h4 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
}

.taksit-tablosu-wrapper .taksit-card-body {
    padding: 0;
}

.taksit-row {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.taksit-row:last-child {
    border-bottom: none;
}

.taksit-tutari {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #374151;
    text-align: right;
}

.taksit-tutari .taksit-aylik {
    display: inline;
    font-weight: 500;
    color: #111827;
}

.taksit-tutari .taksit-toplam {
    display: inline;
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

.taksit-tutari-bold {
    font-weight: 600;
    color: #111827;
}

@media (max-width: 640px) {
    .taksit-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        justify-content: stretch;
    }

    .taksit-tablosu-wrapper {
        max-width: none;
    }

    .taksit-tablosu-wrapper .taksit-card-header {
        padding: 0.5rem 0.5rem 0.5rem;
    }

    .taksit-logo img {
        max-height: 22px;
        max-width: 90px;
    }

    .taksit-logo h4 {
        font-size: 0.8125rem;
    }

    .taksit-row {
        padding: 0.4rem 0.5rem;
    }

    .taksit-tutari {
        font-size: 0.6875rem;
    }

    .taksit-tutari .taksit-toplam {
        margin-left: 0.25rem;
    }
}
