:root {
    --primary: #c9751e;
    --primary-hover: #b86a1a;
    --secondary: #171c36;
    --secondary-hover: #1f274a;
    --text-dark: #333333;
    --text-light: #fdfaf6;
    --text-gray: #6b7280;
    --bg-light: #fdfaf6;
    --bg-white: #ffffff;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.app-logo {
    max-height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.quick-cart {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(201, 117, 30, 0.25);
    transition: var(--transition);
    position: sticky;
    top: 15px;
    z-index: 100;
}

.quick-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.quick-cart-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 117, 30, 0.1);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.product-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 15px;
    gap: 15px;
    align-items: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card.selected {
    border-color: var(--primary);
    background-color: rgba(201, 117, 30, 0.03);
}

.product-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-qty {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.qty-display {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

.page-info {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.btn-page {
    background-color: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.btn-page:hover:not(:disabled) {
    background-color: var(--secondary-hover);
}

.btn-page:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.cart-summary {
    background: var(--secondary);
    color: var(--text-light);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-total span:last-child {
    color: var(--primary);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 117, 30, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: 10px;
}

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

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .app-container {
        padding: 15px;
    }
    
    .product-img {
        width: 60px;
        height: 60px;
    }
}
