/* ========================================================
   PX-RESTORAN HIGH-END FRONTEND DESIGN SYSTEM
   Modern, Ultra-responsive & Polished UI
======================================================== */

:root {
    --px-primary: #ffc700;
    --px-primary-hover: #e5b300;
    --px-primary-glow: rgba(255, 199, 0, 0.35);
    --px-accent: #f59e0b;
    --px-bg-light: #f8fafc;
    --px-card-light: #ffffff;
    --px-card-dark: #18181b;
    --px-text-main: #0f172a;
    --px-text-muted: #64748b;
    --px-border-light: #e2e8f0;
    --px-border-dark: #27272a;
    --px-radius-xl: 1.5rem;
    --px-radius-2xl: 2rem;
    --px-radius-full: 9999px;
}

/* Base Font & Smooth Rendering */
*, ::before, ::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ========================================================
   HEADER BUTTONS & ACTIONS
======================================================== */
.px-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 640px) {
    .px-header-actions {
        gap: 8px;
    }
}

.px-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--px-radius-full);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .px-header-btn {
        height: 40px;
        padding: 0 16px;
        font-size: 13px;
    }
}
}

html.dark .px-header-btn {
    background: #27272a;
    color: #f4f4f5;
    border-color: #3f3f46;
}

.px-header-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

html.dark .px-header-btn:hover {
    background: #3f3f46;
}

.px-header-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Cart Icon Button */
.px-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--px-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html.dark .px-cart-btn {
    background: #27272a;
    color: #f4f4f5;
    border-color: #3f3f46;
}

.px-cart-btn:hover {
    background: var(--px-primary);
    color: #000000;
    border-color: var(--px-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--px-primary-glow);
}

.px-cart-btn:active {
    transform: translateY(0) scale(0.96);
}

.px-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    animation: px-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark .px-cart-badge {
    border-color: #18181b;
    background: var(--px-primary);
    color: #000000;
}

@keyframes px-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Call Button */
.px-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--px-radius-full);
    font-size: 13px;
    font-weight: 800;
    background: var(--px-primary);
    color: #000000 !important;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--px-primary-glow);
    transition: all 0.25s ease;
}

.px-call-btn:hover {
    background: var(--px-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--px-primary-glow);
}

.px-call-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ========================================================
   AUTH / LOGIN & REGISTER CONTAINER & CARDS
======================================================== */
.px-auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: radial-gradient(circle at 50% 0%, rgba(255, 199, 0, 0.08), transparent 50%),
                linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

html.dark .px-auth-section {
    background: radial-gradient(circle at 50% 0%, rgba(255, 199, 0, 0.05), transparent 50%),
                linear-gradient(180deg, #121215 0%, #18181b 100%);
}

.px-auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

html.dark .px-auth-card {
    background: #18181b;
    border-color: #27272a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    .px-auth-card {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
}

/* Header Avatar Icon */
.px-brand-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.25), rgba(245, 158, 11, 0.15));
    border: 2px solid rgba(255, 199, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(255, 199, 0, 0.15);
}

html.dark .px-brand-avatar {
    color: #ffffff;
}

/* ========================================================
   FORM CONTROLS & LUXURY INPUTS
======================================================== */
.px-form-group {
    margin-bottom: 1.25rem;
}

.px-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

html.dark .px-form-label {
    color: #cbd5e1;
}

.px-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.px-input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.px-form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border-radius: 1rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
}

.px-form-input.no-icon {
    padding-left: 16px;
}

html.dark .px-form-input {
    background: #27272a;
    border-color: #3f3f46;
    color: #ffffff;
}

