/* Kıral Servis Oto Yedek Parça - BMW Blue Theme & Trendyol Marketplace System */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6fa;
    --bg-card: #ffffff;
    --bg-light-gray: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    
    /* BMW Blue Color Palette */
    --primary-color: #0066B1;       /* BMW Royal Blue */
    --primary-hover: #00408A;       /* BMW Navy Blue */
    --primary-cyan: #00A3E0;        /* BMW Electric Cyan */
    --dark-color: #0b1329;          /* BMW Deep Night Blue */
    --accent-red: #E61C24;          /* BMW M Red Accent */
    
    /* Trendyol Marketplace Accents */
    --trendyol-orange: #f27a1a;
    --trendyol-orange-hover: #d9660c;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --font-sans: 'Manrope', sans-serif;
    --font-brand: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0, 102, 177, 0.08);
    --shadow-lg: 0 10px 30px rgba(11, 19, 41, 0.12);
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Prevent editable I-beam cursor and selection on static text */
body, h1, h2, h3, h4, h5, h6, p, span, div, td, th, label, li {
    cursor: default;
    user-select: none;
}
a, button, select, option, .cursor-pointer, .nav-link, .btn, [role="button"] {
    cursor: pointer !important;
}
input, textarea, [contenteditable="true"] {
    cursor: text !important;
    user-select: text !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utilities */
.br-40 { border-radius: 40px !important; }
.cursor-pointer { cursor: pointer; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

/* Custom BMW Royal Blue Buttons */
.btn-oyp {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    padding: 10px 24px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 102, 177, 0.25);
}
.btn-oyp:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #002b5e 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 177, 0.35);
}
.btn-oyp-dark {
    background-color: var(--dark-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    padding: 10px 24px;
    transition: var(--transition);
}
.btn-oyp-dark:hover {
    background-color: #1a2744;
    color: #ffffff;
}

.btn-express, .btn-trendyol {
    background-color: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    padding: 10px 24px;
    transition: var(--transition);
}
.btn-express:hover, .btn-trendyol:hover {
    background-color: #ea580c;
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-trendyol:hover {
    background-color: var(--trendyol-orange-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(242, 122, 26, 0.3);
}

/* Topbar Notification Bar */
#layout-topbar {
    background: linear-gradient(90deg, #0b1329 0%, #001838 50%, #0b1329 100%);
    color: #ffffff;
    padding: 7px 0;
    font-size: 13px;
    z-index: 1030;
    border-bottom: 2px solid var(--primary-color);
}
#layout-topbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* BMW M Stripe Highlight line */
.bmw-m-bar {
    height: 3px;
    background: linear-gradient(90deg, #00A3E0 0%, #00A3E0 33.3%, #0066B1 33.3%, #0066B1 66.6%, #E61C24 66.6%, #E61C24 100%);
    width: 100%;
}

/* Main Header */
#layout-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1020;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Trendyol Search Box & Tags */
.search-wrapper {
    transition: var(--transition);
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    border-radius: 30px;
}
.search-wrapper:focus-within {
    border-color: var(--primary-color) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 177, 0.12);
}

.search-pill-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.search-pill-tag:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

/* Circle Icon Buttons (Garage, Cart, Dark Mode, Admin) */
.circle-div-56 {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.circle-div-56:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 177, 0.25);
}

/* Count Badge */
.sc-count-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    background: linear-gradient(135deg, var(--trendyol-orange) 0%, #e05e00 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* Category Navbar & Mega Menu */
#navMainCategory {
    padding: 0;
}
#navMainCategory .nav-link {
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
#navMainCategory .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: #f8fafc;
}

.nav-hover-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary) !important;
    border-top: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.category-nav-link:hover {
    color: var(--primary-color);
}

/* Trendyol Advantage Cards Bar */
.benefit-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Home Carousel Banners */
.home-slider {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.slide-item {
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 50px;
    color: #ffffff;
}

/* Product Card - Trendyol Marketplace Design */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Trendyol Badges */
.badge-express {
    background-color: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free-shipping {
    background-color: #0284c7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-basket-discount {
    background-color: var(--trendyol-orange);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-discount-percent {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(230, 28, 36, 0.3);
}

/* Star Rating System */
.rating-stars {
    color: #f59e0b;
    font-size: 12px;
}
.rating-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 4px;
}

/* Product Card Elements */
.product-card img {
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-brand-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-oem {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12.5px;
    margin-right: 6px;
    font-weight: 600;
}
.price-new {
    color: var(--dark-color);
    font-size: 18px;
    font-weight: 900;
}
.price-discounted {
    color: var(--accent-red);
    font-size: 19px;
    font-weight: 900;
}

/* Tabs */
.nav-tabs-oyp {
    border-bottom: 2px solid var(--border-color);
}
.nav-tabs-oyp .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 15px;
}
.nav-tabs-oyp .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

/* Footer Styling */
#layout-footer {
    background: linear-gradient(180deg, #0b1329 0%, #040814 100%);
    color: #e2e8f0;
    padding: 60px 0 20px;
    border-top: 4px solid var(--primary-color);
}
#layout-footer h5 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 16px;
}
#layout-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}
#layout-footer a:hover {
    color: #00A3E0;
    padding-left: 4px;
}
#layout-footer p {
    color: #e2e8f0 !important;
}

/* Mobile Optimization & Responsive Rules */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 75px !important;
    }
    #layout-header {
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    .carousel-item {
        min-height: 240px !important;
    }
    .slide-item {
        padding: 24px 16px !important;
        min-height: 240px !important;
    }
    .slide-item h1 {
        font-size: 1.35rem !important;
    }
    .slide-item p.lead {
        font-size: 0.85rem !important;
    }
    .product-card {
        padding: 10px !important;
    }
    .product-title {
        font-size: 12px !important;
        height: 34px !important;
    }
    .price-new, .price-discounted {
        font-size: 15px !important;
    }
    .badge-express, .badge-basket-discount, .badge-free-shipping {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .circle-div-56 {
        width: 44px !important;
        height: 44px !important;
    }
}
