/* ---------- Root + base ---------- */
body.page--store {
  --page-max: 1500px;
}

html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  color: #333;
  background: #f9f9f9;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
  color: #222;
}
h1 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.75vw, 2rem); text-align: center; }

a:hover { text-decoration: underline; }

body.page--store ul { list-style: none; padding: 0; }
body.page--store li { padding-bottom: 1.2rem; }

code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ---------- Hero ---------- */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 68%;
  display: block;
  aspect-ratio: 3 / 2;
  max-height: 1280px;
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-content .intro-card {
  padding: 4rem 5rem;
  text-align: left;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hero-content .intro-card h1 {
  font-size: 40px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 2.5rem;
  color: #1a1a1a;
}

/* ---------- Intro Card ---------- */
.intro-section { display: flex; justify-content: center; }
.intro-card {
  background: #fff;
  padding: 3rem 4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
  width: 100%;
  max-width: 1200px;
}
.intro-card h1 { 
  font-size: 50px; 
  margin-bottom: 2rem; 
  color: #2d3e50; 
  text-align: center; 
}
.intro-card p { 
  font-size: 20px; 
  line-height: 1.8; 
  color: #000000; 
  margin-bottom: 1rem; 
  font-family: 'Poppins', sans-serif; 
  font-weight: 200;
}

/* ---------- Coupons ---------- */
#coupons.coupons-section {
  padding-block: 10vh;
  max-width: 1200px;   /* keep content readable */
  margin: 0 auto;      /* center the whole block */
}

.coupons-title {
  text-align: center;
  font-weight: 600;
  font-size: 40px;
  margin-bottom: 3rem;
  line-height: 1.2;
  position: relative;
}

/* you can keep or drop these lines — they add decoration */
.coupons-title::before,
.coupons-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 20px;
}

.coupons-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* smaller cards fit better */
  gap: 2rem;             /* reduce spacing between cards */
  justify-content: center;
}

.coupon-item {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  display: flex;
  text-align: center;
  border-radius: 20px;
  align-items: center;
  flex-direction: column;
}

.coupon-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%); /* center badge above card */
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.9rem;
  border: 2px solid #ff9800;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.coupon-title { margin-top: 1vh; font-size: 17px; }
.coupon-code,
.coupon-expiry { font-size: 1rem; }

.coupon-link {
  display: block;
  background: #4a8593;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  width: auto;        
  min-width: 275px;
  text-decoration: none;    
  margin-top: auto;
}

/* ---------- Tips Hero ---------- */
.tips-hero__wrap {
  display: flex;
  gap: 40px;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  align-items: stretch;  
  margin: 0 auto;
  padding: 150px 0 150px;
}

.tips-hero__text,
.tips-hero__image {
  flex: 1 1 50%;
}

/* Ensure image fills column height */
.tips-hero__image {
  display: flex;
}
.tips-hero__image picture,
.tips-hero__image img {
  width: 100%;
  height: 100%;            /* ⬅ make it fill parent */
  object-fit: cover;       /* crop nicely */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}


/* Title styling */
.tips-title {
  font-size: 50px;           /* more balanced */
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #000;
  text-align: left;
}

/* Tip items */
.tips-hero__text .tip-item {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}
.tips-hero__text .tip-item:last-child {
  border-bottom: none;
}

.tips-hero__text .tip-text {
  font-size: 22px;           /* clean readable size */
  line-height: 1.6;
  font-weight: 300;
  color: #333;
}


/* ---------- Store Summary ---------- */
.store-summary-back { 
  background: var(--summary-bg) center / cover no-repeat;
    padding: 100px 0;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    align-content: center;
    justify-content: center;
}

