/* =============================================================================
   ÜRÜN DETAY SAYFASI STİLLERİ
   ============================================================================= */

/* =============================================================================
   THUMBNAIL GRID
   ============================================================================= */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    overflow: hidden;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail-grid .product-thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-grid .product-thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail-grid .product-thumbnail.active {
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .thumbnail-grid .product-thumbnail {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .thumbnail-grid .product-thumbnail {
        height: 45px;
    }
}

/* =============================================================================
   PRODUCT DETAIL CONTAINER
   ============================================================================= */
.product-detail-container {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin: 100px 0 30px 0;
    overflow: hidden;
    padding: 30px;
    position: relative;
    z-index: 10;
}

/* Sadece container ve product-detail'i şeffaf yap */
.container {
    background: transparent !important;
}

.container .product-detail-container {
    background: transparent !important;
}

/* =============================================================================
   PRODUCT HEADER
   ============================================================================= */
.product-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.product-header h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.product-header p {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* =============================================================================
   PRODUCT GALLERY
   ============================================================================= */
.product-gallery {
    text-align: center;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.product-thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.product-thumbnail.active {
    border-color: #764ba2;
}

/* =============================================================================
   PRODUCT INFO
   ============================================================================= */
.product-info {
    padding: 20px 0;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.product-meta i {
    color: #667eea;
}

/* =============================================================================
   PRODUCT SECTIONS
   ============================================================================= */
.product-description,
.product-tags,
.rating-section,
.order-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.product-description h4,
.product-tags h4,
.rating-section h4,
.order-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.product-description h4 i,
.product-tags h4 i,
.rating-section h4 i,
.order-section h4 i {
    color: #667eea;
    margin-right: 10px;
}

/* =============================================================================
   TAGS
   ============================================================================= */
.tag-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* =============================================================================
   RATING SYSTEM
   ============================================================================= */
.rating-stars {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 15px;
}

.rating-star {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-star:hover,
.rating-star.active {
    transform: scale(1.2);
}

/* =============================================================================
   SECURITY CODE BOX
   ============================================================================= */
.security-code-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 6px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* =============================================================================
   FORM ELEMENTS
   ============================================================================= */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-primary.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #fccb90 0%, #ff6b6b 100%);
    color: #721c24;
}

.alert i {
    margin-right: 10px;
}

/* =============================================================================
   TEXT BUTTONS
   ============================================================================= */
.text-button {
    margin-top: 15px;
    text-align: center;
}

.text-button a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.text-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

/* =============================================================================
   SIMILAR PRODUCTS CARDS
   ============================================================================= */
.owl-courses-item .item {
    display: flex;
    flex-direction: column;
    height: 320px !important; /* Sabit yükseklik */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.owl-courses-item .item:hover {
    transform: translateY(-5px);
}

.owl-courses-item .item img {
    height: 200px !important; /* Sabit resim yüksekliği */
    object-fit: cover;
    width: 100%;
}

.owl-courses-item .item .down-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.owl-courses-item .item .down-content h4 {
    min-height: 40px !important; /* Sabit başlık yüksekliği */
    max-height: 40px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    line-height: 1.2;
    font-size: 16px;
    margin-bottom: 5px !important; /* Ayraç azalt */
}

.owl-courses-item .item .down-content .info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: auto;
    padding: 10px !important;
    border-radius: 5px;
}

.owl-courses-item .down-content .info ul {
    display: flex !important;
    gap: 2px !important;
    margin: 0 !important;
    justify-content: center !important;
}

.owl-courses-item .down-content .info ul li {
    color: #ffd700 !important;
    font-size: 14px !important;
    display: inline-block !important;
}

.owl-courses-item .down-content .info .row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    gap: 5px !important;
}

.owl-courses-item .down-content .info .col-8,
.owl-courses-item .down-content .info .col-4 {
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.owl-courses-item .down-content .info .col-4 {
    display: none !important; /* Sadece kodu gizle */
}

/* =============================================================================
   LAYOUT ADJUSTMENTS
   ============================================================================= */
/* Footer boşluğunu tamamen kaldır */
.our-courses {
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
}

/* Ürün detayı ve benzer ürünler arası boşluk */
.product-detail-container {
    margin-bottom: 20px !important;
}

.our-courses {
    margin-top: 0px !important;
    padding-top: 10px !important;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .main-image {
        margin-top: 80px;
        margin-bottom: 20px;
    }
    
    .product-header h2 {
        font-size: 2rem;
    }
    
    .product-header p {
        font-size: 1rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .security-code-box {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .thumbnail-container {
        justify-content: flex-start;
    }
    
    .owl-courses-item .item {
        min-height: 350px;
    }
    
    .owl-courses-item .item img {
        height: 180px;
    }
}

/* =============================================================================
   PRODUCT.PHP'DEN TAŞINAN INLINE STİLLER
   ============================================================================= */

.heading-page {
    margin-top: -250px !important;
    padding: 5px 0 !important;
}

.product-detail-container {
    background-color: white !important;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-container h3 {
    color: white !important;
}

.product-detail-container .product-code,
.product-detail-container .product-views,
.product-detail-container .product-rating {
    color: white !important;
}

.product-detail-container .product-description h4,
.product-detail-container .product-tags h4,
.product-detail-container .rating-section h4,
.product-detail-container .order-section h4 {
    color: white !important;
}

.product-detail-container .product-description p {
    color: white !important;
}

.product-detail-container .rating-form button {
    color: white !important;
}

.product-detail-container .form-label {
    color: white !important;
}
