/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--customer-primary-color, #667eea) 0%, var(--customer-secondary-color, #764ba2) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.welcome-text:hover {
    opacity: 0.8;
}

.btn-login,
.btn-logout {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-login:hover,
.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.cart-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Alert Mesajları */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin-left: 1.5rem;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--customer-button-color, #667eea);
    color: white;
}

.btn-primary:hover {
    background: var(--customer-button-hover, #5568d3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Menü Sayfası */
.menu-page {
    padding: 2rem 0;
}

.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--customer-primary-color, #667eea);
    background: white;
    color: var(--customer-primary-color, #667eea);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--customer-primary-color, #667eea);
    color: white;
}

.products-grid {
    margin-top: 2rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid var(--customer-primary-color, #667eea);
    padding-bottom: 0.5rem;
}

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--customer-primary-color, #667eea);
}

.btn-add-cart {
    padding: 0.5rem 1rem;
    background: var(--customer-button-color, #667eea);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #5568d3;
}

/* Sepet Sayfası */
.cart-page {
    padding: 2rem 0;
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobil Sepet Tablosu Gizleme - Desktop'ta gizli */
.cart-table-mobile {
    display: none;
}

.order-items-mobile {
    display: none;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.cart-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-quantity {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-quantity:hover {
    background: #f8f9fa;
}

.quantity {
    min-width: 30px;
    text-align: center;
}

.btn-remove {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-remove:hover {
    background: #c82333;
}

.cart-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
}

/* Form Stilleri */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Sipariş Onay Sayfası */
.checkout-page,
.track-page {
    padding: 2rem 0;
}

.auth-warning-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-tabs {
    margin-top: 1.5rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--customer-primary-color, #667eea);
}

.tab-btn.active {
    color: var(--customer-primary-color, #667eea);
    border-bottom-color: var(--customer-primary-color, #667eea);
    font-weight: 600;
}

.tab-content {
    display: none;
}

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

.customer-info-section {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.customer-info-section .success-message {
    color: #155724;
    margin: 0;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.order-confirmation {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 1rem;
}

.order-number {
    font-size: 1.2rem;
    color: var(--customer-primary-color, #667eea);
}

.order-details {
    margin-top: 2rem;
}

.order-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.order-info p {
    margin-bottom: 0.5rem;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-items-table th,
.order-items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.order-items-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.order-actions,
.track-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Profile Pages */
.profile-page {
    padding: 2rem 0;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin: 0;
}

.profile-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item.active {
    background: var(--customer-primary-color);
    color: white;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-card h3 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    width: 150px;
    color: #666;
}

.info-row span {
    color: #333;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.address-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid var(--customer-primary-color, #667eea);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--customer-primary-color, #667eea);
    color: white;
}

.text-muted {
    color: #6c757d;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Sticky Sepet Butonu */
.sticky-cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
}

.sticky-cart-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--customer-button-color, #667eea) 0%, var(--customer-secondary-color, #764ba2) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
}

.sticky-cart-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-text {
    white-space: nowrap;
}

.sticky-cart-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
}

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

/* Mobil için sticky buton */
@media (max-width: 768px) {
    .sticky-cart-button {
        bottom: 15px;
        right: 15px;
    }
    
    .sticky-cart-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 50px;
        gap: 0.5rem;
    }
    
    .cart-text {
        display: inline;
        white-space: nowrap;
    }
    
    .sticky-cart-badge {
        display: flex;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobil */
    header {
        padding: 0.75rem 0;
    }

    header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    header h1 {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    header nav {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        align-items: stretch;
    }

    header nav a {
        text-align: center;
        padding: 0.5rem;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.1);
    }

    .user-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .welcome-text {
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .btn-login,
    .btn-logout {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    /* Menü Sayfası Mobil */
    .menu-page {
        padding: 1rem 0;
    }

    .category-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .products-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-image,
    .product-image-placeholder {
        height: 180px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    /* Sepet Sayfası Mobil */
    .cart-page {
        padding: 1rem 0;
    }

    .cart-table {
        display: none; /* Tabloyu gizle */
    }

    .cart-table-mobile {
        display: block;
    }

    .cart-item-mobile {
        background: white;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .cart-item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }

    .cart-item-name {
        font-weight: 600;
        font-size: 1rem;
        color: #333;
        flex: 1;
    }

    .cart-item-price {
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--customer-primary-color, #667eea);
        margin-left: 1rem;
    }

    .cart-item-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cart-item-controls .quantity-controls {
        flex: 1;
        justify-content: center;
    }

    .cart-item-total {
        font-weight: bold;
        font-size: 1.1rem;
        color: #333;
        flex: 1;
        text-align: center;
    }

    .cart-item-controls .btn-remove {
        flex: 1;
        min-width: 100px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cart-actions .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .cart-summary {
        margin-top: 1.5rem;
        padding: 1.5rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* Formlar Mobil */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-control {
        padding: 0.875rem;
        font-size: 16px; /* iOS zoom önleme */
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Checkout Sayfası Mobil */
    .checkout-page,
    .track-page {
        padding: 1rem 0;
    }

    .auth-warning-section {
        padding: 1.5rem;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }

    .order-confirmation {
        padding: 1.5rem;
    }

    .order-items-table {
        display: none; /* Tabloyu gizle */
    }

    .order-items-mobile {
        display: block;
    }

    .order-item-mobile {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .order-item-mobile-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .order-item-mobile-name {
        font-weight: 600;
        flex: 1;
    }

    .order-item-mobile-price {
        font-weight: bold;
        color: var(--customer-primary-color, #667eea);
    }

    .order-item-mobile-details {
        font-size: 0.9rem;
        color: #6c757d;
    }

    /* Profil Sayfaları Mobil */
    .profile-page {
        padding: 1rem 0;
    }

    .profile-header {
        margin-bottom: 1.5rem;
    }

    .profile-header h2 {
        font-size: 1.5rem;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-sidebar {
        position: static;
        padding: 1rem;
    }

    .profile-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .menu-item {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .menu-item span {
        font-size: 1.2rem;
    }

    .profile-card {
        padding: 1.25rem;
    }

    .profile-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .info-row label {
        font-size: 0.85rem;
        color: #6c757d;
    }

    .info-row span {
        font-size: 1rem;
    }

    /* Sipariş Listesi Mobil */
    .orders-list {
        gap: 1rem;
    }

    .order-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .order-left {
        width: 100%;
    }

    .order-right {
        width: 100%;
        text-align: left;
    }

    .order-meta {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .order-date {
        font-size: 0.9rem;
    }

    .order-total {
        font-size: 1.1rem;
    }

    .status-badge {
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Adres Kartları Mobil */
    .addresses-list {
        gap: 1rem;
    }

    .address-card {
        padding: 1rem;
    }

    .address-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .address-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .address-actions .btn {
        flex: 1;
        padding: 0.625rem;
        font-size: 0.85rem;
    }

    /* Tablolar Mobil */
    .order-items-table {
        display: none;
    }

    .order-items-mobile {
        display: block;
        margin-top: 1rem;
    }

    /* Pagination Mobil */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .pagination-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
        min-width: 44px; /* Dokunma için minimum boyut */
    }

    /* Filtre Formu Mobil */
    .filter-form .form-row {
        flex-direction: column;
    }

    .filter-form .form-group {
        margin-bottom: 1rem;
    }

    .filter-form .btn {
        width: 100%;
    }

    /* Butonlar Mobil */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 44px; /* Dokunma için minimum boyut */
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-height: 36px;
    }

    /* Alert Mobil */
    .alert {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .alert ul {
        margin-left: 1.25rem;
    }

    /* Empty States Mobil */
    .empty-cart {
        padding: 2rem 1rem;
    }

    /* Footer Mobil */
    footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    footer .container {
        padding: 0 15px;
    }
}


