body{
  background:#f7f0e6;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { text-decoration:none !important;}

.app-wrapper{
    /*max-width:768px;*/
    max-width:100%;
    margin:0 auto;
    background:#f7f0e6;
    min-height:100vh;
    position:relative;
    padding-bottom:76px; 
}

/* ===== HEADER ===== */
.app-header{
    background-image:url(../../img/background_index.jpg); 
    background-size:cover;
    background-position:top;
    background-repeat: no-repeat;  /* ไม่ให้ภาพซ้ำ */

    color:#fff;
    padding:10px 0px 0px 0px;
    position:fixed;
    /*      border-bottom-left-radius:18px;
    border-bottom-right-radius:18px;*/
    border-bottom-left-radius:0px;
    border-bottom-right-radius:0px;
    /*overflow:hidden;*/
    padding-bottom: 40px; 
    width: 100%; 
    z-index: 100;    

}
.header-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.45),rgba(0,0,0,.7));
  z-index:0;
}
.header-content{
  position:relative;
  z-index:1;
}
.brand-logo{
  display:flex;
  align-items:center;
  gap:8px;
}
.brand-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#b68d4c;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,.3);
  font-size:16px;
}
.brand-text{
  line-height:1.1;
  font-size:12px;
}
.brand-text span{
  display:block;
}
.brand-text span:first-child{
  font-weight:600;
  letter-spacing:.06em;
  font-size:10px;
}
.brand-text span:last-child{
  font-size:10px;
  opacity:.8;
}

.header-menu-btn{
  width:36px;
  height:36px;
  border-radius:14px;
  border:none;
  background:rgba(0,0,0,.35);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,.35);
}

.header-actions {
    position: absolute;
    bottom: -80%;                 /* ติดขอบล่างของ header */
    left: 50%;
    transform: translate(-50%, 65%);  /* ดันลงมาครึ่งนึงเพื่อให้ “คาบเส้น” */
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 30px;
    z-index: 30;
    /*background: #ffffff;*/
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.12);*/
}

/* ===== SEARCH BAR ===== */
.search-wrapper{
    position: absolute;
    bottom: -80%;                 /* ติดขอบล่างของ header */
    left: 50%;
    transform: translate(-50%, 65%);  /* ดันลงมาครึ่งนึงเพื่อให้ “คาบเส้น” */
    display: flex;
    gap: 12px;
    padding: 0px;
    z-index: 30;
    width: 100%;
}

.search-box{
    background:#fff;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(0,0,0,.18);
    display:flex;
    align-items:center;
    padding:8px 14px;
    width: 100%;
}
.search-box i{
    font-size:1rem;
    color:#c0a28a;
    margin-right:8px;
}
.form-control-search{
    border:0;
    outline:0;
    box-shadow:none;
    padding:0;
    font-size:.84rem;
    background:transparent;
}
.form-control-search::placeholder{
    color:#b9a89b;
}  
.btn-pill{
    border-radius:999px;
    padding:6px 16px;
    font-size:14px;
    font-weight: 500;
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:0;
    white-space:nowrap;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.btn-add-wine{
    background:#fff;
    color:#7a1528;
    border: 1px solid #7a1528;
    /*padding: 10px 16px;*/
    padding: 5px 8px;
    width: 7rem;
    justify-content: center;
}
.btn-add-wine-w{
    background:#F8F4F0;
    color:#6F1F2A;
    border: 1px solid #6F1F2A;
    padding: 5px 8px;
    width: 8rem;
    justify-content: center;
}
.btn-add-wine-r{
    background:#6F1F2A;
    color:#D2B76F;
    border: 1px solid #6F1F2A;
    padding: 5px 8px;
    width: 8rem;
    justify-content: center;
}

.btn-add:hover{
    background:#7a1528;
    color:#fff;
    border: 1px solid #7a1528;
}
.btn-withdraw:hover{
    background:#d2b76f;
    color:#000;
    border: 1px solid #fff2f2;
}		
.btn-last-update{
    background:#7a1528;
    color:#d2b76f;
    border: 1px solid #d2b76f;
}

.header-tabs{

    margin-bottom: 20px;
    gap:16px;
    font-size:14px;
    color: #3a0d16; 
}

.header-tabs a{
    color:#7a1528;
    text-decoration:none;
    opacity:.8;
}
.header-tabs a.active{
    font-weight:600;
    opacity:1;
}

/* ===== CONTENT ===== */
.content-area{
    padding: 120px 0px 0px 0px;
    position: relative;
    top: 50%;
    width: 100%;
    margin: 0;
}



.wine-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 16px rgba(0,0,0,.08);
  padding:8px;
  display:flex;
  gap:10px;
  margin-bottom:10px;
}
.wine-thumb{
  width:60px;
  min-width:60px;
  border-radius:14px;
  background:#f3f0ea;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.wine-thumb img{
  max-height:80px;
  width:auto;
}

