@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #2D3047;
    --accent: #FFD166;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --success: #28A745;
    --danger: #DC3545;
    --border: #DEE2E6;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
-webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 16px;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        padding: 12px 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    width: 100px;
    height: auto;
}

@media (max-width:768px){
    .logo {
        display: none;
    }
    .body_logo {
        width: 120px;
        height: auto;
    }
}

@media(min-width:768px){
    .body_logo {
        display: none;
    }
}



@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
}

.logo svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .nav-right {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 12px;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .user-info {
        max-width: 150px;
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

.user-info svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth_btns {
    padding: 10px;
    border: none;
    background-color: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

@media (max-width: 480px) {
    .auth-buttons {
        gap: 8px;
    }
}

.btn {
    padding: 10px 22px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.btn:hover svg {
    stroke: var(--light);
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 40px;
    }
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .btn-icon {
        width: 40px;
        height: 40px;
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .cart-panel {
        max-width: 100%;
    }
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cart-header {
        padding: 20px;
    }
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray);
    transition: var(--transition);
    border-radius: var(--radius-xs);
}

.close-cart:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

@media (max-width: 480px) {
    .cart-body {
        padding: 16px;
    }
}

.cart-footer {
    padding: 24px;
    background: white;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cart-footer {
        padding: 20px;
    }
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--light);
    transition: var(--transition);
    gap: 16px;
}

@media (max-width: 480px) {
    .cart-item {
        padding: 12px;
        gap: 12px;
        flex-wrap: wrap;
    }
}

.cart-item:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 480px) {
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 6px;
    border: 1px solid var(--border);
}

.quantity-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
}

.remove-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--danger);
    transition: var(--transition);
    border-radius: var(--radius-xs);
}

.remove-item:hover {
    background: rgba(220, 53, 69, 0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(4px);
}

.overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: var(--shadow);
    z-index: 1002;
    max-width: 480px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

@media (max-width: 480px) {
    .modal {
        width: 98%;
        max-height: 95vh;
    }
}

.modal.active {
    display: block;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .modal-header {
        padding: 20px;
    }
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray);
    transition: var(--transition);
    border-radius: var(--radius-xs);
}

.close-modal:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

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

.custom-select {
    position: relative;
}

.select-selected {
    padding: 14px 16px;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.select-selected:hover {
    border-color: var(--primary);
}

.select-selected::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(45deg);
    transition: var(--transition);
}

.select-selected.active::after {
    transform: rotate(-135deg);
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    margin-top: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.select-items.active {
    display: block;
}

.select-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--dark);
    border-bottom: 1px solid var(--light-gray);
}

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

.select-item:hover {
    background: var(--light-gray);
}

.select-item.selected {
    background: var(--primary);
    color: white;
}

/* Filters */
.filters {
    background: white;
    padding: 24px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .filters {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .filters {
        padding: 16px;
    }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.refresh-btn {
    color: var(--dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-buttons .btn {
        width: 100%;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.product-card {
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, var(--light-gray), #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

@media (max-width: 480px) {
    .product-image {
        height: 180px;
    }
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (max-width: 480px) {
    .product-content {
        padding: 16px;
    }
}

.product-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
    flex: 1;
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-top: 20px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-price::before {
    content: 'SZL';
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Product Details */
.product-details {
    background: white;
    margin: 24px 0;
    overflow: hidden;
}

.product-details-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.details_title {
    font-size: 25px;
    text-transform: capitalize;
    font-weight: 600;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .product-details-header {
        padding: 20px;
    }
}

.product-details-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .product-details-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .product-details-body {
        padding: 20px;
        gap: 24px;
    }
}

.product-details-image {
    overflow: hidden;
    height: 400px;
}

@media (max-width: 768px) {
    .product-details-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .product-details-image {
        height: 250px;
    }
}

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

.product-details-image:hover img {
    transform: scale(1.05);
}

.product-details-info h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .product-details-info h2 {
        font-size: 1.5rem;
    }
}

.product-details-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-details-price::before {
    content: 'SZL';
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray);
}

.product-details-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.product-details-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px;
        margin: 32px 0;
    }
}

.page-link {
    padding: 12px 20px;
    background: white;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .page-link {
        padding: 10px 16px;
        min-width: 40px;
    }
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Empty States */
.empty-cart, .empty-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

@media (max-width: 480px) {
    .empty-cart, .empty-products {
        padding: 40px 16px;
    }
}

.empty-cart svg, .empty-products svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light);
}

.cart-total::before {
    content: 'Total: SZL';
    font-weight: 600;
    color: var(--gray);
}

.results-info {
    margin: 20px 0;
    color: var(--gray);
    font-size: 1rem;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .auth-tabs {
        flex-direction: column;
    }
}

.auth-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .auth-tab {
        padding: 14px;
    }
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--success);
    color: white;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1003;
    max-width: 320px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .notification {
        right: 16px;
        left: 16px;
        max-width: none;
        bottom: 16px;
    }
}

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

.notification.error {
    background: var(--danger);
}

