/* ============================
   COLOR PALETTE
   ============================ */
:root {
    --primary-blue: #1E88E5;
    --dark-blue: #1976D2;
    --primary-red: #D32F2F;
    --dark-red: #C62828;
    --primary-yellow: #FBC02D;
    --dark-yellow: #F9A825;
    --white: #FFFFFF;
    --black: #212121;
    --light-gray: #F5F5F5;
    --border-gray: #E0E0E0;
    --success-green: #4CAF50;
}

/* ============================
   GLOBAL STYLES
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================
   HEADER
   ============================ */
.header {
    text-align: center;
    padding: 10px 20px 15px 20px;
    background: linear-gradient(135deg, #0D5C3F 0%, #0A4A32 100%);
    color: var(--white);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(13, 92, 63, 0.3);
}

.header-logo {
    margin-bottom: 0;
}

.logo-image {
    max-width: 250px;
    height: auto;
    animation: fadeIn 0.6s ease;
    transition: all 0.2s ease;
    user-select: none;
}

.header-slogan {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slogan-top {
    color: var(--primary-yellow);
    font-size: 2rem;
}

.slogan-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.slogan-blue {
    color: var(--primary-blue);
}

.slogan-white {
    color: var(--white);
}

.slogan-red {
    color: var(--primary-red);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0;
}

/* ============================
   PROGRESS BAR
   ============================ */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-gray);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--border-gray);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--black);
    font-weight: 500;
    background: transparent;
}

.progress-step.active .step-number {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
}

/* ============================
   CONTENT AREA
   ============================ */
.content-area {
    background: transparent;
    border-radius: 15px;
    padding: 0;
    box-shadow: none;
    margin-bottom: 30px;
    min-height: 500px;
}

.step-content {
    display: none;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* Performance optimizations */
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.4s ease;
    /* Hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.step-content.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    /* Hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.step-content h2 {
    color: var(--primary-yellow);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

/* ============================
   PRODUCT GRID
   ============================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.product-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-card.selected {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.1) 0%, rgba(249, 168, 37, 0.1) 100%);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.3);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--light-gray);
}

.product-image-banner {
    width: 100%;
    height: 180px;
    background: var(--primary-red);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    text-transform: uppercase;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add,
.btn-remove {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add {
    background: var(--primary-yellow);
    color: var(--black);
}

.btn-add:hover {
    background: var(--dark-yellow);
    transform: scale(1.05);
}

.btn-remove {
    background: var(--primary-red);
    color: var(--white);
}

.btn-remove:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

/* ============================
   NAVIGATION BUTTONS
   ============================ */
.step-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-prev,
.btn-next,
.btn-create-order {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.btn-prev {
    background: var(--border-gray);
    color: var(--black);
}

.btn-prev:hover {
    background: #D0D0D0;
    transform: translateX(-5px) translateZ(0);
}

.btn-next {
    background: var(--primary-yellow);
    color: var(--black);
}

.btn-next:hover {
    background: var(--dark-yellow);
    transform: translateX(5px) translateZ(0);
}

.btn-create-order {
    background: var(--success-green);
    color: var(--white);
    font-size: 1.2rem;
    padding: 18px 50px;
}

.btn-create-order:hover {
    background: #43A047;
    transform: scale(1.05);
}

/* ============================
   CUSTOMER FORM
   ============================ */
.customer-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.1);
}

/* ============================
   ORDER SUMMARY
   ============================ */
.order-summary {
    background: var(--white);
    border: 4px solid var(--primary-yellow);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 25px rgba(251, 192, 45, 0.2);
}

.order-summary h2 {
    color: var(--primary-yellow);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.summary-content {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

.order-box {
    background: var(--light-gray);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-yellow);
}

.order-subtotal {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-yellow);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-yellow);
    text-align: right;
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: var(--primary-yellow);
    display: inline-block;
    min-width: 120px;
}

.summary-customer {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(251, 192, 45, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
}

.summary-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--black);
    text-align: center;
    padding: 20px;
    background: var(--primary-yellow);
    border-radius: 10px;
    margin-bottom: 20px;
}

.order-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-add-order {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.btn-add-order:hover {
    background: var(--dark-yellow);
    transform: scale(1.02) translateZ(0);
}

.btn-whatsapp {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse-whatsapp 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: scale(1.05) translateZ(0);
    animation: none;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) translateZ(0);
    transition: width 0.6s, height 0.6s;
    will-change: width, height;
}

.btn-whatsapp:active::before {
    width: 300px;
    height: 300px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-delete {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    background: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.02) translateZ(0);
}

