/* === OTO YEDEK PARÇA - CUSTOM CSS === */
/* Modern e-ticaret tasarım sistemi */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Base --- */
*, *::before, *::after {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar Hide --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* --- Staggered Grid Animation --- */
.grid > * { animation: fadeInUp 0.4s ease-out forwards; opacity: 0; }
.grid > *:nth-child(1) { animation-delay: 0.05s; }
.grid > *:nth-child(2) { animation-delay: 0.1s; }
.grid > *:nth-child(3) { animation-delay: 0.15s; }
.grid > *:nth-child(4) { animation-delay: 0.2s; }
.grid > *:nth-child(5) { animation-delay: 0.25s; }
.grid > *:nth-child(6) { animation-delay: 0.3s; }
.grid > *:nth-child(7) { animation-delay: 0.35s; }
.grid > *:nth-child(8) { animation-delay: 0.4s; }
.grid > *:nth-child(9) { animation-delay: 0.45s; }
.grid > *:nth-child(10) { animation-delay: 0.5s; }

/* --- Banner Slider --- */
.banner-slide {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-dot {
    transition: all 0.3s ease;
}
.slider-dot.active {
    width: 28px;
    border-radius: 8px;
    background: #F59E0B !important;
}

/* --- Megamenu --- */
.group:hover > .mega-dropdown,
.group:hover > [class*="absolute"] {
    animation: slideDown 0.25s ease-out forwards;
}

/* --- Product Card Hover Effects --- */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
}
.product-card .product-image {
    overflow: hidden;
    position: relative;
}
.product-card .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(245, 158, 11, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-image::after {
    opacity: 1;
}

/* --- Brand Card --- */
.brand-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.brand-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.10);
    transform: translateY(-3px);
}

/* --- Marka Navbar Linkleri --- */
.marka-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}
.marka-nav-link:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #F59E0B;
}
.dark .marka-nav-link {
    color: #d1d5db;
}
.dark .marka-nav-link:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

/* --- Parça Üretici Logo Kartı --- */
.uretici-card {
    transition: all 0.25s ease;
}
.uretici-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.uretici-card img {
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.45;
}
.uretici-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* --- Price Tag --- */
.price-tag {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
}
.dark .price-tag {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
    border-color: rgba(51, 65, 85, 0.5);
}
.price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.75rem;
}
.price-current {
    font-weight: 900;
    font-size: 1.25rem;
    color: #0f172a;
}
.dark .price-current {
    color: #f1f5f9;
}

/* --- Discount Badge --- */
.discount-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-dark {
    background: linear-gradient(135deg, #101828 0%, #1e293b 100%);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.2);
}
.btn-dark:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: translateY(-1px);
}

/* --- Section Titles --- */
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 900;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: #F59E0B;
    border-radius: 2px;
}

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

/* --- Toast Notifications Enhancement --- */
#toast-konteyner > div {
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Footer Enhancements --- */
footer a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}
footer a:hover {
    padding-left: 4px;
}

/* --- Form Inputs --- */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* --- Number Input Arrows Hide --- */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* --- Line Clamp Helper --- */
.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;
}

/* --- Glassmorphism Cards --- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.3);
}

/* --- Responsive Utils --- */
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .grid > * { animation-delay: 0s !important; }
}

/* --- Print --- */
@media print {
    header, footer, .toast, #toast-konteyner { display: none !important; }
}
