/* assets/css/style.css - Mobile Friendly Updated */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --daraz-orange: #f85606;
    --bg-gray: #eff0f5;
    --white: #ffffff;
    --text-dark: #212121;
    --text-grey: #757575;
    --border-color: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }

body { background-color: var(--bg-gray); padding-bottom: 80px; }

/* --- Mobile Header --- */
header { background-color: var(--daraz-orange); padding: 10px 15px; position: sticky; top: 0; z-index: 1000; }
.store-header { color: white; font-weight: 700; font-size: 18px; text-align: center; margin-bottom: 10px; }
.search-container { background: white; border-radius: 8px; display: flex; align-items: center; height: 40px; padding: 0 10px; }
.search-container input { border: none; outline: none; width: 100%; height: 100%; font-size: 14px; }
.search-btn { background: none; border: none; color: var(--daraz-orange); font-size: 16px; }

/* --- Banner & Categories --- */
.banner-wrapper { width: 100%; margin-bottom: 10px; }
.slider img { width: 100%; display: block; }
.categories-container { background: white; padding: 10px; margin-bottom: 10px; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.cat-item { color: var(--text-dark); text-decoration: none; font-size: 11px; display: flex; flex-direction: column; align-items: center; }
.cat-img { width: 50px; height: 50px; border-radius: 50%; background: #f5f5f5; object-fit: cover; margin-bottom: 5px; }

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
.product-card { background: white; border-radius: 8px; overflow: hidden; text-decoration: none; padding-bottom: 10px; }
.img-box { width: 100%; aspect-ratio: 1/1; background: #fafafa; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.product-details { padding: 8px; }
.title { font-size: 13px; color: var(--text-dark); height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 5px; }
.price { color: var(--daraz-orange); font-size: 16px; font-weight: 700; }
.discount-row { font-size: 11px; color: #999; }
.old-price { text-decoration: line-through; margin-right: 5px; }

/* --- Checkout & Forms (Mobile Friendly) --- */
.page-header { background: white; padding: 15px; border-bottom: 1px solid #ddd; font-weight: bold; font-size: 16px; display: flex; align-items: center; position: sticky; top: 0; z-index: 900; }
.page-header i { margin-right: 15px; color: #333; cursor: pointer; }

.section-card { background: white; margin: 10px; padding: 15px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.section-title { font-size: 14px; font-weight: bold; margin-bottom: 12px; color: #333; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }

.input-group { margin-bottom: 15px; }
.input-label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; }
.mobile-input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #fafafa; outline: none; transition: 0.3s; }
.mobile-input:focus { border-color: var(--daraz-orange); background: white; }

.payment-option { display: flex; align-items: flex-start; padding: 12px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: 0.2s; }
.payment-option.active { border-color: var(--daraz-orange); background: #fff5f0; }
.payment-option input { margin-right: 12px; margin-top: 4px; accent-color: var(--daraz-orange); }

.account-details-box { background: #f9f9f9; padding: 10px; border-radius: 6px; font-size: 13px; color: #555; margin-top: 5px; border-left: 3px solid var(--daraz-orange); }

.bottom-fixed-btn { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 10px; border-top: 1px solid #ddd; z-index: 1000; }
.btn-orange { width: 100%; background: var(--daraz-orange); color: white; border: none; padding: 14px; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; }

/* --- My Orders --- */
.order-card { background: white; margin: 10px; padding: 15px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border-left: 4px solid #ddd; }
.order-card.pending { border-left-color: orange; }
.order-card.shipped { border-left-color: #1a9cb7; }
.order-card.delivered { border-left-color: #4caf50; }
.order-top { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 8px; }
.order-mid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-price { font-size: 16px; font-weight: bold; color: var(--daraz-orange); }
.status-badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: #eee; font-weight: bold; }

/* --- Bottom Nav --- */
.bottom-nav { position: fixed; bottom: 0; width: 100%; background: white; display: flex; padding: 8px 0; border-top: 1px solid #e0e0e0; z-index: 2000; }
.nav-link { flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center; color: #999; background: none; border: none; }
.nav-link.active { color: var(--daraz-orange); }
.nav-link i { font-size: 20px; margin-bottom: 3px; }
.nav-link span { font-size: 10px; }