.px-form-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.px-form-input:focus {
    border-color: var(--px-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

html.dark .px-form-input:focus {
    background: #1e1e24;
    border-color: var(--px-primary);
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.2);
}

.px-form-input:focus + .px-input-icon,
.px-input-wrapper:focus-within .px-input-icon {
    color: var(--px-accent);
}

.px-form-select {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
    padding: 0 16px;
    border-radius: 1rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box !important;
}

html.dark .px-form-select {
    background: #27272a;
    border-color: #3f3f46;
    color: #ffffff;
}

.px-form-select:focus {
    border-color: var(--px-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.px-form-textarea,
textarea.px-form-textarea,
.px-card textarea {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    border-radius: 1.15rem !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    resize: vertical !important;
    font-family: inherit !important;
    min-height: 80px;
}

html.dark .px-form-textarea,
html.dark textarea.px-form-textarea,
html.dark .px-card textarea {
    background: #27272a !important;
    border-color: #3f3f46 !important;
    color: #ffffff !important;
}

.px-form-textarea:focus,
textarea.px-form-textarea:focus,
.px-card textarea:focus {
    border-color: var(--px-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important;
}

html.dark .px-form-textarea:focus,
html.dark textarea.px-form-textarea:focus,
html.dark .px-card textarea:focus {
    background: #1e1e24 !important;
    border-color: var(--px-primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.2) !important;
}

/* ========================================================
   PREMIUM BUTTONS
======================================================== */
.px-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    border-radius: var(--px-radius-full);
    background: linear-gradient(135deg, #ffc700 0%, #f59e0b 100%);
    color: #000000 !important;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--px-primary-glow);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.px-btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, #ffcf1a 0%, #fbbf24 100%);
}

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

.px-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: var(--px-radius-full);
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

html.dark .px-btn-secondary {
    background: #27272a;
    color: #e4e4e7;
    border-color: #3f3f46;
}

.px-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html.dark .px-btn-secondary:hover {
    background: #3f3f46;
    color: #ffffff;
}

/* ========================================================
   LOCATION / CORLU DELIVERY BADGE
======================================================== */
.px-delivery-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.12), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(255, 199, 0, 0.3);
    color: #92400e;
    font-size: 12px;
    line-height: 1.4;
    margin: 1.25rem 0;
}

html.dark .px-delivery-banner {
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(255, 199, 0, 0.25);
    color: #fde68a;
}

.px-delivery-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

html.dark .px-delivery-icon-bubble {
    background: #27272a;
}

/* ========================================================
   CHECKOUT & PAYMENT RADIO CARDS
======================================================== */
.px-payment-card {
    position: relative;
    padding: 16px 18px;
    border-radius: 1.25rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

html.dark .px-payment-card {
    background: #27272a;
    border-color: #3f3f46;
}

.px-payment-card:hover {
    border-color: var(--px-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.px-payment-card.selected,
.px-payment-card:has(input:checked) {
    border-color: var(--px-accent);
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.08), rgba(245, 158, 11, 0.04));
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.15);
}

html.dark .px-payment-card.selected,
html.dark .px-payment-card:has(input:checked) {
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.12), rgba(245, 158, 11, 0.06));
    border-color: var(--px-primary);
}

/* ========================================================
   CHECKOUT PAGE ARCHITECTURE (CLEAN, MODULAR & RESPONSIVE)
======================================================== */
.px-checkout-wrapper {
    padding: 2.5rem 1rem 5rem 1rem;
    background: radial-gradient(circle at 50% 0%, rgba(255, 199, 0, 0.06), transparent 45%),
                linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 85vh;
}

