/*
Theme Name: Giao-Dien-Child
Description: Child theme for Flatsome
Author: UX Themes
Template: flatsome
Version: 3.0
*/






.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: 15px;
}

.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: #0fa431;
}

.event-store-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.store-count {
  margin: 0 0 6px;
  color: #555;
}

.store-more-link {
  color: #0fa431;
  font-weight: 600;
  text-decoration: none;
}

/* =================================================
   STORE PAGE LAYOUT
   ================================================= */

.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: #3258b3;
  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 #0fa431;
}

/* =================================================
   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: #0fa431;
}

.coupon-desc {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
  padding: 0 10px 0 3px;
}

/* =================================================
   COUPON LEFT – DESKTOP
   ================================================= */

.coupon-left {
  position: relative;
  background: #3258b3;
  color: #fff;
  width: 110px;
  min-width: 110px;
  padding: 16px 10px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.coupon-left::before,
.coupon-left::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.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)
   ================================================= */

.code-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 260px;
  height: 44px;
}

.code-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border: 2px dashed #0fa431;
  border-right: none;
  font-weight: 700;
  font-size: 16px;
  background: #fff;
  color: #000;
  border-radius: 8px 0 0 8px;
  box-sizing: border-box;
}

.btn-code {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  background: #0fa431;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #0fa431;
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-deal {
  width: 160px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0fa431;
  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 #0fa431;
}

.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-about {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.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) {

  .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 {
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .coupon-left::before,
  .coupon-left::after {
    display: none;
  }

  .coupon-store-logo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
  }

  .coupon-rating-mobi {
    display: block;
    font-size: 12px;
    color: #f4b400;
    text-align: center;
  }

  .coupon-left .coupon-discount {
    display: none;
  }

  .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;
  }
}