.wine-main{
  flex:1;
  display:flex;
  flex-direction:column;
  /*gap:4px;*/
}
.wine-header-line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.wine-title{
  font-size:14px;
  font-weight:600;
  color:#3a0d16;
}
.wine-stock{
  font-size:10px;
  color:#3a0d16;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:3px;
}
.wine-stock i{
  font-size:12px;
}

.wine-sub{
    font-size:10px;
    color:#7b6c60;
    line-height:1.25;
    margin-bottom: 4px;
}

.wine-meta{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:10px;
  margin-top:2px;
}
.wine-meta-item{
  display:flex;
  align-items:center;
  gap:4px;
  color:#7b6c60;
}

.wine-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    /*margin-top:6px;*/
}
.wine-actions{
    display:flex;
    gap:6px;
    font-size:10px;
}
.wine-actions .btn{
  padding:4px 8px;
  font-size:10px;
  border-radius:5px;
  /*border-width:0;*/
}
.btn-fav{
  background:#fff2f2;
  color:#7a1528;
  border:1px solid #f3c8cf;
}
.btn-add{
  background:#7a1528;
  color:#fff;
}
.btn-withdraw{
  background:#d2b76f;
  color:#4b330f;
}

.wine-price{
  text-align:right;
  font-size:10px;
  color:#7a1528;
}
.wine-price-main{
  font-weight:600;
}
.wine-price-sub{
  font-size:10px;
  color:#9b8c80;
}

/* ===== BOTTOM NAV ===== */
/*
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding-bottom:0px;
  background:#fff;
}
.bottom-nav-inner{
  max-width:100%;
  margin:0 auto;
  padding:0px 0px 0px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:6px;
}
.nav-item-mini{
  flex:1;
  text-align:center;
  font-size:10px;
  color:#9b8c80;
}
.nav-item-mini i{
  display:block;
  font-size:16px;
  margin-bottom:0px;
}
.nav-item-mini.active {
  background:#7a1528;
}
.nav-item-mini.active i{
  color:#fff;
  border-radius:999px;
  padding:0px 0px;
  font-size:14px;
}
.nav-item-mini.active{
  color:#fff;
  font-weight:500;
}

*/

.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:#fff;
  padding:0px 0px 0px 0px;
  z-index:999;
}

.bottom-nav-inner{
  display:flex;
  align-items:flex-end; /* ⭐ สำคัญ */
  gap:6px;
}

.nav-item-mini{
  flex:1;
  text-align:center;
  font-size:14px;
  font-weight:600;
  color:#9b8c80;
  padding:8px 0 6px;
  border-radius:14px;
  transition:.2s;
  padding-bottom:14px;
}

.nav-item-mini i{
  display:block;
  font-size:16px;
  margin-bottom:2px;
}

/* ===== ACTIVE FLOAT ===== */
.nav-item-mini.active{
  background:#7a1528;
  height:76px;
  margin-top:-24px;
  padding-top:16px;
  color:#d2b76f;
 /* margin-top:-6px;*/

  border-radius:6px 6px 0px 0px; /* โค้งมนแบบแท็บ */
  
}

.nav-item-mini.active i{
  color:#d2b76f;
  font-size:15px;
}



/* ===== OFFCANVAS MENU ===== */
.offcanvas-end{
  max-width:260px;
  background:#2b050c;
  color:#f8e9d9;
}
.offcanvas-header{
  border-bottom:1px solid rgba(255,255,255,.15);
}
.offcanvas-title{
  font-size:14px;
}
.offcanvas .btn-close{
  filter:invert(1) brightness(2);
  opacity:.8;
}
.menu-list .list-group-item{
  background:transparent;
  color:#f8e9d9;
  border-color:rgba(255,255,255,.09);
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:.55rem .75rem;
}
.menu-list .list-group-item i{
  font-size:16px;
}
.menu-list .list-group-item:last-child{
  border-bottom:none;
}

.wine-card{
    border-radius:12px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    /*cursor:pointer;*/
    transition:0.15s;
}
.wine-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
}
    .wine-title{
        cursor: pointer;
    }    

.hidden{ display:none; }    

.search-card {
    position: relative;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    width: 100%;
}

.search-card input {
    width: 100%;
    /*padding: 10px 16px 10px 40px;*/
    padding: 5px 8px 5px 40px;
    border: none;
    border-radius: 12px;
    background: #fafafa;
    transition: 0.25s;
}

.search-card input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(176, 53, 69, 0.3);
}

.search-card i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color:#b03545;
    opacity:0.8;
    pointer-events:none;
}  

