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

:root {
    --daraz-orange: #f85606;
    --bg-gray: #eff0f5;
    --text-main: #212121;
    --text-gray: #757575;
    --white: #ffffff;
}

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

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

/* Header & Search */
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;
    text-transform: uppercase;
}

.search-container {
    background: white;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.search-container i {
    color: #9e9e9e;
    font-size: 14px;
    margin-right: 8px;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

/* Banner Slider */
.banner-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #ddd;
}

.banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Categories Section */
.categories-container {
    background: white;
    padding: 10px;
    margin-top: 10px;
}

.cat-header {
    font-size: 14px;
    font-weight: 500;
    color: var(--daraz-orange);
    margin-bottom: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
}

.cat-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    margin-bottom: 5px;
    object-fit: cover;
}

.cat-name {
    font-size: 10px;
    line-height: 1.2;
}

/* Flash Sale Bar */
.flash-sale-bar {
    background: white;
    margin-top: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.flash-sale-title {
    color: var(--daraz-orange);
    font-weight: 700;
    font-size: 15px;
}

.shop-more-btn {
    color: #1a9cb7;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}

.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}

.img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
}

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

.product-details {
    padding: 8px;
}

.title {
    font-size: 13px;
    color: var(--text-main);
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.price {
    color: var(--daraz-orange);
    font-size: 16px;
    font-weight: 700;
}

.discount-row {
    font-size: 11px;
    margin-top: 2px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-gray);
    margin-right: 5px;
}

/* 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: #757575;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link.active {
    color: var(--daraz-orange);
}

.nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-link span {
    font-size: 11px;
}

/* Install Page Styles */
.install-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.btn-primary { width: 100%; padding: 10px; background: var(--daraz-orange); color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }