/* B2C Mağaza Stilleri */
.b2c-site {
    background: #f8f9fa;
}

.b2c-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 30px;
}

.logo h1 {
    font-size: 24px;
    color: #667eea;
    margin: 0;
}

.logo p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    gap: 10px;
}

.header-search input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.header-search button {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.header-actions a:hover {
    background: #f0f0f0;
}

.cart-link {
    background: #28a745 !important;
    color: white !important;
    position: relative;
}

.cart-link:hover {
    background: #218838 !important;
}

.cart-link .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.b2c-nav {
    background: #667eea;
    padding: 0;
    display: flex;
    gap: 5px;
    overflow-x: auto;
}

.b2c-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    white-space: nowrap;
    transition: 0.3s;
}

.b2c-nav a:hover,
.b2c-nav a.active {
    background: rgba(255,255,255,0.2);
}

.b2c-main {
    padding: 30px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

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

.product-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 60px;
    color: #ddd;
}

.badge-stok {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    height: 40px;
    overflow: hidden;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.product-rating {
    margin-bottom: 10px;
    font-size: 14px;
}

.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #ddd;
}

.product-price {
    margin-bottom: 15px;
}

.price-main {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    display: block;
}

.price-info {
    font-size: 11px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
}

.search-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.b2c-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-grid h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-grid a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-grid a:hover {
    color: white;
}

.b2c-footer p {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #bbb;
}

/* Sepet Sayfası */
.cart-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-total {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    border-top: 2px solid #28a745;
    margin-top: 10px;
    padding-top: 15px;
}

/* Hesap Sayfaları */
.account-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.account-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.account-sidebar a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 5px;
}

.account-sidebar a:hover,
.account-sidebar a.active {
    background: #667eea;
    color: white;
}

.account-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-search {
        width: 100%;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
