/*
Theme Name: Giao-Dien-Child
Description: Child theme for Flatsome
Author: UX Themes
Template: flatsome
Version: 3.0
*/





 

.code-wrapper.modern {
  display: flex;
    align-items: stretch; /* 👈 quan trọng */

  border: 2px dashed #22c55e;
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
  width:200px;
}
 
 

/* ===== PEEL EFFECT ===== */
.btn-code.peel::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
 width: 0px;
  height: 100%;
  background: linear-gradient(135deg, #00000033 50%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  z-index: 0;

}


 

/* ===== BUTTON ===== */
.btn-code.peel {
  flex: 0 0 150px;
  max-width: 140px;
  height: 100%; /* 🔥 QUAN TRỌNG */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  border: none;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}


/* ===== CODE ===== */
.code-mask {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight:bold;
  padding:5px;
}







.btn-code.peel {
  border-radius: 0 !important;
}


/* base */
.btn-code,
.btn-deal {
  position: relative;
  transition: all 0.15s ease;
    overflow: visible; /* 👈 đổi dòng này */

}

/* hover (nổi lên rõ hơn) */
.btn-code:hover,
.btn-deal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: #fff !important;
}

/* CLICK RUNG MẠNH */
@keyframes shake-strong {
  0%   { transform: scale(0.95) translateX(0); }
  20%  { transform: scale(0.95) translateX(-6px); }
  40%  { transform: scale(0.95) translateX(6px); }
  60%  { transform: scale(0.95) translateX(-5px); }
  80%  { transform: scale(0.95) translateX(5px); }
  100% { transform: scale(0.95) translateX(0); }
}

/* áp dụng khi click */
.btn-code:active,
.btn-deal:active {
  animation: shake-strong 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}






.store-alert,
.store-alert:hover,
.store-alert:focus {
  color: #fff !important;
}




.coupon-stats{
display:flex;
gap:8px;
margin-top:8px;
flex-wrap:wrap;
font-size:13px;
}

.coupon-stats span{
padding:5px 10px;
border-radius:20px;
border:1px solid #eee;
display:flex;
align-items:center;
gap:4px;
font-size: 13px;
}

.stat-used-today{
background:#fff4f4;
border-color:#ffdede;
color:#ec1010;
}

.stat-satisfied{
background:#fff9e6;
border-color:#ffe8a3;
color:#b08900;
}

.stat-used-total{
background:#ecf9f1;
border-color:#c6f0d7;
color:#1a8f4c;
}











/* =================================================
   GLOBAL / COUPON LINK
   ================================================= */

.coupon-deal-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.coupon-deal-link:hover h3 {
  text-decoration: underline;
}

/* Hidden elements (desktop default) */
.coupon-store-logo,
.coupon-rating-mobi {
  display: none;
}

.coupon-card.is-hidden {
  display: none !important;
}

/* =================================================
   EVENT PAGE
   ================================================= */

