/* Xdizayn B2B Frontend Styles */

/* Ana Renkler */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
}

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #0056b3;
}

/* Header Stiller */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transition: all 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary) !important;
}

.search-icon, .cart-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: #444;
    transition: all 0.3s ease;
}

.search-icon:hover, .cart-icon:hover {
    color: var(--primary);
}

/* Footer Stiller */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Kart Stiller */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    color: #333;
}

/* Buton Stiller */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Breadcrumb Stiller */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Form Stiller */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Toast Bildirimleri */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}

.toast {
    background-color: #fff;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.toast-header {
    border-bottom: none;
}

.toast-body {
    padding: 0.75rem 1.25rem;
}

/* Ürün Kartı */
.product-card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.old-price {
    text-decoration: line-through;
    color: #dc3545;
    font-size: 0.9rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Badge Stilleri */
.discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    z-index: 2;
}

.new-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #0d6efd;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    z-index: 2;
}

.campaign-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    z-index: 2;
}

/* Arama Modal */
#searchModal .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    font-size: 1.2rem;
    height: 50px;
}

#searchModal .btn {
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Responsive Ayarlar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .product-card .card-img-top {
        height: 160px;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        height: 38px;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .old-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-img-top {
        height: 140px;
    }
    
    .discount-badge, .new-badge, .campaign-badge {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

/* Marka logoları */
.brand-logo {
    max-height: 60px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border-radius: 0 !important;
    border: 1px solid #ced4da;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0;
}

.sharp-dropdown {
    border-radius: 0 !important;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(0);
}

@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        left: 0;
        top: 100%;
    }
}

/* Dil seçimi stilleri */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector a {
    margin-left: 0;
    transition: transform 0.2s ease;
}

.language-selector a:hover {
    transform: scale(1.1);
} 