:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.navbar-brand {
    color: var(--primary) !important;
}

.site-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.navbar-login {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.navbar-login .site-logo {
    height: 96px;
    max-width: 420px;
    image-rendering: -webkit-optimize-contrast;
}

.navbar-login .login-page-logo,
.navbar-login .veli-login-logo {
    height: auto;
    max-height: 110px;
    max-width: min(100%, 440px);
    width: auto;
}

.page-login .login-box {
    margin-top: 48px;
}

.login-logo {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.navbar-dark .site-logo {
    filter: brightness(1.1);
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-img {
    height: 180px;
    object-fit: cover;
    background: #f1f5f9;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.badge-out-of-stock {
    background: #ef4444;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
}

.login-box .card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cart-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-pills .nav-link {
    border-radius: 20px;
    color: #64748b;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}

/* Tek ürün detay sayfası */
.product-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.product-detail-image {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-detail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 5rem;
}

.product-detail-info {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1e293b;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.product-detail-btn {
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.product-detail-description {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.product-detail-description h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
}

.product-detail-description p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 576px) {
    .product-img {
        height: 150px;
    }

    .navbar-login .site-logo {
        height: 72px;
        max-width: 320px;
    }

    .page-login .login-box {
        margin-top: 32px;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.6rem;
    }

    .product-detail-info {
        padding: 1.25rem;
    }
}

/* Checkout akışı */
.page-checkout {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 120px);
}

.checkout-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.checkout-subtitle {
    font-size: 1rem;
}

.checkout-card {
    border-radius: 16px;
}

.checkout-sidebar {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 88px;
}

.checkout-progress-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.checkout-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 110px;
    flex-shrink: 0;
    color: #94a3b8;
}

.checkout-progress-item.done,
.checkout-progress-item.active {
    color: var(--primary);
}

.checkout-progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 1rem;
}

.checkout-progress-item.done .checkout-progress-icon,
.checkout-progress-item.active .checkout-progress-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.checkout-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.checkout-progress-line {
    width: 36px;
    height: 2px;
    background: #cbd5e1;
    align-self: flex-start;
    margin-top: 20px;
    flex-shrink: 0;
}

.checkout-progress-line.done {
    background: var(--primary);
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 1rem;
}

.invoice-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.invoice-type-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.invoice-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.invoice-type-option.selected,
.invoice-type-option:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.invoice-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.invoice-type-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.invoice-type-text small {
    color: #64748b;
}

.billing-suggest-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}

.summary-table td {
    vertical-align: top;
    padding: 0.45rem 0;
}

.summary-table td:first-child {
    width: 38%;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .invoice-type-grid {
        grid-template-columns: 1fr;
    }

    .checkout-progress-line {
        width: 16px;
    }

    .checkout-progress-item {
        min-width: 96px;
    }

    .checkout-progress-label {
        font-size: 0.7rem;
    }

    .checkout-sidebar {
        position: static;
    }
}