.event-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.event-header h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.event-desc {
  max-width: 800px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.event-stores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.event-store-card {
  border: 1px solid #eee;
  padding: 20px;
  display: flex;
  gap: 16px;
  background: #fff;
  align-items: center;
}

.event-store-logo {
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.event-store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.store-placeholder {
  font-weight: 700;
  font-size: 22px;
  color: #22c55e;
}

.event-store-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.store-count {
  margin: 0 0 6px;
  color: #555;
}

.store-more-link {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
}

/* =================================================
   STORE PAGE LAYOUT
   ================================================= */


.store-layout {
  max-width: 1300px;   /* chỉnh 1000–1200 tùy mày */
  margin: 40px auto;
}

.store-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto auto;
  column-gap: 30px;
  row-gap: 40px;
  margin: 40px auto;
  padding: 20px;
}

.store-layout .custom-mobile-banner {
  margin: 0 auto;
  grid-column: 1 / 3;
}

.store-layout img.size-full.alignnone {
  margin-bottom: 0;
}

.store-sidebar {
  grid-column: 1 / 2;
}

.store-box {
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
}

.store-box img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.store-name {
  margin: 12px 0 6px;
  font-size: 20px;
}

.store-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.store-rating {
  color: #f4b400;
  font-size: 14px;
  margin-bottom: 10px;
}

.store-alert {
  display: block;
  background: #17c256 !important;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  margin: 10px 0;
  font-weight: 600;
}

.rate-btn {
  background: #f1f3f5;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* =================================================
   COUPON TABS
   ================================================= */

.coupon-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #eee;
  margin-bottom: 25px;
}

.coupon-tabs button {
  background: none;
  border: none;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
}

.coupon-tabs button.active {
  color: #019a04;
  border-bottom: 2px solid #22c55e;
}

/* =================================================
   COUPON CARD (DESKTOP)
   ================================================= */

.coupon-card {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 5px solid #efefef;
  border-radius: 19px;
}

.coupon-center h3 {
  margin: 4px 0;
  font-size: 18px;
  padding-left: 4px;
}

.coupon-label {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
}

.coupon-desc {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
  padding: 0 10px 0 3px;
}

/* =================================================
   COUPON LEFT – DESKTOP
   ================================================= */

.coupon-left {
    position: relative;

    background: linear-gradient(135deg,
        #fdf5d6 0%,
        #fff1b8 100%) !important;

    color: #149242;

    width: 110px;
    min-width: 110px;

    padding: 16px 10px;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 4px 12px rgb(0 0 0 / .15);
      font-family: "Archivo Black", sans-serif;


}




.coupon-left::before { left: -14px; }
.coupon-left::after { right: -14px; }

.coupon-left .coupon-discount {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

/* =================================================
   CODE / DEAL BUTTON (FINAL DESKTOP VERSION)
   ================================================= */



.btn-code.peel {
  border-radius: 0;
 
  box-sizing: border-box;

}

.btn-code {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  
  background: #22c55e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  
  border-radius: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-deal {
   width: 200px !important;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

/* =================================================
   ALL STORES A–Z
   ================================================= */

.all-stores-wrap {
  max-width: 1100px;
  margin: 40px auto;
}

.store-search {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  margin-bottom: 25px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.store-letter {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 15px;
  border-bottom: 2px solid #22c55e;
}

.store-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.store-logo-box {
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.store-name {
  font-size: 16px;
  font-weight: 500;
}

/* =================================================
   ABOUT STORE
   ================================================= */


.store-reviews {
  margin-bottom: 20px;
  border: 5px solid #efefef;
  border-radius: 19px;
  padding:20px;
}



.store-about {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  margin-bottom: 20px;
  border: 5px solid #efefef;
  border-radius: 19px;
  padding:20px;
}

.store-about h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.store-about-content {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  padding: 20px;
}

/* =================================================
   MOBILE – FINAL CLEAN VERSION
   ================================================= */

@media (max-width: 48em) {

  .coupon-card {
    grid-template-columns: 88px 1fr;
  }

  .coupon-left{
    width:88px;
    min-width:88px;

    padding:12px 8px;

    border-radius:10px;
  }

  .coupon-left .coupon-discount{
    font-size:15px;
    line-height:1.2;
  }
    
  .store-sidebar {
    display: none;
  }

  .store-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    row-gap: 15px;
  }

  .coupon-card {
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }



  .coupon-left::before,
  .coupon-left::after {
    display: none;
  }



  .coupon-rating-mobi {
    display: block;
    font-size: 12px;
    color: #f4b400;
    text-align: center;
  }

.coupon-store-logo {
    display: none !important;
}

.coupon-left .coupon-discount {
    display: block !important;
}

  .coupon-center h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
  }

  .coupon-right {
    grid-column: 2 / -1;
    width: 100%;
  }

  .btn-deal {
    width: 100%;
    height: 45px;
    font-size: 16px;
    border-radius: 8px;
  }

  .code-wrapper {
    width: 100%;
    height: 40px;
    max-width: 100%;
  }

  .code-box {
    font-size: 16px;
    border-radius: 5px;
  }

  .btn-code {
    width: 50%;
    background: #019a04;
    font-size: 16px;
  }
}






 
 
 
 

 

 

