/* ===== GENEL STİLLER ===== */

/* Navbar mobile spacing fix */
@media (max-width: 991.98px) {
    .navbar-btn-group {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    form[role="search"] {
        margin-bottom: 0.5rem;
    }
}
/* SİTEYE ÖZEL GENEL STİLLER */

/* Logo Beyaz Filtresi */
.navbar-brand img {
    filter: brightness(0) invert(1);
}

.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.category-card .card-img {
    filter: brightness(1);
    transition: filter 0.3s ease-in-out;
    height: 200px;
    object-fit: cover;
}

.category-card:hover .card-img {
    filter: brightness(1.05);
}

.category-card .card-img-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    color: #fff;
    padding: 0;
    display: flex;
    align-items: flex-end;
}

.category-card .card-img-overlay:hover {
    color: #fff;
    padding: 0;
}

.category-card .card-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem;
    margin: 0;
    width: 100%;
    text-align: center;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover::after {
    transform: scaleX(1);
}

/* Kartların kenar yuvarlaklığını kaldır */
.card {
    border-radius: 0;
}

/* Yeni Google Buton Stili */
.btn-google-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #dadce0;
  border-radius: .35rem; /* Sitenin genel border-radius'u ile uyumlu */
  background-color: #fff;
  color: #3c4043;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, box-shadow .2s;
}

.btn-google-custom:hover {
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  background-color: #f8f9fa;
  border-color: #dadce0;
  color: #3c4043;
  text-decoration: none;
}

.btn-google-custom .google-icon-wrapper {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Ürün Detay Galerisi Stilleri */
.thumbnail-link .img-thumbnail {
    border: 2px solid transparent;
    padding: 2px;
    transition: border-color 0.2s ease-in-out;
    cursor: pointer;
}

.thumbnail-link.active .img-thumbnail,
.thumbnail-link:hover .img-thumbnail {
    border-color: var(--bs-primary, #0d6efd); /* Temanın ana rengini kullanır */
}

/* Sepete Ekle Modalı Ürün Resmi */
.modal-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Ana Sayfa Bölüm Başlıkları */
.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0 0 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #0d6efd 0%, #0b5ed7 100%);
    left: -20px;
    top: 0;
    border-radius: 4px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd 0%, transparent 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Owl Carousel Navigasyon Stilleri (Yeniden Tasarlandı) */
.product-carousel {
    padding: 0 2rem;
}

.product-carousel .owl-nav button.owl-prev,
.product-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    color: #fff !important;
    font-size: 1.3rem !important;
    line-height: 44px !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-carousel .owl-nav button.owl-prev:hover,
.product-carousel .owl-nav button.owl-next:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.product-carousel .owl-nav button.owl-prev {
    left: 0;
}

.product-carousel .owl-nav button.owl-next {
    right: 0;
}
.product-carousel .owl-nav button.owl-prev { left: -15px; }
.product-carousel .owl-nav button.owl-next { right: -15px; }

/* Ürün Kartları Yükseklik Standardizasyonu - Owl Carousel */
.owl-carousel .card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

.owl-carousel .card img {
    height: 200px !important;
    object-fit: cover !important;
    flex-shrink: 0;
    width: 100% !important;
}

.owl-carousel .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 1rem;
    min-height: 140px;
}

.owl-carousel .card-body .text-center {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 90px;
}

.owl-carousel .card-body h5 {
    word-break: break-word;
    height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.25rem;
    flex-shrink: 0;
}

.owl-carousel .card-body p {
    word-break: break-word;
    height: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.owl-carousel .card-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.75rem;
}

/* Ürün Kartları Yükseklik Standardizasyonu - Normal Grid (Kategori, İlgili Ürünler) */
.row-cols-2 .card,
.row-cols-md-3 .card,
.row-cols-xl-4 .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.row-cols-2 .card img,
.row-cols-md-3 .card img,
.row-cols-xl-4 .card img {
    height: 200px !important;
    object-fit: cover !important;
    flex-shrink: 0;
    width: 100% !important;
}

.row-cols-2 .card-body,
.row-cols-md-3 .card-body,
.row-cols-xl-4 .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 1rem;
    min-height: 140px;
}

.row-cols-2 .card-body .text-center,
.row-cols-md-3 .card-body .text-center,
.row-cols-xl-4 .card-body .text-center {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 90px;
}

