/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.header-button-1 a {
    background: #348838;
}


.header-button-2 a {
   background: #fdd835;
    color: #1a237e;
}

#logo a {
    font-size: 24px;
    color: #fee138;
}

.main-title h1{
    font-size: clamp(24px, 4vw, 36px);
}

/* ====== BRAND LIST STYLE ====== */

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  gap: 15px;
}

.brand-list-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.brand-group {
    display: flex;
    gap: 15px;
    flex-direction: row;
    align-items: center;
    border-right: 1px solid #e9e9e9;
    padding-right: 10px;
}

.brand-group h3{
    font-size: 18px;
    color: #000;
    margin-bottom: 0;
}
.brand-group .rating-stars{
    color: #ffc107;
}

.brand-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.brand-rank img {
  width: 60px;
  height: 60px;
}

.brand-main {
    display: grid;
    gap: 30px;
    flex-direction: row;
    align-items: center;
   grid-template-columns: 13% auto;
   width: 100%;
}

.brand-logo img {
  width: 100%;
  border-radius: 8px;
}

.brand-info {
    display: grid;
    grid-template-columns: 20% auto;
    align-items: center;
    gap: 15px;
        
}

.promo-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    text-align: center;
    margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 9px;
  color: #636363;
}
.tag.red { background: #ffe0e0; }
.tag.yellow { background: #fff9c4; }
.tag.green { background: #e8f5e9; }
.tag.purple { background: #f3e5f5; }
.tag.blue { background: #e8eaf6; }
.tag.orange { background: #fff3e0; }

.promo-list {
  margin-top: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.promo-list li {
  font-size: 14px;
  margin-bottom: 4px;
  margin-left: 0 !important;
}

.register-btn {
    padding: 8px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    font-size: 12px;
    text-align: center;
    box-shadow: rgba(26, 35, 126, 0.8) 0px 0px 14.9988px 0px;  
}

.register-btn:hover{
    color: #fff;
}

.gradient-blue { background: linear-gradient(90deg, #007bff, #0056d2); }
.gradient-gold { background: linear-gradient(90deg, #ffd700, #f39c12); }
.gradient-green { background: linear-gradient(90deg, #00b09b 0%, #96c93d 100%);}
.gradient-purple { background: linear-gradient(90deg, #8e2de2 0%, #4a00e0 100%);}
.gradient-silver {background: linear-gradient(90deg, #bdc3c7 0%, #2c3e50 100%);}
.gradient-pink {background: linear-gradient(90deg, #ff758c 0%, #ff7eb3 100%);}
.gradient-cyan {background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);}
.gradient-red {background: linear-gradient(90deg, #ff4b2b 0%, #ff416c 100%);}

/* Guarantee Section */
.guarantee-section {
 background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}
.guarantee-section h3{
    color: #fff;
    font-size: 20px;
}

.guarantee-content{
    font-size: 14px;
}
.guarantee-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: #ffcc00;
  color: #000;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
}

.brand-rank {
  border: double 6px #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a7bd5, #3a6073);
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.brand-card:nth-child(1) .brand-rank { background: linear-gradient(135deg, #ffd700, #ff9f00); } /* ทอง */
.brand-card:nth-child(3) .brand-rank { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); } /* เงิน */
.brand-card:nth-child(4) .brand-rank { background: linear-gradient(135deg, #cd7f32, #a05a2c); } /* ทองแดง */

@keyframes blink-border {
  0%, 100% {
    border-color: #ff7e07;
  }
  50% {
    border-color: transparent;
  }
}

.brand-card:nth-child(1) {
   border: solid 3px #ff7e07;
   animation: blink-border .8s infinite;
}


.brand-action{
    border-left: 1px solid #e9e9e9;
    padding-left: 10px;
}


.box-content {
    background: #fbfbfb;
    padding: 25px 20px 0px 20px !important;
    height: 500px;
    overflow-y: scroll;
    scrollbar-color: #c32424 #f1f1f1;
    scrollbar-width: thin;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}


.box-review {
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px 25px;
}

.absolute-footer {
    border-top: solid 1px #3949ab;
}

/*banner*/

.banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    text-align: center;
    padding: 2px 4px;
}

.banner-bottom .warp {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    row-gap: 2px;
}

.banner-bottom img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 5px;
  
}

/* ปุ่มปิดทั้งหมด */
.banner-bottom .close-btn-all {
  position: absolute;
  top:0px;
  right: -13px;
  transform: translate(-50%, 0);
  font-size: 16px;
  color: #fff;
  background: rgb(26 35 126 / 70%);
 padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  z-index: 99;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}