/* ============================================
   TeknolojiCell - Ana Stil Dosyası
   ============================================ */

/* === Genel Ayarlar === */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* === Animasyonlar === */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-slide-in { animation: slideIn 0.3s ease-out; }
.animate-slide-up { animation: slideUp 0.4s ease-out; }
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* === Skeleton Loading === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 256px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
    .hero-slide { height: 380px; }
}

@media (min-width: 768px) {
    .hero-slide { height: 460px; }
}

@media (min-width: 1024px) {
    .hero-slide { height: 540px; }
}

/* Smooth slide geçiş animasyonu */
.hero-slide img {
    transform: scale(1.05);
    transition: transform 8s ease-out, opacity 0.8s ease;
}

.hero-slide.block img,
.hero-slide:not(.hidden) img {
    transform: scale(1);
}

/* Slider göstergeleri */
.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* === Ürün Kartları === */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* Sabit görsel alanı */
.product-card-img {
    height: 130px;
}
@media (min-width: 640px) {
    .product-card-img { height: 160px; }
}
@media (min-width: 768px) {
    .product-card-img { height: 180px; }
}
@media (min-width: 1024px) {
    .product-card-img { height: 200px; }
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Fiyat Gösterimi === */
.price-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85em;
}

.price-eft {
    color: #1e40af;
    font-weight: 700;
}

.price-card {
    color: #6b7280;
}

/* === Kategori Grid === */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon {
    transition: transform 0.3s;
}

/* === Chatbot Widget === */
#chatWidget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 45;
}

#chatToggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4);
    transition: all 0.3s;
}

#chatToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(30, 64, 175, 0.5);
}

#chatBox {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 520px;
    border: 1px solid #e5e7eb;
}

#chatBox.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

#chatHeader {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 280px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideUp 0.2s ease-out;
}

.chat-message.bot {
    background: #f1f5f9;
    color: #334155;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-message.user {
    background: #1e40af;
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

#chatInput {
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

#chatInput input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#chatInput input:focus {
    border-color: #3b82f6;
}

#chatInput button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e40af;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#chatInput button:hover {
    background: #1e3a8a;
}

/* === Ürün Detay Sayfası === */
.product-gallery {
    position: relative;
}

.product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-gallery-main:hover img {
    transform: scale(1.05);
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: #f9fafb;
    transition: all 0.2s;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: #1e40af;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* === Renk/Varyant Seçimi === */
.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-option:hover,
.color-option.active {
    border-color: #1e40af;
    transform: scale(1.1);
}

.color-option.active::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #1e40af;
}

.storage-option {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.storage-option:hover,
.storage-option.active {
    border-color: #1e40af;
    background: #eff6ff;
    color: #1e40af;
}

/* === Tab Paneli === */
.tab-btn {
    padding: 12px 24px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #1e40af;
}

.tab-btn.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

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

/* === Özellik Tablosu === */
.spec-table tr:nth-child(even) {
    background: #f8fafc;
}

.spec-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.spec-table td:first-child {
    font-weight: 500;
    color: #475569;
    width: 40%;
}

/* === Miktar Seçici === */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.qty-selector button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s;
}

.qty-selector button:hover {
    background: #e5e7eb;
}

.qty-selector input {
    width: 52px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-weight: 600;
    outline: none;
}

/* === Checkout Adımları === */
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.checkout-step.active .step-number {
    background: #1e40af;
    color: #fff;
}

.checkout-step.completed .step-number {
    background: #10b981;
    color: #fff;
}

.checkout-step:not(.active):not(.completed) .step-number {
    background: #e5e7eb;
    color: #9ca3af;
}

/* === Form Stili === */
.form-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fff;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    padding: 16px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #6b7280;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1e40af;
}

.breadcrumb .separator {
    color: #d1d5db;
}

/* === Sipariş Durumu === */
.order-status-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 16px;
}

.order-status-timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e5e7eb;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.status-step .step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.3s;
}

.status-step.active .step-icon {
    background: #1e40af;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2);
}

.status-step.completed .step-icon {
    background: #10b981;
    color: #fff;
}

/* === Responsive Uyum === */
@media (max-width: 640px) {
    .hero-slide { min-height: 300px; }
    #chatBox { width: calc(100vw - 16px); right: -16px; bottom: 64px; }
    .order-status-timeline { flex-direction: column; align-items: flex-start; gap: 16px; }
    .order-status-timeline::before { display: none; }
}

/* === Yardımcı Sınıflar === */
.text-gradient {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.shadow-primary {
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.25);
}

/* No image placeholder */
.no-image {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 48px;
}

/* Sayfa geçişi */
main {
    min-height: calc(100vh - 200px);
}

/* Print stili */
@media print {
    header, footer, #chatWidget, #whatsappBtn, .no-print { display: none !important; }
    main { margin: 0; padding: 0; }
}