.row-cols-2 .card-body h5,
.row-cols-md-3 .card-body h5,
.row-cols-xl-4 .card-body h5 {
    word-break: break-word;
    height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.25rem;
    flex-shrink: 0;
}

.row-cols-2 .card-body p,
.row-cols-md-3 .card-body p,
.row-cols-xl-4 .card-body p {
    word-break: break-word;
    height: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.row-cols-2 .card-footer,
.row-cols-md-3 .card-footer,
.row-cols-xl-4 .card-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.75rem;
}

/* Ürün Detay Sayfası Açıklama Stili */
.product-description {
    font-size: 1rem; /* Yazı boyutunu biraz küçültelim */
    font-weight: 400; /* Çok ince olmasın */
    color: #495057; /* Daha yumuşak bir siyah tonu */
    margin-top: 1.5rem; /* Fiyat ile arasına boşluk ekleyelim */
    margin-bottom: 1.5rem; /* Sepete ekle butonu ile arasına boşluk ekleyelim */
}

/* ===== MODERN PRODUCT GALLERY STYLES ===== */

.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Ana resim wrapper */
.main-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: stretch;
}

.main-image-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Ana ürün resmi */
.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
    flex: 1;
}

.main-image-wrapper:hover .main-product-image {
    transform: scale(1.05);
}

/* Zoom Hint - Ana resme hover'da görüntü */
.image-zoom-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
}

.main-image-wrapper:hover .image-zoom-hint {
    opacity: 1;
}

.image-zoom-hint i {
    margin-right: 0.6rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Thumbnail Galerisi - Horizontal Scroll */
.thumbnail-gallery-wrapper {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    
    /* Webkit browsers scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Thumbnail Item */
.thumbnail-item {
    flex: 0 0 calc(25% - 0.6rem);
    min-width: 80px;
}

/* Thumbnail Link */
.thumbnail-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #f8f9fa;
    transition: all 0.3s ease;
    height: 100%;
}

.thumbnail-link:hover,
.thumbnail-item.active .thumbnail-link {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

/* Thumbnail Resmi */
.thumbnail-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-link:hover .thumbnail-img {
    transform: scale(1.1);
}

/* Thumbnail Overlay - Eye Icon */
.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.thumbnail-link:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    font-size: 1.25rem;
}

/* Responsive Design - Tablet ve Mobil */
@media (max-width: 991.98px) {
    .product-gallery-container {
        gap: 1rem;
    }
    
    .thumbnail-item {
        flex: 0 0 calc(33.333% - 0.5rem);
        min-width: 70px;
    }
}

@media (max-width: 575.98px) {
    .thumbnail-item {
        flex: 0 0 calc(25% - 0.5rem);
        min-width: 60px;
    }
    
    .thumbnail-img {
        padding: 0.35rem;
    }
    
    .image-zoom-hint {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .image-zoom-hint i {
        font-size: 1rem;
    }
}

/* ===== PRODUCT DETAIL - INFO CARDS ===== */

.product-info-section {
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #f0f1f5;
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-icon {
    font-size: 1.5rem;
    color: #0d6efd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card:hover .info-value {
    color: #0d6efd;
}

/* Ürün Başlığı */
.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* ===== PRICE SECTION ===== */

.price-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f5 100%);
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
}

.price-note {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* ===== VARIANTS FORM ===== */

.variants-form {
    background: white;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variant-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.variant-select {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.variant-select:hover {
    border-color: #adb5bd;
}

.variant-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* ===== ORDER SECTION ===== */

.order-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.quantity-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    display: block;
    margin-bottom: 0.5rem;
}

.quantity-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.quantity-input:hover {
    border-color: #adb5bd;
}

.quantity-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    outline: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 2rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
    color: white;
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart i {
    font-size: 1.1rem;
}

/* Stok Bilgisi */
.stock-info {
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.stock-message {
    margin: 0;
    font-size: 0.95rem;
    color: #198754;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Açıklama Bölümü */
.product-description-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

/* Alert Stilleri */
.alert-lg {
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .info-card {
        padding: 0.875rem;
    }
    
    .info-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }
    
    .order-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.25rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .price-section {
        padding: 1rem;
    }
    
    .quantity-input {
        font-size: 0.9rem;
        padding: 0.625rem 0.75rem;
    }
}