.store-summary-section { 
  background: #fff; 
  padding: 4rem 5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
  width: 100%;
  max-width: 1200px;
}
.store-summary-title { font-size: 40px; margin-bottom: 2.5rem; color: #1a1a1a; text-align: left;}
.store-summary-content { font-size: 1.1vw; line-height: 1.7; color: #2d3e50; text-align: left; font-family: 'Poppins', sans-serif; }
.store-summary-content p { font-size: 20px; margin-bottom: 1.5rem; font-weight: 300; }
.store-summary-content strong { color: #4a8593; font-weight: 600; }

/* ---------- Related Stores ---------- */
.related-stores-title {
  margin-top: 5vh;
  margin-bottom: 5vh;
  font-size: 50px;
  font-weight: bold;
  text-align: center;
}

.related-stores-list { 
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;   /* ✅ constrain to content width */
  margin: 0 auto 10vh; /* ✅ center it on the page */
}

.related-store-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  width: 30%;           /* ✅ allow 3 per row inside 1200px */
  min-width: 280px;     /* prevents text squishing on smaller screens */
}

.related-store-logo { 
  width: 200px; 
  height: 200px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border: 3px solid #000; 
  background: #fff; 
  margin-bottom: 8px; 
}

.related-store-logo img { 
  max-width: 95%; 
  max-height: 95%; 
  object-fit: contain; 
}

.related-store-name { 
  font-size: 16px; 
  font-weight: 500; 
  color: #333; 
  font-family: 'Poppins', sans-serif; 
  text-decoration: none; 
  margin-top: 6px;
}

/* ---------- Recommendations (cards) ---------- */
.recs-section { margin: 5rem auto; max-width: 1500px; padding: 0 2rem; }
.recs-title { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
.recs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.rec-card { background: #fff; border: 1px solid #d9e1e6; overflow: hidden; transition: transform .15s; border-radius: 20px;}
.rec-card:hover { transform: translateY(-2px); }
.rec-card__img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.rec-card__brand { font-size: 23px; font-weight: 500; color: #1c1e21; font-family: 'Poppins', sans-serif; text-decoration: none;}

.rec-card_brand a {
  text-decoration: none;
  color: inherit; 
  padding: 10px;
}

.rec-card_brand a:hover {
  text-decoration: none; /* also override hover state */
}


/* ---------- Mobile Overrides ---------- */
@media (max-width: 900px) {
  .tips-hero {
    padding: 40px 20px 0;
  }
  .tips-hero__wrap {
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding: unset;
    width: 100%;
    max-width: 320px;
  }
  .tips-hero__image {
    order: -1;
    min-height: 200px;
    max-height: 300px;
    width: 100%;
  }
  .tips-hero__text { text-align: left; }
  .tips-hero__text .tips-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: unset;
    border-bottom: none;
    padding-bottom: unset;
  }

  .tips-hero__text .tip-text {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 767px) {

  .hero-wrapper { min-height: 50vh; }
  .hero-content .intro-card { padding: 1.25rem; }
  .hero-content .intro-card h1 { font-size: 20px; margin-bottom: unset; }
  .hero-content .intro-card p { font-size: 13px; line-height: 1.5; }

  .hero-bg img { aspect-ratio: 3 / 5; max-height: none; }

  .intro-section {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .coupons-list { grid-template-columns: 1fr; gap: 1rem; padding: 30px; }
  .coupon-item { padding: 1rem; }
  .coupon-link { font-size: 1rem; padding: 0.6rem; }
  .coupons-title { width: auto; font-size: 20px; }
  .coupons-title::before, .coupons-title::after { height: 10px; }

  .tip-text { font-size: 13px; }

  .store-summary-back { padding: 30px 15px; }
  .store-summary-section { padding: 1.25rem; max-width: 320px; }
  .store-summary-title { font-size: 20px; margin-bottom: 0; }
  .store-summary-content { font-size: 1rem; line-height: 1.6; }
  .store-summary-content p { font-size: 13px; margin-bottom: 0; }

  .related-stores-title {
    font-size: 25px;
  }
  .related-stores-list { gap: 1rem; flex-direction: column; align-items: center; }
  .related-store-item { max-width: 300px; width: 100%; }
  .rec-card { max-width: 320px; margin: 0 auto; }
  .rec-card__brand { font-size: 1rem; font-weight: 600; padding: 0.5rem; }

  /* Coupons section */
  #coupons.coupons-section {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding-block: 35px;
  }

  .coupons-title {
    font-size: 20px;
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .coupons-list {
    display: flex;
    flex-direction: column;
  }

  .coupon-item {
    padding: 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    margin: 0;
    gap: 0;
  }

  .coupon-badge {
    top: -15px;
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .coupon-title {
    font-size: 1rem;
    font-weight: 600;
  }

  .coupon-code,
  .coupon-expiry {
    font-size: 0.875rem;
    display: block;
  }

  .coupon-link {
  display: block;
  width: 70%;            
  max-width: 220px;      
  margin: 0 auto;   
  margin-top: auto;     
  padding: 0.75rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

}


/* ---------- Heading fixes for Lighthouse ---------- */
section h1, article h1, aside h1, nav h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}
section h2, article h2, aside h2, nav h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.3;
  font-weight: 600;
}


.related-store-link,
.related-store-link:link,
.related-store-link:visited,
.related-store-link:hover,
.related-store-link:focus,
.related-store-link:active {
  text-decoration: none !important;
  color: inherit;
}

/* ---------- coupon slider logi ---------- */
@media (max-width: 767px) {
  .coupons-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 1rem;
    flex-direction: unset;
    width: 100%;
    flex-direction: row;        
    justify-content: flex-start; 
  }
  .coupon-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

/* ---------- chnage in vh for tiny phones ---------- */
@media (max-width: 415px) {
  .hero-wrapper {
    min-height: 60vh;
  }
}


@media (max-width: 1200px) and (min-width: 950px) {
  .intro-card,
  .store-summary-section,
  .tips-hero__wrap,
  #coupons.coupons-section,
  .related-stores-list {
    max-width: 950px;
  }

  .rec-card__brand {
    font-size: 20px;
    font-weight: 500;
    color: #1c1e21;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.coupon-title {
    margin-top: 1vh;
    font-size: 1rem;
}

.coupon-code, .coupon-expiry {
    font-size: .85rem;
}

.store-summary-content p {
    font-size: 18px;
}

intro-card p {
    font-size: 18px;
}

}

@media (min-width: 768px) and (max-width: 1025px) {

  .hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .intro-card {
    max-width: 700px;
    width: 100%;
    padding: 25px 40px !important;
  }

  .hero-content .intro-card h1 {
    font-size: 30px;
  }

  .intro-card p {
    font-size: 16px;
  }

  /* Coupons section wrapper */
  #coupons.coupons-section {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;           /* ⬅ you can tweak this */
    padding-block: 35px;        /* even padding top/bottom */
    margin: 0 auto;
  }

  /* Section title */
  .coupons-title {
    font-size: 28px;            /* slightly larger for iPad */
    text-align: center;
    width: 100%;
    line-height: 1.2;
  }

  /* Horizontal scroll cards */
  .coupons-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    flex-direction: unset;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 1rem;
  }


  .coupons-list::-webkit-scrollbar {
    height: 8px;
  }
  .coupons-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  /* Each coupon card */
  .coupon-item {
    flex: 0 0 280px;            /* fixed width per card */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.25rem;
    border: 1px solid #ddd;
  }

  .coupon-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    padding: 4px 8px;
    font-weight: bold;
    border: 2px solid #ff9800;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  .coupon-title {
    margin-top: 1vh;
    font-size: 1rem;
    font-weight: 600;
  }

  .coupon-code,
  .coupon-expiry {
    font-size: 0.875rem;
    display: block;
    color: #333;
    margin-top: 0.25rem;
  }

  .coupon-link {
    display: block;
    width: 70%;
    max-width: 220px;
    margin: 0 auto;
    margin-top: auto;
    padding: 0.75rem 1rem;
    text-align: center;
    background: #4a8593;
    color: #fff;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .coupon-link:hover {
    background: #3a6a75;
  }

  .store-summary-section {
    max-width: 700px;
    padding: 25px 40px;
  }

  .store-summary-title {
    font-size: 28px;
  }

  .store-summary-content p {
    font-size: 16px;
  }

  .store-summary-back {
    background: var(--summary-bg) center / cover no-repeat;
    padding: 50px 0;
  }

  .tips-hero__wrap {
    flex-direction: column;
    gap: 1.5rem;
    padding: unset;
    width: 100%;
    max-width: 700px;
    align-items: center;
  }

  .tips-hero__text {
    text-align: left;
    padding-top: 200px;
  }

  .tips-hero__text .tips-title {
    font-size: 28px;
  }

  .tips-hero__text .tip-text {
    font-size: 16px;
  }

  .tips-hero {
    padding: 40px 20px;
  }

  .related-stores-list {
    max-width: 700px;
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 100%;
  }

  .related-store-item {
    flex: 0 0 190px !important;
    min-width: 200px;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 60px;
  }

  .logo span {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1026px) {
  .tips-hero__text {
    text-align: left;
    padding-top: unset;
  }

  .tips-hero__wrap {
    flex-direction: column-reverse;
  }
}

.related-store-logo-box img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast; /* Chrome/Safari sharpen */
  image-rendering: crisp-edges;               /* Firefox fallback */
  backface-visibility: hidden;
  transform: translateZ(0);                   /* Prevents subpixel blur */
  filter: none;                               /* Avoids softening */
}

/* === Related Stores (final tuned) === */
.related-stores-section {
  text-align: center;
  padding: 3rem 0 4rem;
}

.related-stores-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: #222;
}

.related-stores-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.related-store-item {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-store-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.related-store-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 1rem;
}

.related-store-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    width: 130px;
    border: 2px solid #000000;
    overflow: hidden;
}

.related-store-logo-box img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.related-store-name {
  margin-top: 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #222;
  line-height: 1.3;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 767px) {
  .related-store-item {
    flex: 0 0 160px;
  }

  .related-store-logo-box {
    height: 130px;
  }

  .related-store-name {
    font-size: 17px;
  }

  .related-stores-section {
    text-align: center;
    padding: unset;
  }
}