html.dark .px-checkout-wrapper {
    background: radial-gradient(circle at 50% 0%, rgba(255, 199, 0, 0.03), transparent 45%),
                linear-gradient(180deg, #121215 0%, #18181b 100%);
}

.px-checkout-container {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

.px-checkout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.px-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .px-checkout-layout {
        grid-template-columns: 1.45fr 1fr;
        gap: 2rem;
    }
}

.px-card {
    background: #ffffff;
    border-radius: 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

html.dark .px-card {
    background: #18181b;
    border-color: #27272a;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.px-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

html.dark .px-card-header {
    border-bottom-color: #27272a;
}

.px-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

html.dark .px-card-title {
    color: #ffffff;
}

.px-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .px-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.px-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .px-grid-4 {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.px-summary-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
}

.px-cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 1.15rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

html.dark .px-cart-item-row {
    background: #27272a;
    border-color: #3f3f46;
}

.px-cart-item-row:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.px-qty-ctrl-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

html.dark .px-qty-ctrl-btn {
    background: #3f3f46;
    color: #ffffff;
}

.px-qty-ctrl-btn.minus:hover {
    background: #ef4444;
    color: #ffffff;
}

.px-qty-ctrl-btn.plus:hover {
    background: var(--px-primary);
    color: #000000;
}

/* ========================================================
   STATUS PROGRESS TRACKER
======================================================== */
.px-tracker-container {
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

html.dark .px-tracker-container {
    background: #18181b;
    border-color: #27272a;
}

.px-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid transparent;
}

html.dark .px-step-circle {
    background: #27272a;
    color: #71717a;
}

.px-step-circle.active {
    background: var(--px-primary);
    color: #000000;
    transform: scale(1.15);
    box-shadow: 0 6px 20px var(--px-primary-glow);
    border-color: #ffffff;
}

html.dark .px-step-circle.active {
    border-color: #18181b;
}

.px-step-circle.done {
    background: #10b981;
    color: #ffffff;
}

/* ========================================================
   LOGO & GÖRSEL ORANI
   Derlenmiş theme.css `object-contain` ve arbitrary `max-w-[...]`
   utility'lerini içermiyor. Bu yüzden logo flexbox içinde
   sıkışıyor ve object-fit varsayılanı (fill) onu yatayda eziyordu.
======================================================== */
.object-contain { object-fit: contain; }

.max-w-\[110px\] { max-width: 110px; }
.max-w-\[120px\] { max-width: 120px; }
.max-w-\[140px\] { max-width: 140px; }
.max-w-\[150px\] { max-width: 150px; }

@media (min-width: 640px) {
    .sm\:max-w-\[160px\] { max-width: 160px; }
}

/* Header logosu: oranını korusun, flex içinde ezilmesin */
.site-brand {
    min-width: 0;
    flex: 1 1 auto;
}

.site-burger { flex: 0 0 auto; }

.site-logo-link {
    min-width: 0;
    flex: 0 1 auto;
}

.site-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 30px;
    object-fit: contain;
}

@media (min-width: 640px) {
    .site-logo { max-height: 40px; }
}

@media (min-width: 1024px) {
    .site-logo { max-height: 46px; }
}

/* PixoraCo footer signature */
.px-signature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #827569;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.px-signature:hover {
    color: #4a3a2e;
    transform: translateY(-1px);
}

.px-signature-heart {
    color: #d3952c;
    font-size: 14px;
    line-height: .8;
}

.px-signature-logo {
    display: block;
    width: 72px;
    height: auto;
    max-height: 18px;
    object-fit: contain;
    opacity: .82;
    transition: opacity .2s ease;
}

.px-signature-logo-light { display: none; }
.px-signature:hover .px-signature-logo { opacity: 1; }

html.dark .px-signature { color: #bdb2a8; }
html.dark .px-signature:hover { color: #ffffff; }
html.dark .px-signature-logo-dark { display: none; }
html.dark .px-signature-logo-light { display: block; }

@media (max-width: 480px) {
    .px-signature { font-size: 10px; gap: 5px; }
    .px-signature-logo { width: 64px; }
}

@media (max-width: 1023px) {
    .px-footer-main { display: none; }
    .px-footer-credit { border-top: 0; padding-block: 20px; }
}

.px-footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.px-footer-legal a {
    color: #827569;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.px-footer-legal a:hover { color: #b56d00; }

.px-cookie-notice {
    position: fixed;
    z-index: 80;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(460px, calc(100vw - 36px));
    padding: 16px 18px;
    border: 1px solid #e5d8c8;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 18px 46px rgba(41, 28, 17, .2);
    color: #37281d;
}

.px-cookie-notice strong { display: block; font-size: 13px; }
.px-cookie-notice p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: #6e6258; }
.px-cookie-notice a { color: #a96400; font-weight: 800; }
.px-cookie-notice button { flex: 0 0 auto; border: 0; border-radius: 999px; background: #ffc700; color: #21170f; cursor: pointer; font-size: 12px; font-weight: 800; padding: 10px 15px; }

html.dark .px-footer-legal a { color: #bdb2a8; }
html.dark .px-cookie-notice { background: #211811; border-color: #4a3829; color: #fff8ef; }
html.dark .px-cookie-notice p { color: #c3b7ac; }

@media (max-width: 480px) {
    .px-cookie-notice { align-items: flex-start; flex-direction: column; gap: 12px; }
    .px-cookie-notice button { width: 100%; }
}

/* Dar ekranda header aksiyonları ikon-only olsun; logoya yer açılır.
   Erişilebilir ad aria-label ile korunur. */
@media (max-width: 639px) {
    .px-call-btn span,
    .px-header-btn span {
        display: none;
    }

    .px-call-btn,
    .px-header-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
}
