/* ============================================
   Ehveniser - Ürün Detay Sayfa Stilleri
   Modern 3 Kolonlu Tasarım
   ============================================ */

.product-detail-page {
    padding: 30px 0 60px;
    font-family: 'Exo 2', sans-serif;
}

/* ============================================
   ANA LAYOUT - 3 KOLON
   ============================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 25px;
    margin-bottom: 30px;
}

/* ============================================
   SOL KOLON - ÜRÜN GÖRSELİ
   ============================================ */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.main-image .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.main-image .product-badge.featured {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.main-image .product-badge.sale {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
}

/* ============================================
   ORTA KOLON - ÜRÜN BİLGİLERİ TABLOSU
   ============================================ */
.product-info-center {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.product-info-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-info-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
    line-height: 1.3;
}

/* Bilgi Tablosu */
.product-info-table {
    width: 100%;
}

.info-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    width: 45%;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
    border-right: 1px solid var(--border-color);
}

.info-label i {
    width: 18px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.info-value {
    width: 55%;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.info-value.highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Kalan Süre Satırı */
.info-row.countdown-row {
    background: rgba(255, 107, 53, 0.05);
}

.info-row.countdown-row .info-label {
    background: rgba(255, 107, 53, 0.1);
}

.info-row.countdown-row .info-value {
    color: var(--accent-orange);
}

/* Fiyat Satırı */
.info-row.price-row {
    background: rgba(255, 107, 53, 0.05);
}

.info-row.price-row .info-label {
    background: rgba(255, 107, 53, 0.1);
}

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

.price-display .old-price {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.price-display .current-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-orange);
}

/* ============================================
   SİPARİŞ BİLGİ ALANLARI
   ============================================ */
.product-order-fields {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
}

.product-order-fields h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-order-fields h4 i {
    color: var(--accent-orange);
}

.order-fields-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-field-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-field-item label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-field-item .required-star {
    color: #e53935;
    font-size: 14px;
}

.order-field-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.order-field-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.order-field-input::placeholder {
    color: var(--text-gray);
}

textarea.order-field-input {
    resize: vertical;
    min-height: 80px;
}

select.order-field-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.field-help-text {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
    font-style: italic;
}

/* Satın Al Butonu */
.product-buy-section {
    padding: 20px;
}

.btn-buy-main {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-buy-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-buy-main i {
    margin-right: 8px;
}

/* ============================================
   SAĞ KOLON - SATICI PROFİLİ
   ============================================ */
.seller-profile-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.seller-profile-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.seller-profile-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seller-profile-body {
    padding: 20px;
}

.seller-main-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.seller-avatar-wrapper {
    position: relative;
}

.seller-avatar {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.seller-badge-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--secondary-bg);
}

.seller-badge-icon.verified {
    background: var(--accent-green);
    color: white;
}

.seller-badge-icon.level {
    background: #ffc107;
    color: #333;
}

.seller-details {
    flex: 1;
}

.seller-details h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--text-white);
}

.seller-last-seen {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.seller-last-seen::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-gray);
    border-radius: 50%;
}

.seller-last-seen.online::before {
    background: var(--accent-green);
}

.seller-action-icons {
    display: flex;
    gap: 8px;
}

.seller-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.seller-action-icon:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.seller-action-icon.verified {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Güvenlik Mesajı */
.seller-security-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.seller-security-msg i {
    color: #ffc107;
    font-size: 14px;
    margin-top: 2px;
}

/* Satıcı İstatistikleri */
.seller-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.seller-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.seller-stat i {
    font-size: 14px;
}

.seller-stat.success {
    color: var(--accent-green);
}

.seller-stat.failed {
    color: #e53935;
}

/* Satıcı Butonları */
.seller-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-seller-profile {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-seller-profile:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    color: white;
}

.seller-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-seller-action {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-seller-action.chat {
    background: var(--accent-green);
    border: none;
    color: white;
}

.btn-seller-action.chat:hover {
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.btn-seller-action.sms {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.btn-seller-action.sms:hover {
    background: var(--accent-green);
    color: white;
}

/* Satıcı Badge'leri */
.seller-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.seller-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-gray);
}

.seller-badge i {
    font-size: 14px;
}

.seller-badge.active {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
}

.seller-badge.verified-badge {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 200, 83, 0.1);
}

/* ============================================
   TAB SİSTEMİ
   ============================================ */
.product-tabs {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

.tab-btn {
    padding: 16px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 107, 53, 0.05);
}

.tab-btn.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
}

.tabs-content {
    padding: 25px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Açıklama İçeriği */
.description-content {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 14px;
}

.description-content h3,
.description-content h4 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-white);
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

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

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

.no-description {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 30px;
}

/* ============================================
   DEĞERLENDİRMELER
   ============================================ */
.no-reviews {
    text-align: center;
    padding: 50px 20px;
}

.no-reviews i {
    font-size: 50px;
    color: var(--border-color);
    margin-bottom: 15px;
}

.no-reviews p {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.no-reviews span {
    font-size: 13px;
    color: var(--text-gray);
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 15px;
}

.big-rating {
    font-family: 'Rajdhani', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
}

.rating-overview .stars i {
    color: #ffc107;
    font-size: 18px;
}

.total-reviews {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 5px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    padding: 20px;
    background: var(--header-bg);
    border-radius: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info strong {
    display: block;
    font-size: 14px;
    color: var(--text-white);
}

.review-date {
    font-size: 12px;
    color: var(--text-gray);
}

.review-rating i {
    font-size: 12px;
    color: var(--border-color);
}

.review-rating i.active {
    color: #ffc107;
}

.review-comment {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* ============================================
   BENZER ÜRÜNLER
   ============================================ */
.similar-products {
    margin-top: 40px;
}

.similar-products h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.similar-products h2 i {
    color: var(--accent-orange);
}

.similar-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-products .product-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.similar-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-orange);
}

.similar-products .product-image {
    height: 130px;
    overflow: hidden;
}

.similar-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-products .product-content {
    padding: 15px;
}

.similar-products .product-category {
    font-size: 11px;
    color: var(--accent-orange);
}

.similar-products h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: var(--text-white);
    line-height: 1.4;
}

.similar-products .product-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-orange);
}

/* ============================================
   MESAJ MODAL
   ============================================ */
.message-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.message-modal {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.message-modal-overlay.active .message-modal {
    transform: scale(1);
}

.message-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.message-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-modal-header h3 i {
    color: var(--accent-orange);
}

.message-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--header-bg);
    border-radius: 50%;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-modal-close:hover {
    background: #e53935;
    color: white;
}

.message-modal-body {
    padding: 20px;
}

.message-modal-body textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.message-modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.message-modal-body textarea::placeholder {
    color: var(--text-gray);
}

.message-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel-message {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-message:hover {
    border-color: var(--text-gray);
    color: var(--text-white);
}

.btn-send-message {
    padding: 12px 25px;
    background: var(--gradient-orange);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    padding: 15px 0;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-orange);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .product-detail-layout {
        grid-template-columns: 280px 1fr 280px;
        gap: 20px;
    }
    
    .similar-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .product-gallery,
    .seller-profile-card {
        position: static;
    }
    
    .main-image img {
        height: 280px;
    }
    
    .similar-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 14px 18px;
        font-size: 13px;
    }
    
    .seller-action-btns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .similar-products .products-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label,
    .info-value {
        width: 100%;
        border-right: none;
    }
    
    .info-label {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .info-value {
        padding-top: 5px;
    }
}
