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

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --primary-light: #818cf8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease-out;
}

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

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 40px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--gray-900);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-600);
    font-size: 12px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo {
        font-size: 18px !important;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        background: white;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        padding: 0;
        border-radius: 0 0 16px 16px;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 15px;
        justify-content: flex-start;
    }
    
    .nav-link:last-child {
        border-bottom: none;
        border-radius: 0 0 16px 16px;
    }
    
    .nav-link:hover {
        transform: none;
        background: var(--gray-50);
    }
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--gray-700);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.page-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 32px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

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

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2 {
    font-size: 22px;
    margin: 0;
    color: var(--gray-900);
    font-weight: 700;
}

.search-box {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.products-section {
    min-height: 0;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Products */
.products-section .card {
    /*max-height: calc(100vh - 200px);*/
    overflow-y: auto;
    overflow-x: hidden;
}

.products-section .products-grid {
    /*max-height: calc(100vh - 300px);*/
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.category-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.product-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0;
    cursor: move;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    overflow: hidden;
    position: relative;
    animation: scaleIn 0.3s ease-out;
}

.product-card[draggable="true"] {
    cursor: grab;
}

.product-card[draggable="true"]:active {
    cursor: grabbing;
}

.product-card.drag-over {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--gray-600);
    cursor: grab;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    user-select: none;
    line-height: 1;
    font-weight: bold;
}

.product-card:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-card:active {
    transform: translateY(-2px) scale(0.98);
}

.product-image {
    width: 100%;
    height: 180px;
    background: white;
    border-radius: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    padding: 8px;
    box-sizing: border-box;
}

.product-image img {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    font-size: 48px;
    opacity: 0.5;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-900);
    line-height: 1.4;
}

.product-category {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.product-edit-btn,
.product-delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0;
}

.product-edit-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.product-delete-btn:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.product-edit-btn:active,
.product-delete-btn:active {
    transform: scale(0.95);
}

.product-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.product-card:hover .product-add-btn {
    opacity: 1;
    transform: scale(1);
}

.product-add-btn:hover {
    transform: scale(1.1);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* Cart */
.cart-card {
    position: sticky;
    top: 100px;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.cart-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

.cart-count {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-items {
    flex: 1;
    overflow-y: visible;
    overflow-x: hidden;
    margin-bottom: 20px;
    max-height: none;
    padding-right: 5px;
    min-height: auto;
}

/* Scrollbar styles for products section only */
.products-section .card::-webkit-scrollbar,
.products-section .products-grid::-webkit-scrollbar {
    width: 8px;
}

.products-section .card::-webkit-scrollbar-track,
.products-section .products-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.products-section .card::-webkit-scrollbar-thumb,
.products-section .products-grid::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

.products-section .card::-webkit-scrollbar-thumb:hover,
.products-section .products-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.empty-cart-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-cart-state p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-600);
}

.empty-cart-state span {
    font-size: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease-out;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.cart-item-price {
    font-size: 12px;
    color: var(--gray-600);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    border: 2px solid var(--gray-200);
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--gray-100);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--gray-700);
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--gray-900);
}

.remove-btn {
    padding: 6px 12px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.btn-print {
    margin-top: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
}

.split-buttons, .payment-buttons {
    display: flex;
    gap: 10px;
}

.split-btn, .payment-btn, .order-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.split-btn:hover, .payment-btn:hover, .order-type-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.split-btn.active, .payment-btn.active, .order-type-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Summary */
.cart-summary {
    border-top: 2px solid var(--gray-200);
    padding-top: 20px;
    animation: slideUp 0.3s ease-out;
    overflow: visible;
}

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

.summary-section {
    animation: fadeIn 0.5s ease-out;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    padding: 8px 0;
}

.discount-row {
    color: var(--danger);
    font-weight: 600;
}

.total-row {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--gray-200);
}

.total {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
}

.discount {
    color: var(--danger);
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
    border: 2px solid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--gray-600);
    font-size: 16px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.table tr:hover {
    background: var(--gray-50);
}

/* Responsive */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .cart-card {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .container {
        padding: 0 15px 120px;
    }
}

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 2px solid var(--gray-200);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

body {
    padding-bottom: 100px; /* Footer için alan bırak */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
}

.footer-content p {
    margin: 0;
}

.footer-content strong {
    font-weight: 700;
    color: var(--gray-900);
}

/* Footer on login page */
.login-page .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.login-page {
    padding-bottom: 100px;
}

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.welcome-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

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

.welcome-header {
    margin-bottom: 20px;
}

.welcome-header h1 {
    font-size: 32px;
    color: var(--gray-900);
    font-weight: 700;
    margin: 0;
}

.welcome-header strong {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
}

.welcome-message p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

.welcome-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.welcome-loading p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* Weighted Products - Gramaj Bazlı Satış */
.weighted-product {
    border: 2px solid #f59e0b !important;
    position: relative;
}

.weighted-product:hover {
    border-color: #d97706 !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3) !important;
}

.weighted-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Weight Modal */
#weightModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

#weightModal .modal-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quick-weight-btn:hover {
    background: #fef3c7 !important;
    transform: scale(1.05);
}

.quick-weight-btn:active {
    transform: scale(0.98);
}

.quick-weight-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border-color: #d97706 !important;
}

/* Weight Modal Mobile */
@media (max-width: 480px) {
    #weightModal .modal-content {
        margin: 15px;
        max-width: calc(100vw - 30px) !important;
    }
    
    #weightModal .modal-content > div:last-child {
        padding: 15px !important;
    }
    
    .quick-weight-btn {
        padding: 10px !important;
        font-size: 13px !important;
    }
}

/* Weighted item in cart */
.cart-item-weight {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-weight::before {
    content: '⚖️';
}
