﻿*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial;
}

body{
    background:#f5f5f5;
}

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:60px;
    background:#0078D7;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:bold;
    z-index:1000;
}

/* Content */
.content{
    margin-top:70px;
    margin-bottom:20px;
    padding:15px;
}
.content-bottom{
    /*margin-top:10px;*/
    margin-bottom:70px;
    padding:15px;
}
.card{
    background:white;
    border-radius:10px;
    padding:15px;
    margin-bottom:15px;
    box-shadow:0 2px 5px rgba(0,0,0,.15);
}

.card img{
    width:100%;
    border-radius:8px;
}

.card h3{
    margin-top:10px;
}

/* Bottom Menu */
.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:60px;
    background:white;
    display:flex;
    border-top:1px solid #ddd;
    z-index:1000;
    margin-top:15px;
}

.bottom-nav a{
    flex:1;
    text-align:center;
    text-decoration:none;
    color:#444;
    padding-top:8px;
    font-size:13px;
}

.icon{
    display:block;
    font-size:22px;
    margin-bottom:3px;
}

@media(min-width:768px){
    body{
        max-width:500px;
        margin:auto;
        border-left:1px solid #ccc;
        border-right:1px solid #ccc;
    }
}

.search-container{
    display:flex;
    width:100%;
}

.search-box{
    flex:1;
    height:40px;
    border:none;
    border-radius:20px 0 0 20px;
    padding-left:15px;
    font-size:16px;
}

.search-btn{
    width:60px;
    border:none;
    background:#ff9800;
    color:white;
    font-size:18px;
    border-radius:0 20px 20px 0;
    cursor:pointer;
}

.content{
    margin-top:150px;
    margin-bottom:10px;
    padding:5px;
}
/* DropUp */

.dropup-menu{
    position:fixed;
    bottom:-300px;
    left:0;
    width:100%;
    background:white;
    border-top-left-radius:20px;
    border-top-right-radius:20px;
    box-shadow:0 -3px 15px rgba(0,0,0,.2);
    transition:all .3s ease;
    z-index:999;
}

.dropup-menu.show{
    bottom:60px;
}

.dropup-menu a{
    display:block;
    padding:15px;
    text-decoration:none;
    color:#333;
    border-bottom:1px solid #eee;
    font-size:16px;
}

.dropup-menu a:hover{
    background:#f5f5f5;
}
        
/*Sales Menu*/
.dropup{
    position:fixed;
    bottom:15px;
    right:15px;
    z-index:9999;
}

.sales-btn{
    background:#0d6efd;
    color:white;
    border:none;
    border-radius:30px;
    padding:12px 25px;
    font-size:16px;
    font-weight:bold;
}

.dropup-content{
    display:none;
    position:absolute;
    bottom:60px;
    right:0;
    min-width:220px;
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 0 10px rgba(0,0,0,.3);
}

.dropup-content a{
    display:block;
    padding:14px;
    text-decoration:none;
    color:#333;
    border-bottom:1px solid #eee;
    font-size:15px;
}

.dropup-content a:hover{
    background:#f5f5f5;
}
/*End Sales Menu*/     

/* Product Type Menu */
.product-type
{
	position:fixed;
    top:60px;
    left:0;
    width:100%;
    height:90px;
    /*margin-top:70px;*/
    margin-bottom:70px;
    display:flex;
    overflow-x:auto;
    background:white;
    padding:10px 5px;
    border-bottom:1px solid #ddd;
}


.type-item{
    min-width:80px;
    text-align:center;
    margin:0 5px;
}

.type-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#0d6efd;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    font-size:22px;
}

.type-name{
    margin-top:5px;
    font-size:13px;
}   

/*scroll item menu*/
.category-container
{
	position:fixed;
    top:60px;
    width:100%;
    height:90px;
    
	display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;

    background:#fff;
    padding:10px 5px;

    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}

.category-container::-webkit-scrollbar{
    display:none;
}

.category-item{
    flex:0 0 auto;
    width:60px;
    text-align:center;
    text-decoration:none;
    color:#333;
    margin-right:5px;
}

.category-item img{
    width:40px;
    height:40px;
    border-radius:50%;
    border:1px solid #ddd;
    object-fit:cover;
}

.category-item span{
    display:block;
    margin-top:1px;
    font-size:12px;
}

.menu-wrapper
{
	position:fixed;
    top:60px;
    width:100%;
    height:90px;
    
    display:flex;
    align-items:center;
    background:white;
}

.arrow
{
    border:none;
    background:white;
    font-size:10px;
    /*padding:10px;*/
    cursor:pointer;
}


.link-box {
  /* Biến liên kết thành khối để căn chỉnh kích thước */
  display: inline-block; 
  
  /* Tạo khoảng cách bên trong hộp (Dọc - Ngang) */
  padding: 2px 2px; 
  
  /* Màu nền của hộp */
  background-color: #007bff; 
  
  /* Màu chữ bên trong */
  color: #ffffff; 
  
  /* Bỏ đường gạch chân mặc định của liên kết */
  text-decoration: none; 
  
  /* Bo góc hộp (tùy chỉnh theo ý muốn) */
  border-radius: 6px; 
  
  /* Font chữ và định dạng */
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size:10px;
  
  /* Hiệu ứng mượt mà khi rê chuột vào */
  transition: background-color 0.3s ease; 
}