.status_item_black{
     width:24px; height:24px; padding:0px 0px 0px 6.5px; border-radius:50%;background-color: #000000;color:white;
}
.fa_icon{
     font-size:12px;
} 
.photo-upload {
    width: 140px;
    height: 180px;

    display: flex;
    flex-direction: column;
    justify-content: center; /* กึ่งกลางแนวตั้ง */
    align-items: center;     /* กึ่งกลางแนวนอนภายใน flex */
    cursor: pointer;
    border: 2px solid #dcdcdc; /* เส้นทึบ */
    border-radius: 12px;
    background: #fff;
    position: relative;
    color: #dcdcdc;
    text-align: center; /* กรณีข้อความ span */
}

.photo-upload i, .photo-upload span {
    pointer-events: none; /* ให้คลิกทะลุถึง input */
}

.photo-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.input-row-sm {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.input-row-sm label {
    width: 100px;
    font-weight: 500;
    font-size: 13px;
    color: #333333;
    margin-right: 8px;
    white-space: nowrap;
}

.input-row-sm input {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    color: #333333;
    background: #fff;
    box-sizing: border-box;
}

.input-row-sm input::placeholder {
    color: #a9a9a9;
}

.input-row-sm input:focus {
    outline: none;
    border-color: #999999;
    box-shadow: 0 0 5px #b0b0b0a0;
}
.input-row-sm input {
    flex: 1; /* กำหนดให้เต็มพื้นที่ */
    padding: 8px 12px;
    font-size: 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    color: #333333;
    background: #fff;
    box-sizing: border-box;
    min-width: calc(100% - 108px); /* 100% - width ของ label + margin */
}

.input-row-sm select {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    color: #333333;
    background: #fff;
    box-sizing: border-box;
}

.input-row-sm select::placeholder {
    color: #a9a9a9;
}

.input-row-sm select:focus {
    outline: none;
    border-color: #999999;
    box-shadow: 0 0 5px #b0b0b0a0;
}
.input-row-sm select {
    flex: 1; /* กำหนดให้เต็มพื้นที่ */
    padding: 8px 12px;
    font-size: 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    color: #333333;
    background: #fff;
    box-sizing: border-box;
    min-width: calc(100% - 108px); /* 100% - width ของ label + margin */
}

.btn-submit {
    width: 100%;
    padding: 16px 0;
    border-radius: 50px;
    border: none;
    background-color: #dbcdb7;
    color: #7b1f2e;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.btn-submit:hover {
    background-color: #7b1f2e;
    color: #fff;
}
.btn-submit-sm {
    width: 100%;
    padding: 10px 0; /* เล็กลงจากปกติ */
    border-radius: 30px; /* ปรับให้โค้งเล็กลง */
    border: none;
    background-color: #eadbbc;
    color: #333333; /* สีตัวอักษรดำเทา */
    font-weight: 500;
    font-size: 14px; /* ขนาดตัวอักษรเล็กลง */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-sm:hover {
    background-color: #b5a992;
    color: #fff;
}
.modal-content{
    background: #f8f5f0;
}    
.wine-thumb{
    background-color: #ffffff;
}  
.wine-thumb-img1{
    width:50px; 
    height:80px; 
    border-radius:8px; 
    object-fit: cover;
}    


img.icon_withdraw{
    width: 15px;
    margin-right: 5px;
    background-image: url(../img/menu_add.png);
}

img.icon_withdraw.active{
    width: 15px;
    margin-right: 5px;
    background-image: url(../img/menu_add_gold.png);
}

.icon_home{
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;       /* หรือ cover */
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_home.png);
}

.icon_home.active{
    width: 15px;
    height: 15px;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_home_gold.png);
}

.icon_list{
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;       /* หรือ cover */
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_list.png);
}

.icon_list.active{
    width: 15px;
    height: 15px;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_list_gold.png);
}

.icon_add{
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;       /* หรือ cover */
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_add.png);
}

.icon_add.active{
    width: 15px;
    height: 15px;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_add_gold.png);
}

.icon_withdraw{
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;       /* หรือ cover */
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_withdraw.png);
}

.icon_withdraw.active{
    width: 15px;
    height: 15px;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_withdraw_gold.png);
}

.icon_favorite{
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;       /* หรือ cover */
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_favorite.png);
}

.icon_favorite.active{
    width: 15px;
    height: 15px;
    background-image: url(https://wine.digitalmktsiamcity.com/img/menu_favorite_gold.png);
}



img.icon_wine{
    width: 4px;
}
img.icon_btn{
    width: 10px;
    margin-top: -2px;
}  
img.icon_menu{
    width: 16px;
}

.input-row-sm input:disabled, input[readonly] {
    background-color: #e9ecef;    
}

.btn-withdraw-disabled{
    background-color: #C2C2C2;  
}

@media only screen and (max-width: 768px) {
    .search-wrapper .container{
        padding: 0;
    }
}
	