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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

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


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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ea580c;
    text-decoration: none;
}

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

.nav-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ea580c;
}

.nav-btn {
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-btn-outline {
    background: transparent;
    color: #ea580c;
    border-color: #ea580c;
}

.nav-btn-outline:hover {
    background: #fff7ed;
    color: #c2410c;
}

.nav-btn-primary {
    background: #ea580c;
    color: white;
}

.nav-btn-primary:hover {
    background: #c2410c;
    color: white;
}

.nav-form {
    display: inline;
}

.nav-form .nav-btn {
    font: inherit;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ea580c;
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.main {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}


.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}


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

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.filter-btn:hover {
    background: #f3f4f6;
}

.filter-btn.active {
    background: #ea580c;
    color: white;
}


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

.menu-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.menu-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.menu-card-image {
    height: 200px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-card-content {
    padding: 1rem;
}

.menu-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.menu-card-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

.menu-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ea580c;
}


.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ea580c;
    color: white;
}

.btn-primary:hover {
    background: #c2410c;
}

.btn-outline {
    background: transparent;
    color: #ea580c;
    border: 1px solid #ea580c;
}

.btn-outline:hover {
    background: #fff7ed;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}


.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2rem;
}


.cart-empty {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cart-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.cart-items {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.quantity-value {
    width: 32px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    text-align: right;
    min-width: 120px;
}

.price-total {
    font-size: 1.125rem;
    font-weight: 600;
}

.price-unit {
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 1.125rem;
    font-weight: 600;
}

.summary-total {
    font-size: 2rem;
    font-weight: bold;
    color: #ea580c;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
}


.checkout-wrapper {
    margin-top: 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.checkout-form {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.form-radio input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #ea580c;
}

.form-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.form-hint a {
    color: #ea580c;
    text-decoration: none;
}

.form-hint a:hover {
    text-decoration: underline;
}

.form-static {
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #374151;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.checkout-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.order-item-name {
    color: #6b7280;
}

.order-item-price {
    font-weight: 600;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}


.payment-wrapper {
    margin-top: 2rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.payment-methods {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    background: #f9fafb;
}

.payment-option input[type="radio"] {
    margin-right: 0.75rem;
}

.payment-option-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-option-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.card-form {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

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

.other-payment {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.payment-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.detail-label {
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
}

.order-items-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.order-items-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-message {
    text-align: center;
    padding: 4rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #6b7280;
}


.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.checkout-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}
.checkout-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.checkout-toast-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}
.checkout-toast-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
}
.checkout-toast-icon {
    font-size: 1.25rem;
}
.checkout-toast-text {
    font-size: 0.9375rem;
    font-weight: 500;
}


.footer {
    background: #1f2937;
    color: #f9fafb;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ea580c;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}


.policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.policy-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.policy-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

.policy-section li {
    margin-bottom: 0.5rem;
}


@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }

    .nav-auth {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid #e5e7eb;
        width: 100%;
    }

    .checkout-grid,
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary,
    .payment-summary {
        position: static;
    }

    .hero-title {
        font-size: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .policy-page {
        padding: 1rem 0;
    }
}

/* Auth pages */
.auth-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-page {
    width: 100%;
    max-width: 100%;
}

.auth-page .page-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
    .auth-page {
        max-width: 380px;
    }
}

.auth-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.auth-error p {
    margin: 0;
}

.auth-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

.auth-footer a {
    color: #ea580c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #c2410c;
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #ea580c;
}

/* Profile page */
.profile-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.profile-page {
    width: 100%;
    max-width: 100%;
}

.profile-page .page-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ea580c;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.profile-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.profile-value {
    font-weight: 500;
    color: #1f2937;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #374151;
}

.profile-empty {
    color: #6b7280;
    margin-top: 0.5rem;
}

.profile-empty a {
    color: #ea580c;
}

.orders-page-wrapper {
    padding: 2rem 0;
}

.orders-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.orders-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.orders-empty p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.orders-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.orders-pagination .pagination {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.orders-pagination .pagination li a,
.orders-pagination .pagination li span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.orders-pagination .pagination li a:hover {
    background: #f9fafb;
    border-color: #ea580c;
    color: #ea580c;
}

.orders-pagination .pagination li.active span {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.orders-pagination .pagination li.disabled span {
    color: #9ca3af;
    background: #f3f4f6;
    cursor: not-allowed;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.order-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.order-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-id {
    font-weight: 600;
    color: #1f2937;
}

.order-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.order-status {
    margin-left: auto;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.order-status-paid {
    background: #dcfce7;
    color: #166534;
}

.order-status-canceled {
    background: #fee2e2;
    color: #991b1b;
}

.order-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.order-item-name {
    color: #374151;
}

.order-item-price {
    font-weight: 500;
    color: #1f2937;
}

.order-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-total {
    font-weight: 600;
    font-size: 1.125rem;
}

.order-address {
    font-size: 0.875rem;
    color: #6b7280;
}

@media (min-width: 769px) {
    .profile-page {
        max-width: 600px;
    }
}