/* Hiệu ứng khi người dùng rê chuột (hover) vào hộp */
.link-box:hover {
  background-color: #0056b3; /* Đổi sang màu tối hơn */
  color: #ffffff;
}

/* Sales Order */
.order-card{
    background:white;
    margin:10px;
    padding:15px;
    border-radius:10px;
    box-shadow:0 2px 5px rgba(0,0,0,.15);
}

.btnOrder{
    width:100%;
    background:#ff6600;
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    font-size:16px;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    z-index:999;
}

.modal-content{
    background:white;
    width:95%;
    margin:5px auto;
    border-radius:2px;
    padding:15px;
    max-height:80vh;
    overflow:auto;
}

.closeBtn{
    float:right;
    background:red;
    color:white;
    border:none;
    padding:8px 12px;
    border-radius:5px;
}

.item-row{
    padding:10px;
    border-bottom:1px solid #ddd;
}

.shop-card{

    background:white;
    padding:15px;
    margin:10px;

    border-radius:15px;

    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.shop-name{

    font-size:22px;
    font-weight:bold;

    color:#ff6600;

    margin-bottom:10px;
}

.shop-info{

    margin-top:8px;
    color:#444;
}

.rating{

    margin-top:10px;

    color:#ffb400;
    font-size:22px;
}

.rating-score{

    color:#333;
    font-size:16px;
    margin-left:8px;
}

.btn-review{

    margin-top:15px;

    width:100%;
    height:42px;

    background:#ff6600;
    color:white;

    border:none;
    border-radius:8px;

    font-size:16px;
}

.review-item{

    margin-top:10px;
    padding:10px;

    background:#f7f7f7;

    border-radius:8px;
}

.bottommenu-item{
    flex:0 0 auto;
    width:60px;
    text-align:center;
    text-decoration:none;
    color:#333;
    margin-right:5px;
}

.bottommenu-item img{
    width:30px;
    height:30px;
    border-radius:50%;
    border:1px solid #ddd;
    object-fit:cover;
}

.bottommenu-item span{
    display:block;
    margin-top:1px;
    font-size:12px;
}

.image-text {
    position: absolute;
    top : 0px;
    left: 50.5%;
    transform: translateX(-50%);

	min-width: 18px;
    height: 18px;
    /*padding: 0 4px;*/
    box-sizing: border-box;
    
    color: white;
    background: red; /*rgba(0, 0, 0, 0.65);*/
    padding: 2px 6px;
    border-radius: 50%;

    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.text-hethang {
    position: absolute;
    
    transform: rotate(45deg);

	height: 18px;
    box-sizing: border-box;
    
    color: red;
    background: *rgba(0, 0, 0, 0.65);
    
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    height: 14px;

    background: #f0f0f0;
    border-radius: 20%;

    text-decoration: none;
    border: none;

    -webkit-tap-highlight-color: transparent;
}

.heart {
    font-size: 14px;
    color: #777;
    transition: .2s;
}

/* Khi được Like */
.like-button.liked {
    background: #ff1744;
}

.like-button.liked .heart {
    color: white;
    transform: scale(1.15);
}

/*
#ProductImage {
  bottom: 15%;
  position: absolute;
  animation: linear infinite;
  animation-name: run;
  animation-duration: 5s;
}
@keyframes run {
  0% {
    left: 0;
  }
  48% {
    transform: rotateY(0deg); 
  }
  50% { 
    left: calc(100% - 100px);
    transform: rotateY(180deg); 
  }
  98% {
    transform: rotateY(180deg); 
  }
  100% {
    left: 0;    
     transform: rotateY(0deg);
  }
}
*/

.product-hethang{
    width:100%;
    height:100px;
    object-fit:cover;
    display:block;
    filter: blur(5px);
}

.product-conhang{
    width:100%;
    height:100px;
    object-fit:cover;
    display:block;
}

.business-header
{
  width: 100%;  /* Đặt kích thước chiều rộng mong muốn cho div */
  height: 200px; /* Đặt kích thước chiều cao mong muốn cho div */
  overflow: hidden; /* Ẩn phần ảnh thừa nếu có */ 
}

.business-header img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Giống background-size: cover */
  /* Hoặc dùng object-fit: contain; nếu muốn giống background-size: contain */
}

.business-avatar
{
	position: absolute;
	top: 45%;
	left: 7%;

	/*
		
    
    flex:0 0 auto;
    width:40px;
    text-align:center;
    text-decoration:none;
    color:#333;
    margin-right:5px;
*/
}

.business-avatar img{
    width:80px;
    height:80px;
    border-radius:50%;
    border:10px solid white transparent;
    object-fit:cover;
}

.business-header span
{
	position: absolute;
	top: 61%;
	left: 6%;
	width: 200px;
	color:White;
	
    /*margin-top:1px;*/
    font-size:12px;
    color:black;
}

.business-following
{
	position: absolute;
	top: 60%;
	left: 9%;
	width: 200px;
	
    /*margin-top:1px;*/
    font-size:12px;
    color:black;
}

.business-title {
    position: absolute;
    height: 18px;
    background: *rgba(0, 0, 0, 0.65);    
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}