/* Image Gallery */
.image-gallery {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.image-gallery::-webkit-scrollbar {
    height: 6px;
}

.image-gallery::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

.gallery-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-image.active {
    border-color: var(--primary);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--dark);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.checkout_header {
    box-shadow: var(--shadow);
}

.order-history {
    margin-top: 30px;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.order-history h4 {
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.order-number {
    font-weight: 600;
    color: var(--primary);
}

.order-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.order-details {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.order-items {
    flex: 1;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed var(--light-gray);
}

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

.order-total {
    text-align: right;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.no-orders svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.account-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.account-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.account-tab:hover {
    color: var(--primary);
}

.account-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.summary-value {
    font-weight: 600;
    color: var(--dark);
}

.view-order-btn {
    background: var(--light-gray);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
}

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

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .order-summary {
        grid-template-columns: 1fr;
    }
}

.checkout-container {
    min-height: calc(100vh - 100px);
    padding: 40px 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.checkout-card {
    background: white;
    padding: 30px;
}

.checkout-header {
    margin-bottom: 30px;
}

.checkout-header h1 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.checkout-header p {
    color: var(--gray);
    font-size: 1rem;
}

.order-summary-card {
    box-shadow: var(--shadow);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.payment-screen {
    text-align: center;
    padding: 40px 20px;
}

.payment-loader {
    width: 80px;
    height: 80px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-reference {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    margin: 20px 0;
    word-break: break-all;
    border: 1px solid var(--border);
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.order-complete {
    text-align: center;
    padding: 60px 20px;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.checkmark {
    color: white;
    font-size: 50px;
    font-weight: bold;
}

.order-details {
    background: var(--light);
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
}

.redirect-notice {
    margin-top: 25px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    color: var(--gray);
    font-size: 0.95rem;
}

.cart-item-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.cart-item-image-mini {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-info-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

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

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-size: 0.85rem;
}

.alert {
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

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

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

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: var(--gray);
}

.btn-secondary:hover {
    background: #5a6268;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

@media (max-width: 480px) {
    .checkout-card {
        padding: 20px;
    }
    
    .checkout-header h1 {
        font-size: 1.6rem;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .btn {
        width: 100%;
    }
}

.checkout-page {
            min-height: calc(100vh - 100px);
            padding: 40px 0;
           
        }
        
        .checkout-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 16px;
            background-color: var(--bg);
        }
        
        .checkout-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .checkout-header h1 {
            font-size: 2.5rem;
            color: var(--dark);
            margin-bottom: 10px;
            font-weight: 800;
        }
        
        .checkout-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        @media (max-width: 768px) {
            .checkout-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .checkout-page {
                padding: 20px 0;
            }
            
            .checkout-header h1 {
                font-size: 2rem;
            }
        }
        
        .checkout-card {
            background: white;
            border-radius: var(--radius);
            padding: 30px;
        }
        
        .section-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-gray);
        }
        
        .order-summary-items {
            margin: 20px 0;
        }
        
        .order-item-summary {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .order-item-summary:last-child {
            border-bottom: none;
        }
        
        .order-total-summary {
            display: flex;
            justify-content: space-between;
            padding: 20px 0;
            border-top: 2px solid var(--border);
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--dark);
            margin-top: 20px;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: var(--dark);
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .form-control {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--border);
            font-size: 1rem;
            transition: var(--transition);
            background: white;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
        }
        
        .form-hint {
            display: block;
            margin-top: 8px;
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .payment-screen {
            text-align: center;
            padding: 40px 20px;
            grid-column: 1 / -1;
        }
        
        .payment-loader {
            width: 80px;
            height: 80px;
            border: 4px solid var(--light-gray);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 30px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .payment-instructions {
            background: #e8f4fc;
            padding: 20px;
            border-radius: var(--radius-sm);
            margin: 20px 0;
            border-left: 4px solid #2196F3;
            text-align: left;
        }
        
        .payment-instructions h4 {
            margin-top: 0;
            color: #0d47a1;
            margin-bottom: 10px;
        }
        
        .payment-reference {
            background: var(--light);
            padding: 15px;
            border-radius: var(--radius-sm);
            font-family: monospace;
            margin: 20px 0;
            word-break: break-all;
            border: 1px solid var(--border);
        }
        
        .status-message {
            margin-top: 15px;
            padding: 12px;
            border-radius: var(--radius-xs);
            font-weight: 600;
        }
        
        .status-pending {
            background: rgba(255, 193, 7, 0.1);
            color: #856404;
            border: 1px solid rgba(255, 193, 7, 0.2);
        }
        
        .status-success {
            background: rgba(40, 167, 69, 0.1);
            color: var(--success);
            border: 1px solid rgba(40, 167, 69, 0.2);
        }
        
        .status-failed {
            background: rgba(220, 53, 69, 0.1);
            color: var(--danger);
            border: 1px solid rgba(220, 53, 69, 0.2);
        }
        
        .order-complete {
            text-align: center;
            padding: 60px 20px;
            grid-column: 1 / -1;
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }
        
        .checkmark-circle {
            width: 100px;
            height: 100px;
            background: var(--success);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 30px;
        }
        
        .checkmark {
            color: white;
            font-size: 50px;
            font-weight: bold;
        }
        
        .order-details-box {
            background: var(--light);
            padding: 25px;
            margin: 30px auto;
            max-width: 500px;
            border-radius: var(--radius-sm);
        }
        
        .redirect-notice {
            margin-top: 25px;
            padding: 15px;
            background: var(--light);
            border-radius: var(--radius-sm);
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .payment-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
            flex-wrap: wrap;
        }
        
        .alert {
            padding: 16px 20px;
            margin-bottom: 25px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideDown 0.3s ease;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .alert-success {
            background: rgba(40, 167, 69, 0.1);
            color: var(--success);
            border: 1px solid rgba(40, 167, 69, 0.2);
        }
        
        .alert-error {
            background: rgba(220, 53, 69, 0.1);
            color: var(--danger);
            border: 1px solid rgba(220, 53, 69, 0.2);
        }
        
        .btn-block {
            width: 100%;
            justify-content: center;
        }
        
        .checkout-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }
        
        @media (max-width: 480px) {
            .checkout-card {
                padding: 20px;
            }
            
            .payment-actions {
                flex-direction: column;
            }
            
            .payment-actions .btn {
                width: 100%;
            }
            
            .checkout-actions {
                flex-direction: column;
            }
            
            .checkout-actions .btn {
                width: 100%;
            }
        }