* {
  margin: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  padding-bottom: 85px;
  background: #fff;
}

.title {
  text-align: center;
  font-size: 22px;
  margin: 15px 0;
}
/* HEADER */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  background:white;
}
.logo{
  font-weight:bold;
  font-size:22px;
}
.logo span{
  color:red;
}
.icons i{
  margin-left:12px;
  font-size:18px;
}

/* SEARCH */
.search-box{
  padding:10px;
  background:white;
}
.search-box input{
  width:100%;
  padding:12px;
  border-radius:6px;
  border:1px solid #ddd;
}

/* HERO */
.hero{
  background:linear-gradient(135deg,#2e1a36,#5a2b5e);
  color:white;
  padding:30px 20px;
  border-radius:12px;
  margin:15px;
}
.hero-text h1{
  margin:10px 0;
}
.hero button{
  background:white;
  color:black;
  border:none;
  padding:10px 18px;
  border-radius:6px;
  cursor:pointer;
}

/* CATEGORY */
.category{
  display:flex;
  gap:10px;
  padding:0 15px;
}
.cat{
  flex:1;
  padding:20px;
  border-radius:12px;
}
.card1{
  background:#dff6f2;
}
.card2{
  background:#fff2d9;
}

/* TITLE */
.title{
  padding:0 15px;
}
/* SLIDER */
.slider {
  overflow-x: auto;
  padding: 10px;
  scroll-behavior: smooth;
}

.slider::-webkit-scrollbar {
  display: none;
}


.products {
  display: flex;
  gap: 12px;
  scroll-snap-type: x mandatory;
}

.product-card {
  min-width: 48%;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  scroll-snap-align: start;
  position: relative;
  transition: 0.3s;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: #fff;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 20px;
}

.name {
  font-size: 14px;
  margin: 6px 0;
}

.stars {
  color: #ccc;
  font-size: 14px;
}

.price {
  margin-top: 6px;
}

.price .new {
  color: #e53935;
  font-weight: bold;
}

.price .old {
  margin-left: 5px;
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
}

/* BANNER */
.banner {
  margin: 15px;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(90deg,#ffcc80,#ffd180);
  color: #fff;
}

.banner h1 {
  font-size: 28px;
  margin: 8px 0 14px;
}

.banner button {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 78px;
  border-top: 1px solid #ddd;
  background: #fff;
  display: flex;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  padding-top: 12px;
  color: #999;
  font-size: 11px;
  text-decoration: none;
  position: relative;
}

.bottom-nav i {
  font-size: 22px; /* SAMA DENGAN GAMBAR */
  display: block;
  margin-bottom: 5px;
}

.bottom-nav .active {
  color: #e53935;
}

/* CART BADGE */
.badge {
  position: absolute;
  top: 10px;
  right: 30%;
  background: red;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}
/* OVERLAY */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  z-index: 98;
}

/* SIDE MENU */
#sideMenu {
  position: fixed;
  top: 0;
  left: -85%;
  width: 85%;
  height: 100%;
  background: #f2f2f2;
  z-index: 99;
  transition: 0.3s ease;
  overflow-y: auto;
}

#sideMenu.active {
  left: 0;
}

.menu-header {
  padding: 15px;
  background: #eee;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.logo span {
  color: red;
}

.menu-search {
  margin-top: 10px;
  position: relative;
}

.menu-search input {
  width: 100%;
  padding: 10px 35px 10px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.menu-search i {
  position: absolute;
  right: 12px;
  top: 11px;
  color: #777;
}

/* MENU */
.menu {
  list-style: none;
  padding: 0;
}

.menu > li {
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  background: #f2f2f2;
  position: relative;
}

.menu > li span {
  position: absolute;
  right: 15px;
  font-size: 18px;
}

.submenu {
  display: none;
  background: #fff;
  padding-left: 15px;
}

.submenu li {
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

/* BOTTOM */
.menu-bottom {
  padding: 15px;
}

.menu-bottom .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.select {
  border: 1px solid #ccc;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fff;
}
.mobile-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

/* TOP BAR */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.header-top i {
  font-size: 22px;
  color: #333;
}

.header-top .right i {
  margin-left: 14px;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo .red {
  color: red;
  font-size: 14px;
}

/* SEARCH */
.header-search {
  padding: 8px 14px 12px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 38px 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #f7f7f7;
}

.header-search i {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}
.slider-container {
  position: relative;
  padding: 0 10px;
}

.slider {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.slider::-webkit-scrollbar {
  display: none;
}

.track {
  display: flex;
  gap: 12px;
}

.item {
  min-width: 40%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 12px;
  text-align: center;
  position: relative;
}

.item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.price b {
  color: #e53935;
}

.price s {
  color: #999;
  font-size: 13px;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.07);
  border: none;
  width: 34px;
  height: 48px;
  font-size: 26px;
  border-radius: 6px;
  z-index: 5;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }
.cart-actions {
  display: flex;
  align-items: center;
  margin-top: 8px;
  gap: 16px;
  justify-content: center;   /* center horizontal */
}
.cart-form {
  display: flex;
  align-items: center;       /* center vertical */
  gap: 6px;                  /* jarak antara button */
}

/* QTY */
.qty {
	width: 34px;
	height: 25px;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
}

.qty input {
  width: 34px;
  height: 30px;
  text-align: center;
  border: none;
  font-size: 13px;
}

/* ADD CART */
.add-cart-btn {
  flex: 1;
  height: 28px;
  width: 58px;
  border-radius: 6px;
  border: none;
  background: #ff5722;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.add-cart-btn:active {
  transform: scale(0.95);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  position: relative;
  transition: .25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}


/* TEXT */
.category {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.title {
  font-size: 15px;
  margin: 4px 0 10px;
  line-height: 1.35;
}

.price {
  font-size: 16px;
  font-weight: bold;
}

.price .sale {
  color: #e53935;
}

.price .old {
  font-size: 13px;
  color: #aaa;
  margin-left: 6px;
  text-decoration: line-through;
}
.cart-action {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.cart-action button {
  border: none;
  background: #eee;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

.cart-action button:active {
  transform: scale(.9);
}

.qty2 {
  width: 14px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  height: 30px;
  font-size: 14px;
}

.add-btn {
  
  background: #ff5722;
  color: white;
  width: 64px;
  height: 30px;
  border-radius: 6px;
}

.add-btn:hover {
  background: #e64a19;
}
.btn-addcart {
  display: block;
  margin: 0 auto;
}
