/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   LOADER STYLES
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

.loader-content {
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.loader-logo {
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.logo-img-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.loader-text {
    font-size: 48px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.loader-subtext {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

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

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

/* ============================================
   HEADER STYLES
   ============================================ */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.logo-img-header {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtext {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
}

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

.language-switcher {
    display: flex;
    gap: 8px;
    background: var(--light-color);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.orders-btn-header,
.admin-btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.orders-btn-header:hover,
.admin-btn-header:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.nav-categories::-webkit-scrollbar {
    height: 4px;
}

.nav-categories::-webkit-scrollbar-track {
    background: var(--light-color);
}

.nav-categories::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.category-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: var(--text-color);
}

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

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

/* ============================================
   MAIN CONTENT STYLES
   ============================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 300px);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    animation: fadeIn 0.5s ease-out;
}

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

/* ============================================
   PRODUCT CARD STYLES
   ============================================ */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--light-color);
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.view-image-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.view-image-btn:hover {
    transform: scale(1.1);
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
    line-height: 1.3;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* ============================================
   CART BUTTON STYLES
   ============================================ */
.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 50;
}

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

.cart-button:active {
    transform: scale(0.95);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--danger-color);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    animation: pop 0.3s ease;
}

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

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
}

.close-modal,
.close-image-modal {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover,
.close-image-modal:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-input,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
    color: #999;
}

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

.form-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* ============================================
   IMAGE UPLOAD STYLES
   ============================================ */
.image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.image-upload:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.image-upload i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.image-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.image-upload-subtext {
    font-size: 12px;
    color: #666;
}

#imagePreview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 10px;
    display: none;
}

#imagePreview.show {
    display: block;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

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

.btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.btn-logout {
    background: var(--danger-color);
    color: white;
}

.btn-logout:hover {
    opacity: 0.9;
    box-shadow: var(--shadow);
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-select-address {
    width: 100%;
    padding: 15px;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.btn-select-address:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background: var(--dark-color);
    color: white;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.contact-item i {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================
   IMAGE MODAL STYLES
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.image-modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-image-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */
.login-page {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-page.active {
    display: flex;
}

.login-container {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.3s ease;
}

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

.logo-img-login {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

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

.login-demo {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: #666;
}

.login-demo strong {
    color: var(--primary-color);
}

/* ============================================
   ADMIN PAGE STYLES
   ============================================ */
.admin-page {
    display: none;
    min-height: 100vh;
    background: var(--light-color);
}

.admin-page.active {
    display: block;
}

.admin-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.admin-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-color);
}

.admin-title i {
    font-size: 32px;
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-username {
    font-weight: 600;
    color: var(--text-color);
}

.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-tab:hover {
    background: var(--light-color);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.admin-tab i {
    font-size: 16px;
}

.admin-section {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-title-small {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

/* ============================================
   ADMIN TABLE STYLES
   ============================================ */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: var(--light-color);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--light-color);
}

.admin-table img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    background: var(--light-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.action-btn.delete {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.action-btn.delete:hover {
    background: var(--danger-color);
    color: white;
}

/* ============================================
   CART MODAL STYLES
   ============================================ */
.cart-modal-content {
    max-width: 500px;
}

#cartItems {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 10px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-content {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 6px;
    padding: 4px 8px;
    width: fit-content;
}

.cart-item-quantity button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-quantity span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    background: var(--danger-color);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    opacity: 0.8;
}

.cart-total {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    margin-top: 20px;
}

/* ============================================
   CHECKOUT MODAL STYLES
   ============================================ */
.checkout-modal-content {
    max-width: 600px;
}

.checkout-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-section:last-child {
    border-bottom: none;
}

.checkout-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.delivery-types,
.payment-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.delivery-type,
.payment-type {
    padding: 15px;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-type:hover,
.payment-type:hover {
    border-color: var(--primary-color);
}

.delivery-type.active,
.payment-type.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.delivery-type i,
.payment-type i {
    font-size: 24px;
}

.payment-type.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-badge {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.address-select-container {
    display: flex;
    gap: 10px;
}

.address-details {
    background: var(--light-color);
    padding: 15px;
    border-radius: 10px;
}

.selected-address-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.selected-address-display i {
    color: var(--primary-color);
    font-size: 18px;
}

.pickup-address {
    background: var(--light-color);
    padding: 15px;
    border-radius: 10px;
}

.pickup-info {
    display: flex;
    gap: 15px;
}

.pickup-info i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.pickup-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 3px;
}

.pickup-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.pickup-coords {
    font-size: 12px;
    color: #999;
}

.order-summary {
    background: var(--light-color);
    padding: 15px;
    border-radius: 10px;
}

.summary-items {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-item-name {
    color: var(--text-color);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

/* ============================================
   OTP MODAL STYLES
   ============================================ */
.otp-modal-content {
    max-width: 450px;
}

.otp-step {
    display: none;
    animation: slideUp 0.3s ease;
}

.otp-step.active {
    display: block;
}

.otp-icon {
    text-align: center;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.otp-description {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.otp-digit {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    caret-color: var(--primary-color);
}

.otp-digit:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.otp-timer {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   ORDERS MODAL STYLES
   ============================================ */
.orders-modal-content {
    max-width: 600px;
}

.orders-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.orders-list {
    max-height: 500px;
    overflow-y: auto;
}

.order-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.order-item.pending {
    border-left-color: var(--warning-color);
}

.order-item.confirmed {
    border-left-color: var(--success-color);
}

.order-item.rejected {
    border-left-color: var(--danger-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-number {
    font-weight: 700;
    color: var(--dark-color);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: white;
}

.order-status.pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.order-status.confirmed {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.order-status.rejected {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.order-details {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.order-detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.order-detail-label {
    font-weight: 600;
    min-width: 80px;
}

/* ============================================
   ADDRESS MODAL STYLES
   ============================================ */
.address-modal-content {
    max-width: 700px;
}

.map-container-modal {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: var(--warning-color);
    margin-top: 15px;
}

.map-hint i {
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .header-content {
        padding: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 22px;
    }

    .header-actions {
        gap: 10px;
    }

    .orders-btn-header,
    .admin-btn-header {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-categories {
        gap: 5px;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .main-content {
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .cart-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    .modal-content {
        border-radius: 10px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        padding: 10px 15px;
        font-size: 12px;
    }

    .admin-tab span {
        display: none;
    }

    .admin-tab.active span,
    .admin-tab:hover span {
        display: inline;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-subtext {
        font-size: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-body {
        padding: 15px;
    }

    .login-container {
        padding: 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .cart-button {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .table-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .admin-title {
        font-size: 20px;
    }

    .admin-actions {
        width: 100%;
        justify-content: space-between;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.spinning {
    animation: spin 1s linear infinite;
}