/* ============================
   MODAL
   ============================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--black);
}

.btn-modal-close {
    padding: 12px 40px;
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background: var(--dark-yellow);
}

.btn-modal-close.icon-only {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 36px;
    background: var(--border-gray);
}

/* Special Menu Popup Styles */
.special-menu-popup {
    max-width: 600px;
    position: relative;
}

.special-menu-card-popup {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.special-menu-card-popup h4 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 700;
}

.special-menu-price-popup {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.special-menu-content-popup {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white);
}

.special-menu-content-popup p {
    margin: 0;
    color: var(--white);
}

/* ============================
   ADMIN PANEL STYLES
   ============================ */
.admin-body {
    background: var(--light-gray);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logo {
    height: 60px;
    width: auto;
}

.admin-header h1 {
    color: var(--primary-blue);
    font-size: 2rem;
}

.btn-back-to-site {
    padding: 10px 20px;
    background: var(--border-gray);
    color: var(--black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-to-site:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 10px;
}

.upload-area {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.upload-area h3 {
    color: var(--black);
    margin-bottom: 15px;
}

.admin-select,
.admin-input,
.admin-file {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
}

.admin-select:focus,
.admin-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-admin-primary {
    padding: 12px 30px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin-primary:hover {
    background: var(--dark-blue);
}

.images-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.image-item {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.image-item-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--black);
}

.image-item-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-admin-edit,
.btn-admin-change,
.btn-admin-delete {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin-edit {
    background: var(--primary-yellow);
    color: var(--black);
}

.btn-admin-edit:hover {
    background: var(--dark-yellow);
}

.btn-admin-change {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-admin-change:hover {
    background: var(--dark-blue);
}

.btn-admin-delete {
    background: var(--primary-red);
    color: var(--white);
}

.btn-admin-delete:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

.admin-category {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
}

.admin-category h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.admin-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.admin-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.admin-item-input {
    padding: 10px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-item-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.admin-item-input[type="number"] {
    max-width: 150px;
}

.admin-item textarea.admin-item-input {
    resize: vertical;
    min-height: 60px;
}

.admin-item label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.btn-admin-add {
    padding: 12px 25px;
    background: var(--success-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-admin-add:hover {
    background: #43A047;
}

.btn-admin-save {
    width: 100%;
    padding: 20px;
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.btn-admin-save:hover {
    background: var(--dark-yellow);
    transform: scale(1.02);
}

.admin-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    background: var(--success-green);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10005;
    /* High z-index to show above modals */
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.admin-message.show {
    display: block;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .header {
        padding: 8px 10px 12px 10px;
        margin-bottom: 20px;
    }

    .logo-image {
        max-width: 180px;
    }

    .header-logo {
        margin-bottom: 0;
    }

    .header-slogan {
        font-size: 1.4rem;
        gap: 5px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .slogan-top {
        font-size: 1.4rem;
    }

    .slogan-bottom {
        font-size: 1.4rem;
        gap: 8px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .progress-bar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .progress-step {
        flex: 1 1 30%;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .content-area {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .step-content {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .step-buttons {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next,
    .btn-create-order {
        width: 100%;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-header-left {
        flex-direction: column;
        gap: 10px;
    }

    .admin-logo {
        height: 50px;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .admin-item-row {
        grid-template-columns: 1fr;
    }

    .images-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .header {
        padding: 6px 10px 10px 10px;
        margin-bottom: 15px;
    }

    .logo-image {
        max-width: 140px;
    }

    .header-logo {
        margin-bottom: 0;
    }

    .header-slogan {
        font-size: 1.1rem;
        gap: 4px;
        margin-bottom: 5px;
    }

    .slogan-top {
        font-size: 1.1rem;
    }

    .slogan-bottom {
        font-size: 1.1rem;
        gap: 6px;
    }

    .header p {
        font-size: 0.9rem;
    }

    .content-area {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .step-content {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .order-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-add-order,
    .btn-whatsapp,
    .btn-delete {
        width: 100%;
        box-sizing: border-box;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }

    .progress-step {
        flex: 1 1 45%;
    }

    .modal-content {
        margin: 10px;
        padding: 20px 15px;
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }
}

/* ============================
   NEIGHBORHOOD SELECTION
   ============================ */
.neighborhood-select-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.neighborhood-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.neighborhood-select:focus {
    outline: none;
    border-color: var(--dark-yellow);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.1);
}

/* Force dropdown to open downward */
.neighborhood-select option {
    direction: ltr;
}

/* ============================
   CATEGORY GRID
   ============================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Servis Tipi Seçimi - Basit Kartlar (Eski Stil) */
#step-service-type .category-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: auto;
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#step-service-type .category-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#step-service-type .category-name {
    position: static;
    background: none;
    color: var(--black);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
    word-wrap: break-word;
}

/* Servis Tipi - Mobil Responsive */
@media (max-width: 768px) {
    #step-service-type .category-card {
        padding: 40px 15px;
        min-height: 120px;
    }

    #step-service-type .category-name {
        font-size: 1rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    #step-service-type .category-card {
        padding: 35px 10px;
        min-height: 100px;
    }

    #step-service-type .category-name {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Kategori Seçimi - Resim Tabanlı Kartlar (Yeni Stil) */
#step-1 .category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

#step-1 .category-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 200px;
    padding: 0;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#step-1 .category-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#step-1 .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#step-1 .category-card:hover .category-image {
    transform: scale(1.05);
}

#step-1 .category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 70%, transparent);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 10px 10px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Tablet ve küçük ekranlar için responsive */
@media (max-width: 1024px) {
    #step-1 .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    #step-1 .category-card {
        height: 160px;
    }

    #step-1 .category-name {
        font-size: 1rem;
        padding: 15px 8px 8px 8px;
    }
}

/* Mobil için responsive */
@media (max-width: 768px) {
    #step-1 .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    #step-1 .category-card {
        height: 140px;
        border-radius: 10px;
    }

    #step-1 .category-name {
        font-size: 0.85rem;
        padding: 12px 6px 6px 6px;
        letter-spacing: 0.5px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    #step-1 .category-grid {
        gap: 6px;
    }

    #step-1 .category-card {
        height: 120px;
    }

    #step-1 .category-name {
        font-size: 0.75rem;
        padding: 10px 5px 5px 5px;
    }
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.contact-text {
    color: var(--black);
    flex: 1;
}

.contact-item a.contact-text {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a.contact-text:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.address-item .contact-text {
    line-height: 1.6;
}

.social-media-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--white);
    border: 2px solid var(--border-gray);
    color: var(--black);
}

.instagram-btn:hover {
    border-color: #E4405F;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.facebook-btn:hover {
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-text {
    font-size: 1rem;
    color: var(--black);
}

.map-container {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

.created-by {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.created-by p {
    font-size: 0.9rem;
    color: var(--black);
    margin-bottom: 10px;
    font-weight: 500;
}

.kodbrain-link {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.kodbrain-link:hover {
    transform: scale(1.05);
}

.kodbrain-logo {
    height: 30px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 10px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-item {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .contact-icon {
        font-size: 1.3rem;
        margin-right: 10px;
        min-width: 25px;
    }

    .map-container {
        padding: 10px;
    }

    .map-container iframe {
        height: 300px;
    }

    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .social-logo {
        width: 20px;
        height: 20px;
    }

    .created-by {
        margin-top: 30px;
        padding: 15px;
    }

    .created-by p {
        font-size: 0.85rem;
    }

    .kodbrain-logo {
        height: 25px;
        max-width: 120px;
    }
}

/* ============================
   CHECKBOX GRID
   ============================ */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.checkbox-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--primary-yellow);
}

.checkbox-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    flex: 1;
}

.checkbox-card.selected {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.1) 0%, rgba(249, 168, 37, 0.1) 100%);
}

/* Menu Option Checkbox */
.menu-option {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-yellow);
}

.menu-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--primary-yellow);
}

/* New Dynamic Payment Section Styles */
.dynamic-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.payment-card {
    position: relative;
    cursor: pointer;
}

.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-card-content {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.payment-card-content:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.payment-card input[type="radio"]:checked+.payment-card-content {
    background: #fff;
    border-color: var(--primary-yellow);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.2);
}

.payment-card input[type="radio"]:checked+.payment-card-content::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-yellow);
    color: var(--black);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.payment-icon {
    font-size: 24px;
    margin-right: 12px;
    color: var(--dark-blue);
}

.payment-name {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
}

/* Spinner for loading state */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-yellow);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .dynamic-payment-grid {
        grid-template-columns: 1fr;
        /* Full width on mobile */
    }
}

/* Info Box */
.info-box {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
    margin-bottom: 30px;
}

.info-box p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-box p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
    font-size: 1.5rem;
}

.info-note {
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.1) 0%, rgba(249, 168, 37, 0.1) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
    margin-top: 20px;
    margin-bottom: 30px;
}

.info-note p {
    font-size: 1rem;
    color: var(--black);
    margin: 0;
    padding: 0;
}

.info-note p:before {
    display: none;
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-yellow);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-yellow);
}

.payment-option.selected {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.1) 0%, rgba(249, 168, 37, 0.1) 100%);
}

.payment-option span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Soslar, içecekler, ekstralar, yan ürünler için 3'lü grid */
    .checkbox-grid,
    .quantity-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobil için padding ve font boyutlarını küçült */
    .checkbox-card {
        padding: 10px 6px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .checkbox-text {
        font-size: 0.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .checkbox-label {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .checkbox-label input[type="checkbox"],
    .checkbox-label input[type="radio"] {
        width: 18px;
        height: 18px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .quantity-card {
        padding: 12px 8px;
        border-radius: 10px;
    }

    .quantity-name {
        font-size: 0.9rem;
    }

    .quantity-btn,
    .btn-quantity-plus,
    .btn-quantity-minus {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .quantity-value {
        font-size: 1.2rem;
        min-width: 30px;
    }

    .quantity-controls {
        gap: 12px;
    }

    .quantity-card {
        padding: 10px 6px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .quantity-name {
        font-size: 0.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .quantity-value {
        font-size: 1rem;
        min-width: 24px;
    }

    .quantity-controls {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================
   QUANTITY CARD
   ============================ */
.quantity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.quantity-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.quantity-card.selected {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.1) 0%, rgba(249, 168, 37, 0.1) 100%);
}

.quantity-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.quantity-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-btn,
.btn-quantity-plus,
.btn-quantity-minus {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-yellow);
    background: var(--white);
    color: var(--black);
    border-radius: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover:not(.disabled),
.btn-quantity-plus:hover:not(.disabled):not(:disabled),
.btn-quantity-minus:hover:not(.disabled):not(:disabled) {
    background: var(--primary-yellow);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.4);
}

.quantity-btn:active:not(.disabled),
.btn-quantity-plus:active:not(.disabled):not(:disabled),
.btn-quantity-minus:active:not(.disabled):not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn.disabled,
.btn-quantity-plus.disabled,
.btn-quantity-minus.disabled,
.quantity-btn:disabled,
.btn-quantity-plus:disabled,
.btn-quantity-minus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--light-gray);
    border-color: var(--border-gray);
    color: #999;
    pointer-events: none;
}

.quantity-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--black);
    min-width: 40px;
    text-align: center;
}

.info-text {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--black);
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Soslar, içecekler, ekstralar, yan ürünler için 3'lü grid */
    .checkbox-grid,
    .quantity-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    /* Küçük ekranlar için daha da küçük padding ve font */
    .checkbox-card {
        padding: 8px 4px;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .checkbox-text {
        font-size: 0.7rem;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .checkbox-label {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .checkbox-label input[type="checkbox"],
    .checkbox-label input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .quantity-card {
        padding: 8px 4px;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .quantity-name {
        font-size: 0.7rem;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .quantity-btn,
    .btn-quantity-plus,
    .btn-quantity-minus {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .quantity-value {
        font-size: 1rem;
        min-width: 24px;
    }

    .quantity-controls {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .payment-options {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================
   SHOPPING CART
   ============================ */
.cart-container {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.cart-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-yellow);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    color: var(--black);
}

.cart-button:hover {
    background: var(--dark-yellow);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--white);
}

.cart-panel {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-height: 85vh;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1002;
}

.cart-panel.open {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-20px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cart-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-content {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: calc(85vh - 120px);
}

.cart-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-separator {
    height: 1px;
    background: var(--border-gray);
    margin: 10px 0;
    opacity: 0.5;
}

.cart-item-name {
    font-weight: 600;
    color: var(--black);
    flex: 1;
}

.cart-item-price {
    color: var(--primary-blue);
    font-weight: 600;
    margin-left: 10px;
}

.cart-item-remove {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

.cart-item-quantity {
    color: var(--black);
    font-size: 0.9rem;
    margin-left: 10px;
}

.cart-total {
    padding: 15px 20px;
    background: var(--light-gray);
    border-top: 2px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cart-total-label {
    color: var(--black);
}

.cart-total-price {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .cart-container {
        left: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        z-index: 1001;
    }

    .cart-button {
        width: 50px;
        height: 50px;
    }

    .cart-panel {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        max-height: 60vh !important;
        bottom: 80px !important;
        top: auto !important;
        box-sizing: border-box;
        z-index: 1003;
        transform: none !important;
        /* Override desktop centering */
    }

    .cart-panel.open {
        display: flex;
        animation: slideUpMobile 0.3s ease forwards;
    }

    .cart-content {
        max-height: none;
        min-height: 0;
        padding: 15px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
    }

    .cart-header {
        padding: 12px 15px;
    }

    .cart-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .cart-item-name {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cart-item-price {
        font-size: 0.85rem;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .cart-total {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .cart-total-price {
        font-size: 1.1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2ecc71;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2ecc71;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Image-based Category Selection Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: transparent;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ============================
   STATISTICS MANAGEMENT STYLES
   ============================ */

/* Statistics Cards Grid */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Stat Card */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.stat-card h3 {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-card .label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Platform Breakdown */
.platform-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.platform-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Statistics Modal */
.stats-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.stats-modal.active {
    display: flex;
}

.stats-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

/* Breakdown Table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.breakdown-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.breakdown-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.breakdown-table tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }

    .platform-breakdown {
        grid-template-columns: 1fr;
    }

    .stat-card .value {
        font-size: 2.5rem;
    }

    .stats-modal-content {
        padding: 25px;
        width: 95%;
    }
}

/* Loader for Stats */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #667eea;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   MOBILE CUSTOMIZATION WINDOW IMPROVEMENTS (New)
   ============================ */
@media (max-width: 768px) {
    /* Enlarge Customization Windows (Extras, Sauces, Meat Selection) */

    /* Force 2 columns for options (was 3) */
    .checkbox-grid,
    .quantity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Enlarge the cards */
    .checkbox-card,
    .quantity-card {
        padding: 15px !important;
        min-height: 70px;
        display: flex;
        align-items: center;
    }

    /* Enlarge text */
    .checkbox-text,
    .quantity-name {
        font-size: 1.05rem !important;
        font-weight: 600;
        line-height: 1.4;
    }

    /* Enlarge checkboxes/radios */
    .checkbox-label input[type="checkbox"],
    .checkbox-label input[type="radio"] {
        width: 24px !important;
        height: 24px !important;
        margin-right: 12px !important;
    }

    /* Enlarge Quantity Buttons */
    .quantity-btn,
    .btn-quantity-plus,
    .btn-quantity-minus {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.4rem !important;
    }

    /* Enlarge Menu Option Container */
    .menu-option {
        padding: 20px !important;
        margin: 15px 0 !important;
    }

    .menu-checkbox-label {
        font-size: 1.1rem !important;
    }

    /* Ensure Modals use almost full width */
    .modal-content {
        width: 95% !important;
        max-width: None !important;
        padding: 25px !important;
    }
}

/* ============================
   RESPONSIVE ADMIN PANEL STYLES
   ============================ */
@media (max-width: 768px) {

    .container,
    .admin-container {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Header Adjustments */
    .admin-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px !important;
    }

    .admin-logo {
        height: 50px;
        /* Smaller logo */
        margin-bottom: 10px;
    }

    .admin-header h1 {
        font-size: 1.5rem;
        margin: 5px 0;
    }

    .btn-back-to-site {
        width: 100%;
        text-align: center;
        padding: 10px;
        margin-top: 10px;
    }

    /* Navigation Tabs */
    .admin-tabs {
        display: flex;
        flex-wrap: wrap;
        /* Allow wrapping */
        gap: 8px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .tab-btn {
        flex: 1 1 45%;
        /* 2 items per row approximately */
        padding: 12px 5px;
        font-size: 0.9rem;
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Live Orders Grid */
    #liveOrdersList {
        display: block !important;
    }

    #liveOrdersList>div {
        grid-template-columns: 1fr !important;
        /* Force single column on mobile */
    }

    /* Order History Filter Section */
    #orders-tab .admin-section>div {
        padding: 15px !important;
    }

    #orders-tab .admin-section input[type="date"],
    #orders-tab .admin-section input[type="time"] {
        flex: 1;
        width: 100%;
        margin-bottom: 5px;
    }

    #orders-tab .admin-section .filter-buttons,
    #orders-tab .admin-section button {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    /* Tables */
    .responsive-table-container,
    #pastOrdersList {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border: 1px solid #eee;
        /* Visual cue for boundary */
        border-radius: 8px;
        padding-bottom: 10px;
    }

    table {
        min-width: 600px;
        /* Ensure table doesn't squash too much */
        width: 100%;
    }

    th,
    td {
        padding: 10px 8px !important;
        font-size: 0.85rem;
    }

    /* Modals */
    .modal-content {
        width: 95% !important;
        margin: 10px;
        padding: 20px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Stats Cards */
    .stats-container {
        grid-template-columns: 1fr !important;
        /* Stack stats vertically */
    }

    /* Forms in Admin */
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-item-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-admin-add,
    .btn-admin-save {
        width: 100%;
        padding: 15px;
    }
}

/* ============================
   ADMIN PANEL OVERRIDES
   ============================ */
.admin-container {
    padding-bottom: 150px !important;
}
.tab-content {
    padding-bottom: 80px !important;
}
#users-tab {
    min-height: 60vh;
}