/* ================= RESET & VARIABLES ================= */
:root {
    --primary-color: #ff6b00; 
    --text-dark: #222;
    --text-gray: #888;
    --bg-light: #fff;
    --bg-off-white: #f8f9fa;
    --border-color: #eee;
    --header-height: 110px;
    --bottom-nav-height: 65px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff; 
    display: flex;
    justify-content: center;
    height: 100vh;
}


.mobile-wrapper {
    width: 100%;
    max-width: 420px; 
    background-color: var(--bg-light);
    height: 87vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

button {
    background: none;
    border: none;
    cursor: pointer;
}


.app-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-light);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px 20px;
}

.icon-btn {
    padding: 5px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}
.logo-img {
  width: 150px;
     height: 40px;
}
.logo-highlight {
    color: var(--primary-color);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #eb2239;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-light);
}

/* Row 2: Search & Scanner */
.header-search {
    padding: 0 20px 15px 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-off-white);
    border-radius: 12px;
    padding: 0 10px;
    border: 1px solid #facfe0;
}

.search-container svg {
    margin-right: 8px;
    margin-left: 5px;
}

.search-container input {
    border: none;
    background: none; 
    padding: 12px 0;
    flex-grow: 1;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.scanner-btn {
    color: var(--primary-color);
    padding: 8px;
    border-left: 1px solid var(--border-color);
}

/* ================= MAIN CONTENT ================= */
.content-area {
    height: 100%;
    overflow-y: auto;
    /* Push content down by header height and not hide behind bottom nav */
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.content-area::-webkit-scrollbar {
    display: none;
}

/* Banner */
.hero-banner {
  margin: 20px;
  height: 140px;
  /* background: linear-gradient(45deg, #ff6b00, #ff9e4f); */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* space between text and image */
  /* padding: 20px; */
  color: white;
  overflow: hidden;
}

.banner-content h2 {
  font-size: 24px;
  margin: 0;
}

.banner-content p {
  font-size: 18px;
  margin: 5px 0 0;
}

.banner-img {
  height: 100%;
  max-height: 135px;
  border-radius: 12px;
  object-fit: cover;
}


.banner-content h2 { font-size: 24px; margin-bottom: 5px; }
.banner-content p { font-size: 14px; opacity: 0.9; }

/* General Sections */
.section-container {
    /* padding: 20px 0; */
    background-color: var(--bg-light);
    margin-bottom: 10px;
}

.section-header {
    padding: 0 20px 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 { font-size: 18px; color: var(--text-dark); }
.see-all { text-decoration: none; color: var(--primary-color); font-size: 13px; font-weight: 600;}

/* Categories Horizontal Scroll */
.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 20px;
    gap: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.cat-item span {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}





/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px;
}


.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / 19%);
    display: block; 
    text-decoration: none;
    color: inherit;
}


.product-img {
    height: 275px;
    width: 100%;
    object-fit: cover; 
    display: block;
}

.product-info {
    padding: 10px;
    text-align: center;
}




.product-info {
    padding: 10px;
}

.product-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.product-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ================= BOTTOM NAVIGATION ================= */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #aaa;
    font-size: 10px;
    font-weight: 500;
}

.nav-item svg {
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}
